python3: add a-very-big-sum
parent
b9007b263a
commit
674de93b7a
@ -0,0 +1,28 @@
|
||||
#!/bin/python3
|
||||
|
||||
import math
|
||||
import os
|
||||
import random
|
||||
import re
|
||||
import sys
|
||||
|
||||
# Complete the aVeryBigSum function below.
|
||||
def aVeryBigSum(ar):
|
||||
sum = 0
|
||||
for i in ar:
|
||||
sum += i
|
||||
|
||||
return sum
|
||||
|
||||
if __name__ == '__main__':
|
||||
fptr = open(os.environ['OUTPUT_PATH'], 'w')
|
||||
|
||||
ar_count = int(input())
|
||||
|
||||
ar = list(map(int, input().rstrip().split()))
|
||||
|
||||
result = aVeryBigSum(ar)
|
||||
|
||||
fptr.write(str(result) + '\n')
|
||||
|
||||
fptr.close()
|
Loading…
Reference in New Issue