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, 41, 28, 13, 4, 18, 4, 13, 13, 4, 4, 13, 13, 0, 13, 4, 13, 13, 41, 28, 13, 4, 13, 17, 2, 17, 13, 17, 4, 4, 13, 18, 13, 13, 18, 13, 2, 13, 17, 0, 13, 13, 4, 13, 4, 13, 13, 10, 4, 13, ...
[ [ 57, 2 ], [ 10, 9 ], [ 9, 18 ], [ 54, 20 ], [ 27, 26 ], [ 58, 32 ], [ 55, 38 ], [ 26, 39 ], [ 55, 41 ], [ 26, 43 ], [ 60, 46 ], [ 61, 52 ], [ 54, 55 ], [ 5...
[ "n = int(input())\nl = sorted([int(i) for i in input().split()])\n\nl2 = [min(l[i],l[i-1]) for i in range(1,2*n,2)]\n\nprint(sum(l2))", "n = int(input())", "n", "int(input())", "int", "input()", "input", "int(i) for i in input().split()", "for i in input().split()", "i", "input().split()", "()...
n = int(input()) l = sorted([int(i) for i in input().split()]) l2 = [min(l[i],l[i-1]) for i in range(1,2*n,2)] print(sum(l2))
[ 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, 4, 13, 13, 17, 0, 13, 4, 13, 18, 13, 39, 13, 2, 13, 17, 4, 13, 13, 10, 17, 13, 10,...
[ [ 62, 2 ], [ 10, 9 ], [ 9, 18 ], [ 59, 20 ], [ 60, 24 ], [ 53, 27 ], [ 31, 30 ], [ 60, 36 ], [ 56, 39 ], [ 60, 43 ], [ 30, 47 ], [ 57, 51 ], [ 54, 51 ], [ 5...
[ "n=int(input())\na=[int(x) for x in input().split()]\na.sort()\nss=0\nfor i in range(0,len(a),2):\n ss+=min(a[i:i+2])\nprint(ss)", "n=int(input())", "n", "int(input())", "int", "input()", "input", "int(x) for x in input().split()", "for x in input().split()", "x", "input().split()", "().spl...
n=int(input()) a=[int(x) for x in input().split()] a.sort() ss=0 for i in range(0,len(a),2): ss+=min(a[i:i+2]) print(ss)
[ 7, 15, 13, 0, 13, 18, 18, 13, 13, 13, 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, 28, 13, 4, 13, 13, 0, 13, 18, 13, 2, 17, 13, 4, 13, 13, 10, 18, 13, 10, 17, 13...
[ [ 51, 4 ], [ 63, 11 ], [ 52, 15 ], [ 57, 17 ], [ 52, 26 ], [ 54, 29 ], [ 58, 33 ], [ 37, 36 ], [ 64, 39 ], [ 60, 41 ], [ 58, 43 ], [ 36, 46 ], [ 61, 49 ], [ ...
[ "import sys\ninput = sys.stdin.readline\n\nn = int(input())\nl = list(map(int, input().split()))\nsum = 0\nl.sort()\nfor i in range(n):\n sum += l[2*i]\nprint(sum)", "import sys", "sys", "input = sys.stdin.readline", "input", "sys.stdin.readline", "sys.stdin", "sys", "stdin", "readline", "n =...
import sys input = sys.stdin.readline n = int(input()) l = list(map(int, input().split())) sum = 0 l.sort() for i in range(n): sum += l[2*i] print(sum)
[ 7, 15, 13, 0, 13, 18, 18, 13, 13, 13, 0, 13, 2, 2, 17, 17, 17, 0, 13, 4, 13, 17, 4, 18, 13, 13, 2, 17, 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, 13, 4, ...
[ [ 74, 4 ], [ 71, 11 ], [ 77, 18 ], [ 33, 32 ], [ 75, 36 ], [ 39, 38 ], [ 75, 47 ], [ 38, 51 ], [ 38, 58 ], [ 69, 66 ], [ 71, 72 ], [ 74, 75 ], [ 77, 78 ] ]
[ "import sys\n\nreadline = sys.stdin.readline\nMOD = 10 ** 9 + 7\nINF = float('INF')\nsys.setrecursionlimit(10 ** 5)\n\n\ndef main():\n n = int(readline())\n l = list(map(int, readline().split()))\n l.sort()\n\n print(sum(l[::2]))\n\n\nif __name__ == '__main__':\n main()", "import sys", "sys", "...
import sys readline = sys.stdin.readline MOD = 10 ** 9 + 7 INF = float('INF') sys.setrecursionlimit(10 ** 5) def main(): n = int(readline()) l = list(map(int, readline().split())) l.sort() print(sum(l[::2])) if __name__ == '__main__': main()
[ 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, 17, 14, 2, 13, 17, 4, 13, 10, 12, 13 ]
[ [ 5, 4 ], [ 12, 11 ], [ 11, 20 ], [ 23, 22 ], [ 22, 26 ], [ 22, 33 ], [ 45, 42 ] ]
[ "def main():\n n = int(input())\n l = [int(x) for x in input().split()]\n l.sort()\n print(sum(l[0::2]))\n\n\nif __name__ == '__main__':\n main()\n", "def main():\n n = int(input())\n l = [int(x) for x in input().split()]\n l.sort()\n print(sum(l[0::2]))", "main", "n = int(input())"...
def main(): n = int(input()) l = [int(x) for x in input().split()] l.sort() print(sum(l[0::2])) 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, 4, 13, 2, 13, 17, 14, 2, 2, 13, 17, 17, 0, 13, 18, 13, 13, 4, 13, 13, 10, 18, 13, 10, 4, 13, 10, 17, 13, ...
[ [ 51, 2 ], [ 57, 8 ], [ 58, 21 ], [ 54, 24 ], [ 28, 27 ], [ 52, 31 ], [ 27, 36 ], [ 48, 40 ], [ 58, 42 ], [ 27, 43 ], [ 49, 46 ], [ 55, 46 ], [ 48, 49 ], [ ...
[ "n = int(input())\nl = list(map(int,input().split()))\nl.sort()\nres = 0\nfor i in range(n*2):\n if i%2==0:\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.sort() res = 0 for i in range(n*2): if i%2==0: res += l[i] print(res)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 0, 13, 39, 28, 13, 4, 13, 13, 4, 18, 13, 13, 18, 13, 2, 17, 13, 4, 13, 4, 13, 13, 10, 39, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 47, 2 ], [ 50, 8 ], [ 44, 22 ], [ 26, 25 ], [ 48, 28 ], [ 45, 31 ], [ 51, 34 ], [ 25, 37 ], [ 45, 42 ], [ 44, 45 ], [ 47, 48 ], [ 50, 51 ] ]
[ "N = int(input())\na = sorted(list(map(int, input().split())))\n\nres =[]\nfor i in range(N):\n res.append(a[2*i])\n\nprint(sum(res))", "N = int(input())", "N", "int(input())", "int", "input()", "input", "a = sorted(list(map(int, input().split())))", "a", "sorted(list(map(int, input().split()))...
N = int(input()) a = sorted(list(map(int, input().split()))) res =[] for i in range(N): res.append(a[2*i]) print(sum(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, 4, 13, 17, 13, 17, 0, 13, 18, 13, 13, 4, 18, 13, 13, 0, 13, 17, 28, 13, 4, 13, 17, 13, 17, 0, 13, 18, 13,...
[ [ 61, 2 ], [ 64, 8 ], [ 65, 21 ], [ 73, 24 ], [ 28, 27 ], [ 62, 31 ], [ 70, 34 ], [ 65, 36 ], [ 27, 37 ], [ 65, 40 ], [ 44, 43 ], [ 47, 46 ], [ 62, 50 ], [ ...
[ "N = int(input())\nL = list(map(int, input().split()))\nL.sort()\nans = 0\nfor i in range(0,N,2):\n ans += L[i]\nL.sort(reverse=True)\nfor i in range(1,N,2):\n ans += L[i]\nprint(ans)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "L = list(map(int, input().split()))", "...
N = int(input()) L = list(map(int, input().split())) L.sort() ans = 0 for i in range(0,N,2): ans += L[i] L.sort(reverse=True) for i in range(1,N,2): ans += L[i] print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 17, 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, 13, 17, 17, 0, 13, 4, 13, 18, 13, 13, 18, 13, 2, 13, 17, 4, 13, 13, 10, 17, 13, ...
[ [ 57, 2 ], [ 54, 8 ], [ 66, 11 ], [ 67, 24 ], [ 63, 27 ], [ 31, 30 ], [ 55, 35 ], [ 58, 35 ], [ 60, 39 ], [ 67, 43 ], [ 30, 44 ], [ 67, 46 ], [ 30, 48 ], [ ...
[ "n = int(input())\nn *= 2\nskewers = list(map(int, input().split()))\n\nskewers.sort()\neats = 0\nfor i in range(0, n-1, 2):\n eats += min(skewers[i], skewers[i + 1])\n \n \nprint(eats)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "n *= 2", "n", "2", "skewers = list(m...
n = int(input()) n *= 2 skewers = list(map(int, input().split())) skewers.sort() eats = 0 for i in range(0, n-1, 2): eats += min(skewers[i], skewers[i + 1]) print(eats)
[ 7, 38, 5, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 0, 13, 4, 13, 13, 0, 13, 17, 0, 13, 39, 28, 13, 4, 13, 4, 13, 13, 14, 40, 2, 13, 17, 17, 4, 18, 13, 13, 18, 13, 13, 4, 13, 4, 13, 13, 10, ...
[ [ 65, 4 ], [ 62, 10 ], [ 59, 20 ], [ 63, 23 ], [ 26, 25 ], [ 56, 28 ], [ 32, 31 ], [ 60, 36 ], [ 31, 40 ], [ 57, 45 ], [ 60, 48 ], [ 31, 49 ], [ 57, 54 ], [ ...
[ "try:\n N = int(input())\n a = map(int, input().split())\n a_ = sorted(a, reverse=True)\n b = []\n for i in range(len(a_)):\n if i%2!=0:\n b.append(a_[i])\n print(sum(b))\nexcept EOFError:\n pass", "try:\n N = int(input())\n a = map(int, input().split())\n a_ = sorted(a, reverse=True)\n b...
try: N = int(input()) a = map(int, input().split()) a_ = sorted(a, reverse=True) b = [] for i in range(len(a_)): if i%2!=0: b.append(a_[i]) print(sum(b)) except EOFError: pass
[ 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, 42, 2, 13, 2, 4, 13, 13, 17, 0, 13, 18, 13, 13, 0, 13, 17, 4, 13, 13, 10, 4, 13, 10, 18, 13, 10, 17, 13, 10, 4, 13, ...
[ [ 54, 2 ], [ 45, 6 ], [ 51, 20 ], [ 57, 23 ], [ 52, 27 ], [ 61, 27 ], [ 46, 31 ], [ 48, 34 ], [ 46, 36 ], [ 52, 37 ], [ 61, 37 ], [ 60, 39 ], [ 49, 43 ], [ ...
[ "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\nn = input()\nl = sorted(list(map(int, input().split())))\ni = 0\nsum = 0\nwhile (i < len(l) - 1):\n sum += l[i]\n i += 2\nprint(sum)", "n = input()", "n", "input()", "input", "l = sorted(list(map(int, input().split())))", "l", "sorted(list(map(int, i...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- n = input() l = sorted(list(map(int, input().split()))) i = 0 sum = 0 while (i < len(l) - 1): sum += l[i] i += 2 print(sum)
[ 7, 15, 13, 0, 13, 18, 18, 18, 13, 13, 13, 13, 0, 13, 18, 18, 18, 13, 13, 13, 13, 0, 13, 18, 18, 18, 13, 13, 13, 13, 0, 13, 4, 13, 13, 4, 18, 4, 13, 13, 31, 13, 4, 18, 13, 13, 0, 13, 4, 13, 18, 13, 39, 17, 4, ...
[ [ 58, 4 ], [ 64, 13 ], [ 67, 22 ], [ 61, 31 ], [ 59, 38 ], [ 61, 40 ], [ 70, 47 ], [ 71, 56 ], [ 58, 59 ], [ 61, 62 ], [ 64, 65 ], [ 67, 68 ], [ 70, 71 ] ]
[ "import sys\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\n\nN,*L = map(int,read().split())\n\nL.sort()\nanswer = sum(L[::2])\nprint(answer)", "import sys", "sys", "read = sys.stdin.buffer.read", "read", "sys.stdin.buffer.read", "sys.stdin.bu...
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N,*L = map(int,read().split()) L.sort() answer = sum(L[::2]) print(answer)
[ 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, 0, 13, 4, 13, 13, 42, 2, 13, 13, 0, 13, 4, 13, 18, 13, 13, 18, 13, 2, 13, 17, 0, 13, 17, 4, 13, 13, ...
[ [ 63, 2 ], [ 66, 8 ], [ 67, 21 ], [ 69, 24 ], [ 75, 27 ], [ 57, 30 ], [ 67, 33 ], [ 76, 36 ], [ 73, 36 ], [ 58, 37 ], [ 60, 39 ], [ 67, 43 ], [ 76, 44 ], [ ...
[ "n = int(input())\n \narr = list(map(int, input().split()))\n\narr.sort()\n\nres = 0\ni=0\nl = len(arr)\nwhile i<l:\n res+=min(arr[i], arr[i+1])\n i+=2\n \nprint(res)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "arr = list(map(int, input().split()))", "arr", "list(map(...
n = int(input()) arr = list(map(int, input().split())) arr.sort() res = 0 i=0 l = len(arr) while i<l: res+=min(arr[i], arr[i+1]) i+=2 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, 4, 13, 17, 4, 13, 13, 17, 0, 13, 18, 13, 13, 4, 13, 13, 10, 18, 13, 10, 4, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 47, 2 ], [ 50, 8 ], [ 51, 21 ], [ 53, 24 ], [ 28, 27 ], [ 51, 33 ], [ 44, 36 ], [ 51, 38 ], [ 27, 39 ], [ 45, 42 ], [ 54, 42 ], [ 44, 45 ], [ 47, 48 ], [ ...
[ "# -*- coding: utf-8 -*-\n\nn = int(input())\nl = list(map(int,input().split()))\n\nl.sort()\n\nans = 0\nfor i in range(0,len(l),2):\n ans += l[i]\n\nprint(ans)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "l = list(map(int,input().split()))", "l", "list(map(int,input()...
# -*- coding: utf-8 -*- n = int(input()) l = list(map(int,input().split())) l.sort() ans = 0 for i in range(0,len(l),2): ans += l[i] print(ans)
[ 7, 15, 0, 13, 17, 0, 13, 4, 13, 4, 18, 4, 18, 13, 13, 13, 0, 13, 4, 13, 4, 13, 13, 4, 18, 4, 18, 4, 18, 13, 13, 13, 13, 4, 18, 13, 13, 28, 13, 4, 13, 13, 0, 13, 4, 13, 18, 13, 2, 17, 13, 18, 13, 2, 2, 17, ...
[ [ 68, 3 ], [ 62, 6 ], [ 65, 17 ], [ 66, 35 ], [ 39, 38 ], [ 63, 41 ], [ 71, 43 ], [ 66, 47 ], [ 38, 50 ], [ 66, 52 ], [ 38, 56 ], [ 72, 60 ], [ 69, 60 ], [ ...
[ "from sys import stdin\npoint = 0\nn = int(stdin.readline().rstrip())\nli = list(map(int,stdin.readline().rstrip().split()))\nli.sort()\nfor i in range(n):\n point += min(li[2*i],li[2*i+1])\nprint(point)", "from sys import stdin", "point = 0", "point", "0", "n = int(stdin.readline().rstrip())", "n", ...
from sys import stdin point = 0 n = int(stdin.readline().rstrip()) li = list(map(int,stdin.readline().rstrip().split())) li.sort() for i in range(n): point += min(li[2*i],li[2*i+1]) print(point)
[ 7, 17, 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, 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, ...
[ [ 46, 3 ], [ 58, 9 ], [ 49, 21 ], [ 59, 24 ], [ 55, 26 ], [ 30, 29 ], [ 47, 35 ], [ 52, 38 ], [ 50, 40 ], [ 59, 40 ], [ 29, 41 ], [ 53, 44 ], [ 56, 44 ], [ ...
[ "\"#!/usr/bin/env python3\"\n\nN = int(input())\nL = list(map(int,input().split()))\n\nL = sorted(L)\n\nans = 0\nfor i in range(0, 2*N, 2) :\n ans += L[i]\n\nprint(ans)", "\"#!/usr/bin/env python3\"", "N = int(input())", "N", "int(input())", "int", "input()", "input", "L = list(map(int,input().sp...
"#!/usr/bin/env python3" N = int(input()) L = list(map(int,input().split())) L = sorted(L) ans = 0 for i in range(0, 2*N, 2) : ans += L[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, 28, 13, 4, 13, 13, 0, 13, 18, 13, 2, 17, 13, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 18, 13, 10, 4, 13 ]
[ [ 51, 2 ], [ 45, 8 ], [ 46, 21 ], [ 42, 24 ], [ 28, 27 ], [ 52, 30 ], [ 48, 32 ], [ 46, 34 ], [ 27, 37 ], [ 49, 40 ], [ 43, 40 ], [ 42, 43 ], [ 45, 46 ], [ ...
[ "N = int(input())\nL = list(map(int, input().split()))\n \nL.sort()\ns = 0\n \nfor n in range(N):\n s += L[2*n]\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,...
N = int(input()) L = list(map(int, input().split())) L.sort() s = 0 for n in range(N): s += L[2*n] 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, 13, 4, 4, 13, 18, 13, 2, 17, 13, 18, 13, 2, 2, 17, 13, 17, 0, 13, 13, 4, 13, 4, 13, 13, 10, 4, 13, 10, ...
[ [ 56, 2 ], [ 53, 8 ], [ 54, 21 ], [ 26, 25 ], [ 57, 28 ], [ 54, 33 ], [ 25, 36 ], [ 54, 38 ], [ 25, 42 ], [ 59, 45 ], [ 60, 51 ], [ 53, 54 ], [ 56, 57 ], [ ...
[ "n = int(input())\nkushi = list(map(int, input().split()))\nkushi.sort()\nsetkushi = [min(kushi[2*i], kushi[2*i+1]) for i in range(n)]\nprint(sum(setkushi))", "n = int(input())", "n", "int(input())", "int", "input()", "input", "kushi = list(map(int, input().split()))", "kushi", "list(map(int, inpu...
n = int(input()) kushi = list(map(int, input().split())) kushi.sort() setkushi = [min(kushi[2*i], kushi[2*i+1]) for i in range(n)] print(sum(setkushi))
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 14, 2, 2, 13, 17, 17, 4, 18, 13, 13, 17, 4, 13, 4, 13, 18, 13, 39, 17, 10, 4, 13, 10, 4, 13 ]
[ [ 41, 2 ], [ 44, 8 ], [ 42, 24 ], [ 45, 29 ], [ 45, 37 ], [ 41, 42 ], [ 44, 45 ] ]
[ "N=int(input())\nM=sorted(list(map(int,input().split())))\nif N%2==1:\n M.pop(-1)\nprint(sum(M[::2]))", "N=int(input())", "N", "int(input())", "int", "input()", "input", "M=sorted(list(map(int,input().split())))", "M", "sorted(list(map(int,input().split())))", "sorted", "list(map(int,input(...
N=int(input()) M=sorted(list(map(int,input().split()))) if N%2==1: M.pop(-1) print(sum(M[::2]))
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 41, 28, 13, 4, 18, 13, 13, 4, 4, 13, 13, 0, 13, 13, 0, 13, 4, 13, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 28, 13, 4, 13, 13, 0, 13, 4, 13, 18, 13, 13, 18, 13, 2, 13, 17, ...
[ [ 84, 2 ], [ 72, 8 ], [ 14, 13 ], [ 73, 16 ], [ 13, 21 ], [ 75, 23 ], [ 63, 26 ], [ 76, 29 ], [ 32, 31 ], [ 81, 34 ], [ 78, 37 ], [ 41, 40 ], [ 85, 43 ], [ ...
[ "N=int(input())\ninp=input()\nL=[int(val) for val in inp.split()]\nL=sorted(L,reverse=True)\ntotal=0\nstart=0\nfor _ in range(N):\n total+=min(L[start],L[start+1])\n start+=2\nprint(total)", "N=int(input())", "N", "int(input())", "int", "input()", "input", "inp=input()", "inp", "input()", "inp...
N=int(input()) inp=input() L=[int(val) for val in inp.split()] L=sorted(L,reverse=True) total=0 start=0 for _ in range(N): total+=min(L[start],L[start+1]) start+=2 print(total)
[ 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, 4, 13, 4, 13, 18, 13, 39, 17, 10, 4, 13, 10, 13, 13 ]
[ [ 35, 2 ], [ 10, 9 ], [ 9, 18 ], [ 38, 20 ], [ 39, 24 ], [ 39, 31 ], [ 35, 36 ], [ 38, 39 ] ]
[ "# AGC 001: A – BBQ Easy\nN = int(input())\nL = [int(s) for s in input().split()]\nL.sort()\n\nprint(sum(L[::2]))", "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", "()", "...
# AGC 001: A – BBQ Easy N = int(input()) L = [int(s) for s in input().split()] L.sort() 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, 4, 13, 13, 17, 0, 13, 4, 13, 18, 13, 2, 13, 17, 18, 13, 13, 4, 13, 13, 10, 4, 13, ...
[ [ 60, 2 ], [ 10, 9 ], [ 9, 18 ], [ 57, 20 ], [ 58, 24 ], [ 63, 27 ], [ 31, 30 ], [ 58, 36 ], [ 54, 39 ], [ 58, 43 ], [ 30, 45 ], [ 58, 48 ], [ 30, 49 ], [ 5...
[ "n = int(input())\nl = [int(i) for i in input().split()]\nl.sort()\n\nans = 0\nfor i in range(1, len(l), 2):\n ans += min(l[i-1], l[i])\n\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(...
n = int(input()) l = [int(i) for i in input().split()] l.sort() ans = 0 for i in range(1, len(l), 2): ans += min(l[i-1], l[i]) print(ans)
[ 7, 0, 13, 2, 4, 13, 4, 13, 17, 0, 13, 17, 0, 13, 4, 13, 0, 13, 39, 28, 13, 4, 18, 13, 13, 4, 18, 13, 13, 4, 13, 13, 0, 13, 4, 13, 13, 0, 13, 17, 28, 13, 4, 13, 17, 13, 17, 0, 13, 4, 13, 18, 13, 13, 0, 13, ...
[ [ 79, 2 ], [ 70, 10 ], [ 64, 13 ], [ 73, 17 ], [ 21, 20 ], [ 65, 23 ], [ 74, 27 ], [ 20, 31 ], [ 67, 33 ], [ 74, 36 ], [ 82, 38 ], [ 42, 41 ], [ 71, 45 ], [ ...
[ "N = int(input())*2\nN -= 1\ninp = input()\nskewers=[]\nfor num in inp.split():\n skewers.append(int(num))\nskewers = sorted(skewers)\ntotal = 0\nfor i in range(0,N,2):\n num = int(skewers[i])\n total+=num\nprint(total)", "N = int(input())*2", "N", "int(input())*2", "int(input())", "int", "input()"...
N = int(input())*2 N -= 1 inp = input() skewers=[] for num in inp.split(): skewers.append(int(num)) skewers = sorted(skewers) total = 0 for i in range(0,N,2): num = int(skewers[i]) total+=num print(total)
[ 7, 12, 13, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 18, 4, 13, 13, 17, 4, 4, 13, 13, 0, 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, 4, 13, 10, ...
[ [ 5, 4 ], [ 12, 11 ], [ 11, 21 ], [ 24, 23 ], [ 23, 27 ], [ 31, 30 ], [ 34, 33 ], [ 4, 38 ], [ 33, 42 ], [ 47, 46 ], [ 23, 48 ], [ 33, 49 ], [ 46, 52 ], [ 3...
[ "# 2n = n * 2 pairs optimal greedy contradiction 1 is paired with k 2 is with j if we move 1 to 2 and k to j\ndef main():\n n = int(input())\n\n arr = [int(x) for x in input().split(\" \")]\n\n arr.sort()\n\n ans = 0\n\n for i in range(2*n):\n\n if (i % 2) == 0:\n ans += arr[i]\n\n ...
# 2n = n * 2 pairs optimal greedy contradiction 1 is paired with k 2 is with j if we move 1 to 2 and k to j def main(): n = int(input()) arr = [int(x) for x in input().split(" ")] arr.sort() ans = 0 for i in range(2*n): if (i % 2) == 0: ans += arr[i] print(ans) 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, 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, ...
[ [ 52, 2 ], [ 55, 8 ], [ 23, 22 ], [ 58, 25 ], [ 29, 28 ], [ 53, 33 ], [ 61, 37 ], [ 56, 41 ], [ 28, 42 ], [ 56, 44 ], [ 28, 46 ], [ 62, 50 ], [ 59, 50 ], [ ...
[ "n = int(input())\nl = sorted(list(map(int, input().split())), 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 = sorted(list(map(int, input().split())), reverse=True)", "l", "sorted(li...
n = int(input()) l = sorted(list(map(int, input().split())), reverse=True) t = 0 for i in range(1, n * 2, 2): t += min(l[i], l[i-1]) print(t)
[ 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, 4, 13, 18, 13, 13, 4, 13, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 35, 2 ], [ 44, 8 ], [ 41, 20 ], [ 45, 23 ], [ 38, 25 ], [ 42, 29 ], [ 45, 29 ], [ 39, 33 ], [ 35, 36 ], [ 38, 39 ], [ 41, 42 ], [ 44, 45 ] ]
[ "n = int(input())\nl = list(map(int, input().split()))\n\nl = sorted(l)\ncount = sum(l[i] for i in range(0, 2 * n, 2))\nprint(count)", "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 = sorted(l) count = sum(l[i] for i in range(0, 2 * n, 2)) print(count)
[ 7, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 18, 4, 13, 13, 4, 4, 13, 13, 0, 13, 4, 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, 17, 13, 10, 4, 13 ]
[ [ 46, 2 ], [ 10, 9 ], [ 9, 18 ], [ 52, 20 ], [ 49, 25 ], [ 29, 28 ], [ 47, 31 ], [ 43, 33 ], [ 53, 35 ], [ 28, 37 ], [ 44, 41 ], [ 50, 41 ], [ 43, 44 ], [ 4...
[ "n = int(input())\nL = sorted([int(i) for i in input().split()])\ncount = 0\nfor i in range(n):\n count += L[i*2]\nprint(count)", "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 = sorted([int(i) for i in input().split()]) count = 0 for i in range(n): count += L[i*2] print(count)
[ 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, 13, 0, 13, 4, 13, 18, 13, 2, 13, 17, 18, 13, 2, 2, 13, 17, 17, 4, 13, 13, 10, 17, 13, ...
[ [ 57, 2 ], [ 10, 9 ], [ 9, 18 ], [ 60, 20 ], [ 61, 24 ], [ 54, 27 ], [ 31, 30 ], [ 58, 33 ], [ 63, 35 ], [ 61, 39 ], [ 30, 41 ], [ 61, 44 ], [ 30, 47 ], [ 6...
[ "n =int(input())\na = [int(i) for i in input().split()]\na.sort()\ncount =0\nfor i in range(n):\n\tcount+=min(a[i*2],a[i*2+1])\nprint(count)", "n =int(input())", "n", "int(input())", "int", "input()", "input", "int(i) for i in input().split()", "for i in input().split()", "i", "input().split()",...
n =int(input()) a = [int(i) for i in input().split()] a.sort() count =0 for i in range(n): count+=min(a[i*2],a[i*2+1]) print(count)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 4, 13, 13, 4, 18, 4, 18, 4, 13, 13, 13, 0, 13, 17, 13, 4, 13, 18, 13, 39, 17, 17, 10, 4, 13, 10, 4, 13 ]
[ [ 34, 2 ], [ 37, 8 ], [ 24, 23 ], [ 38, 29 ], [ 34, 35 ], [ 37, 38 ] ]
[ "N = int(raw_input())\nL = sorted(map(int, raw_input().strip().split()), reverse=True)\nprint sum(L[1::2])", "N = int(raw_input())", "N", "int(raw_input())", "int", "raw_input()", "raw_input", "L = sorted(map(int, raw_input().strip().split()), reverse=True)", "L", "sorted(map(int, raw_input().stri...
N = int(raw_input()) L = sorted(map(int, raw_input().strip().split()), reverse=True) print sum(L[1::2])
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 18, 4, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 39, 17, 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, 18, 13, 10, 17,...
[ [ 61, 2 ], [ 52, 8 ], [ 55, 25 ], [ 29, 28 ], [ 62, 34 ], [ 58, 37 ], [ 53, 41 ], [ 28, 42 ], [ 53, 44 ], [ 28, 46 ], [ 59, 50 ], [ 56, 50 ], [ 52, 53 ], [ ...
[ "N = int(input())\nLlist = sorted(list(map(int, input().split())))[::-1]\nans = 0\nfor i in range(0, 2*N, 2):\n ans += min(Llist[i], Llist[i+1])\nprint(ans)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "Llist = sorted(list(map(int, input().split())))[::-1]", "Llist", "s...
N = int(input()) Llist = sorted(list(map(int, input().split())))[::-1] ans = 0 for i in range(0, 2*N, 2): ans += min(Llist[i], Llist[i+1]) print(ans)
[ 7, 12, 13, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 41, 28, 13, 4, 13, 2, 17, 13, 2, 2, 13, 17, 17, 4, 18, 13, 13, 0, 13, 13, 4, 13, 4, 13, 13, 14, 2, 13, 17, 4, 13, 10, 12, ...
[ [ 5, 4 ], [ 11, 10 ], [ 26, 25 ], [ 4, 30 ], [ 25, 33 ], [ 10, 38 ], [ 25, 39 ], [ 42, 41 ], [ 41, 47 ], [ 56, 53 ] ]
[ "def main():\n N = int(input())\n L = sorted(list(map(int,input().split())))\n LL = [L[i] for i in range(2*N) if i%2 == 0]\n print(sum(LL))\n\nif __name__ == '__main__':\n main()", "def main():\n N = int(input())\n L = sorted(list(map(int,input().split())))\n LL = [L[i] for i in range(2*N)...
def main(): N = int(input()) L = sorted(list(map(int,input().split()))) LL = [L[i] for i in range(2*N) if i%2 == 0] print(sum(LL)) 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, 17, 0, 13, 39, 28, 13, 4, 13, 2, 17, 13, 28, 13, 4, 13, 2, 17, 13, 14, 2, 18, 13, 13, 4, 13, 13, 4, 18, 13, 13, 18, 13, 13, 0, 18, ...
[ [ 78, 2 ], [ 81, 8 ], [ 75, 20 ], [ 84, 23 ], [ 27, 26 ], [ 79, 31 ], [ 34, 33 ], [ 79, 38 ], [ 55, 41 ], [ 82, 42 ], [ 33, 43 ], [ 82, 46 ], [ 85, 49 ], [ ...
[ "n=int(input())\na=list(map(int,input().split()))\nans=0\nb=[]\nfor k in range(2*n):\n for i in range(2*n):\n if a[i]==min(a):\n b.append(a[i])\n a[i]=101\nfor s in range(n):\n ans+=b[2*s]\nprint(ans)", "n=int(input())", "n", "int(input())", "int", "input()", "input", "a=list(map(int,input().s...
n=int(input()) a=list(map(int,input().split())) ans=0 b=[] for k in range(2*n): for i in range(2*n): if a[i]==min(a): b.append(a[i]) a[i]=101 for s in range(n): ans+=b[2*s] print(ans)
[ 7, 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, 4, 13, 13, 17, 0, 13, 18, 13, 13, 4, 13, 13, 10, 4, 13, 10, 17, 13, 10, 18, 13 ]
[ [ 40, 4 ], [ 41, 17 ], [ 43, 20 ], [ 24, 23 ], [ 41, 29 ], [ 46, 32 ], [ 41, 34 ], [ 23, 35 ], [ 47, 38 ], [ 44, 38 ], [ 40, 41 ], [ 43, 44 ], [ 46, 47 ] ]
[ "input()\nA=list(map(int,input().split()))\nA.sort()\nr = 0\nfor i in range(0,len(A),2):\n r+=A[i]\n \nprint(r)", "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() A=list(map(int,input().split())) A.sort() r = 0 for i in range(0,len(A),2): r+=A[i] print(r)
[ 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, 4, 13, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 38, 2 ], [ 41, 8 ], [ 42, 21 ], [ 35, 24 ], [ 42, 28 ], [ 36, 33 ], [ 35, 36 ], [ 38, 39 ], [ 41, 42 ] ]
[ "n = int(input())\nl = list(map(int, input().split()))\n\nl.sort()\nans = sum(l[::2])\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", ...
n = int(input()) l = list(map(int, input().split())) l.sort() 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, 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 ], [ 60, 8 ], [ 61, 21 ], [ 51, 24 ], [ 28, 27 ], [ 55, 33 ], [ 57, 36 ], [ 61, 40 ], [ 27, 41 ], [ 61, 43 ], [ 27, 45 ], [ 58, 49 ], [ 52, 49 ], [ ...
[ "n = int(input())\nl = list(map(int, input().split()))\nl.sort()\nnum = 0\nfor i in range(0,2*n,2):\n num += min(l[i],l[i+1])\nprint(num)", "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() num = 0 for i in range(0,2*n,2): num += min(l[i],l[i+1]) print(num)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 0, 13, 4, 13, 13, 41, 28, 13, 13, 4, 13, 13, 2, 2, 13, 17, 17, 4, 13, 0, 13, 4, 13, 13, 4, 13, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13, 10, 4...
[ [ 56, 2 ], [ 50, 8 ], [ 53, 20 ], [ 51, 23 ], [ 54, 30 ], [ 47, 39 ], [ 48, 45 ], [ 47, 48 ], [ 50, 51 ], [ 53, 54 ], [ 56, 57 ] ]
[ "n = int(input())\nskewers = list(map(int,input().split()))\ns = sorted(skewers)\nans = sum([val for i,val in enumerate(s) if i % 2 == 0])\nprint(ans)", "n = int(input())", "n", "int(input())", "int", "input()", "input", "skewers = list(map(int,input().split()))", "skewers", "list(map(int,input()....
n = int(input()) skewers = list(map(int,input().split())) s = sorted(skewers) ans = sum([val for i,val in enumerate(s) if i % 2 == 0]) 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, 2, 17, 13, 17, 4, 13, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 42, 2 ], [ 39, 8 ], [ 40, 21 ], [ 45, 24 ], [ 40, 28 ], [ 43, 33 ], [ 46, 37 ], [ 39, 40 ], [ 42, 43 ], [ 45, 46 ] ]
[ "N=int(input())\nL=list(map(int,input().split()))\n\nL.sort()\n\nans=sum(L[0:2*N:2])\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", ...
N=int(input()) L=list(map(int,input().split())) L.sort() ans=sum(L[0:2*N:2]) print(ans)
[ 7, 12, 13, 4, 18, 13, 13, 29, 4, 13, 4, 13, 18, 13, 2, 17, 13, 18, 13, 2, 2, 17, 13, 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, 4, 13, 10, ...
[ [ 27, 5 ], [ 27, 13 ], [ 27, 18 ], [ 25, 25 ], [ 27, 27 ], [ 53, 29 ], [ 56, 35 ], [ 60, 49 ], [ 54, 50 ], [ 57, 51 ], [ 53, 54 ], [ 56, 57 ] ]
[ "def solve(n, L):\n L.sort()\n return sum(min(L[2 * i], L[2 * i + 1]) for i in range(n))\n\n_n = int(input())\n_L = list(map(int, input().split()))\nprint(solve(_n, _L))", "def solve(n, L):\n L.sort()\n return sum(min(L[2 * i], L[2 * i + 1]) for i in range(n))", "solve", "L.sort()", "L.sort", ...
def solve(n, L): L.sort() return sum(min(L[2 * i], L[2 * i + 1]) for i in range(n)) _n = int(input()) _L = list(map(int, input().split())) print(solve(_n, _L))
[ 7, 0, 13, 4, 13, 0, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 17, 4, 18, 13, 13, 0, 13, 17, 28, 13, 4, 13, 17, 4, 13, 13, 17, 0, 13, 18, 13, 13, 4, 13, 13, 10, 4, 13, 10, 4, 13, 10, 18, 13, 10, 17, 13 ]
[ [ 46, 2 ], [ 43, 6 ], [ 44, 20 ], [ 52, 23 ], [ 27, 26 ], [ 44, 32 ], [ 49, 35 ], [ 44, 37 ], [ 26, 38 ], [ 50, 41 ], [ 53, 41 ], [ 43, 44 ], [ 46, 47 ], [ ...
[ "n=input()\nl=list(map(int,input().split(\" \")))\nl.sort()\nans=0\nfor i in range(0,len(l),2):\n ans+=l[i]\nprint(ans)", "n=input()", "n", "input()", "input", "l=list(map(int,input().split(\" \")))", "l", "list(map(int,input().split(\" \")))", "list", "map(int,input().split(\" \"))", "map", ...
n=input() l=list(map(int,input().split(" "))) l.sort() ans=0 for i in range(0,len(l),2): ans+=l[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, 42, 40, 13, 2, 2, 13, 17, 17, 0, 13, 4, 13, 18, 13, 13, 18, 13, 2, 13, 17, 0, 13, 17, 4, 13, 13, 10, ...
[ [ 59, 2 ], [ 68, 8 ], [ 69, 21 ], [ 56, 24 ], [ 71, 27 ], [ 72, 31 ], [ 66, 31 ], [ 60, 34 ], [ 62, 38 ], [ 69, 42 ], [ 72, 43 ], [ 66, 43 ], [ 69, 45 ], [ ...
[ "n = int(input())\nl = list(map(int, input().split()))\nl.sort()\nans = 0\ni = 0\nwhile i <= n * 2 - 1:\n ans += min(l[i], l[i+1])\n i += 2\nprint(ans)", "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() ans = 0 i = 0 while i <= n * 2 - 1: ans += min(l[i], l[i+1]) 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, 4, 13, 18, 13, 39, 17, 17, 4, 13, 13, 10, 4, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 39, 2 ], [ 36, 8 ], [ 37, 21 ], [ 42, 24 ], [ 37, 28 ], [ 43, 34 ], [ 36, 37 ], [ 39, 40 ], [ 42, 43 ] ]
[ "N = int(input())\nLs = list(map(int, input().split()))\nLs.sort()\nr = sum(Ls[0::2])\nprint(r)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "Ls = list(map(int, input().split()))", "Ls", "list(map(int, input().split()))", "list", "map(int, input().split())", "map", ...
N = int(input()) Ls = list(map(int, input().split())) Ls.sort() r = sum(Ls[0::2]) print(r)
[ 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, 4, 13, 10, 17, 13, ...
[ [ 51, 2 ], [ 60, 8 ], [ 61, 21 ], [ 54, 24 ], [ 28, 27 ], [ 52, 33 ], [ 57, 36 ], [ 61, 40 ], [ 27, 41 ], [ 61, 43 ], [ 27, 45 ], [ 58, 49 ], [ 55, 49 ], [ ...
[ "N = int(input())\nkushi = list(map(int,input().split()))\nkushi.sort()\nans = 0\nfor i in range(0,2*N,2):\n ans += min(kushi[i],kushi[i+1])\nprint(ans)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "kushi = list(map(int,input().split()))", "kushi", "list(map(int,input()...
N = int(input()) kushi = list(map(int,input().split())) kushi.sort() ans = 0 for i in range(0,2*N,2): ans += min(kushi[i],kushi[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, 17, 28, 13, 4, 13, 17, 2, 13, 17, 17, 0, 13, 18, 13, 13, 4, 13, 13, 10, 4, 13, 10, 17, 13, 10, 4, 13, 10, 18, 13 ]
[ [ 44, 2 ], [ 50, 8 ], [ 51, 21 ], [ 47, 24 ], [ 28, 27 ], [ 45, 32 ], [ 53, 36 ], [ 51, 38 ], [ 27, 39 ], [ 54, 42 ], [ 48, 42 ], [ 44, 45 ], [ 47, 48 ], [ ...
[ "N = int(input())\nL = list(map(int,input().split()))\nL.sort()\nSum = 0\nfor i in range(0,N*2,2):\n Sum += L[i]\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,inpu...
N = int(input()) L = list(map(int,input().split())) L.sort() Sum = 0 for i in range(0,N*2,2): Sum += L[i] print(Sum)
[ 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, 39, 17, 10, 4, 13, 10, 4, 13 ]
[ [ 30, 2 ], [ 33, 8 ], [ 34, 26 ], [ 30, 31 ], [ 33, 34 ] ]
[ "N=int(input())\nLn=list(map(int,input().split()))\nprint(sum(sorted(Ln)[::2]))", "N=int(input())", "N", "int(input())", "int", "input()", "input", "Ln=list(map(int,input().split()))", "Ln", "list(map(int,input().split()))", "list", "map(int,input().split())", "map", "int", "input().spli...
N=int(input()) Ln=list(map(int,input().split())) print(sum(sorted(Ln)[::2]))
[ 7, 15, 13, 0, 13, 39, 4, 13, 0, 13, 4, 13, 4, 13, 4, 13, 13, 4, 18, 4, 13, 13, 0, 13, 12, 40, 13, 23, 0, 13, 12, 4, 13, 13, 13, 13, 23, 23, 17, 23, 12, 8, 13, 4, 13, 13, 18, 13, 39, 17, 2, 13, 18, 13, 17, 4...
[ [ 65, 4 ], [ 68, 9 ], [ 24, 23 ], [ 71, 29 ], [ 72, 62 ], [ 69, 63 ], [ 66, 63 ], [ 65, 66 ], [ 68, 69 ], [ 71, 72 ] ]
[ "#!/usr/bin/python\n# -*- Coding: utf-8 -*-\nimport sys\n\nL = [input()]\nL = sorted(list(map(int,input().split())), key= lambda x: -x)\ntest = lambda L, S=0, f=lambda f, L, S : f(f,L[2:],S+L[1]) if L else print(S): f(f, L, S)\ntest(L)", "import sys", "sys", "L = [input()]", "L", "[input()]", "input()",...
#!/usr/bin/python # -*- Coding: utf-8 -*- import sys L = [input()] L = sorted(list(map(int,input().split())), key= lambda x: -x) test = lambda L, S=0, f=lambda f, L, S : f(f,L[2:],S+L[1]) if L else print(S): f(f, L, S) test(L)
[ 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, 17, 13, 17, 0, 13, 18, 13, 13, 4, 13, 13, 10, 4, 13, 10, 18, 13, 10, 4, 13, 10, 17, 13 ]
[ [ 42, 2 ], [ 48, 8 ], [ 51, 22 ], [ 26, 25 ], [ 43, 31 ], [ 45, 34 ], [ 49, 36 ], [ 25, 37 ], [ 46, 40 ], [ 52, 40 ], [ 42, 43 ], [ 45, 46 ], [ 48, 49 ], [ ...
[ "n=int(input())\nL=sorted(list(map(int, input().split())))\n\nall_sum=0\nfor i in range(0,2*n,2):\n all_sum+=L[i]\nprint(all_sum)", "n=int(input())", "n", "int(input())", "int", "input()", "input", "L=sorted(list(map(int, input().split())))", "L", "sorted(list(map(int, input().split())))", "s...
n=int(input()) L=sorted(list(map(int, input().split()))) all_sum=0 for i in range(0,2*n,2): all_sum+=L[i] print(all_sum)
[ 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, 4, 13, 18, 13, 39, 17, 4, 13, 13, 10, 13, 13, 10, 4, 13, 10, 4, 13 ]
[ [ 41, 2 ], [ 10, 9 ], [ 9, 18 ], [ 38, 20 ], [ 39, 24 ], [ 44, 27 ], [ 39, 31 ], [ 45, 36 ], [ 38, 39 ], [ 41, 42 ], [ 44, 45 ] ]
[ "N = int(input())\nL = [int(x) for x in input().split()]\nL.sort()\nanswer = sum(L[::2])\nprint(answer)", "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", ...
N = int(input()) L = [int(x) for x in input().split()] L.sort() answer = sum(L[::2]) print(answer)
[ 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, 13, 17, 4, 13, 13, 10, 4, 13, 10, 18, 13, 10, 17, 13, 10, 4, 13 ]
[ [ 51, 2 ], [ 42, 8 ], [ 43, 21 ], [ 48, 24 ], [ 28, 27 ], [ 52, 30 ], [ 45, 32 ], [ 43, 34 ], [ 27, 36 ], [ 46, 40 ], [ 49, 40 ], [ 42, 43 ], [ 45, 46 ], [ ...
[ "N = int(input())\nli = list(map(int, input().split()))\nli.sort()\nP = 0\nfor i in range(N):\n P += li[i*2]\nprint(P)", "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...
N = int(input()) li = list(map(int, input().split())) li.sort() P = 0 for i in range(N): P += li[i*2] print(P)
[ 7, 15, 13, 12, 13, 0, 13, 18, 18, 13, 13, 13, 0, 13, 4, 13, 4, 18, 4, 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, 13, 17, 4,...
[ [ 7, 6 ], [ 14, 13 ], [ 6, 19 ], [ 24, 23 ], [ 6, 27 ], [ 23, 32 ], [ 35, 34 ], [ 34, 38 ], [ 42, 41 ], [ 45, 44 ], [ 13, 47 ], [ 50, 49 ], [ 34, 51 ], [ 44...
[ "import sys\n\ndef main():\n sinputl = sys.stdin.readline\n\n num_skewer = int(sinputl().strip())\n input = [int(x) for x in sinputl().split()]\n input.sort()\n\n count = 0\n\n for i in range(num_skewer):\n count += input[i * 2]\n\n print(count)\n\n\nif __name__ == \"__main__\":\n mai...
import sys def main(): sinputl = sys.stdin.readline num_skewer = int(sinputl().strip()) input = [int(x) for x in sinputl().split()] input.sort() count = 0 for i in range(num_skewer): count += input[i * 2] print(count) 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, 4, 18, 13, 13, 4, 13, 4, 13, 18, 13, 39, 17, 17, 10, 4, 13, 10, 4, 13 ]
[ [ 40, 2 ], [ 37, 8 ], [ 38, 21 ], [ 38, 25 ], [ 38, 32 ], [ 37, 38 ], [ 40, 41 ] ]
[ "n=int(input())\nl=list(map(int,input().split()))\nl.sort()\nl.reverse()\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", "...
n=int(input()) l=list(map(int,input().split())) l.sort() l.reverse() print(sum(l[1::2]))
[ 7, 15, 13, 13, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 12, 13, 12, 13, 12, 13, 12, 13, 41, 28, 13, 4, 13, 13, 4, 4, 13, 12, 13, 23, 13, 4, 18, 13, 13, 2, 17, 17, 0, 13, 4, 13, 17, 0, 13, 2, 2, 17, 17, 17, 0, ...
[ [ 25, 24 ], [ 82, 30 ], [ 34, 34 ], [ 96, 43 ], [ 75, 48 ], [ 99, 55 ], [ 91, 57 ], [ 84, 59 ], [ 94, 61 ], [ 85, 64 ], [ 85, 71 ], [ 75, 76 ], [ 84, 85 ], [ ...
[ "import sys, re\nfrom collections import deque, defaultdict, Counter\nfrom math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians\nfrom itertools import accumulate, permutations, combinations, product\nfrom operator import itemgetter, mul\nfrom copy import deepcopy\nfrom string import ascii_lowercase, asci...
import sys, re from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import accumulate, permutations, combinations, product from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_uppercase, digits from bisect import bisect, bisect_left from fractions import gcd from heapq import heappush, heappop from functools import reduce def input(): return sys.stdin.readline().strip() def INT(): return int(input()) def MAP(): return map(int, input().split()) def LIST(): return list(map(int, input().split())) def ZIP(n): return zip(*(MAP() for _ in range(n))) sys.setrecursionlimit(10 ** 9) INF = float('inf') mod = 10 ** 9 + 7 N = INT() L = LIST() L.sort() 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, 39, 28, 13, 4, 13, 13, 4, 18, 13, 13, 18, 13, 2, 13, 17, 4, 13, 4, 13, 13, 10, 13, 13, 10, 39, 13, 10, 4,...
[ [ 55, 2 ], [ 10, 9 ], [ 9, 18 ], [ 49, 20 ], [ 50, 24 ], [ 52, 27 ], [ 31, 30 ], [ 56, 33 ], [ 53, 36 ], [ 50, 39 ], [ 30, 41 ], [ 53, 47 ], [ 49, 50 ], [ 5...
[ "N=int(input())\nL=[int(i) for i in input().split()]\nL.sort()\nK=[]\nfor i in range(N):\n K.append(L[i*2])\n\nprint(sum(K))\n\n", "N=int(input())", "N", "int(input())", "int", "input()", "input", "int(i) for i in input().split()", "for i in input().split()", "i", "input().split()", "().spl...
N=int(input()) L=[int(i) for i in input().split()] L.sort() K=[] for i in range(N): K.append(L[i*2]) print(sum(K))
[ 7, 0, 13, 4, 13, 4, 13, 41, 28, 13, 4, 18, 4, 13, 13, 4, 4, 13, 13, 0, 13, 4, 13, 13, 4, 13, 4, 13, 18, 13, 39, 17, 10, 4, 13, 10, 4, 13 ]
[ [ 33, 2 ], [ 10, 9 ], [ 9, 18 ], [ 36, 20 ], [ 37, 29 ], [ 33, 34 ], [ 36, 37 ] ]
[ "N = int(input())\nL = sorted([int(i) for i in input().split()])\n\nprint(sum(L[::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...
N = int(input()) L = sorted([int(i) for i in 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, 4, 18, 13, 13, 0, 13, 17, 28, 13, 4, 13, 2, 13, 17, 14, 40, 2, 13, 17, 17, 9, 0, 13, 18, 13, 13, 4, 13, 13, 10, 4, 13, 10, 18, 13, 10, 4, ...
[ [ 49, 2 ], [ 55, 8 ], [ 56, 21 ], [ 58, 24 ], [ 28, 27 ], [ 50, 31 ], [ 27, 36 ], [ 52, 41 ], [ 56, 43 ], [ 27, 44 ], [ 53, 47 ], [ 59, 47 ], [ 49, 50 ], [ ...
[ "n = int(input())\nl = list(map(int,input().split()))\n\nl.sort()\nans = 0\nfor i in range(n*2):\n if i%2 != 0:\n continue\n ans +=l[i]\n\nprint(ans)", "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() ans = 0 for i in range(n*2): if i%2 != 0: continue ans +=l[i] print(ans)
[ 7, 0, 13, 4, 13, 4, 13, 0, 13, 4, 13, 4, 13, 13, 4, 18, 13, 13, 13, 0, 13, 17, 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, 4, 13, 10, 4, 13, 10, 17, 13, 10, ...
[ [ 50, 2 ], [ 47, 8 ], [ 48, 18 ], [ 21, 20 ], [ 53, 23 ], [ 27, 26 ], [ 51, 30 ], [ 26, 35 ], [ 56, 39 ], [ 48, 41 ], [ 26, 42 ], [ 57, 45 ], [ 54, 45 ], [ ...
[ "N = int(input())\na = list(int(i) for i in input().split())\nlist.sort(a, reverse=True)\nans = 0\nfor i in range(N*2):\n if i%2 == 1:\n ans += a[i]\nprint(ans)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "a = list(int(i) for i in input().split())", "a", "list(i...
N = int(input()) a = list(int(i) for i in input().split()) list.sort(a, reverse=True) ans = 0 for i in range(N*2): if i%2 == 1: ans += a[i] print(ans)
[ 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, 28, 13, 4, 13, 2, 4, 13, 13, 17, 4, 13, 13, 17, 0, 13, 18, 13, 13, 4, 13, 13, 10, 17, 13, 10, 4, 13, 10, 18, 13, ...
[ [ 51, 2 ], [ 57, 8 ], [ 48, 20 ], [ 58, 24 ], [ 28, 27 ], [ 58, 33 ], [ 58, 37 ], [ 54, 40 ], [ 58, 42 ], [ 27, 43 ], [ 55, 46 ], [ 49, 46 ], [ 48, 49 ], [ ...
[ "N = int(input())\nL = list(map(int, input().split()))\nres = 0\nL.sort()\nfor i in range(len(L)%2, len(L), 2):\n res += L[i]\n\nprint(res)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "L = list(map(int, input().split()))", "L", "list(map(int, input().split()))", "lis...
N = int(input()) L = list(map(int, input().split())) res = 0 L.sort() for i in range(len(L)%2, len(L), 2): res += L[i] print(res)
[ 7, 15, 15, 15, 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, 17, 2, 17, 13, 0, 13, 18, 13, 2, 13, 17, 0, 18, 13, 13, 18, 13, 2, 13, 17, 4, ...
[ [ 8, 7 ], [ 14, 13 ], [ 13, 26 ], [ 30, 29 ], [ 33, 32 ], [ 7, 38 ], [ 41, 40 ], [ 13, 42 ], [ 32, 44 ], [ 50, 47 ], [ 13, 48 ], [ 32, 49 ], [ 13, 51 ], [ 3...
[ "#!/usr/bin/env python3\nfrom collections import deque, Counter\nfrom heapq import heappop, heappush\nfrom bisect import bisect_right\n\ndef main():\n N = int(input())\n L = list(map(int, input().split()))\n L.sort()\n ans = 0\n for i in range(1,2*N):\n ans += L[i-1]\n L[i] -= L[i-1]\n ...
#!/usr/bin/env python3 from collections import deque, Counter from heapq import heappop, heappush from bisect import bisect_right def main(): N = int(input()) L = list(map(int, input().split())) L.sort() ans = 0 for i in range(1,2*N): ans += L[i-1] 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, 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, ...
[ [ 54, 2 ], [ 63, 8 ], [ 64, 21 ], [ 25, 24 ], [ 57, 27 ], [ 31, 30 ], [ 55, 33 ], [ 60, 35 ], [ 64, 39 ], [ 30, 42 ], [ 64, 44 ], [ 30, 48 ], [ 61, 52 ], [ ...
[ "N = int(input())\nlist = list(map(int, input().split()))\nlist.sort(reverse = True)\n\nresult = 0\nfor i in range(N):\n result += min(list[2 * i], list[2 * i + 1])\n\nprint(result)", "N = int(input())", "N", "int(input())", "int", "input()", "input", "list = list(map(int, input().split()))", "li...
N = int(input()) list = list(map(int, input().split())) list.sort(reverse = True) result = 0 for i in range(N): result += min(list[2 * i], list[2 * i + 1]) print(result)
[ 7, 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 ]
[ [ 36, 2 ], [ 33, 8 ], [ 39, 20 ], [ 34, 23 ], [ 40, 29 ], [ 34, 29 ], [ 33, 34 ], [ 36, 37 ], [ 39, 40 ] ]
[ "N = int(input())\nL = list(map(int,input().split()))\nL = sorted(L)\n\nprint(sum(L[::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", ...
N = int(input()) L = list(map(int,input().split())) L = sorted(L) print(sum(L[::2]))