mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
7 lines
105 B
Python
7 lines
105 B
Python
|
from __future__ import print_function
|
||
|
n = 2**1000
|
||
|
r = 0
|
||
|
while n:
|
||
|
r, n = r + n % 10, n // 10
|
||
|
print(r)
|