mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-30 16:31:08 +00:00
Merge pull request #195 from bT-53/master
Project Euler Solutions Added.
This commit is contained in:
commit
4945623c05
13
Project Euler/Problem 13/sol1.py
Normal file
13
Project Euler/Problem 13/sol1.py
Normal file
|
@ -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])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user