problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p02935
u061984624
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\na = list(map(int, input().split()))\nbo = sum(map(lambda x: 1/x, a))\nprint(1/bo)\n\n', 'from bisect import insort\n\nn = int(input())\nv = list(map(float, input().split()))\n\nv.sort()\nwhile len(v) > 1:\n x = v.pop(0)\n y = v.pop(0)\n insort(v, (x + y) / 2)\n\nprint(v[0])\n\n\n\n']
['Wrong Answer', 'Accepted']
['s625847569', 's596818613']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 187]
p02935
u073417656
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nv = list(map(int, input().split()))\nv.sort()\nu = [0]*(N-1)\nfor i in range(N):\n if i == 0:\n u[0] = (v[0] + v[1]) / 2\n else:\n u[i] = (u[i-1]+v[i+1])/2\nprint(u[-1])', 'N = int(input())\nv = list(map(int, input().split()))\nv.sort()\nfor i in range(1,N):\n v[i] = (v[i-1] +...
['Runtime Error', 'Accepted']
['s861044369', 's617331110']
[3060.0, 2940.0]
[18.0, 17.0]
[198, 124]
p02935
u074338678
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nA = sorted(list(map(int, input().split())))\nl = []\n\nfor i in range(N):\n l.append(2**(i))\n\nl = sorted(l, reverse = True)\n \narray_multiple = list(map(lambda x,n: x/n, A, l))\n\nprint(sum(array_multiple))', 'N = int(input())\nA = sorted(list(map(int, input().split())))\n \nfor i in range(N-1)...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s239873472', 's476032392', 's819187552', 's436488023']
[3060.0, 2940.0, 2940.0, 3064.0]
[18.0, 17.0, 18.0, 18.0]
[218, 130, 127, 232]
p02935
u076229854
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nV = sorted(list(map(int, input().split())))\nprint(V)\nans = (V[0] + V[1]) / 2\nif N == 2:\n print(ans)\n exit()\nfor i in range(2,N):\n ans += V[i] / 2\nprint(ans)\n \n', 'N = int(input())\nV = sorted(list(map(int, input().split())))\nans = (V[0] + V[1]) / 2\nif N == 2:\n print(ans)\n exit()\...
['Wrong Answer', 'Accepted']
['s840307768', 's959044099']
[3060.0, 3060.0]
[17.0, 17.0]
[180, 174]
p02935
u076306174
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['import math\nimport heapq\n\nN=int(input[0])\nV=list(map(int, input[1].split())) \n\nheapq.heapify(V)\na=heapq.heappop(V)\nb=0\nfor i in range(len(V)):\n b=heapq.heappop(V)\n a=(a+b)/2\n\nprint(a)', 'import math\nimport heapq\n\nN=int(input())\nV=list(map(int, input().split())) \n\nheapq.heapify(V)\na=heapq.h...
['Runtime Error', 'Accepted']
['s660503632', 's399919874']
[3060.0, 3060.0]
[18.0, 18.0]
[270, 268]
p02935
u080364835
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nvl = list(map(int, input().split()))\nvl_s = sorted(vl)\nprint(vl_s)\n\nn1 = vl_s[0]\nfor i in range(1, n):\n n2 = vl_s[i]\n ave = (n1 + n2) / 2\n n1 = ave\n\nprint(ave)', 'n = int(input())\nvl = list(map(int, input().split()))\nvl_s = sorted(vl)\n\nn1 = vl_s[0]\nfor i in range(1, n):\n ...
['Wrong Answer', 'Accepted']
['s932271118', 's106634100']
[3064.0, 3064.0]
[17.0, 17.0]
[185, 173]
p02935
u082861480
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\ndata = sorted([int(i) for i in input().split()])\nprint(data)\nans = data[0]\nfor i in data[1:]:\n ans = (ans+i)/2\nprint(ans)\n', 'n = int(input())\ndata = sorted([int(i) for i in input().split()])\nans = data[0]\nfor i in data[1:]:\n ans = (ans+i)/2\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s669270836', 's456766718']
[2940.0, 2940.0]
[17.0, 17.0]
[140, 128]
p02935
u083646648
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
["def main():\n N = int(input())\n v = [int(i) for i in input().split()]\n v.sort()\n ans = 0\n for i in range(len(v)-1):\n ans = (ans+v[i+1])/2 if i > 0 else (v[i]+v[i+1])/2\n\n\nif __name__ == '__main__':\n main()\n", "def main():\n N = int(input())\n v = [int(i) for i in input().split()]\n v.sort()\n an...
['Wrong Answer', 'Accepted']
['s846193303', 's776546635']
[2940.0, 3060.0]
[17.0, 17.0]
[213, 225]
p02935
u086415950
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nVs = input().split()\n\nif N == 2:\n print(sum([int(x) for x in Vs])/N)\nelse:\n lists = [int(x) for x in Vs]\n while N > 1:\n lists.sort()\n x = lists.pop(0) + lists.pop(0)) / 2\n lists.insert(0, x)\n N -= 1\n\n print(lists[0])', 'N = int(input())\nVs = input...
['Runtime Error', 'Accepted']
['s235613043', 's636431434']
[2940.0, 3060.0]
[17.0, 17.0]
[273, 274]
p02935
u094191970
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n=int(input())\nv=list(map(int, input().split()))\nvv=sorted(v)\nprint(vv)\nfor i in range(n-2):\n vv[i+1] = (vv[i]+vv[i+1]) / 2\nprint((vv[n-2]+vv[n-1])/2)', 'from sys import stdin\nnii=lambda:map(int,stdin.readline().split())\nlnii=lambda:list(map(int,stdin.readline().split()))\n\nn=int(input())\nv=lnii()\nv.sor...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s500293769', 's902060237', 's532132120']
[3060.0, 8872.0, 9084.0]
[18.0, 21.0, 29.0]
[153, 213, 214]
p02935
u094999522
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n,*v=3,10,10,10\nv.sort()\nprint(sum(v[i]<<i+(i==0)for i in range(n))/2**n)', 'n,*v=map(int,open(0).read().split())\nv.sort()\nprint(sum(v[i]<<i+(i==0)for i in range(n))/2**n)']
['Wrong Answer', 'Accepted']
['s389348594', 's435423462']
[2940.0, 2940.0]
[17.0, 17.0]
[73, 94]
p02935
u096294926
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nM = list(map(int,input().split()))\nX = sorted(M)\nprint(X)\nc = 0\nfor i, v in enumerate(X):\n if i >= N-1:\n break\n else:\n a = X[i]+X[i+1]\n b = a/2\n X[i+1]= a/2\n\nprint(b)', 'N = int(input())\nM = list(map(int,input().split()))\nX = sorted(M)\nc = 0\nfor i, v...
['Wrong Answer', 'Accepted']
['s960349567', 's272572203']
[2940.0, 2940.0]
[17.0, 17.0]
[217, 208]
p02935
u096514906
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['import numpy as np\nn = int(input())\nv = [int(i) for i in input().split()]\nv.sort()\nfor i in range(n): \n v1 = v.pop(-1)\n v2 = v.pop(-1)\n v3 = (v1 + v2) / 2\n v.append(v3)\n v.sort()\nprint(v[0])\n \n \n', '\nn = int(input())\nv = [int(i) for i in input().split()]\nv.sort()\nv1 = v.pop(0)\nfor i in range(...
['Runtime Error', 'Accepted']
['s494662787', 's036322563']
[21344.0, 2940.0]
[324.0, 17.0]
[202, 154]
p02935
u096616343
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['from heapq import heappop,heappush\nN = int(input())\nV = list(map(int,input().split()))\nV.sort()\nwhile True:\n print(V)\n if len(V) == 1:\n break\n a = heappop(V)\n print(V)\n b = heappop(V)\n heappush(V,(a + b) / 2)\nprint(heappop(V))', 'from heapq import heappop,heappush\nN = int(input()...
['Wrong Answer', 'Accepted']
['s728533597', 's036102075']
[3060.0, 3060.0]
[19.0, 18.0]
[251, 225]
p02935
u098041609
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nlist_a = list(map(int,input().split()))\n\nlist_a.sort()\n\nfor m in range(n - 1):\n new = 0\n new += (list_a[0] + list_a[1]) / 2\n print(new)\n del list_a[0:2]\n print(list_a)\n list_a.append(new)\n print(list_a)\n list_a.sort()\n\nprint(list_a[0])\n', 'n = int(input())\nlis...
['Wrong Answer', 'Accepted']
['s806798295', 's265465645']
[3060.0, 3060.0]
[18.0, 18.0]
[277, 226]
p02935
u100277898
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nv = input().split()\n\nv = map(lambda x: int(x), v)\nfor i in range(n-1):\n v.sort()\n v.append((v.pop()+v.pop())/2)\nprint(v[0])', 'n = int(input())\nv = input().split()\n\nv = list(map(lambda x: int(x), v))\nfor i in range(n-1):\n v.sort()\n v.append((v.pop(0)+v.pop(0))/2)\nprint(v[0])']
['Runtime Error', 'Accepted']
['s855110060', 's507335188']
[3060.0, 3060.0]
[17.0, 17.0]
[142, 150]
p02935
u104838954
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\na = (input()).split(" ")\nsumv = 0\ntemp = []\nfor i in range(n):\n temp.append(int(a[i]))\ntemp.sort()\nfor i in range(n-1):\n if(i==0):\n sumv = (temp[i] + temp[i+1])/2\n else:\n sumv = (sumv + temp[i+1])/2\n print(sumv)\nprint(sumv)', 'n = int(input())\na = (input()).sp...
['Wrong Answer', 'Accepted']
['s748342343', 's708437495']
[3064.0, 3060.0]
[17.0, 17.0]
[267, 252]
p02935
u106778233
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N=int(input())\nv=list(map(float,input().split())) \nv.sort()\nfor i in range(N):\n v/=2**(N-i)\n\nprint(sum(v)+v[0])', 'N=int(input())\nv=list(map(float,input().split())) \nv.sort()\nfor i in range(N):\n v[i]/=2**(N-i)\n\nprint(sum(v)+v[0])']
['Runtime Error', 'Accepted']
['s788969302', 's934073481']
[2940.0, 3060.0]
[18.0, 18.0]
[114, 117]
p02935
u113971909
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N=int(input())\nA=map(float,input().split())\nA.sort()\nr=A[0]\nfor i in range(1,N,1):\n r=(r+A[i])/2\nprint(r)', 'N=int(input())\nA=map(int,input().split())\nA.sort()\nr=A[0]\nfor i in range(1,N,1):\n r=float((r+A[i])/2)\nprint(r)', 'N=int(input())\nA=list(map(int,input().split()))\nA.sort()\nr=A[0]\nfor i in rang...
['Runtime Error', 'Runtime Error', 'Accepted']
['s324825476', 's645762874', 's195234577']
[2940.0, 2940.0, 3064.0]
[18.0, 17.0, 18.0]
[106, 111, 117]
p02935
u117193815
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['a = int(input())\nl=list(map(int ,input().split()))\nll=[]\nfor i in range(a-2):\n k=(l[i]+l[i+1])/2+(l[i+2])\n ll.append(k/2)\n\nprint(max(ll))', 'a = int(input())\nl=(list(map(int ,input().split())))\nl.sort()\nll=[]\nj=0\nr=(l[0]+l[1])/2\nll.append(r)\nfor i in range(a-2):\n j=(ll[0]+l[i+2])/2...
['Runtime Error', 'Accepted']
['s395031544', 's224655737']
[2940.0, 3064.0]
[17.0, 17.0]
[151, 215]
p02935
u119148115
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['import sys\ndef I(): return int(sys.stdin.readline().rstrip())\ndef LI(): return list(map(int,sys.stdin.readline().rstrip().split()))\ndef S(): return sys.stdin.readline().rstrip()\n\nN = I()\nv = LI()\n\nv = sorted(v,reverse=True)\n\nans = 0\n\nfor i in range(N-1):\n ans += v[i]/(2**(i+1))\n\nprint(ans + v[N-1]//...
['Wrong Answer', 'Accepted']
['s764566226', 's903732374']
[3064.0, 3064.0]
[18.0, 18.0]
[314, 313]
p02935
u119655368
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['a = int(input())\nb = list(map(int, input().split()))\n\nwhile (len(b) > 1):\n\tb = sorted(b)\n x = b.pop(0)\n y = b.pop(0)\n b.append((x+y)/2)\nprint(b[0])\npass', 'a = int(input())\nb = list(map(int, input().split()))\nwhile (len(b) > 1):\n b = sorted(b)\n x = b.pop(0)\n y = b.pop(0)\n b.append...
['Runtime Error', 'Accepted']
['s455845090', 's445451551']
[2940.0, 3060.0]
[17.0, 18.0]
[161, 158]
p02935
u119982001
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nv = list(map(int, input().split()))\n\nv.sort()\n\nfor i in range(n-1):\n num1 = v.pop(0)\n num2 = v.pop(0)\n print(v)\n v.append( (num1+num2)/2)\n print(v)\nprint(v[0])\n', 'n = int(input())\nv = list(map(int, input().split()))\n\nfor i in range(n-1):\n v.sort()\n num1 = v.pop(...
['Wrong Answer', 'Accepted']
['s229271755', 's904484412']
[3060.0, 2940.0]
[17.0, 17.0]
[192, 169]
p02935
u120485519
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['import decimal\nn = int(input())\nv = list(map(int, input().split()))\nv = sorted(v)\n\ntemp = 0\n\nfor i in range(1,n):\n if i == 1:\n temp += decimal.Decimal((v[0] + v[1])/2)\n else:\n print(temp, v[i])\n sum_ = decimal.Decimal((temp + v[i])/2)\n\nprint(sum_)', 'import decimal\nn = int(in...
['Runtime Error', 'Runtime Error', 'Accepted']
['s775277136', 's862884324', 's441347066']
[5332.0, 5332.0, 5076.0]
[37.0, 36.0, 37.0]
[274, 249, 257]
p02935
u121879791
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n=int(input())\nv=list(map(int,input().split()))\nv.sort(reverce=True)\nfor i in range(n-1):\n a=v.pop()\n b=v.pop()\n v.append((a+b)/2)\n v.sort(reverse=True)\nprint(v[0])', 'n=int(input())\nv=list(map(int,input().split()))\nv.sort(reverse=True)\nfor i in range(n-1):\n a=v.pop()\n b=v.pop()\n v....
['Runtime Error', 'Accepted']
['s797470133', 's468090261']
[3060.0, 3060.0]
[17.0, 17.0]
[176, 176]
p02935
u123745130
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
[' n=int(input()) \nlst=list(map(int,input().split())) \n#print(lst) \na=[] \n\nfor i in range(n): \n\tif i==0: \n\t\t#print(lst[i]) \n\t\ta.append(lst[i]) \n\telse: \n\t\t#print(lst[i]) \n\t\ta.append((a[-1]+lst[i])/2) \nprint(a[-1])', 'n=int(input()) \nlst=list(map(int,input().split()))\nlst.sort()\n#print(lst) \na...
['Runtime Error', 'Accepted']
['s450163926', 's569413785']
[2940.0, 2940.0]
[18.0, 17.0]
[212, 222]
p02935
u124025116
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nV = list(map(int,input().split()))\nans=0\nV.sort()\nS=V[0]\nfor i in N-1:\n ans += (S + V[i])/2\n S=V[i]\nprint(ans) \n', 'N = int(input())\nV = list(map(int,input().split()))\nV.sort()\nS = V[0]\nfor i in range(N-1):\n S = (S + V[i])/2\n S = V[i]\nprint(S) ', 'N = int(input())\nV = list(map(...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s721735349', 's763834614', 's764588552', 's816461347', 's278216163']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[132, 131, 139, 137, 118]
p02935
u131264627
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nv = sorted(list(map(int, input().split())))\nwhile len(v) > 1:\n v.insert(0, v.pop(0) + v.pop(0) / 2)\n print(v[0])\n', 'n = int(input())\nv = sorted(list(map(int, input().split())))\nwhile len(v) > 1:\n v.insert(0, (v.pop(0) + v.pop(0)) / 2)\nprint(v[0])']
['Wrong Answer', 'Accepted']
['s958177885', 's150831170']
[2940.0, 2940.0]
[18.0, 17.0]
[132, 131]
p02935
u131944095
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nV = sorted(list(map(int, input().split())))\nans = V[0]\nprint(ans)\nfor i in range(1, n):\n ans = (V[i] + ans)/2\n\nprint(ans)', 'n = int(input())\nV = sorted(list(map(int, input().split())))\nprint(ans)\nfor i in range(1, n):\n ans = (V[i] + ans)/2\n\nprint(ans)', 'n = int(input())\nV = list(map...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s849002987', 's908344014', 's032573554']
[2940.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0]
[139, 128, 128]
p02935
u135116520
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N=int(input())\nv=list(map(int,input().split()))\nwhile len(v)>1:\n v=v.sort()\n v1=v[0]\n del v[0]\n v2=v[0]\n del v[0]\n v.append((v1+v2)/2)\nprint(v)', 'N=int(input())\nv=list(map(int,input().split()))\nwhile len(v)>1:\n v=v.sort()\n v1=v.pop(0)\n v2=v.pop(0)\n v.append((v1+v2)/2)\nprint(v[0])', 'N=int(i...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s046294287', 's192488427', 's655872869', 's971441837', 's578247405']
[3060.0, 3060.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[149, 138, 140, 136, 143]
p02935
u135197221
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['def Input():\n return mapt(int, input().split(" "))\n\n\ndef main():\n n = int(input())\n a = sorted(Input())\n while len(a) > 1:\n x, y = a[0], a[1]\n a[0:2] = [(x+y)/2]\n\n return a[0]\n\n\nprint(main())', 'def mapt(fn, *args):\n return tuple(map(fn, *args))\n\n\ndef Input():\n re...
['Runtime Error', 'Accepted']
['s621283972', 's359082554']
[9164.0, 9012.0]
[29.0, 28.0]
[220, 277]
p02935
u135847648
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nv = list(map(int,input().split()))\nv.sort()\ns = v[0]\nfor i in range(1,n):\n s = (s+v[i])/2\nprint(int(s)) ', 'n = int(input())\nv = list(map(int,input().split()))\nv.sort()\ns = v[0]\nfor i in range(1,n):\n s = (s+v[i])/2\nprint(s) ']
['Wrong Answer', 'Accepted']
['s512515364', 's830522785']
[2940.0, 2940.0]
[18.0, 20.0]
[123, 118]
p02935
u145838785
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nList = [] * N\nList = input().split(" ")\nList.sort()\nfor i in range(N-1):\n List[i+1] = (int(List[i]) + int(List[i+1]) / 2\nprint(List[N])', 'N = int(input())\nList = [] * N\nList = input().split(" ")\nList.sort()\nfor i in range(N-1):\n List[i+1] = (int(List[i]) + int(List[i+1]) / 2\nprint(...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s145784639', 's267073141', 's565841300', 's974331810', 's403463272']
[2940.0, 2940.0, 2940.0, 3064.0, 3060.0]
[17.0, 17.0, 17.0, 17.0, 19.0]
[155, 155, 159, 194, 199]
p02935
u146803137
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = iin()\na = [int(x) for x in input().split()]\nfor i in range(n-1):\n a.sort()\n a[i + 1] = (a[i]+a[i + 1])/2\nprint(a[n-1])', 'n = int(input())\nv = list(map(int,input().split()))\nv = sorted(v)\nfor i in range(n-1):\n v[i+1] = (v[i] + v[i+1])/2\nprint(v[n-1])\n']
['Runtime Error', 'Accepted']
['s033476543', 's910902627']
[2940.0, 9060.0]
[17.0, 28.0]
[128, 132]
p02935
u150027030
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['import numpy as np\n\nN = int(input())\nvn_list = input().split()\n\nvn = np.sort(np.array(vn_list, dtype="float"))[::-1]\nprint(vn)\nw = np.logspace(1, N, base=1/2, num = N)\nw[N-1] = w[N-2]\nresult = np.dot(vn, w)\nprint(result)', 'import numpy as np\n\nN = int(input())\nvn_list = input().split()\n\nvn = np.sort(np...
['Wrong Answer', 'Accepted']
['s863277667', 's270956748']
[12504.0, 12504.0]
[150.0, 150.0]
[220, 210]
p02935
u153823221
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nvalue = [int(i) for i in input().split()]\n\nnow = 0\na = sorted(value) \n\nwhile len(a) >= 2:\n a = sorted(a)\n print(a)\n now = (float(a[0]) + float(a[1])) / float(2)\n print(now)\n if len(a) >= 3:\n del a[0],a[0] \n a.append(now)\n elif len(a) == 2:\n print(now)\n break\n ', ...
['Wrong Answer', 'Accepted']
['s060395484', 's335321175']
[9128.0, 9128.0]
[27.0, 24.0]
[384, 360]
p02935
u166621202
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nv = list(map(int,input().split()))\nV = sorted(v)\n\nwhile len(V) > 1:\n V.append((V.pop(0) + V.pop(0)) // 2)\n V = sorted(V)\n\nprint(*V)', 'N = int(input())\nv = list(map(int,input().split()))\nV = sorted(v)\n\nwhile len(V) > 1:\n V.append((V.pop(0) + V.pop(0)) / 2)\n V = sorted(V)\n\n...
['Wrong Answer', 'Accepted']
['s279422218', 's285766822']
[3060.0, 3060.0]
[18.0, 18.0]
[154, 153]
p02935
u169696482
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['input()\nA = list(map(int, input().split()))\nA.sort()\nwhile len(A)>1:\n b = A[0:2]\n c = sum(i for i in b)\n A.append(c/2)\n del(A[0:2])\n A.sort()\n\nprint(A)', 'input()\nA = list(map(int, input().split()))\nA.sort()\nwhile len(A)>=1:\n A.append((A[0]+A[1])/2)\n del(A[0:2])\n A.sort()\nprint(A)', 'in...
['Wrong Answer', 'Runtime Error', 'Time Limit Exceeded', 'Accepted']
['s099404507', 's198732794', 's934727410', 's147041408']
[2940.0, 3064.0, 2940.0, 3060.0]
[17.0, 21.0, 2104.0, 17.0]
[156, 135, 133, 194]
p02935
u172569352
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nv = [int(i) for i in input().split()]\n\nv.sort()\nprint(v)\na = v[0]\nfor i in range(1, N):\n a = (a+v[i])/2\n\nprint(a)', 'N = int(input())\nv = [int(i) for i in input().split()]\n\nv.sort()\na = v[0]\nfor i in range(1, N):\n a = (a+v[i])/2\n\nprint(a)']
['Wrong Answer', 'Accepted']
['s012270669', 's091998028']
[2940.0, 2940.0]
[17.0, 17.0]
[133, 124]
p02935
u175590965
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nv = list(map(int,input().split()))\nv.sort()\nans = a[0]\nfor i in range(1,n):\n ans = (ans+a[i])/2\npritn(ans)\n ', 'n = int(input())\nv = list(map(int,input().split()))\nv.sort()\nans = v[0]\nfor i in range(1,n):\n ans = (ans+v[i])/2\nprint(ans)']
['Runtime Error', 'Accepted']
['s024279751', 's630984186']
[2940.0, 9200.0]
[18.0, 30.0]
[131, 126]
p02935
u179285430
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nV = list(map(int, input().split()))\nV_sorted = sorted(V, reverse = True)\n\nans = 0\nfor i in range(N):\n ans += V_sorted[i] /(2 ** (i+1))\n \nprint(ans)', 'N = int(input())\nV = list(map(int, input().split()))\nV_sorted = sorted(V, reverse = True)\n\nans = 0\nfor i in range(N):\n ans += V...
['Wrong Answer', 'Accepted']
['s563110938', 's402228737']
[2940.0, 3060.0]
[18.0, 17.0]
[170, 195]
p02935
u187516587
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N,Q=map(int,input().split())\nl=[[1,0,0]]\nfor i in range(1,N):\n a,b=map(int,input().split())\n l.append([b,a,0])\nl.sort()\nfor i in range(Q):\n p,x=map(int,input().split())\n l[p-1][2]+=x\nt=[l[0][2]]\nfor i in range(1,N):\n t.append(t[l[i][1]-1]+l[i][2])\nprint(*t)', 'N=int(input())\nv= list(map(in...
['Runtime Error', 'Accepted']
['s237865807', 's463895560']
[3064.0, 2940.0]
[19.0, 17.0]
[272, 121]
p02935
u188745744
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nA = list(map(int,input().split()))\nA.sort()\nB = (A[0] + A[1]) / 2\nfor i in range(N-2):\n B = (B + A[i+2]) / 2\nprint(int(B))', 'N = int(input())\nA = list(map(int,input().split()))\nA.sort()\nB = (A[0] + A[1]) / 2\nfor i in range(N-2):\n B = (B + A[i+2]) / 2\nprint(B)']
['Wrong Answer', 'Accepted']
['s916701341', 's676755113']
[3060.0, 2940.0]
[18.0, 17.0]
[142, 137]
p02935
u189049195
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nv = list(map(int, input().split()))\n\nvc = sorted(v)\n\nfor i in range(n-1):\n vc[i+1] = int((vc[i] + vc[i+1])/2)\n\nprint(vc[n-1])', 'n = int(input())\nv = list(map(int, input().split()))\n\nvc = sorted(v)\n\nfor i in range(n-1):\n vc[i+1] = (vc[i] + vc[i+1]) / 2\n\nprint(vc[n-1])']
['Wrong Answer', 'Accepted']
['s824119713', 's749506692']
[3060.0, 3060.0]
[17.0, 17.0]
[145, 142]
p02935
u189326411
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nlst = [int(s) for s in input().split()]\nlst.sort()\nans = lst[0]\nfor i in range(n):\n ans = (ans+lst[i])/2\nprint(int(ans))\n', 'n = int(input())\nlst = [int(s) for s in input().split()]\nlst.sort()\nans = lst[0]\nfor i in range(n):\n ans = (ans+lst[i])/2\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s151213782', 's480314671']
[2940.0, 2940.0]
[18.0, 17.0]
[141, 136]
p02935
u189427183
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['import heapq\n\ndef solve(n, v):\n q = []\n for i in range(n):\n heapq.heappush(q, v[i])\n for i in range(n-1):\n x = heapq.heappop(q)\n y = heapq.heappop(q)\n heapq.heappush(q, (x+y)/2)\n print(q)\n return heapq.heappop(q)\n\nn = int(input())\nv = list(map(int, input()....
['Wrong Answer', 'Accepted']
['s067079147', 's783684658']
[3064.0, 2940.0]
[18.0, 17.0]
[332, 120]
p02935
u190406011
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['import heapq\nN = int(input())\nv_ls = [int(i) for i in input().split()]\nheapq.heapify(v_ls)\nwhile len(v_ls) > 1:\n smallest = heapq.heappop(v_ls)\n second = heapq.heappop(v_ls)\n heapq.heappush(v_ls, (smallest + second) / 2)\nprint(int(heapq.heappop(v_ls)))', 'import heapq\nN = int(input())\nv_ls = [int(i...
['Wrong Answer', 'Accepted']
['s821837434', 's780114945']
[3060.0, 3060.0]
[18.0, 18.0]
[261, 256]
p02935
u197038614
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nvs = list(map(int, input().split()))\n\nvs.sort(reverse=True)\nprint(vs)\n\nif N == 2:\n print((vs[0] + vs[1]) / 2)\n exit()\n\nx = (vs[0] + vs[1])/2\nfor i in range(1, N):\n x = (x + vs[i]) / 2\n\nprint(x)\n', 'N = int(input())\nvs = list(map(int, input().split()))\n\nvs.sort()\n\nif N == ...
['Wrong Answer', 'Accepted']
['s116541184', 's525293787']
[3060.0, 3060.0]
[17.0, 18.0]
[220, 198]
p02935
u200527996
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = float(input())\nv = list(map(float, input().split()))\nv.sort()\nans = float(0)\nans = v[0]+v[1]/2\nif N>3:\n for i in v[2::]:\n ans = (ans+i)/2\n\nprint(ans)\n', 'N = float(input())\nv = list(map(float, input().split()))\nv.sort()\nans = float(0)\nfor i,j in enumerate(v,1):\n ans += 2*(i-2)*j\nans =...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s331137967', 's361680548', 's468557399', 's586895983', 's870002248']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0]
[164, 167, 145, 142, 133]
p02935
u201109843
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nvn = list(map(int, input().split()))\n\ndef merge(x, y):\n return (x + y) / 2\n\n\nfor _ in range(n-1):\n x = sorted(vn).pop(0)\n y = sorted(vn).pop(0)\n vn.append(merge(x, y))\n\nprint(vn[0])', 'n = int(input())\nvn = list(map(int, input().split()))\n\ndef merge(x, y):\n return (x + ...
['Wrong Answer', 'Accepted']
['s138129948', 's997939534']
[3060.0, 3060.0]
[18.0, 17.0]
[210, 213]
p02935
u203383537
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n=int(input())\nv=list(map(int,input().split()))\nv=sorted(v)\n\nfor i in range(n-1):\n a=sum(v[:2])/2\n v[0]=a\n v.pop(1)\n \nprint(int(v[0])) ', 'n=int(input())\nv=list(map(int,input().split()))\nv=sorted(v)\n\nfor i in range(n-1):\n a=sum(v[:2])/2\n v[0]=a\n v.pop(1)\n \nprint(v[0]) '...
['Wrong Answer', 'Accepted']
['s392713272', 's467067913']
[3060.0, 3316.0]
[17.0, 19.0]
[150, 145]
p02935
u203690677
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N=int(input())\nv=list(map(int,input().split())).sort()\nfor a in range(N-1):\n v[1]=(v[0]+v[1])/2\n v[0].pop()\nprint(v[0])', 'N=int(input())\nv=list(map(int,input().split())).sorted()\nfor a in range(N-1):\n v[1]=(v[0]+v[1])/2\n v.pop(0)\nprint(v[0])', 'N=int(input())\nv=list(map(int,input().split())).sort()\nf...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s211092217', 's887750177', 's996825689', 's942908248']
[2940.0, 3316.0, 3316.0, 3316.0]
[17.0, 19.0, 18.0, 19.0]
[121, 121, 119, 121]
p02935
u215286521
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['from math import floor,ceil,sqrt,factorial,log\nfrom collections import Counter, deque\nfrom functools import reduce\nimport numpy as np\ndef S(): return input()\ndef I(): return int(input())\ndef MS(): return map(str,input().split())\ndef MI(): return map(int,input().split())\ndef FLI(): return [int(i) for i in inpu...
['Runtime Error', 'Accepted']
['s803316005', 's506704541']
[12248.0, 12244.0]
[150.0, 151.0]
[804, 767]
p02935
u221280246
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N=int(input())\nv=int(input()).split()\nV=v.sort()\ncnt=0\nwhile cnt<N-1:\n v[0]=(int(v[0])+int(v[cnt+1]))/2\n cnt+=1\nprint(v[0])\n', 'N=int(input())\nv=[int(x) for x in input().split()]\ncnt=0\nwhile cnt<N-1:\n v.sort()\n v[0]=(v[0]+v.pop(1))/2\n cnt+=1\nprint(v[0])']
['Runtime Error', 'Accepted']
['s035454862', 's372252153']
[3064.0, 3060.0]
[18.0, 17.0]
[130, 134]
p02935
u222668979
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N=int(input())\na=list(map(int,input().split()))\nwhile len(a)>=2:\n\ta.sort()\n\tx,y=map(int,list.pop())\n\ta.append((x+y)/2)', 'N=int(input())\na=list(map(int,input().split()))\nwhile len(a)>=2:\n\ta.sort()\n\tx,y=map(int,a.pop())\n\ta.append((x+y)/2)', 'N=int(input())\na=list(map(int,input().split()))\nprint(a)\nf...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s042821865', 's377468368', 's417914036', 's702425087', 's971426331', 's065941329']
[2940.0, 2940.0, 3060.0, 3060.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 17.0, 18.0, 18.0]
[118, 115, 144, 119, 103, 97]
p02935
u231261695
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nv = sorted(list(map(int, input().split())), reverse = False)\nfor i in range(1, n):\n v[0] = (v[0] + v[i]) / 2\nprint(v[0]', 'n = int(input())\nv = sorted(list(map(int, input().split())), reverse = False)\nfor i in range(1, n):\n v[0] = (v[0] + v[i]) / 2\nprint(v[0])\n']
['Runtime Error', 'Accepted']
['s388364295', 's312522200']
[2940.0, 2940.0]
[17.0, 18.0]
[139, 141]
p02935
u233588813
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['a=int(input())\nb=map(int,input().split())\nb.sort()\nc=b[0]\n\nfor i in range(1,a):\n c=(c+b[i])/2\n \nprint(c)', 'a=int(input())\nb=list(map(int,input().split()))\nb.sort()\nc=b[0]\n\nfor i in range(1,a):\n c=(c+b[i])/2\n \nprint(c)']
['Runtime Error', 'Accepted']
['s058766604', 's889513950']
[2940.0, 2940.0]
[18.0, 18.0]
[106, 112]
p02935
u234856548
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['sozai = input()\n\nwhile len(sozai) != 1:\n\n titi = max(sozai)\n haha = min(sozai)\n\n sozai.remove(titi)\n sozai.remove(haha)\n\n son = (titi + haha)/2 \n\n sozai.add(son)\n\nprint(str(sozai))\n', 'N = int(input())\nv = map(int,input().split())\n\nfor i in N:\n\n titi = max(v)\n haha = min(v...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s190070119', 's407871603', 's903588558', 's906891262', 's941755100']
[2940.0, 3060.0, 3060.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[199, 207, 240, 215, 134]
p02935
u237513745
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nlst = list(map(int, input().split()))\nlst = sorted(lst)\nsum = lst[0]\n\nfor i in range(1, n):\n sum = (sum + lst[i]) / 2\nprint(int(sum))\n', 'n = int(input())\nlst = list(map(int, input().split()))\nlst = sorted(lst)\nsum = lst[0]\n\nfor i in range(1, n):\n sum = (sum + lst[i]) / 2\nprint(s...
['Wrong Answer', 'Accepted']
['s602748446', 's598847529']
[2940.0, 2940.0]
[17.0, 17.0]
[154, 149]
p02935
u239528020
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['v = list(map(int, input().split()))\nv.sort()\n\nwhile(len(v)!=2):\n v += [(v.pop(0)+v.pop(0))/2]\n v.sort()\nprint(sum(v)/2)', '#!/usr/bin/env python3\n\nn = int(input())\nv = list(map(int, input().split()))\n\n\nv.sort()\nans = v[0]\n\nfor i in v[1:]:\n ans = (ans+i)/2\nprint(ans)\n']
['Runtime Error', 'Accepted']
['s337272550', 's362133132']
[2940.0, 3064.0]
[17.0, 17.0]
[125, 147]
p02935
u240096083
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['count = int(input())\nnumlist = list(map(int, sorted(input().split())))\nresult = 0\n\n\n\n \n \nwhile len(numlist) >= 2:\n sum = (numlist[1] + numlist[0]) / 2\n del numlist[0:2] \n numlist.append(sum)\n numlist = sorted(numlist)\n print(sum)\n print(numlist)\n \nprint(sum)\n', 'count = int(input())\nnumlist...
['Wrong Answer', 'Accepted']
['s945877312', 's956466087']
[3064.0, 2940.0]
[18.0, 19.0]
[449, 262]
p02935
u240685798
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N=int(input())\nv=np.sort(list(map(int, input().split())))\nv1=[]\nv1.append(v[0]/2**(N-1)) \nfor i in range(N-1):\n v1.append(v[i+1]/2**((N-1)-i))\nprint(sum(v1))', 'import numpy as np\nN=int(input())\nv=np.sort(list(map(int, input().split())))\nv1=[]\nv1.append(v[0]/2**(N-1)) \nfor i in range(N-1):\n v1.appen...
['Runtime Error', 'Accepted']
['s456688464', 's912013429']
[3060.0, 12488.0]
[17.0, 149.0]
[160, 179]
p02935
u243955520
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nV = [int(s) for s in input().split(" ")]\nV_sort = sorted(V)\n\nsumV = 0\nfor i,x in enumerate(V_sort):\n p = max(0,i-1)\n sumV += x*(2**p)\n print(p,sumV)\nres = sumV/2**(N-1)\nprint(res)', 'N = int(input())\nV = [int(s) for s in input().split(" ")]\nV_sort = sorted(V)\n\nsumV = 0\nfor i,x...
['Wrong Answer', 'Accepted']
['s310873180', 's614652226']
[3064.0, 3060.0]
[17.0, 18.0]
[205, 206]
p02935
u247769252
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['from sys import stdin\n\nN = int(stdin.readline())\nv = list(map(int, stdin.readline().split()))\n\nv.sort()\n\nvalue = v[0]\nfor i in range(N-1):\n value = 0.5*(value + v[i+1])\n\nprint(int(value))', 'from sys import stdin\n\nN = int(stdin.readline())\nv = list(map(int, stdin.readline().split()))\n\nv.sort()\n\nv...
['Wrong Answer', 'Accepted']
['s556392357', 's097085039']
[3060.0, 3060.0]
[17.0, 20.0]
[190, 185]
p02935
u247830763
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nls = list(map(int,input().split()))\nls.sort()\nfor i in range(1,n):\n ls[0] = (ls[0]+ls[i])/2\n print(ls)\nprint(int(ls[0]))', 'n = int(input())\nls = list(map(int,input().split()))\nls.sort()\nfor i in range(1,n):\n ls[0] = (ls[0]+ls[i])/2\nprint(int(ls[0]))', 'n = int(input())\nls = list...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s069308303', 's090320308', 's421675397']
[3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[143, 129, 124]
p02935
u248364740
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['\n\nn = int(input())\nv = list(map(int, input().strip().split()))\nv.sort(reverse=True)\nres = 0\nfor i in range(n-1):\n res += v[i] / (2**(i+1))\nres += v[-1] / (2**(n-1))\n\nprint(v)\nprint(res)\n', '\n\nn = int(input())\nv = list(map(int, input().strip().split()))\nv.sort(reverse=True)\nres = 0\nfor i in range(...
['Wrong Answer', 'Accepted']
['s798650592', 's520684640']
[9112.0, 9028.0]
[26.0, 27.0]
[249, 240]
p02935
u249218227
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['#include <bits/stdc++.h>\nusing namespace std;\n\nint main(){\n\tint N;\n\tcin >> N;\n\tvector<int> vec(N);\n\tfor(int i=0;i<N;i++){\n\t\tcin >> vec.at(i);\n\t}\n\tsort(vec.begin(), vec.end());\n\tdouble ans = vec.at(0);\n\tfor(int i=1;i<N;i++){\n\t\tans = (ans+vec.at(i))/2;\n\t}\n\tcout << ans << endl;\n}', '#includ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s118511047', 's689896894', 's780903796']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[277, 277, 146]
p02935
u252828980
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nli = list(map(int, input().split()))\n\na = 0\nli.sort()\nif n == 2:\n print((li[0] + li[1])/2)\nelif n >=3:\n for i in range(n-2):\n a = (li[i] + li[i+1])/2\nprint((a+li[-1])/2)', 'n = int(input())\nli = list(map(int, input().split()))\n\nli.sort()\na = li[0] \n\nif n >=2:\n for i i...
['Wrong Answer', 'Accepted']
['s811822828', 's288914838']
[3060.0, 3060.0]
[17.0, 17.0]
[199, 168]
p02935
u254745082
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nv = list(map(int, input().split()))\n\nv = sorted(v)\n\ntmp = v[0]\nfor i in range(1,n):\n tmp = (tmp + v[i])/2\n \nprint(int(tmp))', 'n = int(input())\nv = list(map(int, input().split()))\n\nv = sorted(v)\n\ntmp = v[0]\nfor i in range(1,n):\n tmp = (tmp + v[i])/2\n \nprint(tmp)']
['Wrong Answer', 'Accepted']
['s723070465', 's015652380']
[2940.0, 3060.0]
[17.0, 17.0]
[142, 137]
p02935
u255821449
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['# -*- coding: utf-8 -*-\n\nN = int(input())\nv = list(map(int, input().split()))\n\nv = sorted(v)\nprint(v)\na = v.pop(0)\nb = v.pop(0)\n\nresult = (a + b)/2\nwhile len(v) > 0:\n a = v.pop(0)\n print(a)\n b = result\n result = (a + b)/2\n\nprint(result)\n\n', '# -*- coding: utf-8 -*-\n\nN = int(input())\n...
['Wrong Answer', 'Accepted']
['s895992448', 's397346764']
[3060.0, 3060.0]
[19.0, 19.0]
[250, 228]
p02935
u258325541
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = input()\na = input()\nNi = int(N)-1\nl = a.split()\ntemp = 0\nfor i in range(int(len(l)+1)):\n for j in reversed(range(i, len(l))):\n if l[j-1]>l[j]:\n l[j-1],l[j] = l[j],l[j-1]\n\nfor i in range(int(Ni)):\n print(l)\n temp = (float(l[0])+float(l[1]))/2\n del l[:2]\n l.insert(1, temp)\n \nprint(temp...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s045245844', 's808939571', 's894292905', 's265972562']
[3064.0, 3444.0, 3064.0, 3060.0]
[18.0, 23.0, 19.0, 17.0]
[303, 418, 330, 173]
p02935
u269778596
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['import heapq\nsize = int(input())\nli = list(map(int,input().split()))\nheapq.heapify(li)\nwhile(len(li)>1):\n a = heapq.heappop(li)\n b = heapq.heappop(li)\n heapq.heappush(li,(a+b)//2)\nprint(li[0])\n', 'import heapq\nsize = int(input())\nli = list(map(int,input().split()))\nheapq.heapify(li)\nwhile(len(li...
['Wrong Answer', 'Accepted']
['s550474310', 's362211006']
[3060.0, 3060.0]
[18.0, 18.0]
[202, 201]
p02935
u270825463
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nv = sorted(list(map(int,input().split())))\nans = v[0]\nprint(v)\nfor i in range(1,N):\n ans = (ans + v[i])/2\nprint(ans)\n', 'N = int(input())\nv = sorted(list(map(int,input().split())))\nans = v[0]\nfor i in range(1,N):\n ans = (ans + v[i])/2\nprint(ans)']
['Wrong Answer', 'Accepted']
['s204002711', 's692663981']
[9040.0, 9152.0]
[26.0, 28.0]
[137, 127]
p02935
u270851941
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['\nN=int(input())\n\nA=input().split()\nB=[0]*N\n\nfor i in range(len(A)):\n B[i]=int(A[i])\n\nB.sort()\nprint(B)\nB[0]=B[0]/(2**(N-1))\n\nfor i in range(len(B)-1):\n j=i+1\n B[j]=B[j]/(2**(N-j))\n\nprint(sum(B))', '\nN=int(input())\n\nA=input().split()\nB=[0]*N\n\nfor i in range(len(A)):\n B[i]=int(A[i])\...
['Wrong Answer', 'Accepted']
['s082052123', 's671798985']
[3316.0, 3064.0]
[21.0, 17.0]
[203, 194]
p02935
u276204978
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nv = list(map(int, input().split()))\n\nfor i in range(N - 1):\n print(v)\n v = sorted(v, reverse=True)\n m1 = v.pop()\n m2 = v.pop()\n v.append((m1 + m2) / 2)\n\nprint(v[0])', 'N = int(input())\nv = list(map(int, input().split()))\n\nfor i in range(N - 1):\n v = sorted(v, reverse=T...
['Wrong Answer', 'Accepted']
['s086484513', 's871259925']
[3060.0, 3060.0]
[17.0, 22.0]
[196, 183]
p02935
u279292103
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n=int(input()) \nv=list(map(int, input().split()))\nv.sort()\nfor i in range(n):\n if i == 0:\n s = (1/2)**(n-1) * v[0]\n else:\n s = s + (1/2)**(n-i) * v[i]\nprint(int(s))\n', 'n=int(input()) \nv=list(map(int, input().split()))\nv.sort()\nfor i in range(n):\n if i == 0:\n s = (1/2)**(...
['Wrong Answer', 'Accepted']
['s546226797', 's768315202']
[2940.0, 2940.0]
[18.0, 18.0]
[186, 181]
p02935
u283520984
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N=int(input())\nv = [int(i) for i in input().split()] \nv.sort()\nvalue=(v[0]+v[1])/2\nj=0\nhoge=[]\nfor i in range(2,N):\n value=(value+v[i])/2\nprint(int(value))', 'N=int(input())\nv = [int(i) for i in input().split()] \nv.sort()\nvalue=(v[0]+v[1])/2\nj=0\nhoge=[]\nif N==2:\n print(value)\nelse:\n for i in...
['Wrong Answer', 'Accepted']
['s866919646', 's167890962']
[3064.0, 3060.0]
[18.0, 17.0]
[158, 197]
p02935
u284999381
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['a = int(input())\nn = list(map(int, input().split()))\nfor i in range(a-1) :\n x = s.pop()\n y = s.pop()\n s.append((x + y) / 2)\nprint(s[0])', 'a = int(input())\nn = list(map(int, input().split()))\ns = sorted(n)[::-1]\nfor i in range(a-1) :\n x = s.pop()\n y = s.pop()\n s.append((x + y) / 2)\nprin...
['Runtime Error', 'Accepted']
['s019289134', 's067424387']
[2940.0, 3060.0]
[17.0, 17.0]
[144, 164]
p02935
u286422818
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['# coding: utf-8\n\nif __name__ == "__main__":\n n = int(input())\n v = sorted(list(map(int, input().split())))\n while len(v)!=1:\n print(v)\n v[0] = (v[0]+v.pop(1))/2\n print(v[0])', '# coding: utf-8\n\nif __name__ == "__main__":\n n = int(input())\n v = sorted(list(map(int, input().s...
['Wrong Answer', 'Accepted']
['s976622883', 's022623122']
[3060.0, 2940.0]
[17.0, 17.0]
[199, 182]
p02935
u288980918
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nv = sorted(map(int,input().split()))\nvalue=v[0]\nfor in range(1,N):\n value = (value+ v[i])/2\nprint(value)', 'N=int(input())\nv=sorted(map(int,input().split()))\nvalue=v[0]\nfor i in range(1,N):\n value=(value+v[i])/2\nprint(value)']
['Runtime Error', 'Accepted']
['s641864572', 's316016225']
[9012.0, 9188.0]
[27.0, 26.0]
[122, 119]
p02935
u289499565
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nnums = [int(i) for i in input().split()]\nLOOP = int(np.log2(N))+1\nLOOP_N = N\n\nfor _ in range(LOOP):\n is_odd = (LOOP_N%2 == 1)\n LOOP_N = math.ceil(LOOP_N/2)\n nums = [nums[2*i] if (i==LOOP_N-1 and is_odd) else (nums[2*i]+nums[2*i+1])/2 for i in range(LOOP_N)]\n\nprint(nums[0])', "n = ...
['Runtime Error', 'Accepted']
['s640094318', 's475774296']
[3064.0, 2940.0]
[17.0, 17.0]
[300, 172]
p02935
u294897522
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\nv = list(map(int, input().split()))\nv.sort()\n\nwhile len(v) == 1:\n new = sum(v[:2])/2\n v = [new] + v[2:]\n v.sort()\n \nprint(v[0])', 'n = int(input())\nv = list(map(int, input().split()))\nv.sort()\n\nfor i in range(n-1):\n a, b = v[:2], v[2:]\n new = sum(a)/2\n v = [new] + b\n v.sort()...
['Wrong Answer', 'Accepted']
['s473339055', 's460717511']
[3064.0, 3060.0]
[17.0, 17.0]
[148, 164]
p02935
u298413997
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nv = list(map(int, input().split()))\nv = sorted(v)\n# print(v)\nwhile len(v) > 1:\n x = (v[0] + v[1]) / 2\n v.append(x)\n del v[:2]\n v = sorted(v)\nprint(v)\n', 'N = int(input())\nv = list(map(int, input().split()))\nv = sorted(v)\n# print(v)\nwhile len(v) > 1:\n x = (v[0] + v[1]) / ...
['Wrong Answer', 'Accepted']
['s241305290', 's793324678']
[2940.0, 2940.0]
[17.0, 17.0]
[179, 182]
p02935
u298554556
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\narr = input()\nguzai = arr.split(" ")\nguzai_int = [int(i) for i in guzai]\n\nfor i in range(1, N):\n guzai_int.sort()\n x = guzai_int.pop(0)\n y = guzai_int.pop(0)\n guzai_int.append((x+y)/2)\n\nprint(guzai_int)', 'N = int(input())\narr = input()\nguzai = arr.split(" ")\nguzai_int = [int(i) for...
['Wrong Answer', 'Accepted']
['s613955186', 's459987963']
[3060.0, 3060.0]
[17.0, 17.0]
[223, 229]
p02935
u299873302
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nValue = list(map(int,input().split()))\nValue = sorted(Value,reverse=True)\nSum = 0.0\nfor i in Value:\n Sum = (Sum+i)/2.0\nprint(Sum)', 'N = int(input())\nValue = list(map(int,input().split()))\nValue = sorted(Value)\nSum = Value[0]\nfor i in Value:\n Sum = (Sum+i)/2.0\nprint(Sum)']
['Wrong Answer', 'Accepted']
['s678315281', 's867419286']
[2940.0, 3060.0]
[17.0, 17.0]
[149, 141]
p02935
u309455049
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nv = list(map(int, input().split()))\nv.sort()\n\nwhile len(v) != 1:\n new_v = (v[0] + v[1]) / 2\n del v[0]\n del v[0]\n v.append(new_v)\n v.sort()\nprint(v)', 'N = int(input())\nv = list(map(int, input().split()))\nv.sort()\n\nwhile len(v) != 1:\n new_v = (v[0] + v[1]) / 2\n del...
['Wrong Answer', 'Accepted']
['s029387572', 's032351374']
[2940.0, 3060.0]
[17.0, 17.0]
[179, 182]
p02935
u311379832
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['from heapq import heappush, heappop N = int(input()) vLst = list(map(int, input().split())) v = [] for i in range(N): heappush(v, vLst[i]) ans = 0 for i in range(N - 1): tmp1 = heappop(v) tmp2 = heappop(v) ans = float((tmp1 + tmp2) / 2) heappush(v, ans) print(v[0])\n', 'from heapq import heappush, heappop\n\nN = int(...
['Runtime Error', 'Accepted']
['s387116488', 's096561196']
[2940.0, 3060.0]
[18.0, 18.0]
[266, 289]
p02935
u318740143
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nv = list(map(int,input().split()))\nv.sort()\nans = (v[0] + v[1])/2\nfor i in range(2,N):\n ans = (ans + v[i])/2\nprint(ans)\nprint(v)', 'N = int(input())\nv = list(map(int,input().split()))\nv.sort()\nans = (v[0] + v[1])/2\nfor i in range(2,N):\n ans = (ans + v[i])/2\nprint(ans)']
['Wrong Answer', 'Accepted']
['s997712623', 's842385933']
[2940.0, 2940.0]
[17.0, 17.0]
[146, 137]
p02935
u320122168
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['import heapq\nN = int(input())\nV = list(map(int, input().split()))\n \nheapq.heapfy(V)\nfor i in range(N-2):\n heapq.heappush((heapq.heappop(V)+heapq.heappop(V))/2)\nprint(sum(V)/2)\n ', 'import heapq\nN = input()\nV = input().split()\n\nheapq.heapfy(V)\nfor i in range(N-2):\n heapq.heappush((heapq.heappop(V)+hea...
['Runtime Error', 'Runtime Error', 'Accepted']
['s185754679', 's739228729', 's756401436']
[3060.0, 3060.0, 3060.0]
[18.0, 18.0, 18.0]
[179, 157, 180]
p02935
u327532412
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\n*V, = map(int, input().split())\nV.sort()\nans = V[0]\nfor i in range(1, N):\n ans = mix(ans,V[i])\nprint(ans)', 'def mix(x, y):\n return (x + y) / 2\n \nN = int(input())\n*V, = map(int, input().split())\nV.sort()\nans = V[0]\nfor i in range(1, N):\n ans = mix(ans,V[i])\nprint(ans)']
['Runtime Error', 'Accepted']
['s757317371', 's945900508']
[2940.0, 3060.0]
[18.0, 17.0]
[125, 168]
p02935
u329407311
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\n\nList = list(map(int,input().split()))\nList.sort()\nans = 0\n\nfor i in range(N):\n a = List[i]/2**(N-i)\n if i == 0:\n a = a*2\n ans = a + ans\n \nprint(int(ans))', 'N = int(input())\n\nList = list(map(int,input().split()))\nList.sort()\nans = 0\n\nfor i in range(N):\n a = List[i]/2**(N-i...
['Wrong Answer', 'Accepted']
['s247267856', 's805918560']
[3060.0, 3060.0]
[17.0, 17.0]
[178, 173]
p02935
u330799501
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['a = int(input())\nLists = sorted(list(map(int, input().split())))\nprint(Lists)\n\nans = Lists[0]\n\nfor i in range(1,a):\n ans += Lists[i]\n ans /= 2\n\nprint(ans)\n', 'a = int(input())\nLists = list(map(int, input().split()))\n\nma = []\n\nfor j in range(a):\n test = Lists.pop(0)\n for i in Lists:\n ...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s026410646', 's093934735', 's121631578']
[2940.0, 20908.0, 2940.0]
[17.0, 151.0, 17.0]
[161, 270, 148]
p02935
u334928930
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N=int(input())\nvalues=[int(input()) for i in range(N)]\nvalues.sort()\nret=0\nfor i in values:\n ret=(i+ret)*0.5\nprint(ret)', 'N=int(input())\nvalues=[int(thing) for thing in input().split(" ")]\nvalues.sort()\nret=0\nfor i in values:\n if ret!=0:\n ret=(i+ret)*0.5\n else:\n ret=i\nprint(ret)...
['Runtime Error', 'Accepted']
['s566040777', 's180222833']
[2940.0, 2940.0]
[19.0, 17.0]
[122, 177]
p02935
u335406314
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N,*V=map(int,open(0).read().split())\nA=sorted(V)\nfor n in range(N-1):\n print(A)\n A=sorted([(A[0]+A[1])/2,]+A[2:])\nprint(A[0])', 'N,*V=map(int,open(0).read().split())\nA=sorted(V)\nfor n in range(N-1):\n A=sorted([(A[0]+A[1])/2,]+A[2:])\nprint(A[0])']
['Wrong Answer', 'Accepted']
['s393312885', 's605470881']
[9160.0, 9072.0]
[27.0, 27.0]
[131, 118]
p02935
u337573893
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n = int(input())\n\ns = list(map(int, input().split()))\n\ns.sort()\n\nv = 0\n\nprint(s)\n\nif n == 1:\n print(s[0])\n exit()\nelif n == 2:\n print((s[0]+s[1])/2)\n exit()\n\nc = (s[0]+s[1])/2\n\ndel s[0]\ndel s[0]\n\nprint(c)\nprint(s)\n\nfor i in range(n-2):\n c = (c + s[0])/2\n del s[0]\n print(c)\n \nprin...
['Wrong Answer', 'Accepted']
['s965806451', 's366978040']
[9172.0, 9180.0]
[30.0, 27.0]
[292, 255]
p02935
u337820403
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\na = map(int, input().split())\n\nsorted_list = sorted(a)\nprint(sorted_list)\nnum = 0\nlast_sum = 0\nfor i in range(N):\n if len(sorted_list) == 1:\n last_sum = (sorted_list[num] + last_sum) / 2\n break\n x = sorted_list[num]\n y = sorted_list[num+1]\n z = (x + y) / 2\n ...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s074226724', 's292402242', 's296672706', 's635297960', 's708030925', 's702554814']
[3064.0, 3188.0, 3064.0, 3064.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[384, 243, 282, 444, 444, 134]
p02935
u340520934
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nA = list(map(float,input().split()))\ntmp = 0\nA.sorted()\ntmp = A[0]\nfor i in range(1,N):\n tmp = (tmp+A[i])/2\nprint(tmp)\n', 'N = int(input())\nA = list(map(float,input().split()))\nA.sort()\ntmp = A[0]\nfor i in range(1,N):\n tmp = (tmp+A[i])/2\nprint(tmp)']
['Runtime Error', 'Accepted']
['s111891701', 's909498426']
[3064.0, 3060.0]
[18.0, 17.0]
[139, 128]
p02935
u341267151
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['n=int(input())\nv=sorted(list(map(int, input().split())))\ns=v[0]/(2**(n-1))\nfor i in range(1,n):\n s+=v[n]/(2**(n-i))\nprint(s)', 'n=int(input())\nv=sorted(list(map(int, input().split())))\ns=v[0]/(2**(n-1))\nfor i in range(1,n):\n s+=v[i]/(2**(n-i))\nprint(s)\n']
['Runtime Error', 'Accepted']
['s523197212', 's712632987']
[2940.0, 2940.0]
[17.0, 17.0]
[126, 127]
p02935
u344888046
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nv = list(map(int, input().split()))\n\nv.sort()\nans = 0\n\nfor i in range(N - 1):\n v1 = v.pop(0)\n v2 = v.pop(0)\n vv = (v1 + v2) / 2\n v.insert(0, vv)\nprint(int(v[0]))', 'N = int(input())\nv = list(map(int, input().split()))\n\nv.sort()\nans = 0\n\nfor i in range(N - 1):\n v1 = v....
['Wrong Answer', 'Accepted']
['s370022095', 's661169278']
[9092.0, 9044.0]
[33.0, 26.0]
[190, 185]
p02935
u352402050
2,000
1,048,576
You have a pot and N ingredients. Each ingredient has a real number parameter called _value_ , and the value of the i-th ingredient (1 \leq i \leq N) is v_i. When you put two ingredients in the pot, they will vanish and result in the formation of a new ingredient. The value of the new ingredient will be (x + y) / 2 wh...
['N = int(input())\nv = input().split()\n\nv.sort()\n\ni = 0\nwhile i <= N-2:\n v[i+1]=(int(v[i])+int(v[i+1]))/2\n i += 1\n \n\nprint(int(v[-1]))', 'N = int(input())\nv = input().split()\nv.sort(key=float)\n\ni = 0\nwhile i <= N-2:\n v[i+1]=(float(v[i])+float(v[i+1]))/2\n i += 1\n \n\nprint(v[i])\n']
['Wrong Answer', 'Accepted']
['s124106318', 's204451206']
[3060.0, 2940.0]
[17.0, 17.0]
[135, 142]