mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-19 19:03:02 +08:00
all valid python 3
This commit is contained in:
@ -4,11 +4,11 @@ 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())
|
||||
n = int(input().strip())
|
||||
|
||||
array = []
|
||||
for i in range(n):
|
||||
array.append(int(raw_input().strip()))
|
||||
array.append(int(input().strip()))
|
||||
|
||||
print(str(sum(array))[:10])
|
||||
|
||||
|
Reference in New Issue
Block a user