Skip to content

Commit

Permalink
Merge pull request TheAlgorithms#195 from bT-53/master
Browse files Browse the repository at this point in the history
Project Euler Solutions Added.
  • Loading branch information
harshildarji authored Oct 30, 2017
2 parents a5ccc42 + 20a4577 commit 4945623
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Project Euler/Problem 13/sol1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'''
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])

0 comments on commit 4945623

Please sign in to comment.