Python/Project Euler/Problem 13/sol1.py
2018-10-19 14:00:31 +05:30

15 lines
267 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(raw_input().strip())
array = []
for i in range(n):
array.append(int(raw_input().strip()))
print(str(sum(array))[:10])