Problem 16

This commit is contained in:
Linus Miller 2018-03-28 16:30:50 +02:00
parent 8bc0387ac4
commit 5e518627e5

11
0016.py Normal file
View File

@ -0,0 +1,11 @@
from functools import reduce
num = 2**1000
l = list(map(lambda x: int(x), list(str(num))))
sum = reduce(lambda x, y: x + y, l)
print(sum)