def Func(a,b):
num=0
sum=a**b
s=str(sum)
for i in s:
num=num+int(i)
return num
max=0
for i in range(1,100):
for j in range(1,100):
temp=Func(i,j)
if temp>max:
max=temp
print max
project euler Problem 56
最新推荐文章于 2019-02-11 22:13:52 发布