Created
March 26, 2018 21:34
-
-
Save LuanDevecchi/465e37385f9a6699366e5c13ade80ae6 to your computer and use it in GitHub Desktop.
https://rtn-team.cc/ Registration Challenge Solver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
state = () | |
n=400 | |
i = 0 | |
while n<1400: | |
if n%9==0: | |
if str(n) == str(n)[::-1]: | |
print(n) | |
i=n | |
state+= (i,) | |
n=n+1 | |
a = sum(state) | |
print(a) # The final answer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment