Created
February 3, 2017 11:03
-
-
Save hodlbirb/02777e7de62c4084cc608c47ded53116 to your computer and use it in GitHub Desktop.
Output: 994009
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
def main(): | |
memo = 0 | |
for i in range(1, 999): | |
for j in reversed(range(1,999)): | |
temp = i * j | |
s = str(temp) | |
if (s[0] == s[-1] and temp > memo): | |
memo = temp | |
print(memo) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment