2013-04-17 14:34:39 +08:00

7 lines
81 B
Python

total = 0
for i in xrange(1, 1001):
total += i ** i
print total % (10 ** 10)