mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-24 13:31:07 +00:00
15 lines
259 B
Python
15 lines
259 B
Python
'''
|
|
Problem Statement:
|
|
Work out the first ten digits of the sum of the N 50-digit numbers.
|
|
'''
|
|
from __future__ import print_function
|
|
|
|
n = int(input().strip())
|
|
|
|
array = []
|
|
for i in range(n):
|
|
array.append(int(input().strip()))
|
|
|
|
print(str(sum(array))[:10])
|
|
|