mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 19:03:02 +08:00
snake_case all the things
This commit is contained in:
14
project_euler/problem_13/sol1.py
Normal file
14
project_euler/problem_13/sol1.py
Normal file
@ -0,0 +1,14 @@
|
||||
'''
|
||||
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])
|
||||
|
Reference in New Issue
Block a user