Python/project_euler/problem_13/sol1.py

15 lines
259 B
Python
Raw Normal View History

2018-10-19 12:48:28 +00:00
'''
Problem Statement:
Work out the first ten digits of the sum of the N 50-digit numbers.
'''
from __future__ import print_function
2018-10-20 19:45:08 +00:00
n = int(input().strip())
2018-10-19 12:48:28 +00:00
array = []
for i in range(n):
2018-10-20 19:45:08 +00:00
array.append(int(input().strip()))
2018-10-19 12:48:28 +00:00
print(str(sum(array))[:10])