1
0
Fork 0

Problem 56

This commit is contained in:
Jonathan Chan 2016-12-26 11:58:27 -08:00
parent e2dfc54f9a
commit 27cae54601
1 changed files with 5 additions and 0 deletions

5
56.py Normal file
View File

@ -0,0 +1,5 @@
largest = 0
for a in range(10, 100):
for b in range(10, 100):
largest = max(largest, sum(map(int, list(str(a**b)))))
print largest