https://www.hackerrank.com/challenges/a-very-big-sum/problem
HackerRank - A Very Big Sum
#!/bin/python3import mathimport osimport randomimport reimport sysdef aVeryBigSum(ar): sum = 0 for number in ar: sum += number return sumif __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()
'알고리즘 문제 풀기 > HackerRank' 카테고리의 다른 글
| HackerRank - Plus Minus (0) | 2019.01.12 |
|---|---|
| HackerRank - Diagonal Difference (0) | 2019.01.11 |
| HackerRank - Compare the Triplets (0) | 2019.01.09 |
| Hackerrank - Simple Array Sum (0) | 2019.01.08 |
| HackerRank - Solve Me First (0) | 2019.01.07 |