嵇爾的吐槽

#没事画轮子的嵇尔不定期的(W)碎(E)碎(B)念(B)和(L)吐(O)槽(G)

Problem 48 Self powers 2016-11-11 10:38:00

The series, 11 + 22 + 33 + … + 1010 = 10405071317.

Find the last ten digits of the series, 11 + 22 + 33 + 10001000.

result = 0
for i in range(1, 1001):
    result += i**i

print str(result)[-10:]

python你是超级大妖怪不解释

评论共