mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-17 14:58:10 +00:00
Update sol1.py (#2455)
This commit is contained in:
parent
ea0759dbaa
commit
718be54dbb
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user