7 lines
81 B
Python
7 lines
81 B
Python
total = 0
|
|
|
|
for i in xrange(1, 1001):
|
|
total += i ** i
|
|
|
|
print total % (10 ** 10)
|