node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
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, ...
[ [ 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 ], [ ...
[ "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()))", ...
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, ...
[ [ 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 ], [ ...
[ "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().spl...
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, ...
[ [ 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.s...
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, ...
[ [ 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 ], [ ...
[ "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()))", ...
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, ...
[ [ 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, ...
[ "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=ip1...
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 ], [ ...
[ "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(i...
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, ...
[ [ 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 ], [ ...
[ "#!/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...
#!/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=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", "()", "...
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()))", "sor...
# --*-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, ...
[ [ 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 ], [ ...
[ "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"...
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...
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...
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, ...
[ [ 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 ], [...
[ "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", ...
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, ...
[ [ 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 ], [ ...
[ "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()...
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,...
[ [ 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...
[ "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 ...
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, ...
[ [ 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 ], [ 5...
[ "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"...
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,...
[ [ 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 ], [ ...
[ "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()....
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"...
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,...
[ [ 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 ], [ 5...
[ "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().sp...
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 ], [ ...
[ "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().spl...
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", "...
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, ...
[ [ 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 ], [ ...
[ "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", ...
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 ], [ ...
[ "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", "i...
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(...
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 ], [ ...
[ "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", "li...
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, ...
[ [ 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 ], [ ...
[ "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()....
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...
[ [ 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 ], [ 4...
[ "# 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()", "f...
# 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 ], [ ...
[ "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", "l...
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, 1...
[ [ 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 ], [ 5...
[ "# -*- 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 it...
# -*- 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,in...
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, ...
[ [ 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 ], [ 5...
[ "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...
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, ...
[ [ 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 ], [ ...
[ "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", "ma...
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", "inpu...
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", ...
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", ...
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 ], [ ...
[ "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()))...
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,...
[ [ 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 ], [ 1...
[ "#!/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...
#!/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, ...
[ [ 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 ], [ ...
[ "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[...
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, ...
[ [ 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 ], [ ...
[ "# 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()))...
# 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 ], [ ...
[ "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(i...
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, ...
[ [ 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 ], [ ...
[ "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"...
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, ...
[ [ 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 ], [ ...
[ "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", ...
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)", "mai...
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, ...
[ [ 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 ], [ ...
[ "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...
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(...
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())", ...
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, ...
[ [ 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 ], [ ...
[ "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", ...
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, ...
[ [ 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 ], [ ...
[ "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(...
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",...
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", "spl...
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, ...
[ [ 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 ], [ ...
[ "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"...
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, ...
[ [ 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 ], [ ...
[ "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()))...
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", ...
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, ...
[ [ 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 ...
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", ...
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()),r...
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 ], [ ...
[ "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", "m...
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().s...
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 ], [ ...
[ "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,in...
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, ...
[ [ 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 ], [ 5...
[ "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()", "(...
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 ], [ ...
[ "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(...
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, 1...
[ [ 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(...
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, ...
[ [ 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 ], [ ...
[ "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", "()", ...
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, 1...
[ [ 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 ], [ ...
[ "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(...
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,...
[ [ 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 ], [ ...
[ "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())", ...
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, ...
[ [ 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 ], [ ...
[ "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,inp...
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, ...
[ [ 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 ], [ ...
[ "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())", ...
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()...
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 ], [ ...
[ "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(...
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,...
[ [ 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 ], [ ...
[ "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...
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", "in...
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, ...
[ [ 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 ], [ ...
[ "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, inp...
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, ...
[ [ 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 ], [ ...
[ "# -*- 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().spli...
# -*- 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, ...
[ [ 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 ], [ ...
[ "#!/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.sp...
#!/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,...
[ [ 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 ], [ ...
[ "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....
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)"...
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", ...
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 ], [ ...
[ "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())", "m...
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, 1...
[ [ 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 ], [ ...
[ "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", "l...
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,...
[ [ 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 ], [ ...
[ "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", "inp...
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()"...
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...
[ [ 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 ], [ 4...
[ "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()", "().sp...
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,...
[ [ 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.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, ...
[ [ 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 ], [ ...
[ "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().sp...
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...
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, ...
[ [ 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 ], [ ...
[ "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, ...
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, ...
[ [ 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 ], [ ...
[ "#!/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 cn...
#!/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, 1...
[ [ 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 ], [ 5...
[ "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()....
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, ...
[ [ 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 ], [ ...
[ "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())...
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,...
[ [ 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 ], [ ...
[ "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", "i...
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(...
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, ...
[ [ 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 ], [ ...
[ "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", ...
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 ], [ ...
[ "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...
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 ], [ ...
[ "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()))",...
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, ...
[ [ 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 ], [ ...
[ "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,inp...
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", ...
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, ...
[ [ 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 ], [ ...
[ "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(...
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, ...
[ [ 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", "...
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, ...
[ [ 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 ], [ ...
[ "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", "f...
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)