Update sol1.py (#2455)

This commit is contained in:
Abhinav Anand 2020-09-21 01:03:26 +05:30 committed by GitHub
parent ea0759dbaa
commit 718be54dbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,14 +2,15 @@
Self Powers
Problem 48
The series, 11 + 22 + 33 + ... + 1010 = 10405071317.
The series, 1^1 + 2^2 + 3^3 + ... + 10^10 = 10405071317.
Find the last ten digits of the series, 11 + 22 + 33 + ... + 10001000.
Find the last ten digits of the series, 1^1 + 2^2 + 3^3 + ... + 1000^1000.
"""
def solution():
"""Returns the last 10 digits of the series, 11 + 22 + 33 + ... + 10001000.
"""
Returns the last 10 digits of the series, 1^1 + 2^2 + 3^3 + ... + 1000^1000.
>>> solution()
'9110846700'