mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
14 lines
221 B
Python
14 lines
221 B
Python
|
'''
|
||
|
Problem Statement:
|
||
|
Work out the first ten digits of the sum of the N 50-digit numbers.
|
||
|
'''
|
||
|
|
||
|
n = int(input().strip())
|
||
|
|
||
|
array = []
|
||
|
for i in range(n):
|
||
|
array.append(int(input().strip()))
|
||
|
|
||
|
print(str(sum(array))[:10])
|
||
|
|