Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 762764c

Browse files
Merge pull request #2 from thewhiteflower110/patch-2
Create A-very-big-sum.py
2 parents d83c91e + d7c67ca commit 762764c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

‎Warmup/A-very-big-sum.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#A Very Big Sum
2+
#!/bin/python3
3+
4+
import math
5+
import os
6+
import random
7+
import re
8+
import sys
9+
10+
# Complete the aVeryBigSum function below.
11+
def aVeryBigSum(ar):
12+
return sum(ar)
13+
14+
if __name__ == '__main__':
15+
fptr = open(os.environ['OUTPUT_PATH'], 'w')
16+
17+
ar_count = int(input())
18+
19+
ar = list(map(int, input().rstrip().split()))
20+
21+
result = aVeryBigSum(ar)
22+
23+
fptr.write(str(result) + '\n')
24+
25+
fptr.close()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /