node_ids
sequencelengths 4
1.4k
| edge_index
sequencelengths 1
2.22k
| text
sequencelengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
2,
13,
17,
0,
13,
18,
13,
2,
2,
17,
13,
17,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13,
10,
18,
13
] | [
[
50,
2
],
[
53,
8
],
[
56,
20
],
[
54,
24
],
[
28,
27
],
[
31,
30
],
[
51,
35
],
[
59,
38
],
[
54,
40
],
[
30,
44
],
[
60,
48
],
[
57,
48
],
[
50,
51
],
[
53,
54
],
[
56,
57
],
[
59,
60
]
] | [
"n = int(input())\na = list(map(int, input().split()))\nans = 0\n\na.sort(reverse=True)\n\nfor i in range(1,n+1):\n ans += a[2*i-1]\n\nprint(ans)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"a = list(map(int, input().split()))",
"a",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"ans = 0",
"ans",
"0",
"a.sort(reverse=True)",
"a.sort",
"a",
"sort",
"reverse=True",
"reverse",
"True",
"for i in range(1,n+1):\n ans += a[2*i-1]",
"i",
"range(1,n+1)",
"range",
"1",
"n+1",
"n",
"1",
"ans += a[2*i-1]",
"ans",
"a[2*i-1]",
"a",
"2*i-1",
"2*i",
"2",
"i",
"1",
"print(ans)",
"print",
"ans",
"n = int(input())",
"int(input())",
"n",
"a = list(map(int, input().split()))",
"list(map(int, input().split()))",
"a",
"ans = 0",
"0",
"ans",
"ans += a[2*i-1]",
"a[2*i-1]",
"ans"
] | n = int(input())
a = list(map(int, input().split()))
ans = 0
a.sort(reverse=True)
for i in range(1,n+1):
ans += a[2*i-1]
print(ans) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
18,
4,
13,
13,
0,
13,
39,
28,
13,
4,
13,
2,
17,
13,
4,
18,
13,
13,
4,
13,
18,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
18,
13,
2,
17,
13,
18,
13,
2,
2,
17,
13,
17,
4,
13,
13,
10,
4,
13,
10,
39,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13
] | [
[
68,
2
],
[
80,
8
],
[
71,
15
],
[
19,
18
],
[
69,
23
],
[
72,
26
],
[
81,
31
],
[
18,
32
],
[
72,
35
],
[
39,
38
],
[
74,
41
],
[
45,
44
],
[
69,
47
],
[
77,
49
],
[
72,
53
],
[
44,
56
],
[
72,
58
],
[
44,
62
],
[
78,
66
],
[
75,
66
],
[
68,
69
],
[
71,
72
],
[
74,
75
],
[
77,
78
],
[
80,
81
]
] | [
"n = int(input())\nl = input().split()\nint_l = []\n\nfor i in range(2*n):\n\tint_l.append(int(l[i]))\n\nint_l.sort(reverse=True)\n\nsum = 0\n\nfor i in range(n):\n\tsum += min(int_l[2*i],int_l[2*i+1])\n\nprint(sum)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = input().split()",
"l",
"input().split()",
"().split",
"()",
"input",
"split",
"int_l = []",
"int_l",
"[]",
"for i in range(2*n):\n\tint_l.append(int(l[i]))",
"i",
"range(2*n)",
"range",
"2*n",
"2",
"n",
"int_l.append(int(l[i]))",
"int_l.append",
"int_l",
"append",
"int(l[i])",
"int",
"l[i]",
"l",
"i",
"int_l.sort(reverse=True)",
"int_l.sort",
"int_l",
"sort",
"reverse=True",
"reverse",
"True",
"sum = 0",
"sum",
"0",
"for i in range(n):\n\tsum += min(int_l[2*i],int_l[2*i+1])",
"i",
"range(n)",
"range",
"n",
"sum += min(int_l[2*i],int_l[2*i+1])",
"sum",
"min(int_l[2*i],int_l[2*i+1])",
"min",
"int_l[2*i]",
"int_l",
"2*i",
"2",
"i",
"int_l[2*i+1]",
"int_l",
"2*i+1",
"2*i",
"2",
"i",
"1",
"print(sum)",
"print",
"sum",
"n = int(input())",
"int(input())",
"n",
"int_l = []",
"[]",
"int_l",
"sum = 0",
"0",
"sum",
"sum += min(int_l[2*i],int_l[2*i+1])",
"min(int_l[2*i],int_l[2*i+1])",
"sum",
"l = input().split()",
"input().split()",
"l"
] | n = int(input())
l = input().split()
int_l = []
for i in range(2*n):
int_l.append(int(l[i]))
int_l.sort(reverse=True)
sum = 0
for i in range(n):
sum += min(int_l[2*i],int_l[2*i+1])
print(sum) |
[
7,
12,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
17,
2,
17,
13,
17,
0,
13,
18,
13,
13,
4,
13,
13,
14,
2,
13,
17,
4,
13,
10,
12,
13
] | [
[
5,
4
],
[
11,
10
],
[
10,
23
],
[
27,
26
],
[
30,
29
],
[
33,
32
],
[
4,
38
],
[
42,
41
],
[
10,
43
],
[
32,
44
],
[
41,
47
],
[
29,
47
],
[
56,
53
]
] | [
"def main():\n n = int(input())\n l = list(map(int, input().split()))\n l.sort(reverse=True)\n ans = 0\n for i in range(1, 2*n, 2):\n ans += l[i]\n print(ans)\n\nif __name__ == \"__main__\":\n main()",
"def main():\n n = int(input())\n l = list(map(int, input().split()))\n l.sort(reverse=True)\n ans = 0\n for i in range(1, 2*n, 2):\n ans += l[i]\n print(ans)",
"main",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = list(map(int, input().split()))",
"l",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"l.sort(reverse=True)",
"l.sort",
"l",
"sort",
"reverse=True",
"reverse",
"True",
"ans = 0",
"ans",
"0",
"for i in range(1, 2*n, 2):\n ans += l[i]\n ",
"i",
"range(1, 2*n, 2)",
"range",
"1",
"2*n",
"2",
"n",
"2",
"ans += l[i]",
"ans",
"l[i]",
"l",
"i",
"print(ans)",
"print",
"ans",
"if __name__ == \"__main__\":\n main()",
"__name__ == \"__main__\"",
"__name__",
"\"__main__\"",
"main()",
"main",
"def main():\n n = int(input())\n l = list(map(int, input().split()))\n l.sort(reverse=True)\n ans = 0\n for i in range(1, 2*n, 2):\n ans += l[i]\n print(ans)",
"def main():\n n = int(input())\n l = list(map(int, input().split()))\n l.sort(reverse=True)\n ans = 0\n for i in range(1, 2*n, 2):\n ans += l[i]\n print(ans)",
"main"
] | def main():
n = int(input())
l = list(map(int, input().split()))
l.sort(reverse=True)
ans = 0
for i in range(1, 2*n, 2):
ans += l[i]
print(ans)
if __name__ == "__main__":
main() |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
18,
13,
2,
17,
2,
13,
17,
18,
13,
2,
17,
2,
13,
17,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
59,
2
],
[
62,
8
],
[
63,
21
],
[
25,
24
],
[
56,
27
],
[
31,
30
],
[
60,
33
],
[
65,
35
],
[
63,
39
],
[
30,
43
],
[
63,
46
],
[
30,
50
],
[
66,
54
],
[
57,
54
],
[
56,
57
],
[
59,
60
],
[
62,
63
],
[
65,
66
]
] | [
"A = int(input())\nB = list(map(int,input().split()))\nB.sort(reverse=True)\nans =0\nfor i in range(A):\n ans += min(B[0+i*2],B[1+i*2])\nprint(ans)",
"A = int(input())",
"A",
"int(input())",
"int",
"input()",
"input",
"B = list(map(int,input().split()))",
"B",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"B.sort(reverse=True)",
"B.sort",
"B",
"sort",
"reverse=True",
"reverse",
"True",
"ans =0",
"ans",
"0",
"for i in range(A):\n ans += min(B[0+i*2],B[1+i*2])",
"i",
"range(A)",
"range",
"A",
"ans += min(B[0+i*2],B[1+i*2])",
"ans",
"min(B[0+i*2],B[1+i*2])",
"min",
"B[0+i*2]",
"B",
"0+i*2",
"0",
"i*2",
"i",
"2",
"B[1+i*2]",
"B",
"1+i*2",
"1",
"i*2",
"i",
"2",
"print(ans)",
"print",
"ans",
"ans =0",
"0",
"ans",
"A = int(input())",
"int(input())",
"A",
"B = list(map(int,input().split()))",
"list(map(int,input().split()))",
"B",
"ans += min(B[0+i*2],B[1+i*2])",
"min(B[0+i*2],B[1+i*2])",
"ans"
] | A = int(input())
B = list(map(int,input().split()))
B.sort(reverse=True)
ans =0
for i in range(A):
ans += min(B[0+i*2],B[1+i*2])
print(ans) |
[
7,
12,
13,
0,
13,
39,
0,
13,
17,
28,
13,
4,
13,
17,
4,
13,
13,
17,
0,
13,
4,
13,
4,
18,
13,
13,
18,
13,
39,
13,
2,
13,
17,
0,
13,
2,
13,
18,
18,
13,
17,
17,
4,
18,
13,
13,
13,
29,
13,
23,
13,
23,
13,
12,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
12,
13,
12,
13,
0,
13,
4,
13,
0,
13,
4,
13,
4,
18,
13,
13,
4,
13,
4,
13,
13,
13,
29,
14,
2,
13,
17,
4,
13,
10,
12,
13,
10,
12,
13,
10,
12,
13,
10,
12,
13
] | [
[
5,
4
],
[
8,
7
],
[
11,
10
],
[
50,
16
],
[
20,
19
],
[
19,
24
],
[
50,
27
],
[
10,
31
],
[
35,
34
],
[
7,
36
],
[
34,
36
],
[
19,
39
],
[
4,
44
],
[
19,
46
],
[
34,
48
],
[
7,
48
],
[
50,
50
],
[
52,
52
],
[
58,
57
],
[
57,
66
],
[
73,
72
],
[
107,
74
],
[
77,
76
],
[
104,
78
],
[
76,
81
],
[
98,
86
],
[
76,
87
],
[
72,
88
],
[
101,
95
]
] | [
"def pair(n,count):\n l=[];su=0\n for i in range(0,len(n),2):\n sub=list()\n sub.append(n[i:i+2])\n su=su+sub[0][0]\n l.append(sub)\n return(su)\n \ndef ip11(): return int(input())\ndef ip22(): return [int(_) for _ in input().split()]\n \n\ndef main():\n ip1=ip11()\n ip2=ip22()\n ip2.sort()\n print(pair(ip2,ip1))\n return\nif __name__ == '__main__':\n main()",
"def pair(n,count):\n l=[];su=0\n for i in range(0,len(n),2):\n sub=list()\n sub.append(n[i:i+2])\n su=su+sub[0][0]\n l.append(sub)\n return(su)\n ",
"pair",
"l=[]",
"l",
"[]",
"su=0",
"su",
"0",
"for i in range(0,len(n),2):\n sub=list()\n sub.append(n[i:i+2])\n su=su+sub[0][0]\n l.append(sub)\n ",
"i",
"range(0,len(n),2)",
"range",
"0",
"len(n)",
"len",
"n",
"2",
"sub=list()",
"sub",
"list()",
"list",
"sub.append(n[i:i+2])",
"sub.append",
"sub",
"append",
"n[i:i+2]",
"n",
"i:i+2",
"i",
"i+2",
"i",
"2",
"su=su+sub[0][0]",
"su",
"su+sub[0][0]",
"su",
"sub[0][0]",
"[0]",
"sub",
"0",
"0",
"l.append(sub)",
"l.append",
"l",
"append",
"sub",
"return(su)",
"su",
"n",
"n",
"count",
"count",
"def ip11(): return int(input())",
"ip11",
"int(_) for _ in input().split()",
"for _ in input().split()",
"_",
"input().split()",
"().split",
"()",
"input",
"split",
"for _ in input().split()",
"int(_)",
"int",
"_",
"def ip22(): return [int(_) for _ in input().split()]\n ",
"ip22",
"def main():\n ip1=ip11()\n ip2=ip22()\n ip2.sort()\n print(pair(ip2,ip1))\n return",
"main",
"ip1=ip11()",
"ip1",
"ip11()",
"ip11",
"ip2=ip22()",
"ip2",
"ip22()",
"ip22",
"ip2.sort()",
"ip2.sort",
"ip2",
"sort",
"print(pair(ip2,ip1))",
"print",
"pair(ip2,ip1)",
"pair",
"ip2",
"ip1",
"return",
"if __name__ == '__main__':\n main()",
"__name__ == '__main__'",
"__name__",
"'__main__'",
"main()",
"main",
"def pair(n,count):\n l=[];su=0\n for i in range(0,len(n),2):\n sub=list()\n sub.append(n[i:i+2])\n su=su+sub[0][0]\n l.append(sub)\n return(su)\n ",
"def pair(n,count):\n l=[];su=0\n for i in range(0,len(n),2):\n sub=list()\n sub.append(n[i:i+2])\n su=su+sub[0][0]\n l.append(sub)\n return(su)\n ",
"pair",
"def main():\n ip1=ip11()\n ip2=ip22()\n ip2.sort()\n print(pair(ip2,ip1))\n return",
"def main():\n ip1=ip11()\n ip2=ip22()\n ip2.sort()\n print(pair(ip2,ip1))\n return",
"main",
"def ip22(): return [int(_) for _ in input().split()]\n ",
"def ip22(): return [int(_) for _ in input().split()]\n ",
"ip22",
"def ip11(): return int(input())",
"def ip11(): return int(input())",
"ip11"
] | def pair(n,count):
l=[];su=0
for i in range(0,len(n),2):
sub=list()
sub.append(n[i:i+2])
su=su+sub[0][0]
l.append(sub)
return(su)
def ip11(): return int(input())
def ip22(): return [int(_) for _ in input().split()]
def main():
ip1=ip11()
ip2=ip22()
ip2.sort()
print(pair(ip2,ip1))
return
if __name__ == '__main__':
main() |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
18,
13,
39,
17,
0,
13,
13,
4,
13,
13,
10,
4,
13,
10,
13,
13,
10,
4,
13,
10,
17,
13
] | [
[
39,
2
],
[
45,
8
],
[
46,
21
],
[
48,
24
],
[
28,
27
],
[
46,
29
],
[
42,
33
],
[
27,
34
],
[
43,
37
],
[
49,
37
],
[
39,
40
],
[
27,
42
],
[
42,
43
],
[
45,
46
],
[
48,
49
]
] | [
"tc = int(input())\narr = list(map(int, input().split()))\narr.sort()\nans = 0\nfor i in arr[::2]:\n ans += i\nprint(ans)",
"tc = int(input())",
"tc",
"int(input())",
"int",
"input()",
"input",
"arr = list(map(int, input().split()))",
"arr",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"arr.sort()",
"arr.sort",
"arr",
"sort",
"ans = 0",
"ans",
"0",
"for i in arr[::2]:\n ans += i",
"i",
"arr[::2]",
"arr",
"::2",
"2",
"ans += i",
"ans",
"i",
"print(ans)",
"print",
"ans",
"tc = int(input())",
"int(input())",
"tc",
"ans += i",
"i",
"ans",
"arr = list(map(int, input().split()))",
"list(map(int, input().split()))",
"arr",
"ans = 0",
"0",
"ans"
] | tc = int(input())
arr = list(map(int, input().split()))
arr.sort()
ans = 0
for i in arr[::2]:
ans += i
print(ans)
|
[
7,
15,
13,
15,
13,
15,
15,
4,
18,
13,
13,
17,
15,
15,
15,
15,
15,
15,
15,
0,
13,
2,
2,
17,
17,
17,
0,
13,
4,
13,
17,
12,
13,
12,
13,
0,
13,
4,
13,
0,
13,
4,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
2,
17,
13,
17,
0,
13,
18,
13,
13,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
12,
13,
10,
2,
13,
10,
17,
13,
10,
18,
13,
10,
12,
13,
10,
4,
13
] | [
[
77,
20
],
[
71,
27
],
[
89,
36
],
[
75,
38
],
[
68,
40
],
[
87,
42
],
[
69,
45
],
[
80,
48
],
[
52,
51
],
[
90,
57
],
[
83,
60
],
[
69,
62
],
[
51,
63
],
[
84,
66
],
[
81,
66
],
[
68,
69
],
[
71,
72
],
[
77,
78
],
[
80,
81
],
[
83,
84
],
[
89,
90
]
] | [
"#!/usr/bin/env python3\n#AGC1 A\n\nimport sys\nimport math\nfrom bisect import bisect_right as br\nfrom bisect import bisect_left as bl\nsys.setrecursionlimit(1000000000)\nfrom heapq import heappush, heappop,heappushpop\nfrom collections import defaultdict\nfrom itertools import accumulate\nfrom collections import Counter\nfrom collections import deque\nfrom operator import itemgetter\nfrom itertools import permutations\nmod = 10**9 + 7\ninf = float('inf')\ndef I(): return int(sys.stdin.readline())\ndef LI(): return list(map(int,sys.stdin.readline().split()))\n\nn = I()\nl = LI()\nl.sort()\nans = 0\nfor i in range(0,2*n,2):\n ans += l[i]\nprint(ans)",
"import sys",
"sys",
"import math",
"math",
"from bisect import bisect_right as br",
"from bisect import bisect_left as bl",
"sys.setrecursionlimit(1000000000)",
"sys.setrecursionlimit",
"sys",
"setrecursionlimit",
"1000000000",
"from heapq import heappush, heappop,heappushpop",
"from collections import defaultdict",
"from itertools import accumulate",
"from collections import Counter",
"from collections import deque",
"from operator import itemgetter",
"from itertools import permutations",
"mod = 10**9 + 7",
"mod",
"10**9 + 7",
"10**9",
"10",
"9",
"7",
"inf = float('inf')",
"inf",
"float('inf')",
"float",
"'inf'",
"def I(): return int(sys.stdin.readline())",
"I",
"def LI(): return list(map(int,sys.stdin.readline().split()))",
"LI",
"n = I()",
"n",
"I()",
"I",
"l = LI()",
"l",
"LI()",
"LI",
"l.sort()",
"l.sort",
"l",
"sort",
"ans = 0",
"ans",
"0",
"for i in range(0,2*n,2):\n ans += l[i]",
"i",
"range(0,2*n,2)",
"range",
"0",
"2*n",
"2",
"n",
"2",
"ans += l[i]",
"ans",
"l[i]",
"l",
"i",
"print(ans)",
"print",
"ans",
"l = LI()",
"LI()",
"l",
"inf = float('inf')",
"float('inf')",
"inf",
"def I(): return int(sys.stdin.readline())",
"def I(): return int(sys.stdin.readline())",
"I",
"mod = 10**9 + 7",
"10**9 + 7",
"mod",
"ans = 0",
"0",
"ans",
"ans += l[i]",
"l[i]",
"ans",
"def LI(): return list(map(int,sys.stdin.readline().split()))",
"def LI(): return list(map(int,sys.stdin.readline().split()))",
"LI",
"n = I()",
"I()",
"n"
] | #!/usr/bin/env python3
#AGC1 A
import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(1000000000)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate
from collections import Counter
from collections import deque
from operator import itemgetter
from itertools import permutations
mod = 10**9 + 7
inf = float('inf')
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
n = I()
l = LI()
l.sort()
ans = 0
for i in range(0,2*n,2):
ans += l[i]
print(ans)
|
[
7,
0,
13,
4,
13,
17,
13,
4,
13,
4,
13,
18,
4,
13,
4,
13,
13,
4,
18,
13,
13,
39,
17,
10,
4,
13,
10,
4,
13
] | [
[
27,
2
],
[
27,
6
],
[
25,
19
],
[
27,
25
],
[
27,
28
]
] | [
"_,a=open(0);print(sum(sorted(map(int,a.split()))[::2]))",
"_,a=open(0)",
"_",
"open(0)",
"open",
"0",
"a",
"print(sum(sorted(map(int,a.split()))[::2]))",
"print",
"sum(sorted(map(int,a.split()))[::2])",
"sum",
"sorted(map(int,a.split()))[::2]",
"(map(int,a.split()))",
"sorted",
"map(int,a.split())",
"map",
"int",
"a.split()",
"a.split",
"a",
"split",
"::2",
"2",
"a=open(0)",
"open(0)",
"a",
"_,a=open(0)",
"open(0)",
"_"
] | _,a=open(0);print(sum(sorted(map(int,a.split()))[::2])) |
[
7,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
18,
13,
13,
41,
28,
13,
4,
13,
4,
13,
13,
2,
2,
13,
17,
17,
4,
18,
13,
13,
4,
13,
4,
13,
13,
10,
13,
13,
10,
4,
13
] | [
[
52,
2
],
[
10,
9
],
[
9,
18
],
[
49,
20
],
[
50,
24
],
[
29,
28
],
[
50,
33
],
[
28,
36
],
[
50,
41
],
[
28,
42
],
[
49,
50
],
[
52,
53
]
] | [
"N=int(input())\nA=[int(x) for x in input().split()]\nA.sort()\nprint(sum([A[i] for i in range(len(A)) if i%2==0]))",
"N=int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"int(x) for x in input().split()",
"for x in input().split()",
"x",
"input().split()",
"().split",
"()",
"input",
"split",
"for x in input().split()",
"int(x)",
"int",
"x",
"A=[int(x) for x in input().split()]",
"A",
"[int(x) for x in input().split()]",
"A.sort()",
"A.sort",
"A",
"sort",
"A[i] for i in range(len(A)) if i%2==0",
"for i in range(len(A)) if i%2==0",
"i",
"range(len(A))",
"range",
"len(A)",
"len",
"A",
"i%2==0",
"i%2",
"i",
"2",
"0",
"if i%2==0",
"A[i]",
"A",
"i",
"print(sum([A[i] for i in range(len(A)) if i%2==0]))",
"print",
"sum([A[i] for i in range(len(A)) if i%2==0])",
"sum",
"[A[i] for i in range(len(A)) if i%2==0]",
"A=[int(x) for x in input().split()]",
"[int(x) for x in input().split()]",
"A",
"N=int(input())",
"int(input())",
"N"
] | N=int(input())
A=[int(x) for x in input().split()]
A.sort()
print(sum([A[i] for i in range(len(A)) if i%2==0])) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
13,
4,
13,
4,
13,
18,
13,
2,
17,
13,
18,
13,
2,
2,
17,
13,
17,
10,
4,
13,
10,
4,
13
] | [
[
38,
2
],
[
41,
8
],
[
42,
26
],
[
42,
31
],
[
38,
39
],
[
41,
42
]
] | [
"# --*-coding:utf-8-*--\n\nN = int(input())\nL = sorted(map(int, input().split()))\n\nprint(sum(min(L[2*i], L[2*i+1]) for i in range(N)))",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"L = sorted(map(int, input().split()))",
"L",
"sorted(map(int, input().split()))",
"sorted",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"print(sum(min(L[2*i], L[2*i+1]) for i in range(N)))",
"print",
"sum(min(L[2*i], L[2*i+1]) for i in range(N))",
"sum",
"min(L[2*i], L[2*i+1])",
"min",
"L[2*i]",
"L",
"2*i",
"2",
"i",
"L[2*i+1]",
"L",
"2*i+1",
"2*i",
"2",
"i",
"1",
"N = int(input())",
"int(input())",
"N",
"L = sorted(map(int, input().split()))",
"sorted(map(int, input().split()))",
"L"
] | # --*-coding:utf-8-*--
N = int(input())
L = sorted(map(int, input().split()))
print(sum(min(L[2*i], L[2*i+1]) for i in range(N)))
|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
13,
0,
13,
4,
13,
18,
13,
2,
17,
13,
18,
13,
2,
2,
17,
13,
17,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
55,
2
],
[
61,
8
],
[
62,
21
],
[
52,
24
],
[
28,
27
],
[
56,
31
],
[
58,
33
],
[
62,
37
],
[
27,
40
],
[
62,
42
],
[
27,
46
],
[
59,
50
],
[
53,
50
],
[
52,
53
],
[
55,
56
],
[
58,
59
],
[
61,
62
]
] | [
"n = int(input())\na = list(map(int, input().split()))\na.sort()\nc = 0\nfor i in range(0, n):\n\tc += min(a[2 * i], a[(2 * i)+1])\nprint(c)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"a = list(map(int, input().split()))",
"a",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"a.sort()",
"a.sort",
"a",
"sort",
"c = 0",
"c",
"0",
"for i in range(0, n):\n\tc += min(a[2 * i], a[(2 * i)+1])",
"i",
"range(0, n)",
"range",
"0",
"n",
"c += min(a[2 * i], a[(2 * i)+1])",
"c",
"min(a[2 * i], a[(2 * i)+1])",
"min",
"a[2 * i]",
"a",
"2 * i",
"2",
"i",
"a[(2 * i)+1]",
"a",
"(2 * i)+1",
"2 * i",
"2",
"i",
"1",
"print(c)",
"print",
"c",
"c = 0",
"0",
"c",
"n = int(input())",
"int(input())",
"n",
"c += min(a[2 * i], a[(2 * i)+1])",
"min(a[2 * i], a[(2 * i)+1])",
"c",
"a = list(map(int, input().split()))",
"list(map(int, input().split()))",
"a"
] | n = int(input())
a = list(map(int, input().split()))
a.sort()
c = 0
for i in range(0, n):
c += min(a[2 * i], a[(2 * i)+1])
print(c)
|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
18,
13,
39,
17,
17,
0,
13,
4,
13,
13,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
18,
13
] | [
[
35,
2
],
[
38,
8
],
[
44,
20
],
[
39,
22
],
[
41,
27
],
[
45,
30
],
[
42,
33
],
[
45,
33
],
[
35,
36
],
[
38,
39
],
[
41,
42
],
[
44,
45
]
] | [
"n = int(input())\nL = sorted(map(int,input().split()))\nans = L[0::2]\nans = sum(ans)\nprint(ans)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"L = sorted(map(int,input().split()))",
"L",
"sorted(map(int,input().split()))",
"sorted",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"ans = L[0::2]",
"ans",
"L[0::2]",
"L",
"0::2",
"0",
"2",
"ans = sum(ans)",
"ans",
"sum(ans)",
"sum",
"ans",
"print(ans)",
"print",
"ans",
"n = int(input())",
"int(input())",
"n",
"L = sorted(map(int,input().split()))",
"sorted(map(int,input().split()))",
"L",
"ans = sum(ans)",
"sum(ans)",
"ans",
"ans = L[0::2]",
"L[0::2]",
"ans"
] | n = int(input())
L = sorted(map(int,input().split()))
ans = L[0::2]
ans = sum(ans)
print(ans) |
[
7,
0,
13,
4,
18,
4,
13,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
4,
13,
4,
13,
18,
13,
39,
17,
17,
10,
4,
13,
10,
4,
13
] | [
[
37,
2
],
[
40,
9
],
[
41,
22
],
[
26,
25
],
[
41,
32
],
[
37,
38
],
[
40,
41
]
] | [
"N=input().split()\nL_i = list(map(int, input().split()))\n\nL_i.sort(reverse=False)\n\nprint(sum(L_i[0::2]))",
"N=input().split()",
"N",
"input().split()",
"().split",
"()",
"input",
"split",
"L_i = list(map(int, input().split()))",
"L_i",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"L_i.sort(reverse=False)",
"L_i.sort",
"L_i",
"sort",
"reverse=False",
"reverse",
"False",
"print(sum(L_i[0::2]))",
"print",
"sum(L_i[0::2])",
"sum",
"L_i[0::2]",
"L_i",
"0::2",
"0",
"2",
"N=input().split()",
"input().split()",
"N",
"L_i = list(map(int, input().split()))",
"list(map(int, input().split()))",
"L_i"
] | N=input().split()
L_i = list(map(int, input().split()))
L_i.sort(reverse=False)
print(sum(L_i[0::2])) |
[
7,
15,
13,
0,
13,
12,
4,
18,
4,
18,
18,
13,
13,
13,
13,
4,
18,
13,
13,
4,
13,
17,
2,
17,
17,
0,
13,
12,
4,
18,
18,
13,
13,
13,
2,
13,
17,
23,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
14,
2,
2,
4,
13,
13,
17,
17,
0,
13,
18,
13,
39,
17,
0,
13,
17,
0,
13,
4,
13,
18,
13,
39,
17,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
12,
13,
10,
4,
13,
10,
18,
13,
10,
4,
13,
10,
12,
13
] | [
[
95,
4
],
[
107,
26
],
[
89,
39
],
[
96,
43
],
[
98,
45
],
[
96,
54
],
[
99,
58
],
[
99,
65
],
[
101,
69
],
[
99,
71
],
[
92,
75
],
[
104,
78
],
[
102,
82
],
[
99,
82
],
[
105,
87
],
[
93,
87
],
[
89,
90
],
[
92,
93
],
[
95,
96
],
[
98,
99
],
[
101,
102
],
[
104,
105
],
[
107,
108
]
] | [
"import sys\ninput = lambda : sys.stdin.readline().rstrip()\nsys.setrecursionlimit(max(1000, 10**9))\nwrite = lambda x: sys.stdout.write(x+\"\\n\")\n\n\nn = int(input())\nl = list(map(int, input().split()))\nl.sort()\nif len(l)%2==1:\n l = l[1:]\nans = 0\nans = sum(l[::2])\nprint(ans)",
"import sys",
"sys",
"input = lambda : sys.stdin.readline().rstrip()",
"input",
"lambda : sys.stdin.readline().rstrip()",
"sys.stdin.readline().rstrip()",
"sys.stdin.readline().rstrip",
"sys.stdin.readline()",
"sys.stdin.readline",
"sys.stdin",
"sys",
"stdin",
"readline",
"rstrip",
"sys.setrecursionlimit(max(1000, 10**9))",
"sys.setrecursionlimit",
"sys",
"setrecursionlimit",
"max(1000, 10**9)",
"max",
"1000",
"10**9",
"10",
"9",
"write = lambda x: sys.stdout.write(x+\"\\n\")",
"write",
"lambda x: sys.stdout.write(x+\"\\n\")",
"sys.stdout.write(x+\"\\n\")",
"sys.stdout.write",
"sys.stdout",
"sys",
"stdout",
"write",
"x+\"\\n\"",
"x",
"\"\\n\"",
"x",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = list(map(int, input().split()))",
"l",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"l.sort()",
"l.sort",
"l",
"sort",
"if len(l)%2==1:\n l = l[1:]",
"len(l)%2==1",
"len(l)%2",
"len(l)",
"len",
"l",
"2",
"1",
"l = l[1:]",
"l",
"l[1:]",
"l",
"1:",
"1",
"ans = 0",
"ans",
"0",
"ans = sum(l[::2])",
"ans",
"sum(l[::2])",
"sum",
"l[::2]",
"l",
"::2",
"2",
"print(ans)",
"print",
"ans",
"n = int(input())",
"int(input())",
"n",
"ans = 0",
"0",
"ans",
"input = lambda : sys.stdin.readline().rstrip()",
"lambda : sys.stdin.readline().rstrip()",
"input",
"l = list(map(int, input().split()))",
"list(map(int, input().split()))",
"l",
"l = l[1:]",
"l[1:]",
"l",
"ans = sum(l[::2])",
"sum(l[::2])",
"ans",
"write = lambda x: sys.stdout.write(x+\"\\n\")",
"lambda x: sys.stdout.write(x+\"\\n\")",
"write"
] | import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")
n = int(input())
l = list(map(int, input().split()))
l.sort()
if len(l)%2==1:
l = l[1:]
ans = 0
ans = sum(l[::2])
print(ans) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
0,
13,
4,
13,
18,
13,
2,
13,
17,
18,
13,
13,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13
] | [
[
61,
2
],
[
58,
8
],
[
59,
21
],
[
64,
24
],
[
28,
27
],
[
62,
31
],
[
27,
36
],
[
55,
40
],
[
59,
44
],
[
27,
46
],
[
59,
49
],
[
27,
50
],
[
56,
53
],
[
65,
53
],
[
55,
56
],
[
58,
59
],
[
61,
62
],
[
64,
65
]
] | [
"N = int(input())\nL = list(map(int, input().split()))\nL.sort()\n\nsum = 0\nfor i in range(N * 2):\n if i % 2 == 1:\n sum += min(L[i-1], L[i])\n\nprint(sum)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"L = list(map(int, input().split()))",
"L",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"L.sort()",
"L.sort",
"L",
"sort",
"sum = 0",
"sum",
"0",
"for i in range(N * 2):\n if i % 2 == 1:\n sum += min(L[i-1], L[i])",
"i",
"range(N * 2)",
"range",
"N * 2",
"N",
"2",
"if i % 2 == 1:\n sum += min(L[i-1], L[i])",
"i % 2 == 1",
"i % 2",
"i",
"2",
"1",
"sum += min(L[i-1], L[i])",
"sum",
"min(L[i-1], L[i])",
"min",
"L[i-1]",
"L",
"i-1",
"i",
"1",
"L[i]",
"L",
"i",
"print(sum)",
"print",
"sum",
"sum += min(L[i-1], L[i])",
"min(L[i-1], L[i])",
"sum",
"L = list(map(int, input().split()))",
"list(map(int, input().split()))",
"L",
"N = int(input())",
"int(input())",
"N",
"sum = 0",
"0",
"sum"
] | N = int(input())
L = list(map(int, input().split()))
L.sort()
sum = 0
for i in range(N * 2):
if i % 2 == 1:
sum += min(L[i-1], L[i])
print(sum)
|
[
7,
12,
13,
0,
13,
17,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
4,
18,
13,
13,
13,
4,
18,
13,
13,
0,
13,
13,
4,
13,
13,
23,
13,
23,
13,
14,
2,
13,
17,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
13,
13,
13,
10,
4,
13,
10,
12,
13,
10,
4,
13
] | [
[
5,
4
],
[
38,
8
],
[
12,
11
],
[
15,
14
],
[
36,
17
],
[
20,
19
],
[
38,
22
],
[
25,
24
],
[
38,
27
],
[
31,
30
],
[
19,
31
],
[
30,
34
],
[
4,
34
],
[
36,
36
],
[
38,
38
],
[
72,
44
],
[
66,
50
],
[
70,
62
],
[
73,
63
],
[
67,
64
],
[
66,
67
],
[
72,
73
]
] | [
"def main(n: int, l: list):\n ans = 0\n\n l.sort(reverse=True)\n\n for _ in range(n):\n a, b = l.pop(), l.pop()\n ans += a\n\n print(ans)\n\n\nif __name__ == \"__main__\":\n n = int(input())\n l = list(map(int, input().split()))\n\n main(n, l)",
"def main(n: int, l: list):\n ans = 0\n\n l.sort(reverse=True)\n\n for _ in range(n):\n a, b = l.pop(), l.pop()\n ans += a\n\n print(ans)",
"main",
"ans = 0",
"ans",
"0",
"l.sort(reverse=True)",
"l.sort",
"l",
"sort",
"reverse=True",
"reverse",
"True",
"for _ in range(n):\n a, b = l.pop(), l.pop()\n ans += a\n\n ",
"_",
"range(n)",
"range",
"n",
"a, b = l.pop(), l.pop()",
"a",
"l.pop()",
"l.pop",
"l",
"pop",
"b",
"l.pop()",
"l.pop",
"l",
"pop",
"ans += a",
"ans",
"a",
"print(ans)",
"print",
"ans",
"n: int",
"n",
"l: list",
"l",
"if __name__ == \"__main__\":\n n = int(input())\n l = list(map(int, input().split()))\n\n main(n, l)",
"__name__ == \"__main__\"",
"__name__",
"\"__main__\"",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = list(map(int, input().split()))",
"l",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"main(n, l)",
"main",
"n",
"l",
"l = list(map(int, input().split()))",
"list(map(int, input().split()))",
"l",
"def main(n: int, l: list):\n ans = 0\n\n l.sort(reverse=True)\n\n for _ in range(n):\n a, b = l.pop(), l.pop()\n ans += a\n\n print(ans)",
"def main(n: int, l: list):\n ans = 0\n\n l.sort(reverse=True)\n\n for _ in range(n):\n a, b = l.pop(), l.pop()\n ans += a\n\n print(ans)",
"main",
"n = int(input())",
"int(input())",
"n"
] | def main(n: int, l: list):
ans = 0
l.sort(reverse=True)
for _ in range(n):
a, b = l.pop(), l.pop()
ans += a
print(ans)
if __name__ == "__main__":
n = int(input())
l = list(map(int, input().split()))
main(n, l)
|
[
7,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
18,
4,
13,
13,
13,
4,
4,
13,
13,
0,
13,
4,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
18,
13,
2,
17,
13,
18,
13,
2,
2,
17,
13,
17,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13
] | [
[
55,
2
],
[
10,
9
],
[
9,
21
],
[
64,
23
],
[
58,
28
],
[
32,
31
],
[
56,
34
],
[
61,
36
],
[
65,
40
],
[
31,
43
],
[
65,
45
],
[
31,
49
],
[
62,
53
],
[
59,
53
],
[
55,
56
],
[
58,
59
],
[
61,
62
],
[
64,
65
]
] | [
"N = int(input())\nL = sorted([int(i) for i in input().strip().split()])\nans = 0\nfor n in range(N):\n ans += min(L[2*n], L[2*n+1])\nprint(ans)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"int(i) for i in input().strip().split()",
"for i in input().strip().split()",
"i",
"input().strip().split()",
"().strip().split",
"().strip()",
"().strip",
"()",
"input",
"strip",
"split",
"for i in input().strip().split()",
"int(i)",
"int",
"i",
"L = sorted([int(i) for i in input().strip().split()])",
"L",
"sorted([int(i) for i in input().strip().split()])",
"sorted",
"[int(i) for i in input().strip().split()]",
"ans = 0",
"ans",
"0",
"for n in range(N):\n ans += min(L[2*n], L[2*n+1])",
"n",
"range(N)",
"range",
"N",
"ans += min(L[2*n], L[2*n+1])",
"ans",
"min(L[2*n], L[2*n+1])",
"min",
"L[2*n]",
"L",
"2*n",
"2",
"n",
"L[2*n+1]",
"L",
"2*n+1",
"2*n",
"2",
"n",
"1",
"print(ans)",
"print",
"ans",
"N = int(input())",
"int(input())",
"N",
"ans = 0",
"0",
"ans",
"ans += min(L[2*n], L[2*n+1])",
"min(L[2*n], L[2*n+1])",
"ans",
"L = sorted([int(i) for i in input().strip().split()])",
"sorted([int(i) for i in input().strip().split()])",
"L"
] | N = int(input())
L = sorted([int(i) for i in input().strip().split()])
ans = 0
for n in range(N):
ans += min(L[2*n], L[2*n+1])
print(ans) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
17,
2,
17,
13,
17,
0,
13,
18,
13,
13,
4,
13,
13,
10,
4,
13,
10,
18,
13,
10,
17,
13,
10,
4,
13
] | [
[
56,
2
],
[
47,
8
],
[
48,
21
],
[
25,
24
],
[
53,
27
],
[
31,
30
],
[
57,
36
],
[
50,
39
],
[
48,
41
],
[
30,
42
],
[
51,
45
],
[
54,
45
],
[
47,
48
],
[
50,
51
],
[
53,
54
],
[
56,
57
]
] | [
"n=int(input())\nl=list(map(int,input().split()))\nl.sort(reverse=True)\nc=0\nfor i in range(1,2*n,2):\n c+=l[i]\nprint(c)",
"n=int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l=list(map(int,input().split()))",
"l",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"l.sort(reverse=True)",
"l.sort",
"l",
"sort",
"reverse=True",
"reverse",
"True",
"c=0",
"c",
"0",
"for i in range(1,2*n,2):\n c+=l[i]",
"i",
"range(1,2*n,2)",
"range",
"1",
"2*n",
"2",
"n",
"2",
"c+=l[i]",
"c",
"l[i]",
"l",
"i",
"print(c)",
"print",
"c",
"l=list(map(int,input().split()))",
"list(map(int,input().split()))",
"l",
"c+=l[i]",
"l[i]",
"c",
"c=0",
"0",
"c",
"n=int(input())",
"int(input())",
"n"
] | n=int(input())
l=list(map(int,input().split()))
l.sort(reverse=True)
c=0
for i in range(1,2*n,2):
c+=l[i]
print(c)
|
[
7,
12,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
4,
13,
18,
13,
39,
17,
4,
13,
13,
14,
2,
13,
17,
4,
13,
10,
12,
13
] | [
[
5,
4
],
[
11,
10
],
[
10,
23
],
[
27,
26
],
[
10,
30
],
[
26,
35
],
[
44,
41
]
] | [
"def main():\n n = int(input())\n l = list(map(int, input().split()))\n l.sort()\n ans = sum(l[::2])\n print(ans)\n\n\nif __name__ == '__main__':\n main()",
"def main():\n n = int(input())\n l = list(map(int, input().split()))\n l.sort()\n ans = sum(l[::2])\n print(ans)",
"main",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = list(map(int, input().split()))",
"l",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"l.sort()",
"l.sort",
"l",
"sort",
"ans = sum(l[::2])",
"ans",
"sum(l[::2])",
"sum",
"l[::2]",
"l",
"::2",
"2",
"print(ans)",
"print",
"ans",
"if __name__ == '__main__':\n main()",
"__name__ == '__main__'",
"__name__",
"'__main__'",
"main()",
"main",
"def main():\n n = int(input())\n l = list(map(int, input().split()))\n l.sort()\n ans = sum(l[::2])\n print(ans)",
"def main():\n n = int(input())\n l = list(map(int, input().split()))\n l.sort()\n ans = sum(l[::2])\n print(ans)",
"main"
] | def main():
n = int(input())
l = list(map(int, input().split()))
l.sort()
ans = sum(l[::2])
print(ans)
if __name__ == '__main__':
main()
|
[
7,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
18,
13,
2,
17,
13,
4,
13,
13,
10,
18,
13,
10,
13,
13,
10,
17,
13,
10,
13,
13
] | [
[
4,
3
],
[
3,
12
],
[
63,
14
],
[
19,
18
],
[
18,
27
],
[
57,
29
],
[
58,
33
],
[
60,
36
],
[
40,
39
],
[
64,
42
],
[
54,
44
],
[
58,
46
],
[
39,
49
],
[
55,
52
],
[
61,
52
],
[
54,
55
],
[
57,
58
],
[
60,
61
],
[
63,
64
]
] | [
"n, = [int(v) for v in input().split()]\nl = [int(v) for v in input().split()]\n\nl.sort()\n\nans = 0\nfor i in range(n):\n ans += l[2 * i]\nprint(ans)",
"int(v) for v in input().split()",
"for v in input().split()",
"v",
"input().split()",
"().split",
"()",
"input",
"split",
"for v in input().split()",
"int(v)",
"int",
"v",
"n, = [int(v) for v in input().split()]",
"n",
"[int(v) for v in input().split()]",
"int(v) for v in input().split()",
"for v in input().split()",
"v",
"input().split()",
"().split",
"()",
"input",
"split",
"for v in input().split()",
"int(v)",
"int",
"v",
"l = [int(v) for v in input().split()]",
"l",
"[int(v) for v in input().split()]",
"l.sort()",
"l.sort",
"l",
"sort",
"ans = 0",
"ans",
"0",
"for i in range(n):\n ans += l[2 * i]",
"i",
"range(n)",
"range",
"n",
"ans += l[2 * i]",
"ans",
"l[2 * i]",
"l",
"2 * i",
"2",
"i",
"print(ans)",
"print",
"ans",
"ans += l[2 * i]",
"l[2 * i]",
"ans",
"l = [int(v) for v in input().split()]",
"[int(v) for v in input().split()]",
"l",
"ans = 0",
"0",
"ans",
"n, = [int(v) for v in input().split()]",
"[int(v) for v in input().split()]",
"n"
] | n, = [int(v) for v in input().split()]
l = [int(v) for v in input().split()]
l.sort()
ans = 0
for i in range(n):
ans += l[2 * i]
print(ans) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
18,
13,
39,
17,
17,
0,
13,
13,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
13,
13,
10,
4,
13
] | [
[
52,
2
],
[
46,
8
],
[
47,
21
],
[
25,
24
],
[
43,
27
],
[
31,
30
],
[
47,
32
],
[
49,
37
],
[
30,
38
],
[
50,
41
],
[
44,
41
],
[
43,
44
],
[
46,
47
],
[
30,
49
],
[
49,
50
],
[
52,
53
]
] | [
"N = int(input())\nL = list(map(int,input().split()))\nL.sort(reverse=True)\n#print(L)\n\ncnt = 0\nfor l in L[1::2]:\n #print(l)\n cnt += l\n\nprint(cnt)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"L = list(map(int,input().split()))",
"L",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"L.sort(reverse=True)",
"L.sort",
"L",
"sort",
"reverse=True",
"reverse",
"True",
"cnt = 0",
"cnt",
"0",
"for l in L[1::2]:\n #print(l)\n cnt += l",
"l",
"L[1::2]",
"L",
"1::2",
"1",
"2",
"cnt += l",
"cnt",
"l",
"print(cnt)",
"print",
"cnt",
"cnt = 0",
"0",
"cnt",
"L = list(map(int,input().split()))",
"list(map(int,input().split()))",
"L",
"cnt += l",
"l",
"cnt",
"N = int(input())",
"int(input())",
"N"
] | N = int(input())
L = list(map(int,input().split()))
L.sort(reverse=True)
#print(L)
cnt = 0
for l in L[1::2]:
#print(l)
cnt += l
print(cnt) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
13,
4,
13,
18,
13,
39,
17,
10,
4,
13,
10,
4,
13
] | [
[
33,
2
],
[
30,
8
],
[
31,
26
],
[
30,
31
],
[
33,
34
]
] | [
"n=int(input())\nl=sorted(list(map(int,input().split())))\nprint(sum(l[::2]))",
"n=int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l=sorted(list(map(int,input().split())))",
"l",
"sorted(list(map(int,input().split())))",
"sorted",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"print(sum(l[::2]))",
"print",
"sum(l[::2])",
"sum",
"l[::2]",
"l",
"::2",
"2",
"l=sorted(list(map(int,input().split())))",
"sorted(list(map(int,input().split())))",
"l",
"n=int(input())",
"int(input())",
"n"
] | n=int(input())
l=sorted(list(map(int,input().split())))
print(sum(l[::2])) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
18,
4,
13,
13,
39,
17,
0,
13,
17,
28,
13,
4,
13,
17,
2,
17,
13,
17,
0,
13,
18,
13,
13,
4,
13,
13,
10,
18,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13,
10,
18,
13
] | [
[
54,
2
],
[
51,
8
],
[
48,
20
],
[
52,
24
],
[
57,
28
],
[
32,
31
],
[
55,
37
],
[
60,
40
],
[
49,
42
],
[
52,
42
],
[
31,
43
],
[
61,
46
],
[
58,
46
],
[
48,
49
],
[
51,
52
],
[
54,
55
],
[
57,
58
],
[
60,
61
]
] | [
"n = int(input())\nl = list(map(int,input().split()))\nl = sorted(l)[::-1]\nres = 0\nfor i in range(1,2 * n,2):\n res += l[i]\nprint(res)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = list(map(int,input().split()))",
"l",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"l = sorted(l)[::-1]",
"l",
"sorted(l)[::-1]",
"(l)",
"sorted",
"l",
"::-1",
"-1",
"res = 0",
"res",
"0",
"for i in range(1,2 * n,2):\n res += l[i]",
"i",
"range(1,2 * n,2)",
"range",
"1",
"2 * n",
"2",
"n",
"2",
"res += l[i]",
"res",
"l[i]",
"l",
"i",
"print(res)",
"print",
"res",
"l = sorted(l)[::-1]",
"sorted(l)[::-1]",
"l",
"l = list(map(int,input().split()))",
"list(map(int,input().split()))",
"l",
"n = int(input())",
"int(input())",
"n",
"res = 0",
"0",
"res",
"res += l[i]",
"l[i]",
"res"
] | n = int(input())
l = list(map(int,input().split()))
l = sorted(l)[::-1]
res = 0
for i in range(1,2 * n,2):
res += l[i]
print(res) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
18,
13,
39,
17,
0,
13,
2,
13,
13,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
2,
13,
10,
17,
13
] | [
[
41,
2
],
[
44,
8
],
[
45,
21
],
[
50,
24
],
[
28,
27
],
[
45,
29
],
[
47,
33
],
[
51,
35
],
[
48,
35
],
[
27,
36
],
[
48,
39
],
[
51,
39
],
[
41,
42
],
[
44,
45
],
[
47,
48
],
[
50,
51
]
] | [
"N=int(input())\nL=list(map(int,input().split()))\nL.sort()\nS=0\nfor i in L[::2]:\n S=S+i\nprint(S)",
"N=int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"L=list(map(int,input().split()))",
"L",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"L.sort()",
"L.sort",
"L",
"sort",
"S=0",
"S",
"0",
"for i in L[::2]:\n S=S+i",
"i",
"L[::2]",
"L",
"::2",
"2",
"S=S+i",
"S",
"S+i",
"S",
"i",
"print(S)",
"print",
"S",
"N=int(input())",
"int(input())",
"N",
"L=list(map(int,input().split()))",
"list(map(int,input().split()))",
"L",
"S=S+i",
"S+i",
"S",
"S=0",
"0",
"S"
] | N=int(input())
L=list(map(int,input().split()))
L.sort()
S=0
for i in L[::2]:
S=S+i
print(S) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
41,
28,
13,
4,
13,
17,
2,
17,
13,
17,
4,
18,
13,
13,
4,
13,
4,
13,
13,
10,
4,
13,
10,
4,
13
] | [
[
46,
2
],
[
43,
8
],
[
44,
21
],
[
26,
25
],
[
47,
31
],
[
44,
35
],
[
25,
36
],
[
43,
44
],
[
46,
47
]
] | [
"n = int(input())\nl = list(map(int, input().split()))\nl.sort()\nprint(sum([l[i] for i in range(0, 2 * n, 2)]))",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = list(map(int, input().split()))",
"l",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"l.sort()",
"l.sort",
"l",
"sort",
"l[i] for i in range(0, 2 * n, 2)",
"for i in range(0, 2 * n, 2)",
"i",
"range(0, 2 * n, 2)",
"range",
"0",
"2 * n",
"2",
"n",
"2",
"for i in range(0, 2 * n, 2)",
"l[i]",
"l",
"i",
"print(sum([l[i] for i in range(0, 2 * n, 2)]))",
"print",
"sum([l[i] for i in range(0, 2 * n, 2)])",
"sum",
"[l[i] for i in range(0, 2 * n, 2)]",
"l = list(map(int, input().split()))",
"list(map(int, input().split()))",
"l",
"n = int(input())",
"int(input())",
"n"
] | n = int(input())
l = list(map(int, input().split()))
l.sort()
print(sum([l[i] for i in range(0, 2 * n, 2)]))
|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
18,
13,
2,
17,
13,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
18,
13,
10,
17,
13
] | [
[
40,
2
],
[
43,
8
],
[
49,
22
],
[
26,
25
],
[
41,
28
],
[
46,
30
],
[
44,
32
],
[
25,
35
],
[
47,
38
],
[
50,
38
],
[
40,
41
],
[
43,
44
],
[
46,
47
],
[
49,
50
]
] | [
"a = int(input())\nx = sorted(list(map(int,input().split())))\ncnt=0\nfor i in range(a):\n cnt += x[2*i]\nprint(cnt)",
"a = int(input())",
"a",
"int(input())",
"int",
"input()",
"input",
"x = sorted(list(map(int,input().split())))",
"x",
"sorted(list(map(int,input().split())))",
"sorted",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"cnt=0",
"cnt",
"0",
"for i in range(a):\n cnt += x[2*i]",
"i",
"range(a)",
"range",
"a",
"cnt += x[2*i]",
"cnt",
"x[2*i]",
"x",
"2*i",
"2",
"i",
"print(cnt)",
"print",
"cnt",
"a = int(input())",
"int(input())",
"a",
"x = sorted(list(map(int,input().split())))",
"sorted(list(map(int,input().split())))",
"x",
"cnt += x[2*i]",
"x[2*i]",
"cnt",
"cnt=0",
"0",
"cnt"
] | a = int(input())
x = sorted(list(map(int,input().split())))
cnt=0
for i in range(a):
cnt += x[2*i]
print(cnt) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
2,
2,
17,
13,
17,
17,
0,
13,
18,
13,
13,
4,
13,
13,
10,
17,
13,
10,
18,
13,
10,
4,
13,
10,
4,
13
] | [
[
52,
2
],
[
55,
8
],
[
56,
21
],
[
46,
24
],
[
28,
27
],
[
53,
34
],
[
49,
38
],
[
56,
40
],
[
27,
41
],
[
50,
44
],
[
47,
44
],
[
46,
47
],
[
49,
50
],
[
52,
53
],
[
55,
56
]
] | [
"n=int(input())\narr=list(map(int,input().split()))\narr.sort()\ns=0\nfor i in range(0,(2*n)-1,2):\n s+=arr[i]\nprint(s)",
"n=int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"arr=list(map(int,input().split()))",
"arr",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"arr.sort()",
"arr.sort",
"arr",
"sort",
"s=0",
"s",
"0",
"for i in range(0,(2*n)-1,2):\n s+=arr[i]",
"i",
"range(0,(2*n)-1,2)",
"range",
"0",
"(2*n)-1",
"2*n",
"2",
"n",
"1",
"2",
"s+=arr[i]",
"s",
"arr[i]",
"arr",
"i",
"print(s)",
"print",
"s",
"s=0",
"0",
"s",
"s+=arr[i]",
"arr[i]",
"s",
"n=int(input())",
"int(input())",
"n",
"arr=list(map(int,input().split()))",
"list(map(int,input().split()))",
"arr"
] | n=int(input())
arr=list(map(int,input().split()))
arr.sort()
s=0
for i in range(0,(2*n)-1,2):
s+=arr[i]
print(s) |
[
7,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
2,
13,
17,
17,
0,
13,
18,
13,
13,
4,
13,
13,
10,
13,
13,
10,
4,
13,
10,
17,
13,
10,
18,
13
] | [
[
50,
2
],
[
10,
9
],
[
9,
18
],
[
47,
20
],
[
48,
24
],
[
53,
27
],
[
31,
30
],
[
51,
35
],
[
56,
39
],
[
48,
41
],
[
30,
42
],
[
57,
45
],
[
54,
45
],
[
47,
48
],
[
50,
51
],
[
53,
54
],
[
56,
57
]
] | [
"# AGC 001: A – BBQ Easy\nn = int(input())\nl = [int(s) for s in input().split()]\n\nl.sort()\ntotal_number = 0\n\nfor i in range(0, n * 2, 2):\n total_number += l[i]\n\nprint(total_number)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"int(s) for s in input().split()",
"for s in input().split()",
"s",
"input().split()",
"().split",
"()",
"input",
"split",
"for s in input().split()",
"int(s)",
"int",
"s",
"l = [int(s) for s in input().split()]",
"l",
"[int(s) for s in input().split()]",
"l.sort()",
"l.sort",
"l",
"sort",
"total_number = 0",
"total_number",
"0",
"for i in range(0, n * 2, 2):\n total_number += l[i]",
"i",
"range(0, n * 2, 2)",
"range",
"0",
"n * 2",
"n",
"2",
"2",
"total_number += l[i]",
"total_number",
"l[i]",
"l",
"i",
"print(total_number)",
"print",
"total_number",
"l = [int(s) for s in input().split()]",
"[int(s) for s in input().split()]",
"l",
"n = int(input())",
"int(input())",
"n",
"total_number = 0",
"0",
"total_number",
"total_number += l[i]",
"l[i]",
"total_number"
] | # AGC 001: A – BBQ Easy
n = int(input())
l = [int(s) for s in input().split()]
l.sort()
total_number = 0
for i in range(0, n * 2, 2):
total_number += l[i]
print(total_number) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
18,
13,
2,
17,
13,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10,
18,
13
] | [
[
46,
2
],
[
40,
8
],
[
43,
22
],
[
26,
25
],
[
47,
28
],
[
49,
30
],
[
41,
32
],
[
25,
35
],
[
50,
38
],
[
44,
38
],
[
40,
41
],
[
43,
44
],
[
46,
47
],
[
49,
50
]
] | [
"N = int(input())\nX = sorted(list(map(int, input().split())))\ns = 0\nfor i in range(N):\n s += X[2*i]\nprint(s)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"X = sorted(list(map(int, input().split())))",
"X",
"sorted(list(map(int, input().split())))",
"sorted",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"s = 0",
"s",
"0",
"for i in range(N):\n s += X[2*i]",
"i",
"range(N)",
"range",
"N",
"s += X[2*i]",
"s",
"X[2*i]",
"X",
"2*i",
"2",
"i",
"print(s)",
"print",
"s",
"X = sorted(list(map(int, input().split())))",
"sorted(list(map(int, input().split())))",
"X",
"s = 0",
"0",
"s",
"N = int(input())",
"int(input())",
"N",
"s += X[2*i]",
"X[2*i]",
"s"
] | N = int(input())
X = sorted(list(map(int, input().split())))
s = 0
for i in range(N):
s += X[2*i]
print(s)
|
[
7,
15,
13,
12,
13,
0,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
18,
13,
2,
17,
13,
4,
13,
13,
23,
13,
23,
13,
14,
2,
13,
17,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
13,
13,
13,
10,
4,
13,
10,
12,
13,
10,
13,
13
] | [
[
7,
6
],
[
37,
15
],
[
18,
17
],
[
21,
20
],
[
35,
23
],
[
26,
25
],
[
6,
27
],
[
20,
30
],
[
25,
33
],
[
17,
33
],
[
35,
35
],
[
37,
37
],
[
68,
43
],
[
51,
50
],
[
50,
59
],
[
74,
61
],
[
72,
64
],
[
69,
65
],
[
75,
66
],
[
68,
69
],
[
74,
75
]
] | [
"# -*- coding: utf-8 -*-\n\nimport numpy as np\n\ndef main(p1,p2):\n L_np = np.sort(np.array(p2))\n x_total = 0\n for i in range(p1):\n x_total += L_np[2*i]\n print(x_total)\n\nif __name__ == \"__main__\":\n #a = [int(input()) for i in range(5)]\n N = int(input())\n L = [int(item) for item in input().split()]\n main(N,L)",
"import numpy as np",
"numpy",
"def main(p1,p2):\n L_np = np.sort(np.array(p2))\n x_total = 0\n for i in range(p1):\n x_total += L_np[2*i]\n print(x_total)",
"main",
"L_np = np.sort(np.array(p2))",
"L_np",
"np.sort(np.array(p2))",
"np.sort",
"np",
"sort",
"np.array(p2)",
"np.array",
"np",
"array",
"p2",
"x_total = 0",
"x_total",
"0",
"for i in range(p1):\n x_total += L_np[2*i]\n ",
"i",
"range(p1)",
"range",
"p1",
"x_total += L_np[2*i]",
"x_total",
"L_np[2*i]",
"L_np",
"2*i",
"2",
"i",
"print(x_total)",
"print",
"x_total",
"p1",
"p1",
"p2",
"p2",
"if __name__ == \"__main__\":\n #a = [int(input()) for i in range(5)]\n N = int(input())\n L = [int(item) for item in input().split()]\n main(N,L)",
"__name__ == \"__main__\"",
"__name__",
"\"__main__\"",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"int(item) for item in input().split()",
"for item in input().split()",
"item",
"input().split()",
"().split",
"()",
"input",
"split",
"for item in input().split()",
"int(item)",
"int",
"item",
"L = [int(item) for item in input().split()]",
"L",
"[int(item) for item in input().split()]",
"main(N,L)",
"main",
"N",
"L",
"N = int(input())",
"int(input())",
"N",
"def main(p1,p2):\n L_np = np.sort(np.array(p2))\n x_total = 0\n for i in range(p1):\n x_total += L_np[2*i]\n print(x_total)",
"def main(p1,p2):\n L_np = np.sort(np.array(p2))\n x_total = 0\n for i in range(p1):\n x_total += L_np[2*i]\n print(x_total)",
"main",
"L = [int(item) for item in input().split()]",
"[int(item) for item in input().split()]",
"L"
] | # -*- coding: utf-8 -*-
import numpy as np
def main(p1,p2):
L_np = np.sort(np.array(p2))
x_total = 0
for i in range(p1):
x_total += L_np[2*i]
print(x_total)
if __name__ == "__main__":
#a = [int(input()) for i in range(5)]
N = int(input())
L = [int(item) for item in input().split()]
main(N,L) |
[
7,
0,
13,
4,
13,
4,
13,
4,
13,
4,
13,
18,
4,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
39,
17,
17,
10,
4,
13
] | [
[
28,
2
],
[
28,
29
]
] | [
"n=int(input())\nprint(sum(sorted(list(map(int,input().split())))[0::2]))",
"n=int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"print(sum(sorted(list(map(int,input().split())))[0::2]))",
"print",
"sum(sorted(list(map(int,input().split())))[0::2])",
"sum",
"sorted(list(map(int,input().split())))[0::2]",
"(list(map(int,input().split())))",
"sorted",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"0::2",
"0",
"2",
"n=int(input())",
"int(input())",
"n"
] | n=int(input())
print(sum(sorted(list(map(int,input().split())))[0::2])) |
[
7,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
2,
13,
17,
17,
0,
13,
4,
13,
18,
13,
13,
18,
13,
2,
13,
17,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
13,
13,
10,
4,
13
] | [
[
63,
2
],
[
10,
9
],
[
9,
18
],
[
60,
20
],
[
61,
24
],
[
57,
27
],
[
31,
30
],
[
64,
35
],
[
54,
39
],
[
61,
43
],
[
30,
44
],
[
61,
46
],
[
30,
48
],
[
55,
52
],
[
58,
52
],
[
54,
55
],
[
57,
58
],
[
60,
61
],
[
63,
64
]
] | [
"n = int(input())\nl = [int(s) for s in input().split()]\nl.sort()\nans = 0\nfor i in range(0, n * 2, 2):\n ans += min(l[i], l[i + 1])\n\nprint(ans)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"int(s) for s in input().split()",
"for s in input().split()",
"s",
"input().split()",
"().split",
"()",
"input",
"split",
"for s in input().split()",
"int(s)",
"int",
"s",
"l = [int(s) for s in input().split()]",
"l",
"[int(s) for s in input().split()]",
"l.sort()",
"l.sort",
"l",
"sort",
"ans = 0",
"ans",
"0",
"for i in range(0, n * 2, 2):\n ans += min(l[i], l[i + 1])",
"i",
"range(0, n * 2, 2)",
"range",
"0",
"n * 2",
"n",
"2",
"2",
"ans += min(l[i], l[i + 1])",
"ans",
"min(l[i], l[i + 1])",
"min",
"l[i]",
"l",
"i",
"l[i + 1]",
"l",
"i + 1",
"i",
"1",
"print(ans)",
"print",
"ans",
"ans += min(l[i], l[i + 1])",
"min(l[i], l[i + 1])",
"ans",
"ans = 0",
"0",
"ans",
"l = [int(s) for s in input().split()]",
"[int(s) for s in input().split()]",
"l",
"n = int(input())",
"int(input())",
"n"
] | n = int(input())
l = [int(s) for s in input().split()]
l.sort()
ans = 0
for i in range(0, n * 2, 2):
ans += min(l[i], l[i + 1])
print(ans) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
4,
13,
13,
17,
0,
13,
4,
13,
18,
13,
13,
18,
13,
2,
13,
17,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13
] | [
[
53,
2
],
[
47,
8
],
[
50,
20
],
[
24,
23
],
[
48,
29
],
[
56,
32
],
[
48,
36
],
[
23,
37
],
[
48,
39
],
[
23,
41
],
[
57,
45
],
[
51,
45
],
[
47,
48
],
[
50,
51
],
[
53,
54
],
[
56,
57
]
] | [
"n = int(input())\nl = sorted(map(int, input().split()))\nx = 0\nfor i in range(0,len(l),2):\n x += min(l[i],l[i+1])\nprint(x)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = sorted(map(int, input().split()))",
"l",
"sorted(map(int, input().split()))",
"sorted",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"x = 0",
"x",
"0",
"for i in range(0,len(l),2):\n x += min(l[i],l[i+1])",
"i",
"range(0,len(l),2)",
"range",
"0",
"len(l)",
"len",
"l",
"2",
"x += min(l[i],l[i+1])",
"x",
"min(l[i],l[i+1])",
"min",
"l[i]",
"l",
"i",
"l[i+1]",
"l",
"i+1",
"i",
"1",
"print(x)",
"print",
"x",
"l = sorted(map(int, input().split()))",
"sorted(map(int, input().split()))",
"l",
"x = 0",
"0",
"x",
"n = int(input())",
"int(input())",
"n",
"x += min(l[i],l[i+1])",
"min(l[i],l[i+1])",
"x"
] | n = int(input())
l = sorted(map(int, input().split()))
x = 0
for i in range(0,len(l),2):
x += min(l[i],l[i+1])
print(x) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
13,
4,
13,
18,
13,
39,
17,
10,
4,
13,
10,
4,
13
] | [
[
31,
2
],
[
28,
8
],
[
29,
24
],
[
28,
29
],
[
31,
32
]
] | [
"n = int(input())\nl = sorted(map(int, input().split()))\nprint(sum(l[::2]))",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = sorted(map(int, input().split()))",
"l",
"sorted(map(int, input().split()))",
"sorted",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"print(sum(l[::2]))",
"print",
"sum(l[::2])",
"sum",
"l[::2]",
"l",
"::2",
"2",
"l = sorted(map(int, input().split()))",
"sorted(map(int, input().split()))",
"l",
"n = int(input())",
"int(input())",
"n"
] | n = int(input())
l = sorted(map(int, input().split()))
print(sum(l[::2])) |
[
7,
0,
13,
4,
13,
4,
13,
0,
31,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
4,
13,
13,
0,
13,
4,
13,
18,
13,
39,
17,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
38,
2
],
[
10,
8
],
[
35,
19
],
[
41,
24
],
[
36,
28
],
[
42,
33
],
[
35,
36
],
[
38,
39
],
[
41,
42
]
] | [
"N = int(input())\n*L, = map(int, input().split())\nL = sorted(L)\nans = sum(L[::2])\nprint(ans)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"*L, = map(int, input().split())",
"*L",
"L",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"L = sorted(L)",
"L",
"sorted(L)",
"sorted",
"L",
"ans = sum(L[::2])",
"ans",
"sum(L[::2])",
"sum",
"L[::2]",
"L",
"::2",
"2",
"print(ans)",
"print",
"ans",
"L = sorted(L)",
"sorted(L)",
"L",
"N = int(input())",
"int(input())",
"N",
"ans = sum(L[::2])",
"sum(L[::2])",
"ans"
] | N = int(input())
*L, = map(int, input().split())
L = sorted(L)
ans = sum(L[::2])
print(ans) |
[
7,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
18,
13,
13,
0,
13,
18,
13,
39,
17,
4,
13,
4,
13,
13,
10,
4,
13,
10,
18,
13,
10,
13,
13
] | [
[
38,
2
],
[
10,
9
],
[
9,
18
],
[
44,
20
],
[
45,
24
],
[
41,
27
],
[
45,
29
],
[
42,
36
],
[
38,
39
],
[
41,
42
],
[
44,
45
]
] | [
"n = int(input())\nl = [int(_) for _ in input().split()]\nl.sort()\nm = l[::2]\nprint(sum(m))",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"int(_) for _ in input().split()",
"for _ in input().split()",
"_",
"input().split()",
"().split",
"()",
"input",
"split",
"for _ in input().split()",
"int(_)",
"int",
"_",
"l = [int(_) for _ in input().split()]",
"l",
"[int(_) for _ in input().split()]",
"l.sort()",
"l.sort",
"l",
"sort",
"m = l[::2]",
"m",
"l[::2]",
"l",
"::2",
"2",
"print(sum(m))",
"print",
"sum(m)",
"sum",
"m",
"n = int(input())",
"int(input())",
"n",
"m = l[::2]",
"l[::2]",
"m",
"l = [int(_) for _ in input().split()]",
"[int(_) for _ in input().split()]",
"l"
] | n = int(input())
l = [int(_) for _ in input().split()]
l.sort()
m = l[::2]
print(sum(m)) |
[
7,
0,
13,
39,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
4,
13,
18,
13,
39,
17,
17,
4,
13,
13,
10,
4,
13,
10,
39,
13,
10,
4,
13,
10,
4,
13
] | [
[
45,
2
],
[
48,
5
],
[
42,
11
],
[
43,
24
],
[
46,
24
],
[
28,
27
],
[
51,
30
],
[
43,
34
],
[
46,
34
],
[
52,
40
],
[
42,
43
],
[
45,
46
],
[
48,
49
],
[
51,
52
]
] | [
"li = []\nN = int(input())\nli = list(map(int, input().split()))\n\nli.sort(reverse=True)\nre = sum(li[1::2])\nprint(re)",
"li = []",
"li",
"[]",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"li = list(map(int, input().split()))",
"li",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"li.sort(reverse=True)",
"li.sort",
"li",
"sort",
"reverse=True",
"reverse",
"True",
"re = sum(li[1::2])",
"re",
"sum(li[1::2])",
"sum",
"li[1::2]",
"li",
"1::2",
"1",
"2",
"print(re)",
"print",
"re",
"li = list(map(int, input().split()))",
"list(map(int, input().split()))",
"li",
"li = []",
"[]",
"li",
"N = int(input())",
"int(input())",
"N",
"re = sum(li[1::2])",
"sum(li[1::2])",
"re"
] | li = []
N = int(input())
li = list(map(int, input().split()))
li.sort(reverse=True)
re = sum(li[1::2])
print(re) |
[
7,
15,
13,
13,
13,
13,
12,
13,
0,
13,
4,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
18,
13,
2,
17,
13,
18,
13,
2,
2,
17,
13,
17,
4,
13,
13,
29,
23,
13,
23,
13,
12,
13,
12,
13,
28,
13,
18,
13,
13,
28,
13,
4,
18,
13,
13,
27,
13,
0,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
41,
28,
13,
4,
13,
2,
17,
13,
4,
4,
13,
4,
13,
13,
0,
13,
13,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
10,
12,
13,
10,
12,
13
] | [
[
10,
9
],
[
44,
12
],
[
15,
14
],
[
18,
17
],
[
42,
20
],
[
23,
22
],
[
9,
26
],
[
44,
26
],
[
17,
29
],
[
9,
31
],
[
44,
31
],
[
17,
35
],
[
22,
39
],
[
14,
39
],
[
42,
42
],
[
44,
44
],
[
51,
50
],
[
56,
55
],
[
50,
58
],
[
55,
61
],
[
64,
63
],
[
48,
65
],
[
68,
67
],
[
63,
72
],
[
76,
75
],
[
67,
80
],
[
63,
86
],
[
89,
88
],
[
102,
91
],
[
67,
92
],
[
88,
93
],
[
105,
99
]
] | [
"#!/usr/bin/env python3\nimport sys, math, fractions, itertools\n\n\ndef solve(N: int, L: \"List[int]\"):\n L = sorted(L)\n res = 0\n for i in range(N):\n res += min(L[2*i], L[2*i+1])\n print(res)\n return\n\n\n# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n L = [ int(next(tokens)) for _ in range(2*N) ] # type: \"List[int]\"\n solve(N, L)\n\nif __name__ == '__main__':\n main()",
"import sys, math, fractions, itertools",
"sys",
"math",
"fractions",
"itertools",
"def solve(N: int, L: \"List[int]\"):\n L = sorted(L)\n res = 0\n for i in range(N):\n res += min(L[2*i], L[2*i+1])\n print(res)\n return\n\n\n# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)",
"solve",
"L = sorted(L)",
"L",
"sorted(L)",
"sorted",
"L",
"res = 0",
"res",
"0",
"for i in range(N):\n res += min(L[2*i], L[2*i+1])\n ",
"i",
"range(N)",
"range",
"N",
"res += min(L[2*i], L[2*i+1])",
"res",
"min(L[2*i], L[2*i+1])",
"min",
"L[2*i]",
"L",
"2*i",
"2",
"i",
"L[2*i+1]",
"L",
"2*i+1",
"2*i",
"2",
"i",
"1",
"print(res)",
"print",
"res",
"return",
"N: int",
"N",
"L: \"List[int]\"",
"L",
"def main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n L = [ int(next(tokens)) for _ in range(2*N) ] # type: \"List[int]\"\n solve(N, L)",
"main",
"def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n ",
"iterate_tokens",
"for line in sys.stdin:\n for word in line.split():\n yield word\n ",
"line",
"sys.stdin",
"sys",
"stdin",
"for word in line.split():\n yield word\n ",
"word",
"line.split()",
"line.split",
"line",
"split",
"yield word",
"word",
"tokens = iterate_tokens()",
"tokens",
"iterate_tokens()",
"iterate_tokens",
"N = int(next(tokens))",
"N",
"int(next(tokens))",
"int",
"next(tokens)",
"next",
"tokens",
"int(next(tokens)) for _ in range(2*N)",
"for _ in range(2*N)",
"_",
"range(2*N)",
"range",
"2*N",
"2",
"N",
"for _ in range(2*N)",
"int(next(tokens))",
"int",
"next(tokens)",
"next",
"tokens",
"L = [ int(next(tokens)) for _ in range(2*N) ]",
"L",
"[ int(next(tokens)) for _ in range(2*N) ]",
"solve(N, L)",
"solve",
"N",
"L",
"if __name__ == '__main__':\n main()",
"__name__ == '__main__'",
"__name__",
"'__main__'",
"main()",
"main",
"def solve(N: int, L: \"List[int]\"):\n L = sorted(L)\n res = 0\n for i in range(N):\n res += min(L[2*i], L[2*i+1])\n print(res)\n return\n\n\n# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)",
"def solve(N: int, L: \"List[int]\"):\n L = sorted(L)\n res = 0\n for i in range(N):\n res += min(L[2*i], L[2*i+1])\n print(res)\n return\n\n\n# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)",
"solve",
"def main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n L = [ int(next(tokens)) for _ in range(2*N) ] # type: \"List[int]\"\n solve(N, L)",
"def main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n L = [ int(next(tokens)) for _ in range(2*N) ] # type: \"List[int]\"\n solve(N, L)",
"main"
] | #!/usr/bin/env python3
import sys, math, fractions, itertools
def solve(N: int, L: "List[int]"):
L = sorted(L)
res = 0
for i in range(N):
res += min(L[2*i], L[2*i+1])
print(res)
return
# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)
def main():
def iterate_tokens():
for line in sys.stdin:
for word in line.split():
yield word
tokens = iterate_tokens()
N = int(next(tokens)) # type: int
L = [ int(next(tokens)) for _ in range(2*N) ] # type: "List[int]"
solve(N, L)
if __name__ == '__main__':
main()
|
[
7,
15,
13,
15,
13,
14,
2,
18,
13,
13,
17,
0,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
13,
0,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
13,
13,
17,
0,
18,
13,
13,
4,
13,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
4,
13,
13,
4,
13,
4,
13,
18,
13,
39,
17,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
87,
12
],
[
81,
27
],
[
88,
40
],
[
46,
43
],
[
82,
48
],
[
84,
50
],
[
93,
56
],
[
90,
68
],
[
94,
71
],
[
91,
77
],
[
94,
77
],
[
81,
82
],
[
84,
85
],
[
87,
88
],
[
90,
91
],
[
93,
94
]
] | [
"import sys\nimport os\nif sys.platform==\"darwin\":\n\tbase = os.path.dirname(os.path.abspath(__file__))\n\tname = os.path.normpath(os.path.join(base, '../Documents/input.txt'))\n\t#print(name)\n\tsys.stdin = open(name)\n\nn = int(input())\nl = list(map(int,input().split()))\n\nl = sorted(l)\n#print(l)\n#print( l[::2] )\nprint( sum(l[::2]) )",
"import sys",
"sys",
"import os",
"os",
"if sys.platform==\"darwin\":\n\tbase = os.path.dirname(os.path.abspath(__file__))\n\tname = os.path.normpath(os.path.join(base, '../Documents/input.txt'))\n\t#print(name)\n\tsys.stdin = open(name)",
"sys.platform==\"darwin\"",
"sys.platform",
"sys",
"platform",
"\"darwin\"",
"base = os.path.dirname(os.path.abspath(__file__))",
"base",
"os.path.dirname(os.path.abspath(__file__))",
"os.path.dirname",
"os.path",
"os",
"path",
"dirname",
"os.path.abspath(__file__)",
"os.path.abspath",
"os.path",
"os",
"path",
"abspath",
"__file__",
"name = os.path.normpath(os.path.join(base, '../Documents/input.txt'))",
"name",
"os.path.normpath(os.path.join(base, '../Documents/input.txt'))",
"os.path.normpath",
"os.path",
"os",
"path",
"normpath",
"os.path.join(base, '../Documents/input.txt')",
"os.path.join",
"os.path",
"os",
"path",
"join",
"base",
"'../Documents/input.txt'",
"sys.stdin = open(name)",
"sys.stdin",
"sys",
"stdin",
"open(name)",
"open",
"name",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = list(map(int,input().split()))",
"l",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"l = sorted(l)",
"l",
"sorted(l)",
"sorted",
"l",
"print( sum(l[::2]) )",
"print",
"sum(l[::2])",
"sum",
"l[::2]",
"l",
"::2",
"2",
"name = os.path.normpath(os.path.join(base, '../Documents/input.txt'))",
"os.path.normpath(os.path.join(base, '../Documents/input.txt'))",
"name",
"n = int(input())",
"int(input())",
"n",
"base = os.path.dirname(os.path.abspath(__file__))",
"os.path.dirname(os.path.abspath(__file__))",
"base",
"l = sorted(l)",
"sorted(l)",
"l",
"l = list(map(int,input().split()))",
"list(map(int,input().split()))",
"l"
] | import sys
import os
if sys.platform=="darwin":
base = os.path.dirname(os.path.abspath(__file__))
name = os.path.normpath(os.path.join(base, '../Documents/input.txt'))
#print(name)
sys.stdin = open(name)
n = int(input())
l = list(map(int,input().split()))
l = sorted(l)
#print(l)
#print( l[::2] )
print( sum(l[::2]) )
|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
28,
13,
4,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
0,
13,
18,
13,
13,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
18,
13
] | [
[
52,
2
],
[
49,
8
],
[
46,
22
],
[
26,
25
],
[
53,
29
],
[
25,
34
],
[
55,
38
],
[
50,
40
],
[
25,
41
],
[
56,
44
],
[
47,
44
],
[
46,
47
],
[
49,
50
],
[
52,
53
],
[
55,
56
]
] | [
"# coding: utf-8\n# Your code here!\n\nN = int(input())\na = sorted(list(map(int, input().split())))\nctr = 0\n\nfor i in range(N * 2):\n if i % 2 == 0:\n ctr += a[i]\nprint(ctr)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"a = sorted(list(map(int, input().split())))",
"a",
"sorted(list(map(int, input().split())))",
"sorted",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"ctr = 0",
"ctr",
"0",
"for i in range(N * 2):\n if i % 2 == 0:\n ctr += a[i]",
"i",
"range(N * 2)",
"range",
"N * 2",
"N",
"2",
"if i % 2 == 0:\n ctr += a[i]",
"i % 2 == 0",
"i % 2",
"i",
"2",
"0",
"ctr += a[i]",
"ctr",
"a[i]",
"a",
"i",
"print(ctr)",
"print",
"ctr",
"ctr = 0",
"0",
"ctr",
"a = sorted(list(map(int, input().split())))",
"sorted(list(map(int, input().split())))",
"a",
"N = int(input())",
"int(input())",
"N",
"ctr += a[i]",
"a[i]",
"ctr"
] | # coding: utf-8
# Your code here!
N = int(input())
a = sorted(list(map(int, input().split())))
ctr = 0
for i in range(N * 2):
if i % 2 == 0:
ctr += a[i]
print(ctr) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
2,
17,
13,
17,
0,
13,
18,
13,
13,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
18,
13,
10,
17,
13
] | [
[
47,
2
],
[
44,
8
],
[
45,
21
],
[
53,
24
],
[
28,
27
],
[
48,
33
],
[
50,
36
],
[
45,
38
],
[
27,
39
],
[
51,
42
],
[
54,
42
],
[
44,
45
],
[
47,
48
],
[
50,
51
],
[
53,
54
]
] | [
"N = int(input())\nA = list(map(int, input().split()))\nA.sort()\nans = 0\nfor i in range(0, 2 * N, 2):\n ans += A[i]\nprint(ans)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"A = list(map(int, input().split()))",
"A",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"A.sort()",
"A.sort",
"A",
"sort",
"ans = 0",
"ans",
"0",
"for i in range(0, 2 * N, 2):\n ans += A[i]",
"i",
"range(0, 2 * N, 2)",
"range",
"0",
"2 * N",
"2",
"N",
"2",
"ans += A[i]",
"ans",
"A[i]",
"A",
"i",
"print(ans)",
"print",
"ans",
"A = list(map(int, input().split()))",
"list(map(int, input().split()))",
"A",
"N = int(input())",
"int(input())",
"N",
"ans += A[i]",
"A[i]",
"ans",
"ans = 0",
"0",
"ans"
] | N = int(input())
A = list(map(int, input().split()))
A.sort()
ans = 0
for i in range(0, 2 * N, 2):
ans += A[i]
print(ans) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
2,
2,
39,
17,
17,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
18,
13,
2,
13,
17,
4,
13,
13,
10,
18,
13,
10,
4,
13,
10,
2,
13,
10,
17,
13,
10,
4,
13
] | [
[
62,
2
],
[
56,
8
],
[
63,
14
],
[
53,
16
],
[
54,
29
],
[
57,
29
],
[
59,
32
],
[
36,
35
],
[
63,
38
],
[
50,
40
],
[
54,
42
],
[
57,
42
],
[
35,
44
],
[
51,
48
],
[
60,
48
],
[
50,
51
],
[
53,
54
],
[
56,
57
],
[
59,
60
],
[
62,
63
]
] | [
"N = int(input())\nl = [0] * 2 * N\nl = list(map(int, input().split()))\nl.sort()\ntotal = 0\nfor i in range(N):\n total += l[i * 2]\nprint(total)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"l = [0] * 2 * N",
"l",
"[0] * 2 * N",
"[0] * 2",
"[0]",
"0",
"2",
"N",
"l = list(map(int, input().split()))",
"l",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"l.sort()",
"l.sort",
"l",
"sort",
"total = 0",
"total",
"0",
"for i in range(N):\n total += l[i * 2]",
"i",
"range(N)",
"range",
"N",
"total += l[i * 2]",
"total",
"l[i * 2]",
"l",
"i * 2",
"i",
"2",
"print(total)",
"print",
"total",
"total += l[i * 2]",
"l[i * 2]",
"total",
"l = list(map(int, input().split()))",
"list(map(int, input().split()))",
"l",
"l = [0] * 2 * N",
"[0] * 2 * N",
"l",
"total = 0",
"0",
"total",
"N = int(input())",
"int(input())",
"N"
] | N = int(input())
l = [0] * 2 * N
l = list(map(int, input().split()))
l.sort()
total = 0
for i in range(N):
total += l[i * 2]
print(total) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
0,
13,
4,
13,
13,
28,
13,
4,
13,
17,
2,
17,
13,
17,
0,
13,
18,
13,
13,
4,
13,
13,
10,
4,
13,
10,
18,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13
] | [
[
45,
2
],
[
57,
8
],
[
51,
20
],
[
54,
23
],
[
58,
26
],
[
29,
28
],
[
46,
34
],
[
48,
37
],
[
55,
39
],
[
58,
39
],
[
28,
40
],
[
49,
43
],
[
52,
43
],
[
45,
46
],
[
48,
49
],
[
51,
52
],
[
54,
55
],
[
57,
58
]
] | [
"n = int(input())\nl = list(map(int,input().split()))\nanswer = 0\nl = sorted(l)\nfor i in range(0,2*n,2):\n answer +=l[i]\nprint(answer)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = list(map(int,input().split()))",
"l",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"answer = 0",
"answer",
"0",
"l = sorted(l)",
"l",
"sorted(l)",
"sorted",
"l",
"for i in range(0,2*n,2):\n answer +=l[i]",
"i",
"range(0,2*n,2)",
"range",
"0",
"2*n",
"2",
"n",
"2",
"answer +=l[i]",
"answer",
"l[i]",
"l",
"i",
"print(answer)",
"print",
"answer",
"n = int(input())",
"int(input())",
"n",
"answer +=l[i]",
"l[i]",
"answer",
"answer = 0",
"0",
"answer",
"l = sorted(l)",
"sorted(l)",
"l",
"l = list(map(int,input().split()))",
"list(map(int,input().split()))",
"l"
] | n = int(input())
l = list(map(int,input().split()))
answer = 0
l = sorted(l)
for i in range(0,2*n,2):
answer +=l[i]
print(answer) |
[
7,
12,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
4,
13,
18,
13,
39,
17,
4,
13,
13,
14,
2,
13,
17,
4,
13,
10,
12,
13
] | [
[
5,
4
],
[
11,
10
],
[
10,
23
],
[
27,
26
],
[
10,
30
],
[
26,
35
],
[
44,
41
]
] | [
"def main():\n N = int(input())\n L = list(map(int, input().split()))\n L.sort()\n ans = sum(L[::2])\n print(ans)\n\n\nif __name__ == \"__main__\":\n main()",
"def main():\n N = int(input())\n L = list(map(int, input().split()))\n L.sort()\n ans = sum(L[::2])\n print(ans)",
"main",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"L = list(map(int, input().split()))",
"L",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"L.sort()",
"L.sort",
"L",
"sort",
"ans = sum(L[::2])",
"ans",
"sum(L[::2])",
"sum",
"L[::2]",
"L",
"::2",
"2",
"print(ans)",
"print",
"ans",
"if __name__ == \"__main__\":\n main()",
"__name__ == \"__main__\"",
"__name__",
"\"__main__\"",
"main()",
"main",
"def main():\n N = int(input())\n L = list(map(int, input().split()))\n L.sort()\n ans = sum(L[::2])\n print(ans)",
"def main():\n N = int(input())\n L = list(map(int, input().split()))\n L.sort()\n ans = sum(L[::2])\n print(ans)",
"main"
] | def main():
N = int(input())
L = list(map(int, input().split()))
L.sort()
ans = sum(L[::2])
print(ans)
if __name__ == "__main__":
main()
|
[
7,
12,
13,
29,
4,
13,
13,
4,
18,
4,
13,
13,
12,
13,
29,
4,
13,
4,
13,
12,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
29,
13,
0,
13,
4,
13,
0,
13,
4,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
4,
13,
18,
13,
2,
17,
13,
18,
13,
2,
2,
17,
13,
17,
4,
13,
13,
10,
4,
13,
10,
12,
13,
10,
12,
13,
10,
4,
13,
10,
17,
13,
10,
12,
13,
10,
4,
13
] | [
[
24,
23
],
[
23,
32
],
[
84,
36
],
[
91,
38
],
[
75,
40
],
[
79,
42
],
[
76,
45
],
[
87,
48
],
[
52,
51
],
[
85,
54
],
[
93,
56
],
[
76,
60
],
[
51,
63
],
[
76,
65
],
[
51,
69
],
[
94,
73
],
[
88,
73
],
[
75,
76
],
[
84,
85
],
[
87,
88
],
[
93,
94
]
] | [
"def MI():\n return map(int,input().split())\ndef I():\n return int(input())\ndef LI():\n return [int(i) for i in input().split()]\n \nn=I()\na=LI()\na.sort()\n\nans=0\nfor i in range(n):\n ans+=min(a[2*i],a[2*i+1])\n\nprint(ans)",
"def MI():\n return map(int,input().split())",
"MI",
"return map(int,input().split())",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"def I():\n return int(input())",
"I",
"return int(input())",
"int(input())",
"int",
"input()",
"input",
"def LI():\n return [int(i) for i in input().split()]\n ",
"LI",
"int(i) for i in input().split()",
"for i in input().split()",
"i",
"input().split()",
"().split",
"()",
"input",
"split",
"for i in input().split()",
"int(i)",
"int",
"i",
"return [int(i) for i in input().split()]",
"[int(i) for i in input().split()]",
"n=I()",
"n",
"I()",
"I",
"a=LI()",
"a",
"LI()",
"LI",
"a.sort()",
"a.sort",
"a",
"sort",
"ans=0",
"ans",
"0",
"for i in range(n):\n ans+=min(a[2*i],a[2*i+1])",
"i",
"range(n)",
"range",
"n",
"ans+=min(a[2*i],a[2*i+1])",
"ans",
"min(a[2*i],a[2*i+1])",
"min",
"a[2*i]",
"a",
"2*i",
"2",
"i",
"a[2*i+1]",
"a",
"2*i+1",
"2*i",
"2",
"i",
"1",
"print(ans)",
"print",
"ans",
"a=LI()",
"LI()",
"a",
"def LI():\n return [int(i) for i in input().split()]\n ",
"def LI():\n return [int(i) for i in input().split()]\n ",
"LI",
"def MI():\n return map(int,input().split())",
"def MI():\n return map(int,input().split())",
"MI",
"n=I()",
"I()",
"n",
"ans=0",
"0",
"ans",
"def I():\n return int(input())",
"def I():\n return int(input())",
"I",
"ans+=min(a[2*i],a[2*i+1])",
"min(a[2*i],a[2*i+1])",
"ans"
] | def MI():
return map(int,input().split())
def I():
return int(input())
def LI():
return [int(i) for i in input().split()]
n=I()
a=LI()
a.sort()
ans=0
for i in range(n):
ans+=min(a[2*i],a[2*i+1])
print(ans) |
[
7,
15,
13,
14,
2,
13,
17,
0,
13,
4,
18,
18,
13,
13,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
18,
18,
13,
13,
13,
13,
4,
18,
13,
13,
0,
13,
4,
13,
18,
13,
39,
17,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
53,
8
],
[
50,
16
],
[
51,
33
],
[
47,
36
],
[
51,
40
],
[
48,
45
],
[
47,
48
],
[
50,
51
],
[
53,
54
]
] | [
"import sys\n\nif __name__ == \"__main__\":\n N = sys.stdin.readline()\n L_list = list(map(int, sys.stdin.readline().split()))\n L_list.sort()\n total_bbq = sum(L_list[::2])\n print(total_bbq)",
"import sys",
"sys",
"if __name__ == \"__main__\":\n N = sys.stdin.readline()\n L_list = list(map(int, sys.stdin.readline().split()))\n L_list.sort()\n total_bbq = sum(L_list[::2])\n print(total_bbq)",
"__name__ == \"__main__\"",
"__name__",
"\"__main__\"",
"N = sys.stdin.readline()",
"N",
"sys.stdin.readline()",
"sys.stdin.readline",
"sys.stdin",
"sys",
"stdin",
"readline",
"L_list = list(map(int, sys.stdin.readline().split()))",
"L_list",
"list(map(int, sys.stdin.readline().split()))",
"list",
"map(int, sys.stdin.readline().split())",
"map",
"int",
"sys.stdin.readline().split()",
"sys.stdin.readline().split",
"sys.stdin.readline()",
"sys.stdin.readline",
"sys.stdin",
"sys",
"stdin",
"readline",
"split",
"L_list.sort()",
"L_list.sort",
"L_list",
"sort",
"total_bbq = sum(L_list[::2])",
"total_bbq",
"sum(L_list[::2])",
"sum",
"L_list[::2]",
"L_list",
"::2",
"2",
"print(total_bbq)",
"print",
"total_bbq",
"total_bbq = sum(L_list[::2])",
"sum(L_list[::2])",
"total_bbq",
"L_list = list(map(int, sys.stdin.readline().split()))",
"list(map(int, sys.stdin.readline().split()))",
"L_list",
"N = sys.stdin.readline()",
"sys.stdin.readline()",
"N"
] | import sys
if __name__ == "__main__":
N = sys.stdin.readline()
L_list = list(map(int, sys.stdin.readline().split()))
L_list.sort()
total_bbq = sum(L_list[::2])
print(total_bbq)
|
[
7,
12,
13,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
18,
13,
13,
4,
13,
4,
13,
18,
13,
39,
17,
14,
2,
13,
17,
4,
13,
10,
12,
13
] | [
[
5,
4
],
[
12,
11
],
[
11,
20
],
[
23,
22
],
[
22,
26
],
[
22,
33
],
[
44,
41
]
] | [
"def main():\n N = int(input())\n L = [int(i) for i in input().split()]\n L.sort()\n print(sum(L[::2]))\n\n\nif __name__ == '__main__':\n main()",
"def main():\n N = int(input())\n L = [int(i) for i in input().split()]\n L.sort()\n print(sum(L[::2]))",
"main",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"int(i) for i in input().split()",
"for i in input().split()",
"i",
"input().split()",
"().split",
"()",
"input",
"split",
"for i in input().split()",
"int(i)",
"int",
"i",
"L = [int(i) for i in input().split()]",
"L",
"[int(i) for i in input().split()]",
"L.sort()",
"L.sort",
"L",
"sort",
"print(sum(L[::2]))",
"print",
"sum(L[::2])",
"sum",
"L[::2]",
"L",
"::2",
"2",
"if __name__ == '__main__':\n main()",
"__name__ == '__main__'",
"__name__",
"'__main__'",
"main()",
"main",
"def main():\n N = int(input())\n L = [int(i) for i in input().split()]\n L.sort()\n print(sum(L[::2]))",
"def main():\n N = int(input())\n L = [int(i) for i in input().split()]\n L.sort()\n print(sum(L[::2]))",
"main"
] | def main():
N = int(input())
L = [int(i) for i in input().split()]
L.sort()
print(sum(L[::2]))
if __name__ == '__main__':
main()
|
[
7,
0,
13,
4,
13,
4,
18,
4,
13,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
18,
4,
13,
13,
13,
4,
18,
13,
13,
0,
13,
17,
42,
2,
4,
13,
13,
17,
0,
39,
13,
13,
18,
13,
39,
17,
17,
0,
13,
4,
13,
39,
13,
13,
24,
18,
13,
39,
17,
17,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13
] | [
[
64,
2
],
[
70,
11
],
[
71,
27
],
[
73,
30
],
[
71,
36
],
[
42,
39
],
[
71,
43
],
[
67,
48
],
[
71,
56
],
[
68,
62
],
[
74,
62
],
[
64,
65
],
[
67,
68
],
[
70,
71
],
[
73,
74
]
] | [
"N = int(input().strip())\nL = list(map(int, input().strip().split()))\n\nL.sort()\namt = 0\nwhile (len(L) > 0):\n\t(L1, L2) = L[0:2]\n\tamt += min([L1, L2])\n\tdel L[0:2]\n\nprint(amt)",
"N = int(input().strip())",
"N",
"int(input().strip())",
"int",
"input().strip()",
"().strip",
"()",
"input",
"strip",
"L = list(map(int, input().strip().split()))",
"L",
"list(map(int, input().strip().split()))",
"list",
"map(int, input().strip().split())",
"map",
"int",
"input().strip().split()",
"().strip().split",
"().strip()",
"().strip",
"()",
"input",
"strip",
"split",
"L.sort()",
"L.sort",
"L",
"sort",
"amt = 0",
"amt",
"0",
"while (len(L) > 0):\n\t(L1, L2) = L[0:2]\n\tamt += min([L1, L2])\n\tdel L[0:2]",
"len(L) > 0",
"len(L)",
"len",
"L",
"0",
"(L1, L2) = L[0:2]",
"(L1, L2)",
"L1",
"L2",
"L[0:2]",
"L",
"0:2",
"0",
"2",
"amt += min([L1, L2])",
"amt",
"min([L1, L2])",
"min",
"[L1, L2]",
"L1",
"L2",
"del L[0:2]",
"L[0:2]",
"L",
"0:2",
"0",
"2",
"print(amt)",
"print",
"amt",
"N = int(input().strip())",
"int(input().strip())",
"N",
"amt += min([L1, L2])",
"min([L1, L2])",
"amt",
"L = list(map(int, input().strip().split()))",
"list(map(int, input().strip().split()))",
"L",
"amt = 0",
"0",
"amt"
] | N = int(input().strip())
L = list(map(int, input().strip().split()))
L.sort()
amt = 0
while (len(L) > 0):
(L1, L2) = L[0:2]
amt += min([L1, L2])
del L[0:2]
print(amt)
|
[
7,
0,
13,
2,
4,
13,
4,
13,
17,
0,
13,
4,
18,
4,
13,
13,
0,
13,
39,
28,
13,
4,
13,
13,
4,
18,
13,
13,
4,
13,
18,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
17,
13,
17,
0,
13,
2,
13,
18,
13,
13,
4,
13,
13,
10,
2,
13,
10,
2,
13,
10,
4,
13,
10,
39,
13,
10,
17,
13
] | [
[
64,
2
],
[
67,
10
],
[
70,
17
],
[
21,
20
],
[
65,
23
],
[
71,
26
],
[
68,
31
],
[
20,
32
],
[
71,
35
],
[
39,
38
],
[
73,
41
],
[
45,
44
],
[
65,
48
],
[
61,
51
],
[
74,
53
],
[
62,
53
],
[
71,
55
],
[
44,
56
],
[
62,
59
],
[
74,
59
],
[
61,
62
],
[
64,
65
],
[
67,
68
],
[
70,
71
],
[
73,
74
]
] | [
"n = int(input()) * 2\nl = input().split()\ns = []\nfor i in range(n):\n s.append(int(l[i]))\ns.sort(reverse=True)\nsum = 0\nfor qq in range(1,n,2):\n sum = sum + s[qq]\n \nprint(sum)",
"n = int(input()) * 2",
"n",
"int(input()) * 2",
"int(input())",
"int",
"input()",
"input",
"2",
"l = input().split()",
"l",
"input().split()",
"().split",
"()",
"input",
"split",
"s = []",
"s",
"[]",
"for i in range(n):\n s.append(int(l[i]))",
"i",
"range(n)",
"range",
"n",
"s.append(int(l[i]))",
"s.append",
"s",
"append",
"int(l[i])",
"int",
"l[i]",
"l",
"i",
"s.sort(reverse=True)",
"s.sort",
"s",
"sort",
"reverse=True",
"reverse",
"True",
"sum = 0",
"sum",
"0",
"for qq in range(1,n,2):\n sum = sum + s[qq]\n ",
"qq",
"range(1,n,2)",
"range",
"1",
"n",
"2",
"sum = sum + s[qq]",
"sum",
"sum + s[qq]",
"sum",
"s[qq]",
"s",
"qq",
"print(sum)",
"print",
"sum",
"sum = sum + s[qq]",
"sum + s[qq]",
"sum",
"n = int(input()) * 2",
"int(input()) * 2",
"n",
"l = input().split()",
"input().split()",
"l",
"s = []",
"[]",
"s",
"sum = 0",
"0",
"sum"
] | n = int(input()) * 2
l = input().split()
s = []
for i in range(n):
s.append(int(l[i]))
s.sort(reverse=True)
sum = 0
for qq in range(1,n,2):
sum = sum + s[qq]
print(sum) |
[
7,
12,
13,
29,
4,
13,
18,
4,
13,
13,
39,
17,
23,
13,
23,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
13,
4,
13,
13,
13,
10,
12,
13,
10,
4,
13,
10,
4,
13
] | [
[
15,
9
],
[
13,
13
],
[
15,
15
],
[
44,
17
],
[
47,
23
],
[
42,
37
],
[
45,
38
],
[
48,
39
],
[
44,
45
],
[
47,
48
]
] | [
"def solve(n, l):\n return sum(sorted(l)[::2])\n\nn = int(input())\nl = list(map(int, input().split()))\nprint(solve(n, l))",
"def solve(n, l):\n return sum(sorted(l)[::2])",
"solve",
"return sum(sorted(l)[::2])",
"sum(sorted(l)[::2])",
"sum",
"sorted(l)[::2]",
"(l)",
"sorted",
"l",
"::2",
"2",
"n",
"n",
"l",
"l",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = list(map(int, input().split()))",
"l",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"print(solve(n, l))",
"print",
"solve(n, l)",
"solve",
"n",
"l",
"def solve(n, l):\n return sum(sorted(l)[::2])",
"def solve(n, l):\n return sum(sorted(l)[::2])",
"solve",
"n = int(input())",
"int(input())",
"n",
"l = list(map(int, input().split()))",
"list(map(int, input().split()))",
"l"
] | def solve(n, l):
return sum(sorted(l)[::2])
n = int(input())
l = list(map(int, input().split()))
print(solve(n, l)) |
[
7,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
18,
13,
13,
0,
13,
17,
4,
13,
4,
13,
18,
13,
39,
17,
17,
10,
4,
13,
10,
13,
13
] | [
[
39,
2
],
[
10,
9
],
[
9,
18
],
[
42,
20
],
[
43,
24
],
[
28,
27
],
[
43,
34
],
[
39,
40
],
[
42,
43
]
] | [
"N = int(input())\nL = [int(x) for x in input().split()]\nL.sort(reverse=True)\nprint(sum(L[1::2]))",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"int(x) for x in input().split()",
"for x in input().split()",
"x",
"input().split()",
"().split",
"()",
"input",
"split",
"for x in input().split()",
"int(x)",
"int",
"x",
"L = [int(x) for x in input().split()]",
"L",
"[int(x) for x in input().split()]",
"L.sort(reverse=True)",
"L.sort",
"L",
"sort",
"reverse=True",
"reverse",
"True",
"print(sum(L[1::2]))",
"print",
"sum(L[1::2])",
"sum",
"L[1::2]",
"L",
"1::2",
"1",
"2",
"N = int(input())",
"int(input())",
"N",
"L = [int(x) for x in input().split()]",
"[int(x) for x in input().split()]",
"L"
] | N = int(input())
L = [int(x) for x in input().split()]
L.sort(reverse=True)
print(sum(L[1::2])) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
0,
13,
4,
13,
13,
28,
13,
4,
13,
17,
2,
13,
17,
0,
13,
18,
13,
2,
40,
13,
17,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
18,
13,
10,
17,
13
] | [
[
53,
2
],
[
50,
8
],
[
59,
20
],
[
47,
23
],
[
51,
26
],
[
29,
28
],
[
54,
33
],
[
56,
36
],
[
48,
38
],
[
51,
38
],
[
28,
41
],
[
57,
45
],
[
60,
45
],
[
47,
48
],
[
50,
51
],
[
53,
54
],
[
56,
57
],
[
59,
60
]
] | [
"N = int(input())\nL = list(map(int, input().split()))\nans = 0\n\nL = sorted(L)\n\nfor i in range(1,N+1):\n ans += (L[-i*2])\n\nprint(ans)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"L = list(map(int, input().split()))",
"L",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"ans = 0",
"ans",
"0",
"L = sorted(L)",
"L",
"sorted(L)",
"sorted",
"L",
"for i in range(1,N+1):\n ans += (L[-i*2])",
"i",
"range(1,N+1)",
"range",
"1",
"N+1",
"N",
"1",
"ans += (L[-i*2])",
"ans",
"L[-i*2]",
"L",
"-i*2",
"-i",
"i",
"2",
"print(ans)",
"print",
"ans",
"L = sorted(L)",
"sorted(L)",
"L",
"L = list(map(int, input().split()))",
"list(map(int, input().split()))",
"L",
"N = int(input())",
"int(input())",
"N",
"ans += (L[-i*2])",
"L[-i*2]",
"ans",
"ans = 0",
"0",
"ans"
] | N = int(input())
L = list(map(int, input().split()))
ans = 0
L = sorted(L)
for i in range(1,N+1):
ans += (L[-i*2])
print(ans) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
2,
13,
17,
17,
0,
13,
4,
13,
18,
13,
13,
18,
13,
2,
13,
17,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13
] | [
[
49,
2
],
[
52,
8
],
[
58,
22
],
[
26,
25
],
[
50,
30
],
[
55,
34
],
[
53,
38
],
[
25,
39
],
[
53,
41
],
[
25,
43
],
[
56,
47
],
[
59,
47
],
[
49,
50
],
[
52,
53
],
[
55,
56
],
[
58,
59
]
] | [
"n = int(input())\nl = sorted(list(map(int, input().split())))\nans = 0\nfor i in range(0,n*2,2):\n ans += min(l[i],l[i+1])\nprint(ans)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = sorted(list(map(int, input().split())))",
"l",
"sorted(list(map(int, input().split())))",
"sorted",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"ans = 0",
"ans",
"0",
"for i in range(0,n*2,2):\n ans += min(l[i],l[i+1])",
"i",
"range(0,n*2,2)",
"range",
"0",
"n*2",
"n",
"2",
"2",
"ans += min(l[i],l[i+1])",
"ans",
"min(l[i],l[i+1])",
"min",
"l[i]",
"l",
"i",
"l[i+1]",
"l",
"i+1",
"i",
"1",
"print(ans)",
"print",
"ans",
"n = int(input())",
"int(input())",
"n",
"l = sorted(list(map(int, input().split())))",
"sorted(list(map(int, input().split())))",
"l",
"ans += min(l[i],l[i+1])",
"min(l[i],l[i+1])",
"ans",
"ans = 0",
"0",
"ans"
] | n = int(input())
l = sorted(list(map(int, input().split())))
ans = 0
for i in range(0,n*2,2):
ans += min(l[i],l[i+1])
print(ans) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
4,
13,
18,
13,
39,
17,
17,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
42,
2
],
[
36,
8
],
[
37,
21
],
[
39,
24
],
[
37,
28
],
[
40,
34
],
[
36,
37
],
[
39,
40
],
[
42,
43
]
] | [
"n = int(input())\nlst = list(map(int,input().split()))\nlst.sort()\ns = sum(lst[0::2])\nprint(s)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"lst = list(map(int,input().split()))",
"lst",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"lst.sort()",
"lst.sort",
"lst",
"sort",
"s = sum(lst[0::2])",
"s",
"sum(lst[0::2])",
"sum",
"lst[0::2]",
"lst",
"0::2",
"0",
"2",
"print(s)",
"print",
"s",
"lst = list(map(int,input().split()))",
"list(map(int,input().split()))",
"lst",
"s = sum(lst[0::2])",
"sum(lst[0::2])",
"s",
"n = int(input())",
"int(input())",
"n"
] | n = int(input())
lst = list(map(int,input().split()))
lst.sort()
s = sum(lst[0::2])
print(s)
|
[
7,
12,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
18,
13,
2,
2,
17,
13,
17,
29,
13,
14,
2,
13,
17,
4,
13,
4,
13,
10,
12,
13
] | [
[
5,
4
],
[
11,
10
],
[
10,
23
],
[
27,
26
],
[
30,
29
],
[
33,
32
],
[
4,
35
],
[
38,
37
],
[
10,
39
],
[
32,
43
],
[
37,
46
],
[
29,
46
],
[
57,
54
]
] | [
"def main():\n N = int(input())\n L = list(map(int, input().split()))\n L.sort(reverse = True)\n ans = 0\n for i in range(N):\n ans += L[2*i+1]\n return ans\n\nif __name__ == '__main__':\n print(main())",
"def main():\n N = int(input())\n L = list(map(int, input().split()))\n L.sort(reverse = True)\n ans = 0\n for i in range(N):\n ans += L[2*i+1]\n return ans",
"main",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"L = list(map(int, input().split()))",
"L",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"L.sort(reverse = True)",
"L.sort",
"L",
"sort",
"reverse = True",
"reverse",
"True",
"ans = 0",
"ans",
"0",
"for i in range(N):\n ans += L[2*i+1]\n ",
"i",
"range(N)",
"range",
"N",
"ans += L[2*i+1]",
"ans",
"L[2*i+1]",
"L",
"2*i+1",
"2*i",
"2",
"i",
"1",
"return ans",
"ans",
"if __name__ == '__main__':\n print(main())",
"__name__ == '__main__'",
"__name__",
"'__main__'",
"print(main())",
"print",
"main()",
"main",
"def main():\n N = int(input())\n L = list(map(int, input().split()))\n L.sort(reverse = True)\n ans = 0\n for i in range(N):\n ans += L[2*i+1]\n return ans",
"def main():\n N = int(input())\n L = list(map(int, input().split()))\n L.sort(reverse = True)\n ans = 0\n for i in range(N):\n ans += L[2*i+1]\n return ans",
"main"
] | def main():
N = int(input())
L = list(map(int, input().split()))
L.sort(reverse = True)
ans = 0
for i in range(N):
ans += L[2*i+1]
return ans
if __name__ == '__main__':
print(main()) |
[
7,
0,
13,
4,
13,
13,
4,
18,
4,
18,
4,
13,
17,
13,
13,
31,
13,
4,
13,
4,
13,
4,
13,
18,
4,
13,
13,
39,
2,
13,
17,
2,
2,
13,
17,
17,
10,
4,
13
] | [
[
37,
2
],
[
37,
15
],
[
37,
38
]
] | [
"n, *l = map(int, open(0).read().split())\nprint(sum(min(sorted(l)[i*2:i*2+2]) for i in range(n)))",
"n, *l = map(int, open(0).read().split())",
"n",
"map(int, open(0).read().split())",
"map",
"int",
"open(0).read().split()",
"(0).read().split",
"(0).read()",
"(0).read",
"(0)",
"open",
"0",
"read",
"split",
"*l",
"l",
"print(sum(min(sorted(l)[i*2:i*2+2]) for i in range(n)))",
"print",
"sum(min(sorted(l)[i*2:i*2+2]) for i in range(n))",
"sum",
"min(sorted(l)[i*2:i*2+2])",
"min",
"sorted(l)[i*2:i*2+2]",
"(l)",
"sorted",
"l",
"i*2:i*2+2",
"i*2",
"i",
"2",
"i*2+2",
"i*2",
"i",
"2",
"2",
"n, *l = map(int, open(0).read().split())",
"map(int, open(0).read().split())",
"n"
] | n, *l = map(int, open(0).read().split())
print(sum(min(sorted(l)[i*2:i*2+2]) for i in range(n))) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
0,
13,
39,
28,
13,
4,
13,
13,
4,
18,
13,
13,
18,
13,
2,
2,
17,
13,
17,
4,
13,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
39,
13
] | [
[
50,
2
],
[
47,
8
],
[
21,
20
],
[
53,
23
],
[
27,
26
],
[
51,
29
],
[
54,
32
],
[
48,
35
],
[
26,
39
],
[
54,
45
],
[
47,
48
],
[
50,
51
],
[
53,
54
]
] | [
"N = int(input())\nA = sorted(map(int,input().split()),reverse=True)\nC = []\nfor i in range(N):\n C.append(A[2*i + 1])\nprint(sum(C))",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"A = sorted(map(int,input().split()),reverse=True)",
"A",
"sorted(map(int,input().split()),reverse=True)",
"sorted",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"reverse=True",
"reverse",
"True",
"C = []",
"C",
"[]",
"for i in range(N):\n C.append(A[2*i + 1])",
"i",
"range(N)",
"range",
"N",
"C.append(A[2*i + 1])",
"C.append",
"C",
"append",
"A[2*i + 1]",
"A",
"2*i + 1",
"2*i",
"2",
"i",
"1",
"print(sum(C))",
"print",
"sum(C)",
"sum",
"C",
"A = sorted(map(int,input().split()),reverse=True)",
"sorted(map(int,input().split()),reverse=True)",
"A",
"N = int(input())",
"int(input())",
"N",
"C = []",
"[]",
"C"
] | N = int(input())
A = sorted(map(int,input().split()),reverse=True)
C = []
for i in range(N):
C.append(A[2*i + 1])
print(sum(C)) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
2,
13,
18,
13,
2,
17,
13,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10,
2,
13
] | [
[
44,
2
],
[
50,
8
],
[
51,
21
],
[
47,
24
],
[
28,
27
],
[
45,
30
],
[
53,
32
],
[
48,
34
],
[
54,
34
],
[
51,
36
],
[
27,
39
],
[
54,
42
],
[
48,
42
],
[
44,
45
],
[
47,
48
],
[
50,
51
],
[
53,
54
]
] | [
"N = int(input())\n\ns = list(map(int,input().split()))\n\ns.sort()\n\nsum = 0\n\nfor i in range(N):\n sum = sum + s[2*i]\n\nprint(sum)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"s = list(map(int,input().split()))",
"s",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"s.sort()",
"s.sort",
"s",
"sort",
"sum = 0",
"sum",
"0",
"for i in range(N):\n sum = sum + s[2*i]",
"i",
"range(N)",
"range",
"N",
"sum = sum + s[2*i]",
"sum",
"sum + s[2*i]",
"sum",
"s[2*i]",
"s",
"2*i",
"2",
"i",
"print(sum)",
"print",
"sum",
"N = int(input())",
"int(input())",
"N",
"sum = 0",
"0",
"sum",
"s = list(map(int,input().split()))",
"list(map(int,input().split()))",
"s",
"sum = sum + s[2*i]",
"sum + s[2*i]",
"sum"
] | N = int(input())
s = list(map(int,input().split()))
s.sort()
sum = 0
for i in range(N):
sum = sum + s[2*i]
print(sum) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
42,
2,
4,
13,
13,
17,
0,
13,
4,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
53,
2
],
[
47,
8
],
[
44,
20
],
[
48,
26
],
[
50,
29
],
[
48,
34
],
[
48,
38
],
[
51,
42
],
[
45,
42
],
[
44,
45
],
[
47,
48
],
[
50,
51
],
[
53,
54
]
] | [
"n=int(input())\nl=sorted(map(int,input().split()))\nans=0\nwhile len(l)>1:\n ans+=min(l.pop(),l.pop())\nprint(ans)",
"n=int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l=sorted(map(int,input().split()))",
"l",
"sorted(map(int,input().split()))",
"sorted",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"ans=0",
"ans",
"0",
"while len(l)>1:\n ans+=min(l.pop(),l.pop())",
"len(l)>1",
"len(l)",
"len",
"l",
"1",
"ans+=min(l.pop(),l.pop())",
"ans",
"min(l.pop(),l.pop())",
"min",
"l.pop()",
"l.pop",
"l",
"pop",
"l.pop()",
"l.pop",
"l",
"pop",
"print(ans)",
"print",
"ans",
"ans=0",
"0",
"ans",
"l=sorted(map(int,input().split()))",
"sorted(map(int,input().split()))",
"l",
"ans+=min(l.pop(),l.pop())",
"min(l.pop(),l.pop())",
"ans",
"n=int(input())",
"int(input())",
"n"
] | n=int(input())
l=sorted(map(int,input().split()))
ans=0
while len(l)>1:
ans+=min(l.pop(),l.pop())
print(ans) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
18,
13,
2,
2,
13,
17,
17,
4,
13,
13,
10,
18,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13
] | [
[
51,
2
],
[
54,
8
],
[
23,
22
],
[
48,
25
],
[
29,
28
],
[
52,
31
],
[
45,
33
],
[
55,
35
],
[
28,
38
],
[
46,
43
],
[
49,
43
],
[
45,
46
],
[
48,
49
],
[
51,
52
],
[
54,
55
]
] | [
"n = int(input())\nl = sorted(list(map(int,input().split())),reverse = True)\n\nans = 0\nfor i in range(n):\n ans += l[i*2+1]\nprint(ans)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = sorted(list(map(int,input().split())),reverse = True)",
"l",
"sorted(list(map(int,input().split())),reverse = True)",
"sorted",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"reverse = True",
"reverse",
"True",
"ans = 0",
"ans",
"0",
"for i in range(n):\n ans += l[i*2+1]",
"i",
"range(n)",
"range",
"n",
"ans += l[i*2+1]",
"ans",
"l[i*2+1]",
"l",
"i*2+1",
"i*2",
"i",
"2",
"1",
"print(ans)",
"print",
"ans",
"ans += l[i*2+1]",
"l[i*2+1]",
"ans",
"ans = 0",
"0",
"ans",
"n = int(input())",
"int(input())",
"n",
"l = sorted(list(map(int,input().split())),reverse = True)",
"sorted(list(map(int,input().split())),reverse = True)",
"l"
] | n = int(input())
l = sorted(list(map(int,input().split())),reverse = True)
ans = 0
for i in range(n):
ans += l[i*2+1]
print(ans)
|
[
7,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
2,
2,
17,
13,
17,
17,
0,
13,
4,
13,
18,
13,
39,
13,
2,
13,
17,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10,
13,
13
] | [
[
61,
2
],
[
10,
9
],
[
9,
18
],
[
64,
20
],
[
65,
24
],
[
58,
27
],
[
31,
30
],
[
62,
37
],
[
55,
41
],
[
65,
45
],
[
30,
49
],
[
56,
53
],
[
59,
53
],
[
55,
56
],
[
58,
59
],
[
61,
62
],
[
64,
65
]
] | [
"N =int(input())\nL =[int(j) for j in input().split()]\nL.sort()\nans=0\nfor i in range(0,2*N-1,2):\n ans+=min(L[i:i+2])\nprint(ans)",
"N =int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"int(j) for j in input().split()",
"for j in input().split()",
"j",
"input().split()",
"().split",
"()",
"input",
"split",
"for j in input().split()",
"int(j)",
"int",
"j",
"L =[int(j) for j in input().split()]",
"L",
"[int(j) for j in input().split()]",
"L.sort()",
"L.sort",
"L",
"sort",
"ans=0",
"ans",
"0",
"for i in range(0,2*N-1,2):\n ans+=min(L[i:i+2])",
"i",
"range(0,2*N-1,2)",
"range",
"0",
"2*N-1",
"2*N",
"2",
"N",
"1",
"2",
"ans+=min(L[i:i+2])",
"ans",
"min(L[i:i+2])",
"min",
"L[i:i+2]",
"L",
"i:i+2",
"i",
"i+2",
"i",
"2",
"print(ans)",
"print",
"ans",
"ans+=min(L[i:i+2])",
"min(L[i:i+2])",
"ans",
"ans=0",
"0",
"ans",
"N =int(input())",
"int(input())",
"N",
"L =[int(j) for j in input().split()]",
"[int(j) for j in input().split()]",
"L"
] | N =int(input())
L =[int(j) for j in input().split()]
L.sort()
ans=0
for i in range(0,2*N-1,2):
ans+=min(L[i:i+2])
print(ans) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
2,
17,
13,
17,
0,
13,
18,
13,
13,
4,
13,
13,
10,
18,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13
] | [
[
47,
2
],
[
53,
8
],
[
54,
21
],
[
50,
24
],
[
28,
27
],
[
48,
33
],
[
44,
36
],
[
54,
38
],
[
27,
39
],
[
45,
42
],
[
51,
42
],
[
44,
45
],
[
47,
48
],
[
50,
51
],
[
53,
54
]
] | [
"n=int(input())\na=list(map(int,input().split()))\na.sort()\nans=0\nfor i in range(0,2*n,2):\n ans+=a[i]\nprint(ans)",
"n=int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"a=list(map(int,input().split()))",
"a",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"a.sort()",
"a.sort",
"a",
"sort",
"ans=0",
"ans",
"0",
"for i in range(0,2*n,2):\n ans+=a[i]",
"i",
"range(0,2*n,2)",
"range",
"0",
"2*n",
"2",
"n",
"2",
"ans+=a[i]",
"ans",
"a[i]",
"a",
"i",
"print(ans)",
"print",
"ans",
"ans+=a[i]",
"a[i]",
"ans",
"n=int(input())",
"int(input())",
"n",
"ans=0",
"0",
"ans",
"a=list(map(int,input().split()))",
"list(map(int,input().split()))",
"a"
] | n=int(input())
a=list(map(int,input().split()))
a.sort()
ans=0
for i in range(0,2*n,2):
ans+=a[i]
print(ans)
|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
41,
28,
13,
4,
13,
2,
17,
13,
2,
2,
13,
17,
17,
4,
18,
13,
13,
0,
13,
4,
13,
13,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
55,
2
],
[
52,
8
],
[
53,
21
],
[
26,
25
],
[
56,
30
],
[
25,
33
],
[
53,
38
],
[
25,
39
],
[
49,
41
],
[
50,
47
],
[
49,
50
],
[
52,
53
],
[
55,
56
]
] | [
"n = int(input())\nl = list(map(int, input().split()))\nl.sort()\nans = sum([l[i] for i in range(2 * n) if i % 2 == 0])\nprint(ans)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = list(map(int, input().split()))",
"l",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"l.sort()",
"l.sort",
"l",
"sort",
"l[i] for i in range(2 * n) if i % 2 == 0",
"for i in range(2 * n) if i % 2 == 0",
"i",
"range(2 * n)",
"range",
"2 * n",
"2",
"n",
"i % 2 == 0",
"i % 2",
"i",
"2",
"0",
"if i % 2 == 0",
"l[i]",
"l",
"i",
"ans = sum([l[i] for i in range(2 * n) if i % 2 == 0])",
"ans",
"sum([l[i] for i in range(2 * n) if i % 2 == 0])",
"sum",
"[l[i] for i in range(2 * n) if i % 2 == 0]",
"print(ans)",
"print",
"ans",
"ans = sum([l[i] for i in range(2 * n) if i % 2 == 0])",
"sum([l[i] for i in range(2 * n) if i % 2 == 0])",
"ans",
"l = list(map(int, input().split()))",
"list(map(int, input().split()))",
"l",
"n = int(input())",
"int(input())",
"n"
] | n = int(input())
l = list(map(int, input().split()))
l.sort()
ans = sum([l[i] for i in range(2 * n) if i % 2 == 0])
print(ans)
|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
18,
4,
13,
13,
0,
13,
39,
28,
13,
4,
13,
2,
17,
13,
4,
18,
13,
13,
4,
13,
18,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
0,
13,
18,
13,
13,
4,
13,
13,
10,
39,
13,
10,
17,
13,
10,
4,
13,
10,
18,
13,
10,
4,
13
] | [
[
68,
2
],
[
74,
8
],
[
62,
15
],
[
19,
18
],
[
69,
23
],
[
63,
26
],
[
75,
31
],
[
18,
32
],
[
63,
35
],
[
65,
38
],
[
42,
41
],
[
69,
46
],
[
41,
50
],
[
71,
54
],
[
63,
56
],
[
41,
57
],
[
72,
60
],
[
66,
60
],
[
62,
63
],
[
65,
66
],
[
68,
69
],
[
71,
72
],
[
74,
75
]
] | [
"n=int(input())\nx=input().split()\nl=[]\nfor k in range(2*n):\n l.append(int(x[k]))\nl.sort()\ns=0\nfor k in range(2*n):\n if k%2==0:\n s+=l[k]\nprint(s) ",
"n=int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"x=input().split()",
"x",
"input().split()",
"().split",
"()",
"input",
"split",
"l=[]",
"l",
"[]",
"for k in range(2*n):\n l.append(int(x[k]))",
"k",
"range(2*n)",
"range",
"2*n",
"2",
"n",
"l.append(int(x[k]))",
"l.append",
"l",
"append",
"int(x[k])",
"int",
"x[k]",
"x",
"k",
"l.sort()",
"l.sort",
"l",
"sort",
"s=0",
"s",
"0",
"for k in range(2*n):\n if k%2==0:\n s+=l[k]",
"k",
"range(2*n)",
"range",
"2*n",
"2",
"n",
"if k%2==0:\n s+=l[k]",
"k%2==0",
"k%2",
"k",
"2",
"0",
"s+=l[k]",
"s",
"l[k]",
"l",
"k",
"print(s)",
"print",
"s",
"l=[]",
"[]",
"l",
"s=0",
"0",
"s",
"n=int(input())",
"int(input())",
"n",
"s+=l[k]",
"l[k]",
"s",
"x=input().split()",
"input().split()",
"x"
] | n=int(input())
x=input().split()
l=[]
for k in range(2*n):
l.append(int(x[k]))
l.sort()
s=0
for k in range(2*n):
if k%2==0:
s+=l[k]
print(s) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
4,
18,
13,
13,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
2,
4,
13,
13,
17,
0,
13,
4,
13,
18,
13,
2,
13,
17,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13
] | [
[
66,
2
],
[
57,
8
],
[
60,
20
],
[
58,
23
],
[
58,
27
],
[
58,
30
],
[
69,
33
],
[
37,
36
],
[
58,
42
],
[
63,
45
],
[
58,
49
],
[
36,
51
],
[
64,
55
],
[
70,
55
],
[
57,
58
],
[
60,
61
],
[
63,
64
],
[
66,
67
],
[
69,
70
]
] | [
"N = int(input())\n\nsample = list(map(int, input().split()))\n#sample = [100, 1, 2, 3, 14, 15, 58, 58, 58, 29]\n\nmax_idx = sample.index(max(sample))\nsample.sort()\nans = 0\nfor i in range(len(sample)//2):\n ans += int(sample[i*2])\nprint(ans)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"sample = list(map(int, input().split()))",
"sample",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"max_idx = sample.index(max(sample))",
"max_idx",
"sample.index(max(sample))",
"sample.index",
"sample",
"index",
"max(sample)",
"max",
"sample",
"sample.sort()",
"sample.sort",
"sample",
"sort",
"ans = 0",
"ans",
"0",
"for i in range(len(sample)//2):\n ans += int(sample[i*2])",
"i",
"range(len(sample)//2)",
"range",
"len(sample)//2",
"len(sample)",
"len",
"sample",
"2",
"ans += int(sample[i*2])",
"ans",
"int(sample[i*2])",
"int",
"sample[i*2]",
"sample",
"i*2",
"i",
"2",
"print(ans)",
"print",
"ans",
"sample = list(map(int, input().split()))",
"list(map(int, input().split()))",
"sample",
"max_idx = sample.index(max(sample))",
"sample.index(max(sample))",
"max_idx",
"ans += int(sample[i*2])",
"int(sample[i*2])",
"ans",
"N = int(input())",
"int(input())",
"N",
"ans = 0",
"0",
"ans"
] | N = int(input())
sample = list(map(int, input().split()))
#sample = [100, 1, 2, 3, 14, 15, 58, 58, 58, 29]
max_idx = sample.index(max(sample))
sample.sort()
ans = 0
for i in range(len(sample)//2):
ans += int(sample[i*2])
print(ans) |
[
7,
15,
13,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
13,
39,
17,
17,
0,
13,
17,
28,
13,
13,
0,
13,
18,
13,
17,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
18,
13,
10,
13,
13
] | [
[
63,
4
],
[
12,
11
],
[
11,
20
],
[
81,
22
],
[
75,
25
],
[
82,
30
],
[
72,
32
],
[
76,
37
],
[
66,
39
],
[
73,
44
],
[
76,
44
],
[
69,
49
],
[
53,
52
],
[
67,
52
],
[
78,
55
],
[
52,
57
],
[
79,
61
],
[
70,
61
],
[
63,
64
],
[
66,
67
],
[
69,
70
],
[
72,
73
],
[
75,
76
],
[
78,
79
],
[
81,
82
]
] | [
"import numpy as np\nn = int(input())\nL = [int(s) for s in input().split()]\n# print(n)\n# print(L)\nnpL = np.array(L)\n# print(npL)\nnpL = np.sort(npL)\nnpLd = np.reshape(npL, (-1, 2))\n# print(npLd)\ncnt = 0\nfor i in npLd:\n cnt += i[0]\nprint(cnt)",
"import numpy as np",
"numpy",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"int(s) for s in input().split()",
"for s in input().split()",
"s",
"input().split()",
"().split",
"()",
"input",
"split",
"for s in input().split()",
"int(s)",
"int",
"s",
"L = [int(s) for s in input().split()]",
"L",
"[int(s) for s in input().split()]",
"npL = np.array(L)",
"npL",
"np.array(L)",
"np.array",
"np",
"array",
"L",
"npL = np.sort(npL)",
"npL",
"np.sort(npL)",
"np.sort",
"np",
"sort",
"npL",
"npLd = np.reshape(npL, (-1, 2))",
"npLd",
"np.reshape(npL, (-1, 2))",
"np.reshape",
"np",
"reshape",
"npL",
"(-1, 2)",
"-1",
"2",
"cnt = 0",
"cnt",
"0",
"for i in npLd:\n cnt += i[0]",
"i",
"npLd",
"cnt += i[0]",
"cnt",
"i[0]",
"i",
"0",
"print(cnt)",
"print",
"cnt",
"n = int(input())",
"int(input())",
"n",
"npLd = np.reshape(npL, (-1, 2))",
"np.reshape(npL, (-1, 2))",
"npLd",
"cnt = 0",
"0",
"cnt",
"npL = np.sort(npL)",
"np.sort(npL)",
"npL",
"npL = np.array(L)",
"np.array(L)",
"npL",
"cnt += i[0]",
"i[0]",
"cnt",
"L = [int(s) for s in input().split()]",
"[int(s) for s in input().split()]",
"L"
] | import numpy as np
n = int(input())
L = [int(s) for s in input().split()]
# print(n)
# print(L)
npL = np.array(L)
# print(npL)
npL = np.sort(npL)
npLd = np.reshape(npL, (-1, 2))
# print(npLd)
cnt = 0
for i in npLd:
cnt += i[0]
print(cnt) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
17,
4,
13,
13,
17,
0,
13,
4,
13,
18,
13,
13,
18,
13,
2,
13,
17,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
61,
2
],
[
58,
8
],
[
23,
22
],
[
52,
25
],
[
29,
28
],
[
59,
34
],
[
55,
37
],
[
59,
41
],
[
28,
42
],
[
59,
44
],
[
28,
46
],
[
56,
50
],
[
53,
50
],
[
52,
53
],
[
55,
56
],
[
58,
59
],
[
61,
62
]
] | [
"N=int(input())\nL=sorted(list(map(int,input().split())),reverse=True)\nans=0\nfor i in range(1,len(L),2):\n ans+=min(L[i],L[i-1])\nprint(ans)",
"N=int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"L=sorted(list(map(int,input().split())),reverse=True)",
"L",
"sorted(list(map(int,input().split())),reverse=True)",
"sorted",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"reverse=True",
"reverse",
"True",
"ans=0",
"ans",
"0",
"for i in range(1,len(L),2):\n ans+=min(L[i],L[i-1])",
"i",
"range(1,len(L),2)",
"range",
"1",
"len(L)",
"len",
"L",
"2",
"ans+=min(L[i],L[i-1])",
"ans",
"min(L[i],L[i-1])",
"min",
"L[i]",
"L",
"i",
"L[i-1]",
"L",
"i-1",
"i",
"1",
"print(ans)",
"print",
"ans",
"ans=0",
"0",
"ans",
"ans+=min(L[i],L[i-1])",
"min(L[i],L[i-1])",
"ans",
"L=sorted(list(map(int,input().split())),reverse=True)",
"sorted(list(map(int,input().split())),reverse=True)",
"L",
"N=int(input())",
"int(input())",
"N"
] | N=int(input())
L=sorted(list(map(int,input().split())),reverse=True)
ans=0
for i in range(1,len(L),2):
ans+=min(L[i],L[i-1])
print(ans)
|
[
7,
0,
13,
4,
13,
0,
13,
4,
13,
4,
18,
4,
13,
13,
41,
28,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
4,
13,
13,
17,
0,
13,
39,
4,
13,
18,
13,
13,
4,
13,
18,
13,
2,
13,
17,
0,
13,
4,
13,
13,
4,
13,
13,
10,
13,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
39,
13,
10,
17,
13
] | [
[
71,
2
],
[
74,
6
],
[
17,
16
],
[
75,
16
],
[
16,
21
],
[
65,
23
],
[
66,
27
],
[
75,
27
],
[
80,
30
],
[
34,
33
],
[
66,
39
],
[
75,
39
],
[
77,
42
],
[
66,
47
],
[
75,
47
],
[
33,
48
],
[
66,
52
],
[
75,
52
],
[
33,
54
],
[
68,
57
],
[
78,
60
],
[
69,
63
],
[
81,
63
],
[
65,
66
],
[
68,
69
],
[
71,
72
],
[
74,
75
],
[
77,
78
],
[
80,
81
]
] | [
"N = input() \nInp = list(input().split())\nInp = [int(i) for i in Inp]\nInp.sort()\nans = 0\nfor i in range(0,len(Inp),2) :\n\tkushi = [int(Inp[i]),int(Inp[i+1])]\n\tans += min(kushi)\nprint(ans)",
"N = input()",
"N",
"input()",
"input",
"Inp = list(input().split())",
"Inp",
"list(input().split())",
"list",
"input().split()",
"().split",
"()",
"input",
"split",
"int(i) for i in Inp",
"for i in Inp",
"i",
"Inp",
"for i in Inp",
"int(i)",
"int",
"i",
"Inp = [int(i) for i in Inp]",
"Inp",
"[int(i) for i in Inp]",
"Inp.sort()",
"Inp.sort",
"Inp",
"sort",
"ans = 0",
"ans",
"0",
"for i in range(0,len(Inp),2) :\n\tkushi = [int(Inp[i]),int(Inp[i+1])]\n\tans += min(kushi)",
"i",
"range(0,len(Inp),2)",
"range",
"0",
"len(Inp)",
"len",
"Inp",
"2",
"kushi = [int(Inp[i]),int(Inp[i+1])]",
"kushi",
"[int(Inp[i]),int(Inp[i+1])]",
"int(Inp[i])",
"int",
"Inp[i]",
"Inp",
"i",
"int(Inp[i+1])",
"int",
"Inp[i+1]",
"Inp",
"i+1",
"i",
"1",
"ans += min(kushi)",
"ans",
"min(kushi)",
"min",
"kushi",
"print(ans)",
"print",
"ans",
"Inp = [int(i) for i in Inp]",
"[int(i) for i in Inp]",
"Inp",
"ans += min(kushi)",
"min(kushi)",
"ans",
"N = input()",
"input()",
"N",
"Inp = list(input().split())",
"list(input().split())",
"Inp",
"kushi = [int(Inp[i]),int(Inp[i+1])]",
"[int(Inp[i]),int(Inp[i+1])]",
"kushi",
"ans = 0",
"0",
"ans"
] | N = input()
Inp = list(input().split())
Inp = [int(i) for i in Inp]
Inp.sort()
ans = 0
for i in range(0,len(Inp),2) :
kushi = [int(Inp[i]),int(Inp[i+1])]
ans += min(kushi)
print(ans) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
13,
4,
13,
18,
4,
13,
13,
0,
13,
17,
39,
17,
17,
10,
4,
13,
10,
4,
13
] | [
[
34,
2
],
[
37,
8
],
[
38,
26
],
[
29,
28
],
[
34,
35
],
[
37,
38
]
] | [
"n = int(input())\nli_l = list(map(int, input().split()))\n\nprint(sum(sorted(li_l, reverse=True)[1::2]))",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"li_l = list(map(int, input().split()))",
"li_l",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"print(sum(sorted(li_l, reverse=True)[1::2]))",
"print",
"sum(sorted(li_l, reverse=True)[1::2])",
"sum",
"sorted(li_l, reverse=True)[1::2]",
"(li_l, reverse=True)",
"sorted",
"li_l",
"reverse=True",
"reverse",
"True",
"1::2",
"1",
"2",
"n = int(input())",
"int(input())",
"n",
"li_l = list(map(int, input().split()))",
"list(map(int, input().split()))",
"li_l"
] | n = int(input())
li_l = list(map(int, input().split()))
print(sum(sorted(li_l, reverse=True)[1::2]))
|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
18,
13,
2,
17,
13,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13,
10,
18,
13
] | [
[
45,
2
],
[
42,
8
],
[
43,
21
],
[
48,
24
],
[
28,
27
],
[
46,
30
],
[
51,
32
],
[
43,
34
],
[
27,
37
],
[
52,
40
],
[
49,
40
],
[
42,
43
],
[
45,
46
],
[
48,
49
],
[
51,
52
]
] | [
"n = int(input())\nl = list(map(int,input().split()))\nl.sort()\nc = 0\nfor i in range(n):\n c += l[2*i]\nprint(c)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = list(map(int,input().split()))",
"l",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"l.sort()",
"l.sort",
"l",
"sort",
"c = 0",
"c",
"0",
"for i in range(n):\n c += l[2*i]",
"i",
"range(n)",
"range",
"n",
"c += l[2*i]",
"c",
"l[2*i]",
"l",
"2*i",
"2",
"i",
"print(c)",
"print",
"c",
"l = list(map(int,input().split()))",
"list(map(int,input().split()))",
"l",
"n = int(input())",
"int(input())",
"n",
"c = 0",
"0",
"c",
"c += l[2*i]",
"l[2*i]",
"c"
] | n = int(input())
l = list(map(int,input().split()))
l.sort()
c = 0
for i in range(n):
c += l[2*i]
print(c) |
[
7,
15,
15,
15,
15,
15,
15,
13,
15,
13,
4,
18,
13,
13,
17,
0,
13,
2,
2,
17,
17,
17,
12,
13,
29,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
12,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
0,
13,
17,
28,
13,
4,
13,
17,
2,
13,
17,
17,
0,
13,
18,
13,
13,
4,
13,
13,
14,
2,
13,
17,
4,
13,
10,
12,
13,
10,
2,
13,
10,
12,
13
] | [
[
79,
16
],
[
39,
38
],
[
45,
44
],
[
83,
48
],
[
51,
50
],
[
54,
53
],
[
38,
58
],
[
63,
62
],
[
44,
64
],
[
53,
65
],
[
62,
68
],
[
50,
68
],
[
77,
74
],
[
79,
80
]
] | [
"from statistics import median\n#import collections\n#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]\nfrom fractions import gcd\nfrom itertools import combinations # (string,3) 3回\nfrom collections import deque\nfrom collections import defaultdict\nimport bisect\n#\n# d = m - k[i] - k[j]\n# if kk[bisect.bisect_right(kk,d) - 1] == d:\n#\n#\n#\n# pythonで無理なときは、pypyでやると正解するかも!!\n#\n#\n\nimport sys\nsys.setrecursionlimit(10000000)\nmod = 10**9 + 7\n\ndef readInts():\n return list(map(int,input().split()))\ndef main():\n n = int(input())\n L = sorted(readInts())\n ans = 0\n for i in range(0,n*2,2):\n ans += L[i]\n print(ans)\nif __name__ == '__main__':\n main()",
"from statistics import median",
"from fractions import gcd",
"from itertools import combinations",
"from collections import deque",
"from collections import defaultdict",
"import bisect",
"bisect",
"import sys",
"sys",
"sys.setrecursionlimit(10000000)",
"sys.setrecursionlimit",
"sys",
"setrecursionlimit",
"10000000",
"mod = 10**9 + 7",
"mod",
"10**9 + 7",
"10**9",
"10",
"9",
"7",
"def readInts():\n return list(map(int,input().split()))",
"readInts",
"return list(map(int,input().split()))",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"def main():\n n = int(input())\n L = sorted(readInts())\n ans = 0\n for i in range(0,n*2,2):\n ans += L[i]\n print(ans)",
"main",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"L = sorted(readInts())",
"L",
"sorted(readInts())",
"sorted",
"readInts()",
"readInts",
"ans = 0",
"ans",
"0",
"for i in range(0,n*2,2):\n ans += L[i]\n ",
"i",
"range(0,n*2,2)",
"range",
"0",
"n*2",
"n",
"2",
"2",
"ans += L[i]",
"ans",
"L[i]",
"L",
"i",
"print(ans)",
"print",
"ans",
"if __name__ == '__main__':\n main()",
"__name__ == '__main__'",
"__name__",
"'__main__'",
"main()",
"main",
"def main():\n n = int(input())\n L = sorted(readInts())\n ans = 0\n for i in range(0,n*2,2):\n ans += L[i]\n print(ans)",
"def main():\n n = int(input())\n L = sorted(readInts())\n ans = 0\n for i in range(0,n*2,2):\n ans += L[i]\n print(ans)",
"main",
"mod = 10**9 + 7",
"10**9 + 7",
"mod",
"def readInts():\n return list(map(int,input().split()))",
"def readInts():\n return list(map(int,input().split()))",
"readInts"
] | from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from fractions import gcd
from itertools import combinations # (string,3) 3回
from collections import deque
from collections import defaultdict
import bisect
#
# d = m - k[i] - k[j]
# if kk[bisect.bisect_right(kk,d) - 1] == d:
#
#
#
# pythonで無理なときは、pypyでやると正解するかも!!
#
#
import sys
sys.setrecursionlimit(10000000)
mod = 10**9 + 7
def readInts():
return list(map(int,input().split()))
def main():
n = int(input())
L = sorted(readInts())
ans = 0
for i in range(0,n*2,2):
ans += L[i]
print(ans)
if __name__ == '__main__':
main()
|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
4,
13,
4,
13,
18,
13,
39,
17,
17,
10,
4,
13,
10,
4,
13
] | [
[
39,
2
],
[
36,
8
],
[
37,
21
],
[
25,
24
],
[
37,
31
],
[
36,
37
],
[
39,
40
]
] | [
"n = int(input())\nl = list(map(int,input().split()))\nl.sort(reverse=True)\nprint(sum(l[1::2]))",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = list(map(int,input().split()))",
"l",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"l.sort(reverse=True)",
"l.sort",
"l",
"sort",
"reverse=True",
"reverse",
"True",
"print(sum(l[1::2]))",
"print",
"sum(l[1::2])",
"sum",
"l[1::2]",
"l",
"1::2",
"1",
"2",
"l = list(map(int,input().split()))",
"list(map(int,input().split()))",
"l",
"n = int(input())",
"int(input())",
"n"
] | n = int(input())
l = list(map(int,input().split()))
l.sort(reverse=True)
print(sum(l[1::2])) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
4,
13,
13,
0,
13,
17,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
17,
4,
13,
13,
17,
0,
13,
4,
13,
18,
13,
13,
18,
13,
2,
13,
17,
0,
13,
17,
14,
2,
13,
13,
3,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10,
17,
13
] | [
[
81,
2
],
[
75,
8
],
[
66,
20
],
[
76,
23
],
[
26,
25
],
[
84,
28
],
[
69,
31
],
[
35,
34
],
[
67,
40
],
[
76,
40
],
[
72,
43
],
[
67,
47
],
[
76,
47
],
[
34,
48
],
[
67,
50
],
[
76,
50
],
[
34,
52
],
[
78,
55
],
[
79,
59
],
[
70,
59
],
[
82,
60
],
[
73,
64
],
[
85,
64
],
[
66,
67
],
[
69,
70
],
[
72,
73
],
[
75,
76
],
[
78,
79
],
[
81,
82
],
[
84,
85
]
] | [
"a = int(input())\nb = list(map(int, input().split()))\nb = sorted(b, reverse=True)\nc = 0\nd = 0\nfor i in range(1, len(b), 2):\n c += min(b[i], b[i-1])\n d += 1\n if d == a:\n break\nprint(c)",
"a = int(input())",
"a",
"int(input())",
"int",
"input()",
"input",
"b = list(map(int, input().split()))",
"b",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"b = sorted(b, reverse=True)",
"b",
"sorted(b, reverse=True)",
"sorted",
"b",
"reverse=True",
"reverse",
"True",
"c = 0",
"c",
"0",
"d = 0",
"d",
"0",
"for i in range(1, len(b), 2):\n c += min(b[i], b[i-1])\n d += 1\n if d == a:\n break",
"i",
"range(1, len(b), 2)",
"range",
"1",
"len(b)",
"len",
"b",
"2",
"c += min(b[i], b[i-1])",
"c",
"min(b[i], b[i-1])",
"min",
"b[i]",
"b",
"i",
"b[i-1]",
"b",
"i-1",
"i",
"1",
"d += 1",
"d",
"1",
"if d == a:\n break",
"d == a",
"d",
"a",
"break",
"print(c)",
"print",
"c",
"b = sorted(b, reverse=True)",
"sorted(b, reverse=True)",
"b",
"d = 0",
"0",
"d",
"c += min(b[i], b[i-1])",
"min(b[i], b[i-1])",
"c",
"b = list(map(int, input().split()))",
"list(map(int, input().split()))",
"b",
"d += 1",
"1",
"d",
"a = int(input())",
"int(input())",
"a",
"c = 0",
"0",
"c"
] | a = int(input())
b = list(map(int, input().split()))
b = sorted(b, reverse=True)
c = 0
d = 0
for i in range(1, len(b), 2):
c += min(b[i], b[i-1])
d += 1
if d == a:
break
print(c)
|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
28,
13,
4,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
0,
13,
18,
4,
13,
13,
13,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
18,
13
] | [
[
52,
2
],
[
49,
8
],
[
46,
20
],
[
24,
23
],
[
53,
28
],
[
23,
32
],
[
55,
36
],
[
50,
40
],
[
23,
41
],
[
56,
44
],
[
47,
44
],
[
46,
47
],
[
49,
50
],
[
52,
53
],
[
55,
56
]
] | [
"# -*- coding: utf-8 -*-\nn = int(input())\nl_list = list(map(int, input().split()))\ncounter = 0\nfor i in range(2 * n):\n if i % 2 == 0:\n counter += sorted(l_list)[i]\nprint(counter)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l_list = list(map(int, input().split()))",
"l_list",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"counter = 0",
"counter",
"0",
"for i in range(2 * n):\n if i % 2 == 0:\n counter += sorted(l_list)[i]",
"i",
"range(2 * n)",
"range",
"2 * n",
"2",
"n",
"if i % 2 == 0:\n counter += sorted(l_list)[i]",
"i % 2 == 0",
"i % 2",
"i",
"2",
"0",
"counter += sorted(l_list)[i]",
"counter",
"sorted(l_list)[i]",
"(l_list)",
"sorted",
"l_list",
"i",
"print(counter)",
"print",
"counter",
"counter = 0",
"0",
"counter",
"l_list = list(map(int, input().split()))",
"list(map(int, input().split()))",
"l_list",
"n = int(input())",
"int(input())",
"n",
"counter += sorted(l_list)[i]",
"sorted(l_list)[i]",
"counter"
] | # -*- coding: utf-8 -*-
n = int(input())
l_list = list(map(int, input().split()))
counter = 0
for i in range(2 * n):
if i % 2 == 0:
counter += sorted(l_list)[i]
print(counter) |
[
7,
15,
13,
4,
18,
13,
13,
17,
0,
13,
2,
17,
17,
12,
13,
4,
18,
13,
13,
41,
28,
13,
4,
13,
2,
17,
13,
2,
2,
13,
17,
17,
4,
18,
13,
13,
4,
13,
4,
13,
13,
29,
23,
13,
23,
13,
12,
13,
12,
13,
28,
13,
18,
13,
13,
28,
13,
4,
18,
13,
13,
27,
13,
0,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
41,
28,
13,
4,
13,
2,
17,
13,
4,
4,
13,
4,
13,
13,
0,
13,
13,
4,
13,
13,
13,
14,
2,
13,
17,
4,
13,
10,
2,
13,
10,
12,
13,
10,
12,
13
] | [
[
102,
9
],
[
45,
17
],
[
22,
21
],
[
43,
26
],
[
21,
29
],
[
45,
34
],
[
21,
35
],
[
43,
43
],
[
45,
45
],
[
52,
51
],
[
57,
56
],
[
51,
59
],
[
56,
62
],
[
65,
64
],
[
49,
66
],
[
69,
68
],
[
64,
73
],
[
77,
76
],
[
68,
81
],
[
64,
87
],
[
90,
89
],
[
109,
92
],
[
68,
93
],
[
89,
94
],
[
106,
100
],
[
102,
103
]
] | [
"#!/usr/bin/env python3\nimport sys\nsys.setrecursionlimit(10000000)\nINF = 1<<32\n\n\ndef solve(N: int, L: \"List[int]\"):\n L.sort()\n print(sum([L[i] for i in range(2*N) if i%2 == 0]))\n return\n\n\n\ndef main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n L = [int(next(tokens)) for _ in range(2 * N)] # type: \"List[int]\"\n solve(N, L)\n\nif __name__ == '__main__':\n main()",
"import sys",
"sys",
"sys.setrecursionlimit(10000000)",
"sys.setrecursionlimit",
"sys",
"setrecursionlimit",
"10000000",
"INF = 1<<32",
"INF",
"1<<32",
"1",
"32",
"def solve(N: int, L: \"List[int]\"):\n L.sort()\n print(sum([L[i] for i in range(2*N) if i%2 == 0]))\n return",
"solve",
"L.sort()",
"L.sort",
"L",
"sort",
"L[i] for i in range(2*N) if i%2 == 0",
"for i in range(2*N) if i%2 == 0",
"i",
"range(2*N)",
"range",
"2*N",
"2",
"N",
"i%2 == 0",
"i%2",
"i",
"2",
"0",
"if i%2 == 0",
"L[i]",
"L",
"i",
"print(sum([L[i] for i in range(2*N) if i%2 == 0]))",
"print",
"sum([L[i] for i in range(2*N) if i%2 == 0])",
"sum",
"[L[i] for i in range(2*N) if i%2 == 0]",
"return",
"N: int",
"N",
"L: \"List[int]\"",
"L",
"def main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n L = [int(next(tokens)) for _ in range(2 * N)] # type: \"List[int]\"\n solve(N, L)",
"main",
"def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n ",
"iterate_tokens",
"for line in sys.stdin:\n for word in line.split():\n yield word\n ",
"line",
"sys.stdin",
"sys",
"stdin",
"for word in line.split():\n yield word\n ",
"word",
"line.split()",
"line.split",
"line",
"split",
"yield word",
"word",
"tokens = iterate_tokens()",
"tokens",
"iterate_tokens()",
"iterate_tokens",
"N = int(next(tokens))",
"N",
"int(next(tokens))",
"int",
"next(tokens)",
"next",
"tokens",
"int(next(tokens)) for _ in range(2 * N)",
"for _ in range(2 * N)",
"_",
"range(2 * N)",
"range",
"2 * N",
"2",
"N",
"for _ in range(2 * N)",
"int(next(tokens))",
"int",
"next(tokens)",
"next",
"tokens",
"L = [int(next(tokens)) for _ in range(2 * N)]",
"L",
"[int(next(tokens)) for _ in range(2 * N)]",
"solve(N, L)",
"solve",
"N",
"L",
"if __name__ == '__main__':\n main()",
"__name__ == '__main__'",
"__name__",
"'__main__'",
"main()",
"main",
"INF = 1<<32",
"1<<32",
"INF",
"def main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n L = [int(next(tokens)) for _ in range(2 * N)] # type: \"List[int]\"\n solve(N, L)",
"def main():\n def iterate_tokens():\n for line in sys.stdin:\n for word in line.split():\n yield word\n tokens = iterate_tokens()\n N = int(next(tokens)) # type: int\n L = [int(next(tokens)) for _ in range(2 * N)] # type: \"List[int]\"\n solve(N, L)",
"main",
"def solve(N: int, L: \"List[int]\"):\n L.sort()\n print(sum([L[i] for i in range(2*N) if i%2 == 0]))\n return",
"def solve(N: int, L: \"List[int]\"):\n L.sort()\n print(sum([L[i] for i in range(2*N) if i%2 == 0]))\n return",
"solve"
] | #!/usr/bin/env python3
import sys
sys.setrecursionlimit(10000000)
INF = 1<<32
def solve(N: int, L: "List[int]"):
L.sort()
print(sum([L[i] for i in range(2*N) if i%2 == 0]))
return
def main():
def iterate_tokens():
for line in sys.stdin:
for word in line.split():
yield word
tokens = iterate_tokens()
N = int(next(tokens)) # type: int
L = [int(next(tokens)) for _ in range(2 * N)] # type: "List[int]"
solve(N, L)
if __name__ == '__main__':
main()
|
[
7,
15,
13,
0,
13,
18,
18,
18,
13,
13,
13,
13,
12,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
18,
13,
2,
17,
13,
4,
13,
13,
14,
2,
13,
17,
4,
13,
10,
12,
13,
10,
18,
13
] | [
[
64,
4
],
[
16,
15
],
[
65,
19
],
[
22,
21
],
[
65,
30
],
[
21,
34
],
[
38,
37
],
[
41,
40
],
[
15,
43
],
[
46,
45
],
[
21,
47
],
[
40,
50
],
[
45,
53
],
[
37,
53
],
[
62,
59
],
[
64,
65
]
] | [
"import sys\ninput = sys.stdin.buffer.readline\n\ndef main():\n N = int(input())\n A = list(map(int,input().split()))\n \n A.sort()\n ans = 0\n for i in range(N):\n ans += A[2*i]\n \n print(ans)\n\nif __name__ == \"__main__\":\n main()",
"import sys",
"sys",
"input = sys.stdin.buffer.readline",
"input",
"sys.stdin.buffer.readline",
"sys.stdin.buffer",
"sys.stdin",
"sys",
"stdin",
"buffer",
"readline",
"def main():\n N = int(input())\n A = list(map(int,input().split()))\n \n A.sort()\n ans = 0\n for i in range(N):\n ans += A[2*i]\n \n print(ans)",
"main",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"A = list(map(int,input().split()))",
"A",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"A.sort()",
"A.sort",
"A",
"sort",
"ans = 0",
"ans",
"0",
"for i in range(N):\n ans += A[2*i]\n \n ",
"i",
"range(N)",
"range",
"N",
"ans += A[2*i]",
"ans",
"A[2*i]",
"A",
"2*i",
"2",
"i",
"print(ans)",
"print",
"ans",
"if __name__ == \"__main__\":\n main()",
"__name__ == \"__main__\"",
"__name__",
"\"__main__\"",
"main()",
"main",
"def main():\n N = int(input())\n A = list(map(int,input().split()))\n \n A.sort()\n ans = 0\n for i in range(N):\n ans += A[2*i]\n \n print(ans)",
"def main():\n N = int(input())\n A = list(map(int,input().split()))\n \n A.sort()\n ans = 0\n for i in range(N):\n ans += A[2*i]\n \n print(ans)",
"main",
"input = sys.stdin.buffer.readline",
"sys.stdin.buffer.readline",
"input"
] | import sys
input = sys.stdin.buffer.readline
def main():
N = int(input())
A = list(map(int,input().split()))
A.sort()
ans = 0
for i in range(N):
ans += A[2*i]
print(ans)
if __name__ == "__main__":
main()
|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
4,
13,
4,
13,
18,
13,
39,
17,
2,
13,
17,
17,
10,
4,
13,
10,
4,
13
] | [
[
37,
2
],
[
40,
8
],
[
23,
22
],
[
41,
29
],
[
38,
33
],
[
37,
38
],
[
40,
41
]
] | [
"n = int(input())\nl = sorted(list(map(int, input().split())), reverse = True)\nprint(sum(l[1:n*2:2]))",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = sorted(list(map(int, input().split())), reverse = True)",
"l",
"sorted(list(map(int, input().split())), reverse = True)",
"sorted",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"reverse = True",
"reverse",
"True",
"print(sum(l[1:n*2:2]))",
"print",
"sum(l[1:n*2:2])",
"sum",
"l[1:n*2:2]",
"l",
"1:n*2:2",
"1",
"n*2",
"n",
"2",
"2",
"n = int(input())",
"int(input())",
"n",
"l = sorted(list(map(int, input().split())), reverse = True)",
"sorted(list(map(int, input().split())), reverse = True)",
"l"
] | n = int(input())
l = sorted(list(map(int, input().split())), reverse = True)
print(sum(l[1:n*2:2])) |
[
7,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
18,
13,
13,
0,
13,
17,
4,
13,
4,
13,
18,
13,
39,
17,
17,
10,
4,
13,
10,
13,
13
] | [
[
39,
2
],
[
10,
9
],
[
9,
18
],
[
42,
20
],
[
43,
24
],
[
28,
27
],
[
43,
34
],
[
39,
40
],
[
42,
43
]
] | [
"n=int(input())\na=[int(x) for x in input().split()]\na.sort(reverse=True)\nprint(sum(a[1::2]))",
"n=int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"int(x) for x in input().split()",
"for x in input().split()",
"x",
"input().split()",
"().split",
"()",
"input",
"split",
"for x in input().split()",
"int(x)",
"int",
"x",
"a=[int(x) for x in input().split()]",
"a",
"[int(x) for x in input().split()]",
"a.sort(reverse=True)",
"a.sort",
"a",
"sort",
"reverse=True",
"reverse",
"True",
"print(sum(a[1::2]))",
"print",
"sum(a[1::2])",
"sum",
"a[1::2]",
"a",
"1::2",
"1",
"2",
"n=int(input())",
"int(input())",
"n",
"a=[int(x) for x in input().split()]",
"[int(x) for x in input().split()]",
"a"
] | n=int(input())
a=[int(x) for x in input().split()]
a.sort(reverse=True)
print(sum(a[1::2])) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
4,
13,
13,
0,
13,
17,
28,
13,
18,
13,
39,
17,
17,
0,
13,
13,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
13,
13
] | [
[
41,
2
],
[
47,
8
],
[
50,
20
],
[
48,
23
],
[
44,
25
],
[
29,
28
],
[
51,
30
],
[
48,
30
],
[
53,
35
],
[
28,
36
],
[
54,
39
],
[
45,
39
],
[
41,
42
],
[
44,
45
],
[
47,
48
],
[
50,
51
],
[
28,
53
],
[
53,
54
]
] | [
"N=int(input())\nL=list(map(int,input().split()))\nL=sorted(L)\nans=0\nfor l in L[0::2]:\n ans+=l\nprint(ans)",
"N=int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"L=list(map(int,input().split()))",
"L",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"L=sorted(L)",
"L",
"sorted(L)",
"sorted",
"L",
"ans=0",
"ans",
"0",
"for l in L[0::2]:\n ans+=l",
"l",
"L[0::2]",
"L",
"0::2",
"0",
"2",
"ans+=l",
"ans",
"l",
"print(ans)",
"print",
"ans",
"N=int(input())",
"int(input())",
"N",
"ans=0",
"0",
"ans",
"L=list(map(int,input().split()))",
"list(map(int,input().split()))",
"L",
"L=sorted(L)",
"sorted(L)",
"L",
"ans+=l",
"l",
"ans"
] | N=int(input())
L=list(map(int,input().split()))
L=sorted(L)
ans=0
for l in L[0::2]:
ans+=l
print(ans) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
4,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
4,
13,
13,
14,
2,
2,
13,
17,
17,
0,
13,
4,
13,
18,
13,
13,
18,
13,
2,
13,
17,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13
] | [
[
68,
2
],
[
62,
8
],
[
65,
20
],
[
63,
23
],
[
26,
25
],
[
71,
28
],
[
32,
31
],
[
66,
36
],
[
63,
36
],
[
31,
40
],
[
59,
44
],
[
66,
48
],
[
63,
48
],
[
31,
49
],
[
66,
51
],
[
63,
51
],
[
31,
53
],
[
60,
57
],
[
72,
57
],
[
59,
60
],
[
62,
63
],
[
65,
66
],
[
68,
69
],
[
71,
72
]
] | [
"N = int(input())\nx = list(map(int,input().split()))\n\nx = sorted(x,reverse = True)\n\nans = 0\nfor i in range(len(x)):\n if i % 2 == 0:\n ans += min(x[i],x[i+1])\n\nprint(ans)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"x = list(map(int,input().split()))",
"x",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"x = sorted(x,reverse = True)",
"x",
"sorted(x,reverse = True)",
"sorted",
"x",
"reverse = True",
"reverse",
"True",
"ans = 0",
"ans",
"0",
"for i in range(len(x)):\n if i % 2 == 0:\n ans += min(x[i],x[i+1])",
"i",
"range(len(x))",
"range",
"len(x)",
"len",
"x",
"if i % 2 == 0:\n ans += min(x[i],x[i+1])",
"i % 2 == 0",
"i % 2",
"i",
"2",
"0",
"ans += min(x[i],x[i+1])",
"ans",
"min(x[i],x[i+1])",
"min",
"x[i]",
"x",
"i",
"x[i+1]",
"x",
"i+1",
"i",
"1",
"print(ans)",
"print",
"ans",
"ans += min(x[i],x[i+1])",
"min(x[i],x[i+1])",
"ans",
"x = list(map(int,input().split()))",
"list(map(int,input().split()))",
"x",
"x = sorted(x,reverse = True)",
"sorted(x,reverse = True)",
"x",
"N = int(input())",
"int(input())",
"N",
"ans = 0",
"0",
"ans"
] | N = int(input())
x = list(map(int,input().split()))
x = sorted(x,reverse = True)
ans = 0
for i in range(len(x)):
if i % 2 == 0:
ans += min(x[i],x[i+1])
print(ans)
|
[
7,
15,
13,
0,
13,
18,
18,
13,
13,
13,
12,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
17,
2,
13,
17,
17,
0,
13,
4,
13,
18,
13,
13,
18,
13,
2,
13,
17,
4,
13,
13,
14,
2,
13,
17,
4,
13,
10,
12,
13,
10,
18,
13
] | [
[
72,
4
],
[
14,
13
],
[
73,
17
],
[
20,
19
],
[
73,
30
],
[
34,
33
],
[
37,
36
],
[
40,
39
],
[
13,
44
],
[
49,
48
],
[
19,
52
],
[
39,
53
],
[
19,
55
],
[
39,
57
],
[
48,
61
],
[
36,
61
],
[
70,
67
],
[
72,
73
]
] | [
"import sys\ninput = sys.stdin.readline\n\ndef main():\n N = int(input())\n l = sorted(list(map(int, input().split())), reverse=True)\n\n ans = 0\n for i in range(0, N*2, 2):\n ans += min(l[i], l[i+1])\n print(ans)\n\n\nif __name__ == \"__main__\":\n main()",
"import sys",
"sys",
"input = sys.stdin.readline",
"input",
"sys.stdin.readline",
"sys.stdin",
"sys",
"stdin",
"readline",
"def main():\n N = int(input())\n l = sorted(list(map(int, input().split())), reverse=True)\n\n ans = 0\n for i in range(0, N*2, 2):\n ans += min(l[i], l[i+1])\n print(ans)",
"main",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"l = sorted(list(map(int, input().split())), reverse=True)",
"l",
"sorted(list(map(int, input().split())), reverse=True)",
"sorted",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"reverse=True",
"reverse",
"True",
"ans = 0",
"ans",
"0",
"for i in range(0, N*2, 2):\n ans += min(l[i], l[i+1])\n ",
"i",
"range(0, N*2, 2)",
"range",
"0",
"N*2",
"N",
"2",
"2",
"ans += min(l[i], l[i+1])",
"ans",
"min(l[i], l[i+1])",
"min",
"l[i]",
"l",
"i",
"l[i+1]",
"l",
"i+1",
"i",
"1",
"print(ans)",
"print",
"ans",
"if __name__ == \"__main__\":\n main()",
"__name__ == \"__main__\"",
"__name__",
"\"__main__\"",
"main()",
"main",
"def main():\n N = int(input())\n l = sorted(list(map(int, input().split())), reverse=True)\n\n ans = 0\n for i in range(0, N*2, 2):\n ans += min(l[i], l[i+1])\n print(ans)",
"def main():\n N = int(input())\n l = sorted(list(map(int, input().split())), reverse=True)\n\n ans = 0\n for i in range(0, N*2, 2):\n ans += min(l[i], l[i+1])\n print(ans)",
"main",
"input = sys.stdin.readline",
"sys.stdin.readline",
"input"
] | import sys
input = sys.stdin.readline
def main():
N = int(input())
l = sorted(list(map(int, input().split())), reverse=True)
ans = 0
for i in range(0, N*2, 2):
ans += min(l[i], l[i+1])
print(ans)
if __name__ == "__main__":
main() |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
13,
4,
13,
18,
13,
39,
17,
10,
4,
13,
10,
4,
13
] | [
[
31,
2
],
[
28,
8
],
[
29,
24
],
[
28,
29
],
[
31,
32
]
] | [
"N=int(input())\nL=sorted(map(int,input().split()))\nprint(sum(L[::2]))",
"N=int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"L=sorted(map(int,input().split()))",
"L",
"sorted(map(int,input().split()))",
"sorted",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"print(sum(L[::2]))",
"print",
"sum(L[::2])",
"sum",
"L[::2]",
"L",
"::2",
"2",
"L=sorted(map(int,input().split()))",
"sorted(map(int,input().split()))",
"L",
"N=int(input())",
"int(input())",
"N"
] | N=int(input())
L=sorted(map(int,input().split()))
print(sum(L[::2]))
|
[
7,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
2,
17,
13,
17,
0,
13,
18,
13,
13,
4,
13,
13,
10,
13,
13,
10,
17,
13,
10,
4,
13,
10,
18,
13
] | [
[
53,
2
],
[
10,
9
],
[
9,
18
],
[
47,
20
],
[
48,
24
],
[
50,
27
],
[
31,
30
],
[
54,
36
],
[
56,
39
],
[
48,
41
],
[
30,
42
],
[
57,
45
],
[
51,
45
],
[
47,
48
],
[
50,
51
],
[
53,
54
],
[
56,
57
]
] | [
"n = int(input())\nl = [int(i) for i in input().split()]\nl.sort()\nans = 0\nfor i in range(0,2*n,2):\n ans += l[i]\nprint(ans)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"int(i) for i in input().split()",
"for i in input().split()",
"i",
"input().split()",
"().split",
"()",
"input",
"split",
"for i in input().split()",
"int(i)",
"int",
"i",
"l = [int(i) for i in input().split()]",
"l",
"[int(i) for i in input().split()]",
"l.sort()",
"l.sort",
"l",
"sort",
"ans = 0",
"ans",
"0",
"for i in range(0,2*n,2):\n ans += l[i]",
"i",
"range(0,2*n,2)",
"range",
"0",
"2*n",
"2",
"n",
"2",
"ans += l[i]",
"ans",
"l[i]",
"l",
"i",
"print(ans)",
"print",
"ans",
"l = [int(i) for i in input().split()]",
"[int(i) for i in input().split()]",
"l",
"ans = 0",
"0",
"ans",
"n = int(input())",
"int(input())",
"n",
"ans += l[i]",
"l[i]",
"ans"
] | n = int(input())
l = [int(i) for i in input().split()]
l.sort()
ans = 0
for i in range(0,2*n,2):
ans += l[i]
print(ans) |
[
7,
15,
13,
4,
18,
13,
13,
0,
13,
18,
13,
13,
0,
13,
17,
12,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
4,
13,
4,
13,
18,
13,
39,
17,
14,
2,
13,
17,
4,
13,
10,
12,
13
] | [
[
9,
8
],
[
14,
13
],
[
19,
18
],
[
25,
24
],
[
24,
37
],
[
24,
43
],
[
24,
49
],
[
60,
57
]
] | [
"import logging\n\nlogging.basicConfig(level=logging.INFO, format=\"%(message)s\")\n#logging.disable(logging.CRITICAL)\n\ndef main():\n N = int(input())\n L_1 = list(map(int, input().split()))\n\n L_1.sort()\n\n logging.info(L_1)\n\n print(sum(L_1[::2]))\n \nif __name__ == \"__main__\":\n main()",
"import logging",
"logging",
"logging.basicConfig(level=logging.INFO, format=\"%(message)s\")",
"logging.basicConfig",
"logging",
"basicConfig",
"level=logging.INFO",
"level",
"logging.INFO",
"logging",
"INFO",
"format=\"%(message)s\"",
"format",
"\"%(message)s\"",
"def main():\n N = int(input())\n L_1 = list(map(int, input().split()))\n\n L_1.sort()\n\n logging.info(L_1)\n\n print(sum(L_1[::2]))\n ",
"main",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"L_1 = list(map(int, input().split()))",
"L_1",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"L_1.sort()",
"L_1.sort",
"L_1",
"sort",
"logging.info(L_1)",
"logging.info",
"logging",
"info",
"L_1",
"print(sum(L_1[::2]))",
"print",
"sum(L_1[::2])",
"sum",
"L_1[::2]",
"L_1",
"::2",
"2",
"if __name__ == \"__main__\":\n main()",
"__name__ == \"__main__\"",
"__name__",
"\"__main__\"",
"main()",
"main",
"def main():\n N = int(input())\n L_1 = list(map(int, input().split()))\n\n L_1.sort()\n\n logging.info(L_1)\n\n print(sum(L_1[::2]))\n ",
"def main():\n N = int(input())\n L_1 = list(map(int, input().split()))\n\n L_1.sort()\n\n logging.info(L_1)\n\n print(sum(L_1[::2]))\n ",
"main"
] | import logging
logging.basicConfig(level=logging.INFO, format="%(message)s")
#logging.disable(logging.CRITICAL)
def main():
N = int(input())
L_1 = list(map(int, input().split()))
L_1.sort()
logging.info(L_1)
print(sum(L_1[::2]))
if __name__ == "__main__":
main()
|
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
4,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
17,
2,
13,
17,
17,
0,
13,
4,
13,
18,
13,
13,
18,
13,
2,
13,
17,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
64,
2
],
[
67,
8
],
[
55,
20
],
[
68,
23
],
[
26,
25
],
[
58,
28
],
[
32,
31
],
[
65,
36
],
[
61,
40
],
[
56,
44
],
[
68,
44
],
[
31,
45
],
[
56,
47
],
[
68,
47
],
[
31,
49
],
[
62,
53
],
[
59,
53
],
[
55,
56
],
[
58,
59
],
[
61,
62
],
[
64,
65
],
[
67,
68
]
] | [
"n = int(input())\nl = list(map(int, input().split()))\nl = sorted(l, reverse=True)\nt = 0\nfor i in range(1, n * 2, 2):\n t += min(l[i], l[i-1])\nprint(t)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"l = list(map(int, input().split()))",
"l",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"l = sorted(l, reverse=True)",
"l",
"sorted(l, reverse=True)",
"sorted",
"l",
"reverse=True",
"reverse",
"True",
"t = 0",
"t",
"0",
"for i in range(1, n * 2, 2):\n t += min(l[i], l[i-1])",
"i",
"range(1, n * 2, 2)",
"range",
"1",
"n * 2",
"n",
"2",
"2",
"t += min(l[i], l[i-1])",
"t",
"min(l[i], l[i-1])",
"min",
"l[i]",
"l",
"i",
"l[i-1]",
"l",
"i-1",
"i",
"1",
"print(t)",
"print",
"t",
"l = sorted(l, reverse=True)",
"sorted(l, reverse=True)",
"l",
"t = 0",
"0",
"t",
"t += min(l[i], l[i-1])",
"min(l[i], l[i-1])",
"t",
"n = int(input())",
"int(input())",
"n",
"l = list(map(int, input().split()))",
"list(map(int, input().split()))",
"l"
] | n = int(input())
l = list(map(int, input().split()))
l = sorted(l, reverse=True)
t = 0
for i in range(1, n * 2, 2):
t += min(l[i], l[i-1])
print(t)
|
[
7,
12,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
4,
13,
13,
4,
13,
4,
13,
18,
13,
39,
17,
14,
2,
13,
17,
4,
13,
10,
12,
13
] | [
[
5,
4
],
[
11,
10
],
[
23,
22
],
[
10,
25
],
[
22,
31
],
[
10,
31
],
[
42,
39
]
] | [
"def main():\n N = int(input())\n L = list(map(int, input().split()))\n\n L = sorted(L)\n print(sum(L[::2]))\n\nif __name__ == '__main__':\n main()",
"def main():\n N = int(input())\n L = list(map(int, input().split()))\n\n L = sorted(L)\n print(sum(L[::2]))",
"main",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"L = list(map(int, input().split()))",
"L",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"L = sorted(L)",
"L",
"sorted(L)",
"sorted",
"L",
"print(sum(L[::2]))",
"print",
"sum(L[::2])",
"sum",
"L[::2]",
"L",
"::2",
"2",
"if __name__ == '__main__':\n main()",
"__name__ == '__main__'",
"__name__",
"'__main__'",
"main()",
"main",
"def main():\n N = int(input())\n L = list(map(int, input().split()))\n\n L = sorted(L)\n print(sum(L[::2]))",
"def main():\n N = int(input())\n L = list(map(int, input().split()))\n\n L = sorted(L)\n print(sum(L[::2]))",
"main"
] | def main():
N = int(input())
L = list(map(int, input().split()))
L = sorted(L)
print(sum(L[::2]))
if __name__ == '__main__':
main() |
[
7,
0,
13,
4,
13,
0,
13,
4,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
4,
13,
2,
4,
13,
13,
17,
0,
13,
18,
13,
2,
17,
13,
0,
13,
17,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
17,
13,
10,
18,
13,
10,
17,
13,
10,
4,
13
] | [
[
53,
2
],
[
65,
6
],
[
56,
20
],
[
50,
23
],
[
27,
26
],
[
66,
34
],
[
59,
37
],
[
66,
39
],
[
26,
42
],
[
63,
42
],
[
62,
44
],
[
60,
48
],
[
51,
48
],
[
50,
51
],
[
53,
54
],
[
56,
57
],
[
59,
60
],
[
62,
63
],
[
65,
66
]
] | [
"x=input()\ny = sorted(list(map(int, input().split())))\ni=1\nz=0\nfor i in range(int(len(y)/2)):\n z+=y[-2*i]\n i+=1\n\nprint(z)",
"x=input()",
"x",
"input()",
"input",
"y = sorted(list(map(int, input().split())))",
"y",
"sorted(list(map(int, input().split())))",
"sorted",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"i=1",
"i",
"1",
"z=0",
"z",
"0",
"for i in range(int(len(y)/2)):\n z+=y[-2*i]\n i+=1",
"i",
"range(int(len(y)/2))",
"range",
"int(len(y)/2)",
"int",
"len(y)/2",
"len(y)",
"len",
"y",
"2",
"z+=y[-2*i]",
"z",
"y[-2*i]",
"y",
"-2*i",
"-2",
"i",
"i+=1",
"i",
"1",
"print(z)",
"print",
"z",
"z=0",
"0",
"z",
"x=input()",
"input()",
"x",
"i=1",
"1",
"i",
"z+=y[-2*i]",
"y[-2*i]",
"z",
"i+=1",
"1",
"i",
"y = sorted(list(map(int, input().split())))",
"sorted(list(map(int, input().split())))",
"y"
] | x=input()
y = sorted(list(map(int, input().split())))
i=1
z=0
for i in range(int(len(y)/2)):
z+=y[-2*i]
i+=1
print(z)
|
[
7,
15,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
18,
4,
18,
4,
13,
13,
13,
17,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
13,
0,
13,
17,
14,
2,
13,
17,
0,
13,
4,
13,
13,
14,
2,
13,
17,
0,
13,
4,
13,
13,
14,
40,
13,
13,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
0,
13,
17,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13,
10,
2,
13,
10,
17,
13,
10,
2,
13,
10,
4,
13,
10,
17,
13
] | [
[
85,
4
],
[
79,
10
],
[
76,
21
],
[
103,
24
],
[
28,
27
],
[
80,
30
],
[
33,
32
],
[
88,
35
],
[
89,
39
],
[
77,
39
],
[
95,
39
],
[
100,
42
],
[
27,
45
],
[
89,
48
],
[
77,
48
],
[
95,
48
],
[
82,
51
],
[
27,
54
],
[
101,
57
],
[
83,
58
],
[
97,
60
],
[
104,
62
],
[
92,
62
],
[
98,
62
],
[
101,
63
],
[
91,
65
],
[
104,
67
],
[
92,
67
],
[
98,
67
],
[
83,
68
],
[
94,
70
],
[
92,
74
],
[
98,
74
],
[
104,
74
],
[
76,
77
],
[
79,
80
],
[
82,
83
],
[
85,
86
],
[
88,
89
],
[
91,
92
],
[
94,
95
],
[
97,
98
],
[
100,
101
],
[
103,
104
]
] | [
"#!/usr/bin/python\n\nimport sys\n\nkusi = int(input())\nkusi_len = input().rstrip().split(\" \")\ncnt = 0\nans = 0\nfor line in sorted(kusi_len, key=int):\n cnt += 1\n if cnt == 1:\n a = int(line)\n elif cnt == 2:\n b = int(line)\n if a <= b:\n ans = ans + a\n else:\n ans = ans + b\n cnt = 0\nprint(ans)",
"import sys",
"sys",
"kusi = int(input())",
"kusi",
"int(input())",
"int",
"input()",
"input",
"kusi_len = input().rstrip().split(\" \")",
"kusi_len",
"input().rstrip().split(\" \")",
"().rstrip().split",
"().rstrip()",
"().rstrip",
"()",
"input",
"rstrip",
"split",
"\" \"",
"cnt = 0",
"cnt",
"0",
"ans = 0",
"ans",
"0",
"for line in sorted(kusi_len, key=int):\n cnt += 1\n if cnt == 1:\n a = int(line)\n elif cnt == 2:\n b = int(line)\n if a <= b:\n ans = ans + a\n else:\n ans = ans + b\n cnt = 0",
"line",
"sorted(kusi_len, key=int)",
"sorted",
"kusi_len",
"key=int",
"key",
"int",
"cnt += 1",
"cnt",
"1",
"if cnt == 1:\n a = int(line)\n elif cnt == 2:\n b = int(line)\n if a <= b:\n ans = ans + a\n else:\n ans = ans + b\n cnt = 0",
"cnt == 1",
"cnt",
"1",
"a = int(line)",
"a",
"int(line)",
"int",
"line",
"elif cnt == 2:\n b = int(line)\n if a <= b:\n ans = ans + a\n else:\n ans = ans + b\n cnt = 0",
"cnt == 2",
"cnt",
"2",
"b = int(line)",
"b",
"int(line)",
"int",
"line",
"if a <= b:\n ans = ans + a\n else:\n ans = ans + b\n ",
"a <= b",
"a",
"b",
"ans = ans + a",
"ans",
"ans + a",
"ans",
"a",
"ans = ans + b",
"ans",
"ans + b",
"ans",
"b",
"cnt = 0",
"cnt",
"0",
"print(ans)",
"print",
"ans",
"cnt = 0",
"0",
"cnt",
"kusi_len = input().rstrip().split(\" \")",
"input().rstrip().split(\" \")",
"kusi_len",
"b = int(line)",
"int(line)",
"b",
"kusi = int(input())",
"int(input())",
"kusi",
"cnt += 1",
"1",
"cnt",
"ans = ans + b",
"ans + b",
"ans",
"cnt = 0",
"0",
"cnt",
"ans = ans + a",
"ans + a",
"ans",
"a = int(line)",
"int(line)",
"a",
"ans = 0",
"0",
"ans"
] | #!/usr/bin/python
import sys
kusi = int(input())
kusi_len = input().rstrip().split(" ")
cnt = 0
ans = 0
for line in sorted(kusi_len, key=int):
cnt += 1
if cnt == 1:
a = int(line)
elif cnt == 2:
b = int(line)
if a <= b:
ans = ans + a
else:
ans = ans + b
cnt = 0
print(ans)
|
[
7,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
13,
4,
13,
18,
13,
39,
17,
18,
13,
39,
17,
17,
0,
13,
4,
13,
13,
13,
4,
13,
13,
10,
13,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13
] | [
[
59,
2
],
[
10,
9
],
[
9,
18
],
[
53,
20
],
[
54,
24
],
[
62,
27
],
[
54,
35
],
[
54,
39
],
[
56,
44
],
[
57,
51
],
[
63,
51
],
[
53,
54
],
[
56,
57
],
[
59,
60
],
[
62,
63
]
] | [
"N = int(input())\nlList = [int(x) for x in input().split()]\n\nlList.sort()\n\nresult = 0\nfor l, ll in zip(lList[::2], lList[1::2]):\n result += min(l,ll)\n\nprint(result)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"int(x) for x in input().split()",
"for x in input().split()",
"x",
"input().split()",
"().split",
"()",
"input",
"split",
"for x in input().split()",
"int(x)",
"int",
"x",
"lList = [int(x) for x in input().split()]",
"lList",
"[int(x) for x in input().split()]",
"lList.sort()",
"lList.sort",
"lList",
"sort",
"result = 0",
"result",
"0",
"for l, ll in zip(lList[::2], lList[1::2]):\n result += min(l,ll)",
"l",
"ll",
"zip(lList[::2], lList[1::2])",
"zip",
"lList[::2]",
"lList",
"::2",
"2",
"lList[1::2]",
"lList",
"1::2",
"1",
"2",
"result += min(l,ll)",
"result",
"min(l,ll)",
"min",
"l",
"ll",
"print(result)",
"print",
"result",
"lList = [int(x) for x in input().split()]",
"[int(x) for x in input().split()]",
"lList",
"result += min(l,ll)",
"min(l,ll)",
"result",
"N = int(input())",
"int(input())",
"N",
"result = 0",
"0",
"result"
] | N = int(input())
lList = [int(x) for x in input().split()]
lList.sort()
result = 0
for l, ll in zip(lList[::2], lList[1::2]):
result += min(l,ll)
print(result) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
18,
4,
13,
13,
0,
13,
39,
28,
13,
4,
13,
2,
17,
13,
4,
18,
13,
13,
4,
13,
18,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
2,
17,
13,
17,
0,
13,
18,
13,
13,
4,
13,
13,
10,
4,
13,
10,
39,
13,
10,
4,
13,
10,
17,
13,
10,
18,
13
] | [
[
58,
2
],
[
64,
8
],
[
61,
15
],
[
19,
18
],
[
59,
23
],
[
62,
26
],
[
65,
31
],
[
18,
32
],
[
62,
35
],
[
67,
38
],
[
42,
41
],
[
59,
47
],
[
70,
50
],
[
62,
52
],
[
41,
53
],
[
71,
56
],
[
68,
56
],
[
58,
59
],
[
61,
62
],
[
64,
65
],
[
67,
68
],
[
70,
71
]
] | [
"N = int(input())\ntmp_lst = input().split()\nlength_lst = []\n#print(2*N)\nfor i in range(2*N):\n# print(tmp_lst[i])\n length_lst.append(int(tmp_lst[i]))\nlength_lst.sort()\n \noutput = 0\nfor i in range(0, 2*N, 2):\n output += length_lst[i]\n \nprint(output)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"tmp_lst = input().split()",
"tmp_lst",
"input().split()",
"().split",
"()",
"input",
"split",
"length_lst = []",
"length_lst",
"[]",
"for i in range(2*N):\n# print(tmp_lst[i])\n length_lst.append(int(tmp_lst[i]))",
"i",
"range(2*N)",
"range",
"2*N",
"2",
"N",
"length_lst.append(int(tmp_lst[i]))",
"length_lst.append",
"length_lst",
"append",
"int(tmp_lst[i])",
"int",
"tmp_lst[i]",
"tmp_lst",
"i",
"length_lst.sort()",
"length_lst.sort",
"length_lst",
"sort",
"output = 0",
"output",
"0",
"for i in range(0, 2*N, 2):\n output += length_lst[i]\n ",
"i",
"range(0, 2*N, 2)",
"range",
"0",
"2*N",
"2",
"N",
"2",
"output += length_lst[i]",
"output",
"length_lst[i]",
"length_lst",
"i",
"print(output)",
"print",
"output",
"N = int(input())",
"int(input())",
"N",
"length_lst = []",
"[]",
"length_lst",
"tmp_lst = input().split()",
"input().split()",
"tmp_lst",
"output = 0",
"0",
"output",
"output += length_lst[i]",
"length_lst[i]",
"output"
] | N = int(input())
tmp_lst = input().split()
length_lst = []
#print(2*N)
for i in range(2*N):
# print(tmp_lst[i])
length_lst.append(int(tmp_lst[i]))
length_lst.sort()
output = 0
for i in range(0, 2*N, 2):
output += length_lst[i]
print(output) |
[
7,
15,
13,
0,
13,
18,
18,
13,
13,
13,
12,
13,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
18,
13,
2,
13,
17,
4,
13,
13,
14,
2,
13,
17,
4,
13,
10,
18,
13,
10,
12,
13
] | [
[
59,
4
],
[
14,
13
],
[
60,
17
],
[
20,
19
],
[
60,
28
],
[
19,
32
],
[
36,
35
],
[
39,
38
],
[
13,
41
],
[
44,
43
],
[
19,
45
],
[
38,
47
],
[
43,
51
],
[
35,
51
],
[
63,
57
],
[
59,
60
]
] | [
"import sys \ninput=sys.stdin.readline \ndef main():\n n=int(input())\n L=list(map(int,input().split()))\n L.sort() \n ans=0\n for i in range(n):\n ans+=L[i*2]\n else:\n print(ans)\n\nif __name__==\"__main__\":\n main()",
"import sys",
"sys",
"input=sys.stdin.readline",
"input",
"sys.stdin.readline",
"sys.stdin",
"sys",
"stdin",
"readline",
"def main():\n n=int(input())\n L=list(map(int,input().split()))\n L.sort() \n ans=0\n for i in range(n):\n ans+=L[i*2]\n else:\n print(ans)",
"main",
"n=int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"L=list(map(int,input().split()))",
"L",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"L.sort()",
"L.sort",
"L",
"sort",
"ans=0",
"ans",
"0",
"for i in range(n):\n ans+=L[i*2]\n else:\n print(ans)",
"i",
"range(n)",
"range",
"n",
"ans+=L[i*2]",
"ans",
"L[i*2]",
"L",
"i*2",
"i",
"2",
"print(ans)",
"print",
"ans",
"if __name__==\"__main__\":\n main()",
"__name__==\"__main__\"",
"__name__",
"\"__main__\"",
"main()",
"main",
"input=sys.stdin.readline",
"sys.stdin.readline",
"input",
"def main():\n n=int(input())\n L=list(map(int,input().split()))\n L.sort() \n ans=0\n for i in range(n):\n ans+=L[i*2]\n else:\n print(ans)",
"def main():\n n=int(input())\n L=list(map(int,input().split()))\n L.sort() \n ans=0\n for i in range(n):\n ans+=L[i*2]\n else:\n print(ans)",
"main"
] | import sys
input=sys.stdin.readline
def main():
n=int(input())
L=list(map(int,input().split()))
L.sort()
ans=0
for i in range(n):
ans+=L[i*2]
else:
print(ans)
if __name__=="__main__":
main() |
[
7,
0,
13,
4,
13,
4,
13,
41,
28,
13,
4,
18,
4,
13,
13,
4,
4,
13,
13,
4,
13,
4,
13,
18,
4,
13,
13,
39,
17,
17,
10,
4,
13
] | [
[
31,
2
],
[
10,
9
],
[
9,
18
],
[
31,
32
]
] | [
"n=int(input())\nprint(sum(sorted([int(i) for i in input().split()])[-2::-2]))",
"n=int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"int(i) for i in input().split()",
"for i in input().split()",
"i",
"input().split()",
"().split",
"()",
"input",
"split",
"for i in input().split()",
"int(i)",
"int",
"i",
"print(sum(sorted([int(i) for i in input().split()])[-2::-2]))",
"print",
"sum(sorted([int(i) for i in input().split()])[-2::-2])",
"sum",
"sorted([int(i) for i in input().split()])[-2::-2]",
"([int(i) for i in input().split()])",
"sorted",
"[int(i) for i in input().split()]",
"-2::-2",
"-2",
"-2",
"n=int(input())",
"int(input())",
"n"
] | n=int(input())
print(sum(sorted([int(i) for i in input().split()])[-2::-2])) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
2,
4,
13,
13,
17,
0,
13,
18,
13,
2,
13,
17,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
18,
13,
10,
17,
13
] | [
[
49,
2
],
[
46,
8
],
[
47,
21
],
[
55,
24
],
[
28,
27
],
[
47,
33
],
[
52,
36
],
[
47,
38
],
[
27,
40
],
[
53,
44
],
[
56,
44
],
[
46,
47
],
[
49,
50
],
[
52,
53
],
[
55,
56
]
] | [
"N = int(input())\nL = list(map(int, input().split()))\n\nL.sort()\ns = 0\n\nfor i in range(len(L) // 2):\n s += L[i * 2]\n\nprint(s)",
"N = int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"L = list(map(int, input().split()))",
"L",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"L.sort()",
"L.sort",
"L",
"sort",
"s = 0",
"s",
"0",
"for i in range(len(L) // 2):\n s += L[i * 2]",
"i",
"range(len(L) // 2)",
"range",
"len(L) // 2",
"len(L)",
"len",
"L",
"2",
"s += L[i * 2]",
"s",
"L[i * 2]",
"L",
"i * 2",
"i",
"2",
"print(s)",
"print",
"s",
"L = list(map(int, input().split()))",
"list(map(int, input().split()))",
"L",
"N = int(input())",
"int(input())",
"N",
"s += L[i * 2]",
"L[i * 2]",
"s",
"s = 0",
"0",
"s"
] | N = int(input())
L = list(map(int, input().split()))
L.sort()
s = 0
for i in range(len(L) // 2):
s += L[i * 2]
print(s) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
18,
13,
2,
13,
17,
4,
13,
13,
10,
4,
13,
10,
17,
13,
10,
18,
13,
10,
4,
13
] | [
[
49,
2
],
[
40,
8
],
[
43,
22
],
[
26,
25
],
[
50,
28
],
[
46,
30
],
[
41,
32
],
[
25,
34
],
[
47,
38
],
[
44,
38
],
[
40,
41
],
[
43,
44
],
[
46,
47
],
[
49,
50
]
] | [
"n=int(input())\nx=sorted(list(map(int,input().split())))\ns=0\nfor i in range(n):\n s+=x[i*2]\nprint(s)",
"n=int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"x=sorted(list(map(int,input().split())))",
"x",
"sorted(list(map(int,input().split())))",
"sorted",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"s=0",
"s",
"0",
"for i in range(n):\n s+=x[i*2]",
"i",
"range(n)",
"range",
"n",
"s+=x[i*2]",
"s",
"x[i*2]",
"x",
"i*2",
"i",
"2",
"print(s)",
"print",
"s",
"x=sorted(list(map(int,input().split())))",
"sorted(list(map(int,input().split())))",
"x",
"s=0",
"0",
"s",
"s+=x[i*2]",
"x[i*2]",
"s",
"n=int(input())",
"int(input())",
"n"
] | n=int(input())
x=sorted(list(map(int,input().split())))
s=0
for i in range(n):
s+=x[i*2]
print(s) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
13,
0,
13,
18,
13,
2,
17,
13,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
18,
13,
10,
17,
13
] | [
[
45,
2
],
[
42,
8
],
[
43,
21
],
[
51,
24
],
[
28,
27
],
[
46,
30
],
[
48,
32
],
[
43,
34
],
[
27,
37
],
[
49,
40
],
[
52,
40
],
[
42,
43
],
[
45,
46
],
[
48,
49
],
[
51,
52
]
] | [
"n = int(input())\nlist_L = list(map(int, input().split()))\nlist_L.sort()\nsum = 0\nfor i in range(n):\n sum += list_L[2*i]\nprint(sum)",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"list_L = list(map(int, input().split()))",
"list_L",
"list(map(int, input().split()))",
"list",
"map(int, input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"list_L.sort()",
"list_L.sort",
"list_L",
"sort",
"sum = 0",
"sum",
"0",
"for i in range(n):\n sum += list_L[2*i]",
"i",
"range(n)",
"range",
"n",
"sum += list_L[2*i]",
"sum",
"list_L[2*i]",
"list_L",
"2*i",
"2",
"i",
"print(sum)",
"print",
"sum",
"list_L = list(map(int, input().split()))",
"list(map(int, input().split()))",
"list_L",
"n = int(input())",
"int(input())",
"n",
"sum += list_L[2*i]",
"list_L[2*i]",
"sum",
"sum = 0",
"0",
"sum"
] | n = int(input())
list_L = list(map(int, input().split()))
list_L.sort()
sum = 0
for i in range(n):
sum += list_L[2*i]
print(sum) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
0,
13,
17,
28,
13,
4,
13,
17,
2,
17,
13,
17,
0,
13,
4,
13,
18,
13,
13,
18,
13,
2,
13,
17,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
4,
13
] | [
[
54,
2
],
[
57,
8
],
[
58,
21
],
[
51,
24
],
[
28,
27
],
[
55,
33
],
[
60,
36
],
[
58,
40
],
[
27,
41
],
[
58,
43
],
[
27,
45
],
[
61,
49
],
[
52,
49
],
[
51,
52
],
[
54,
55
],
[
57,
58
],
[
60,
61
]
] | [
"n=int(input())\nL=list(map(int,input().split()))\nL.sort()\nans=0\nfor i in range(0,2*n,2):\n ans+=min(L[i], L[i+1])\nprint(ans)",
"n=int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"L=list(map(int,input().split()))",
"L",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"L.sort()",
"L.sort",
"L",
"sort",
"ans=0",
"ans",
"0",
"for i in range(0,2*n,2):\n ans+=min(L[i], L[i+1])",
"i",
"range(0,2*n,2)",
"range",
"0",
"2*n",
"2",
"n",
"2",
"ans+=min(L[i], L[i+1])",
"ans",
"min(L[i], L[i+1])",
"min",
"L[i]",
"L",
"i",
"L[i+1]",
"L",
"i+1",
"i",
"1",
"print(ans)",
"print",
"ans",
"ans=0",
"0",
"ans",
"n=int(input())",
"int(input())",
"n",
"L=list(map(int,input().split()))",
"list(map(int,input().split()))",
"L",
"ans+=min(L[i], L[i+1])",
"min(L[i], L[i+1])",
"ans"
] | n=int(input())
L=list(map(int,input().split()))
L.sort()
ans=0
for i in range(0,2*n,2):
ans+=min(L[i], L[i+1])
print(ans) |
[
7,
0,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
4,
18,
13,
13,
4,
13,
4,
13,
18,
13,
39,
17,
10,
4,
13,
10,
4,
13
] | [
[
30,
2
],
[
33,
6
],
[
34,
19
],
[
34,
26
],
[
30,
31
],
[
33,
34
]
] | [
"n=input()\na=list(map(int,input().split()))\na.sort()\nprint(sum(a[::2]))",
"n=input()",
"n",
"input()",
"input",
"a=list(map(int,input().split()))",
"a",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"a.sort()",
"a.sort",
"a",
"sort",
"print(sum(a[::2]))",
"print",
"sum(a[::2])",
"sum",
"a[::2]",
"a",
"::2",
"2",
"n=input()",
"input()",
"n",
"a=list(map(int,input().split()))",
"list(map(int,input().split()))",
"a"
] | n=input()
a=list(map(int,input().split()))
a.sort()
print(sum(a[::2])) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
0,
13,
4,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
4,
13,
17,
2,
17,
13,
17,
0,
13,
18,
13,
13,
4,
13,
4,
13,
13,
10,
4,
13,
10,
4,
13,
10,
17,
13,
10,
4,
13,
10,
18,
13
] | [
[
50,
2
],
[
59,
8
],
[
53,
20
],
[
60,
23
],
[
26,
25
],
[
56,
28
],
[
32,
31
],
[
51,
37
],
[
62,
40
],
[
54,
42
],
[
31,
43
],
[
63,
48
],
[
57,
48
],
[
50,
51
],
[
53,
54
],
[
56,
57
],
[
59,
60
],
[
62,
63
]
] | [
"n = int(input())\na = list(map(int,input().split()))\nasrt = sorted(a,reverse=True)\nans = 0\nfor v in range(1,2*n,2):\n ans += asrt[v]\nprint(str(ans))",
"n = int(input())",
"n",
"int(input())",
"int",
"input()",
"input",
"a = list(map(int,input().split()))",
"a",
"list(map(int,input().split()))",
"list",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"asrt = sorted(a,reverse=True)",
"asrt",
"sorted(a,reverse=True)",
"sorted",
"a",
"reverse=True",
"reverse",
"True",
"ans = 0",
"ans",
"0",
"for v in range(1,2*n,2):\n ans += asrt[v]",
"v",
"range(1,2*n,2)",
"range",
"1",
"2*n",
"2",
"n",
"2",
"ans += asrt[v]",
"ans",
"asrt[v]",
"asrt",
"v",
"print(str(ans))",
"print",
"str(ans)",
"str",
"ans",
"n = int(input())",
"int(input())",
"n",
"asrt = sorted(a,reverse=True)",
"sorted(a,reverse=True)",
"asrt",
"ans = 0",
"0",
"ans",
"a = list(map(int,input().split()))",
"list(map(int,input().split()))",
"a",
"ans += asrt[v]",
"asrt[v]",
"ans"
] | n = int(input())
a = list(map(int,input().split()))
asrt = sorted(a,reverse=True)
ans = 0
for v in range(1,2*n,2):
ans += asrt[v]
print(str(ans)) |
[
7,
0,
13,
4,
13,
4,
13,
0,
13,
4,
13,
4,
13,
13,
4,
18,
4,
13,
13,
41,
28,
13,
4,
13,
17,
2,
4,
13,
13,
17,
17,
4,
4,
13,
18,
13,
2,
13,
17,
18,
13,
13,
0,
13,
13,
4,
13,
4,
13,
13,
10,
4,
13,
10,
13,
13,
10,
4,
13
] | [
[
57,
2
],
[
51,
8
],
[
22,
21
],
[
52,
28
],
[
52,
35
],
[
21,
37
],
[
52,
40
],
[
21,
41
],
[
54,
43
],
[
55,
49
],
[
51,
52
],
[
54,
55
],
[
57,
58
]
] | [
"N =int(input())\nLs = sorted(map(int,input().split()))\nans = [min(Ls[i+1],Ls[i]) for i in range(0,len(Ls)-1,2)]\nprint(sum(ans))",
"N =int(input())",
"N",
"int(input())",
"int",
"input()",
"input",
"Ls = sorted(map(int,input().split()))",
"Ls",
"sorted(map(int,input().split()))",
"sorted",
"map(int,input().split())",
"map",
"int",
"input().split()",
"().split",
"()",
"input",
"split",
"min(Ls[i+1],Ls[i]) for i in range(0,len(Ls)-1,2)",
"for i in range(0,len(Ls)-1,2)",
"i",
"range(0,len(Ls)-1,2)",
"range",
"0",
"len(Ls)-1",
"len(Ls)",
"len",
"Ls",
"1",
"2",
"for i in range(0,len(Ls)-1,2)",
"min(Ls[i+1],Ls[i])",
"min",
"Ls[i+1]",
"Ls",
"i+1",
"i",
"1",
"Ls[i]",
"Ls",
"i",
"ans = [min(Ls[i+1],Ls[i]) for i in range(0,len(Ls)-1,2)]",
"ans",
"[min(Ls[i+1],Ls[i]) for i in range(0,len(Ls)-1,2)]",
"print(sum(ans))",
"print",
"sum(ans)",
"sum",
"ans",
"Ls = sorted(map(int,input().split()))",
"sorted(map(int,input().split()))",
"Ls",
"ans = [min(Ls[i+1],Ls[i]) for i in range(0,len(Ls)-1,2)]",
"[min(Ls[i+1],Ls[i]) for i in range(0,len(Ls)-1,2)]",
"ans",
"N =int(input())",
"int(input())",
"N"
] | N =int(input())
Ls = sorted(map(int,input().split()))
ans = [min(Ls[i+1],Ls[i]) for i in range(0,len(Ls)-1,2)]
print(sum(ans)) |
[
7,
0,
13,
4,
13,
0,
13,
4,
18,
4,
13,
13,
41,
28,
13,
13,
4,
4,
13,
13,
0,
13,
13,
4,
18,
13,
13,
0,
13,
17,
0,
13,
17,
28,
13,
13,
14,
2,
2,
13,
17,
17,
0,
13,
13,
0,
13,
17,
4,
13,
13,
10,
17,
13,
10,
4,
13,
10,
4,
13,
10,
13,
13,
10,
17,
13,
10,
17,
13,
10,
13,
13
] | [
[
55,
2
],
[
58,
6
],
[
15,
14
],
[
59,
14
],
[
14,
19
],
[
61,
21
],
[
62,
25
],
[
59,
25
],
[
52,
28
],
[
64,
31
],
[
35,
34
],
[
62,
34
],
[
59,
34
],
[
53,
39
],
[
68,
39
],
[
70,
43
],
[
34,
44
],
[
67,
46
],
[
71,
50
],
[
65,
50
],
[
52,
53
],
[
55,
56
],
[
58,
59
],
[
61,
62
],
[
64,
65
],
[
67,
68
],
[
34,
70
],
[
70,
71
]
] | [
"n=input()\na=input().split()\na=[int(i) for i in a]\na.sort()\ncount=0\nans=0\nfor i in a:\n if count%2==0:\n ans+=i\n count+=1\nprint(ans)",
"n=input()",
"n",
"input()",
"input",
"a=input().split()",
"a",
"input().split()",
"().split",
"()",
"input",
"split",
"int(i) for i in a",
"for i in a",
"i",
"a",
"for i in a",
"int(i)",
"int",
"i",
"a=[int(i) for i in a]",
"a",
"[int(i) for i in a]",
"a.sort()",
"a.sort",
"a",
"sort",
"count=0",
"count",
"0",
"ans=0",
"ans",
"0",
"for i in a:\n if count%2==0:\n ans+=i\n count+=1",
"i",
"a",
"if count%2==0:\n ans+=i\n ",
"count%2==0",
"count%2",
"count",
"2",
"0",
"ans+=i",
"ans",
"i",
"count+=1",
"count",
"1",
"print(ans)",
"print",
"ans",
"count=0",
"0",
"count",
"n=input()",
"input()",
"n",
"a=input().split()",
"input().split()",
"a",
"a=[int(i) for i in a]",
"[int(i) for i in a]",
"a",
"ans=0",
"0",
"ans",
"count+=1",
"1",
"count",
"ans+=i",
"i",
"ans"
] | n=input()
a=input().split()
a=[int(i) for i in a]
a.sort()
count=0
ans=0
for i in a:
if count%2==0:
ans+=i
count+=1
print(ans) |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.