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
u354467025
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()))\nprint(Vn)\nsorted_Vn = sorted(Vn)\naverage = sorted_Vn[0]\nfor i in range(1,N):\n average = (average + sorted_Vn[i])/2\n \nprint(average)', 'N = int(input())\nVn = list(map(int, input().split()))\nsorted_Vn = sorted(Vn)\naverage = sorted_Vn[0]\nfor i in ra...
['Wrong Answer', 'Accepted']
['s936172262', 's525756384']
[3060.0, 2940.0]
[17.0, 17.0]
[191, 181]
p02935
u358254559
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 = list(map(int, input().split()))\n\n\nimport heapq\n\nheapq.heapify(V_list)\n\n\nfor i in range(N-1):\n v1=heapq.heappop(V_list)\n v2=heapq.heappop(V_list)\n new_v = (v1+v2)/2\n heapq.heappush(V_list,new_v)\n\n\n\n\n\nprint(V_list[0])\n~', 'N = int(input())\nV_lis...
['Runtime Error', 'Accepted']
['s464141312', 's749857493']
[2940.0, 3060.0]
[17.0, 18.0]
[271, 269]
p02935
u361826811
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\nimport itertools\n\n# import numpy as np\n\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\n\nN, *H = map(int, read().split())\ncnt = 1\n\nH.sort()\n\nans = H[0]\nprint(H)\nfor i in H[1:]:\n print(ans, cnt)\n\n ans += cnt * i\n cnt *= 2\...
['Wrong Answer', 'Accepted']
['s979334251', 's229861123']
[3060.0, 3060.0]
[18.0, 17.0]
[335, 295]
p02935
u365156087
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 i in range(1,N):\n value=(value+v[i])/2\n print(value)\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)']
['Wrong Answer', 'Accepted']
['s425004234', 's726347043']
[9056.0, 9080.0]
[26.0, 27.0]
[138, 119]
p02935
u367147039
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())\nv1=map(int,input().split())\nv=list(v1)\nfor i in range(n):\n for j in range(i+1,n):\n if v[i]>v[j]:\n a=v[i]\n v[i]=v[j]\n v[j]=a\nfor l in range(n-1):\n a=(v[0]+v[1])/2\n v=a+v[2,n-l]\nprint(v[0])\n', 'n=int(input())\nv1=map(int,input().split())\nv=li...
['Runtime Error', 'Runtime Error', 'Accepted']
['s012385213', 's127054502', 's486281293']
[3060.0, 3064.0, 3064.0]
[19.0, 18.0, 17.0]
[252, 320, 355]
p02935
u368270116
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(key=int)\nfor i in range(n-1):\n z=(v[i]+v[i+1])/2\n v[i]=z\n v[i+1]=z\nprint(v[n])', 'n=int(input())\nv=list(map(int,input().split()))\nv.sort(key=int)\nfor i in range(n-1):\n z=(v[i]+v[i+1])/2\n v[i]=z\n v[i+1]=z\nprint(v[n-1])\n']
['Runtime Error', 'Accepted']
['s138030878', 's293113357']
[9108.0, 9024.0]
[23.0, 26.0]
[136, 139]
p02935
u371132735
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 = list(map(int,input().split()))\nA = sorted(A)\nans = 0\nfor i in range(N):\n if i == 0:\n ans += (A[i]+A[i+1])/2\n print(ans)\n elif i<N-1:\n ans = (ans+A[i+1])/2\nprint(ans)\n', '\nN = int(input())\n\nA = list(map(int,input().split()))\nA = sorted(A)\nans = 0\nfor...
['Wrong Answer', 'Accepted']
['s941078141', 's632165856']
[3060.0, 2940.0]
[17.0, 17.0]
[216, 197]
p02935
u371530330
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\nw = sorted(v)\nans = [] \n\nfor i in range(1,n):\n ans.append(0)\n\nfor i in range(1,n):\n ans[i-1] = (w[i]+w[i-1])/2\n w[i] = ans[i-1]\n\nprint(ans[-1])', 'n = int(input())\na = list(map(int,input().split()))\na.sort()\nnow = a[0]\nfor i in range(1,n):\n now...
['Runtime Error', 'Accepted']
['s853335912', 's160926169']
[2940.0, 2940.0]
[17.0, 17.0]
[198, 130]
p02935
u372102441
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#s = input()\n#S = []\n\nS = input().split(" ")\nfor i in range(N):\n S[i] = int(S[i])\nfor i in range(N):\n S[i+1] = (int(S[i])+int(S[i+1])) / 2\nprint(S[N-1])\n\n\n', '\nN = int(input())\n#s = input()\n#S = []\n\nS = input().split(" ")\nfor i in range(N):\n S[i] = float(S[i])\nS.sort()\...
['Runtime Error', 'Accepted']
['s577373645', 's253514667']
[2940.0, 2940.0]
[17.0, 17.0]
[198, 215]
p02935
u379716238
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\nN = int(input())\nv = list(map(int, input().split()))\n\nheapq.heapify(v)\n\nres = 0\nfor _ in range(int(N/2)+1):\n a = heapq.heappop(v)\n b = heapq.heappop(v)\n res = (a+b)/2\n heapq.heappush(v, res)\n \nprint(res)', 'import heapq\n\nN = int(input())\nv = list(map(int, input().split()))\n\nhea...
['Runtime Error', 'Accepted']
['s921138329', 's241321841']
[3060.0, 3060.0]
[18.0, 18.0]
[224, 217]
p02935
u381585104
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 = list(map(int,input().split()))\n\narr.sort()\n\nprev = arr[0]\n\nfor i in range(n-1)\n prev = (prev+arr[i+1])/2\n \nprint(prev)\n\n', 'n = int(input())\narr = list(map(int,input().split()))\n\narr.sort()\n\nprev = arr[0]\n\nfor i in range(n-1):\n prev = (prev+arr[i+1])/2\n \nprint(prev)\n\...
['Runtime Error', 'Accepted']
['s311281784', 's837689017']
[2940.0, 2940.0]
[17.0, 17.0]
[145, 146]
p02935
u382192348
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\nn = int(input())\n\na = list(map(int,input().split())) \n\na.sort()\n\nfor k in range(n-1):\n b=(a[0]+a[1])/2\n a.append(b)\n a.pop(0)\n a.pop(0)\n a.sort\n\nA =a[0]\nprint(int(A))', '# coding: utf-8\nn = int(input())\n\na = list(map(float,input().split())) \n\na.sort()\n\nfor k in ran...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s547627134', 's899146230', 's299964300']
[3060.0, 3060.0, 3316.0]
[17.0, 18.0, 23.0]
[197, 209, 196]
p02935
u382423941
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 *\n\nn = int(input())\nv = list(map(int, input().split()))\n\nh = []\nfor i in range(n):\n heappush(h, v[i])\n\nfor i in range(n-1):\n x, y = heappop(h), heappop(h)\n heappush(h, (x + y) / 2)\n\nprint(h[0]//1)', 'from heapq import *\n\nn = int(input())\nv = list(map(int, input().split()))\n...
['Wrong Answer', 'Accepted']
['s833861623', 's409478612']
[3060.0, 3060.0]
[18.0, 18.0]
[223, 220]
p02935
u388323466
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 = list(map(int,input().split()))\n\narr.sort()\n\nfor i in range(len(arr)-1):\n arr[i+1] = (arr[i]+arr[i+1])/2\n\nprint(int(arr[-1]))', 'n = int(input())\narr = list(map(int,input().split()))\n\narr.sort()\n\nfor i in range(len(arr)-1):\n arr[i+1] = (arr[i]+arr[i+1])/2\n\nprint(arr[-1])']
['Wrong Answer', 'Accepted']
['s725915582', 's842297495']
[3060.0, 3060.0]
[17.0, 19.0]
[150, 145]
p02935
u390694622
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())\nheap.heapify(a)\nfor i in range(N-1):\n x = heap.heappop(a)\n y = heap.heappop(a)\n z = (x+y)/2\n heap.heappush(a,z)\nanswer = heap.heappop(a)\nprint(answer)', 'N = int(input())\na = list(map(int,input().split()))\nimport heapq\nheapq.heapify(a)\nfor i in range(N-1)...
['Runtime Error', 'Accepted']
['s803464122', 's689854954']
[3060.0, 3060.0]
[17.0, 18.0]
[200, 224]
p02935
u391675400
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()))) \nsum_now = 0\nsum_old = 0\nv.sort()\nprint(v)\n\ntmp = v[0]\nfor i in range(1,n):\n tmp = ((tmp + v[i]) /2) \nprint(tmp)', 'n = int(input()) \nv = list(map(int,(input().split()))) \nsum_now = 0\nsum_old = 0\nv.sort()\n\ntmp = v[0]\nfor i in range(1,n):\n ...
['Wrong Answer', 'Accepted']
['s281421925', 's692493952']
[3060.0, 3064.0]
[18.0, 17.0]
[209, 179]
p02935
u394721319
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(zz) for zz in input().split()]\n\nV.sort()\nans = V[0]+V[1]\nfor i in range(2,N):\n ans += V[i]*(2**(i-1))\nprint(ans//(2**(N-1)))\n', 'N = int(input())\nV = [int(zz) for zz in input().split()]\n\nV.sort()\nans = V[0]+V[1]\nfor i in range(2,N):\n ans += V[i]*(2**(i-1))\nans = ans/(2**...
['Wrong Answer', 'Accepted']
['s426948289', 's651493241']
[2940.0, 3060.0]
[17.0, 17.0]
[154, 214]
p02935
u394950523
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\nC = sorted(V)\nprint(C)\nans = 0\n\na = C[0]\nfor i in range(1, N):\n a = (a + C[i]) / 2\nans = max(ans, a)\nprint(ans)', 'N = int(input())\nV = list(map(int, input().split()))\n\nC = sorted(V)\n\nans = 0\na = C[0]\nfor i in range(1, N):\n a = (a + C[i]) ...
['Wrong Answer', 'Accepted']
['s976739615', 's599658024']
[3060.0, 3060.0]
[17.0, 17.0]
[168, 159]
p02935
u399337080
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())\nlists = list(map(int,input().split()))\n\nlists.sort()\n\nfor i in range(n - 1):\n lists.insert(0, (lists.pop(0) + lists.pop(0))/2)\n\nprint(int(lists[0]))\n', 'n = int(input())\nlists = list(map(int,input().split()))\n\nlists.sort()\n\nfor i in range(n - 1):\n lists.insert(0, (lists.pop(0) + ...
['Wrong Answer', 'Accepted']
['s986390062', 's513679025']
[2940.0, 2940.0]
[17.0, 17.0]
[169, 164]
p02935
u401731473
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...
['values = [int(x) for x in input().split()]\n\ncombined_value = values[0]\nsliced_values = values[1:]\nfor value in sliced_values:\n combined_value = (combined_value + value) / 2\n\nprint(round(combined_value, 5))', 'N = int(input())\nvalues = [int(x) for x in input().split()]\n\ncombined_value = 0\nfor value in valu...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s125484059', 's375215015', 's705281897', 's881612923', 's750974770']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0, 17.0]
[206, 181, 196, 204, 231]
p02935
u402327305
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 = sorted(map(int, input().split(" ")), reverse=True)\n\nr = [v * (0.5 ** i) for i, v in enumerate(vs)]\n\nreturn sum(r)', 'N = int(input())\nvs = sorted(map(int, input().split(" ")), reverse=True)\n \nr = [v * (0.5 ** (i + 1)) for i, v in enumerate(vs)]\nr [-1] = r[-1] * 2\nprint(sum(r))']
['Runtime Error', 'Accepted']
['s859088690', 's344643702']
[2940.0, 3060.0]
[17.0, 17.0]
[135, 160]
p02935
u407372398
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())\nu = list(map(int, input().split()))\n\nfor i in range(N-1):\n a = u.pop(u.index(min(u)))\n b = u.pop(u.index(min(u)))\n u.append((a + b) / 2)\n\nprint(u)', 'N = int(input())\nu = list(map(int, input().split()))\n\nfor i in range(N-1):\n a = u.pop(u.index(min(u)))\n b = u.pop(u.index(min(u)))\n ...
['Wrong Answer', 'Accepted']
['s406131325', 's139540701']
[2940.0, 3060.0]
[17.0, 17.0]
[166, 169]
p02935
u408262366
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())\nhoge = input().split()\nv = []\nfor i in range(N):\n v.append(int(hoge[i]))\n\n_v = sorted(v, reverse=True)\n\ngu = _v.pop(N-1)\nif N == 2:\n print((_v[0]+_v[1])/2)\nelse:\n for i in range(N-2,-1,-1):\n gu = (gu + _v.pop(i))/2\n print(gu)', 'N = int(input())\nhoge = input().split()\nv = []\nf...
['Runtime Error', 'Accepted']
['s588439407', 's118617680']
[3064.0, 3064.0]
[17.0, 17.0]
[249, 246]
p02935
u411858517
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 V.sort()\n tmp = (V.pop(0) + V.pop(0)) / 2\n V.append(tmp)\n print(V)\n\nprint(V[0])\n', 'N = int(input())\nV = list(map(int, input().split()))\n\nfor i in range(N-1):\n V.sort()\n tmp = (V.pop(0) + V.pop(0)) / 2\n V....
['Wrong Answer', 'Accepted']
['s480565928', 's220186367']
[3060.0, 2940.0]
[18.0, 18.0]
[168, 155]
p02935
u415866884
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 = list(map(int, input().strip().split()))\ntotal = 0\nvalues.sort()\nstep = 0\nprint(values)\nwhile len(values) > 1:\n new = (values[step] + values[step + 1]) / 2\n del values[0]\n del values[0]\n values = [new] + values\n print(values)\nprint(values[0])', 'N = int(input())\nva...
['Wrong Answer', 'Accepted']
['s038428934', 's126596085']
[3064.0, 3060.0]
[17.0, 17.0]
[282, 284]
p02935
u417014669
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())\ns=list(map(int, input().split()))\ns.sort()\nans=0\nfor i in range(N-1):\n if i==0:\n ans=s[0]\n else:\n ans=((ans+s[i])/2)\nprint(ans)', 'N-int(input())\ns=list(map(int, input().split()))\nans=0\nfor i in range(N-1):\n if i==0:\n ans=s[0]\n else:\n ans=((ans+s[...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s094683796', 's502692349', 's677706572', 's980754539', 's634799102']
[2940.0, 2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 18.0, 17.0, 17.0]
[162, 153, 153, 163, 123]
p02935
u417063616
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()))\nb.sort()\nwhile len(b)>1:\n c = (b[0]+b[1])/2\n del b[:2]\n b.insert(0,c)\n b.sort()\nprint(int(b[0]))', 'a=int(input())\nb=list(map(int,input().split()))\nb.sort()\nwhile len(b)>1:\n c = (b[0]+b[1])/2\n del b[:2]\n b.insert(0,c)\n b.sort()\npr...
['Wrong Answer', 'Accepted']
['s030958036', 's875847222']
[3060.0, 3060.0]
[17.0, 17.0]
[156, 151]
p02935
u417794477
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 = list(map(int, input().split()))\n\nlist.sort()\nprint(list)\nnum = list[0]\nfor i in range(0, N):\n num = (num + list[i]) / 2\nprint(num)', 'N = int(input())\nlist = list(map(int, input().split()))\n\nlist.sort()\nnum = list[0]\nfor i in range(0, N):\n num = (num + list[i]) / 2\nprint(n...
['Wrong Answer', 'Accepted']
['s061042556', 's051996697']
[3060.0, 3060.0]
[17.0, 17.0]
[157, 145]
p02935
u422673384
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())).sort()\n\nsumV = vn[0]\n\nfor v in vn[1:]:\n sumV = (sumV + v)/2\nprint(sumV)', 'n = int(input())\nvn = list(map(int, input().split()))\n\nvn.sort()\nsumV = vn[0]\n\nfor v in vn[1:]:\n sumV = (sumV + v)/2\nprint(sumV)']
['Runtime Error', 'Accepted']
['s869093452', 's167497033']
[2940.0, 3060.0]
[18.0, 17.0]
[128, 131]
p02935
u425900376
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()\nans = v[0]\nprint(v)\nfor i in range(1, len(v)):\n ans = (ans + v[i]) / 2\nprint(ans)\n', 'n = int(input())\nv = [int(i) for i in input().split()]\nv.sort()\nans = v[0]\nfor i in range(2, len(v)):\n ans = (ans + v[i]) / 2\nprint(ans)\n', 'n = in...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s227872517', 's398629640', 's838620801']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[149, 140, 153]
p02935
u433380437
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())\nT = list(map(int,input().split()))\nS = 0\nfor i in range(len(T)):\n list.sort(T, reverse=False)\n S = (T[0]+T[1])/2\n print(T[0])\n print(T[1])\n T.append(S) \n T.pop(0)\n T.pop(0)\n print(T)\n if len(T) ==1:break\n ', 'N = int(input())\nT = list(map(int,input().spl...
['Wrong Answer', 'Accepted']
['s529522160', 's605025127']
[9172.0, 9032.0]
[26.0, 29.0]
[255, 222]
p02935
u439312138
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())\nn_list = list(map(int,input().split()))\n\nn_list.sort()\n\nnew_list = []\nctr = 0\n\nwhile len(n_list) > 1:\n n_list[ctr] = (n_list[ctr] + n_list[ctr+1])/2\n n_list.pop(ctr + 1)\n n_list.sort\n \nprint(n_list)', 'ソースコード\n[0]\n1\nN = int(input())\n2\nn_list = list(map(int,input().split()))\n3\n\...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s718102690', 's962187629', 's645173893']
[3064.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[219, 285, 222]
p02935
u440161695
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)\nans=V[0]\nfor i in range(1,N-1):\n ans=(ans+V[i])/2\nprint(ans)', 'N=int(input())\nA=sorted(list(map(int,input().split())))\nans=A[0]\nfor i in range(1,N):\n ans=(ans+A[i])/2\nprint(ans)']
['Wrong Answer', 'Accepted']
['s651043898', 's274547655']
[2940.0, 3060.0]
[17.0, 17.0]
[121, 115]
p02935
u442877951
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(0,100,2):\n v.append((v[i]+v[i+1])/2)\n v[i] = v[i+1] = 0\n v.sort()\n print(v)\n if v[-2] == 0:\n break\nprint(v[-1])\n', 'N = int(input())\nv = list(map(float,input().split()))\nv.sort()\nfor i in range(0,100,2):\n v.append((v...
['Wrong Answer', 'Accepted']
['s287816220', 's021195226']
[3060.0, 2940.0]
[20.0, 17.0]
[198, 187]
p02935
u448505472
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 = sorted(v)\n\nout = 0\nfor i in range(N-1):\n out += v_sorted[i]*(1/2)^(N-1-i)\n\nprint(out+v_sorted[-1]*(1/2))', 'N = int(input())\nv = list(map(int, input().split()))\n\nv_s = sorted(v)\n\nout = 0\nfor i in range(N):\n if i == 0:\n out += v_s[i...
['Runtime Error', 'Accepted']
['s591716004', 's379859113']
[3060.0, 3060.0]
[17.0, 17.0]
[170, 198]
p02935
u450288159
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(' '))))\n\nprint(v)\n\nsum = v.pop(0)\nfor i in v:\n sum += i\n sum = sum/2\n\nprint(sum)", "n = int(input())\nv = sorted(list(map(int, input().split(' '))))\n\nsum = v.pop(0)\nfor i in v:\n sum += i\n sum = sum/2\n\nprint(sum)"]
['Wrong Answer', 'Accepted']
['s868025940', 's361426642']
[2940.0, 2940.0]
[18.0, 17.0]
[142, 132]
p02935
u453623947
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\nv = list(map(int,input().split()))\n\nv.sort(reverse = True)\n\nwhile len(v) > 1 :\n v.append((v.pop(-1) + v.pop(-2))/2)\n v.sort(reverse = True)\n\nprint(v)\n', 'n = int(input())\n\nv = list(map(int,input().split()))\n\nv.sort(reverse = True)\n\nwhile len(v) > 1 :\n v.append((v.pop(-1) +...
['Runtime Error', 'Accepted']
['s083090982', 's557195125']
[8956.0, 9076.0]
[24.0, 26.0]
[174, 177]
p02935
u453642820
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]\nfor i in range(1,n):\n ans=(ans+v[i])//2\nprint(ans)', 'n=int(input())\nv=sorted(list(map(int,input().split())))\nans=v[0]\nfor i in range(n-1):\n ans=(ans+v[i+1])//2\nprint(ans)', 'n=int(input())\nv=sorted(list(map(int,input().split())))\nans=...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s043299611', 's116962045', 's371844931']
[2940.0, 2940.0, 3064.0]
[17.0, 17.0, 23.0]
[118, 120, 119]
p02935
u459590249
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()\nsum=v[0]\nfor i in range(1,len(v))\n\tsum=(sum+v[i])/2\nprint(sum)', 'n=int(input())\nv=list(map(int, input().split()))\nv.sort()\nsum=v[0]\nfor i in range(1,len(v)):\n\tsum=(sum+v[i])/2\nprint(sum)']
['Runtime Error', 'Accepted']
['s139720487', 's041853481']
[2940.0, 2940.0]
[17.0, 17.0]
[120, 121]
p02935
u459798349
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=[int(o) for o in input().split()]\nans=0\n\nA.sort()\nprint(A)\n\nans=A[0]\nfor i in range(1,n):\n ans=(ans+A[i])/2\nprint(ans)', 'n=int(input())\nA=[int(o) for o in input().split()]\nans=0\n\nA.sort()\n\nans=A[0]\nfor i in range(1,n):\n ans=(ans+A[i])/2\nprint(ans)']
['Wrong Answer', 'Accepted']
['s035077052', 's451834908']
[3060.0, 3060.0]
[19.0, 18.0]
[138, 129]
p02935
u461454424
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\nv = list(map(int, input().split()))\n\nv = sorted(v, reverse = False)\n\nsum = v[0] / 2**(N-1)\nfor i in range(1, N):\n sum += v[i]/2**(N-i)\n\npprint(sum)', 'N = int(input())\n\nv = list(map(int, input().split()))\n\nv = sorted(v, reverse = False)\n\nsum = v[0] / pow(2, N-1)\nfor i in range(1,...
['Runtime Error', 'Accepted']
['s135074604', 's611595151']
[3060.0, 3064.0]
[17.0, 18.0]
[168, 178]
p02935
u478132434
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_s = sorted(v)\n\nfor i in range(len(v_s)-1):\n v_s[i+1] = (v_s[i] + v_s[i+1]) / 2\n v_s[i] = 0\n\nsum(v_s)', 'n = int(input())\nv = list(map(int, input().split()))\n\nv_s = sorted(v)\n\nfor i in range(len(v_s)-1):\n v_s[i+1] = (v_s[i] + v_s[i+1]) / 2...
['Wrong Answer', 'Accepted']
['s054981081', 's788181360']
[2940.0, 3060.0]
[17.0, 17.0]
[162, 169]
p02935
u485673106
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()))', 'v = []\nN = int(input())\nv = list(map(int, input().split()))\nv.sort()\nfor i in range(N):\n v[i] = (v[i-1]+v[i])/2\nprint(v[N-1])', 'N = int(input())\nv = list(map(int,input().split()))\nv.sort()\nfor i in range(N-1):\n\tv[i+1] = (v[i] + v[i+1])/2\nprint(v[N]...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s063338249', 's375687543', 's529376200', 's882682523']
[2940.0, 3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[51, 126, 121, 123]
p02935
u489959379
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)\nfor _ in range(n-1):\n a = v.pop(0)\n b = v.pop(0)\n c = (a + b) / 2\n v.append(c)\n v.sort()\n\nprint(*v)\n', 'n = int(input())\nv = sorted(list(map(int, input().split())))\n\nfor _ in range(n-1):\n a = v.pop(0)\n b = v.pop...
['Wrong Answer', 'Accepted']
['s861067192', 's119693569']
[2940.0, 3060.0]
[17.0, 17.0]
[185, 176]
p02935
u491762407
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_list = sorted(v)\nfor i in range(n-1):\n a = (v_list[0]+v_list[1])/2\n v_list.append(a)\n v_list = sorted(v_list)\n del(v_list[0])\n del(v_list[1])\n\n \nprint(v_list)', 'n = int(input())\nv = list(map(float,input().split()))\nv_list = sorted...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s161831840', 's337015816', 's695944876']
[3060.0, 3060.0, 2940.0]
[18.0, 17.0, 18.0]
[232, 232, 238]
p02935
u493491792
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())\nlista=list(map(int,input().split()))\nlista=sorted(lista)\nfor i in range(n-1):\n lista.append((lista[i]+lista[i+1])/2)\n lista.pop(i+1)\n lista.pop(i)\nprint(lista)', 'n=int(input())\nlista=list(map(int,input().split()))\nlista.sort()\n \nfor i in range(n-1):\n lista.a...
['Runtime Error', 'Accepted']
['s752959351', 's752350518']
[12484.0, 3060.0]
[150.0, 18.0]
[202, 199]
p02935
u494871759
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)\nprint(v)\n\nans = v[0]\nfor k in range(1,N):\n ans = (ans+v[k])/2.\n\nprint(ans)\n', 'N = int(input())\nv = list(map(int,input().split()))\nv = sorted(v)\n# print(v)\n\nans = v[0]\nfor k in range(1,N):\n ans = (ans+v[k])/2.\n\nprint(ans)\n\n']
['Wrong Answer', 'Accepted']
['s390938407', 's447550313']
[3068.0, 2940.0]
[17.0, 17.0]
[144, 147]
p02935
u498066729
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()\nv=[]\nfor i in range(n):\n v.append(input())\nv.sort()\ns=0\nwhile(len(v)>1):\n v0=v.pop(0)\n v1=v.pop(0)\n v.append((v0+v1)/2)\n v.sort()\nprint(v[0])', 'n=int(input())\nv=list(map(int, input().split()))\nv.sort()\ns=0\nwhile(len(v)>1):\n v0=v.pop(0)\n v1=v.pop(0)\n v.append((v0+v1)/...
['Runtime Error', 'Accepted']
['s322378495', 's633236195']
[3060.0, 3188.0]
[17.0, 18.0]
[164, 159]
p02935
u503476415
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 = sorted(v)\naverage = 0\n\nfor i in range(N - 1):\n v_sorted[i + 1] = (v_sorted[i] + v_sorted[i + 1]) / 2\n print(v_sorted, average)\n\nprint(v_sorted[-1])\n', 'N = int(input())\nv = list(map(int, input().split()))\n\nv_sorted = sorted(v)\navera...
['Wrong Answer', 'Accepted']
['s991266675', 's768061337']
[3060.0, 2940.0]
[18.0, 17.0]
[219, 190]
p02935
u506858457
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())\nL=list(map(int,input().split()))\nLR=sorted(L,reverse=True)\nans=0\nfor i range(N-1):\n ans=(L[i]+L[i+1])/2\nprint(ans)\n ', 'N=int(input())\nL=list(map(int,input().split()))\nLR=sorted(L)\nans=LR[0]\nfor i in range(N-1):\n ans=(ans+LR[i+1])/2\nprint(ans)']
['Runtime Error', 'Accepted']
['s548965114', 's675086156']
[2940.0, 2940.0]
[18.0, 17.0]
[133, 124]
p02935
u507456172
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()\nfor i in range(N-1):\n A=(v[0]+v[1])/2\n del v[0]\n del v[0]\n v.insert(0,A)\n \nprint(v)', 'N=int(input())\nv=list(map(int,input().split()))\n\nv.sort()\nfor i in range(N-1):\n A=(v[0]+v[1])/2\n del v[0]\n del v[0]\n v.insert(0,A)\n \nprint(v[0]...
['Wrong Answer', 'Accepted']
['s421065524', 's320508186']
[9176.0, 9148.0]
[29.0, 30.0]
[146, 149]
p02935
u510495920
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= [int(s) for s in input().split()]\nb=sorted(b)\n\nt = (b[0] + b[1])/2\nfor i in range(a-2):\n k = (t + b[i+2])/2\n t=k\n \nprint(k)\n', 'a = int(input())\nb= [int(s) for s in input().split()]\nb=sorted(b)\n\nt = (b[0] + b[1])/2\n\nif a!=2:\n\tfor i in range(a-2):\n \t\tk = (t + b[i+2])/2\n \...
['Runtime Error', 'Accepted']
['s147862560', 's688685871']
[2940.0, 2940.0]
[18.0, 17.0]
[147, 160]
p02935
u511117735
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...
['#AtCoder\n\nimport sys\nimport math\nimport itertools\n\nN = int(input())\nV = sorted(list(map(int, input().split())))\nprint(V)\n\nwhile len(V) != 1:\n\tV[1] = (V[0]+V[1])/2\n\tV.pop(0)\n\nprint(V[0])\n\n\n"""\n\n"""\n', '#AtCoder\n\nimport sys\nimport math\nimport itertools\n\nN = int(input())\nV = sorted(list(map(...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s439835385', 's683562979', 's555389922']
[3060.0, 3060.0, 3060.0]
[18.0, 17.0, 17.0]
[197, 197, 188]
p02935
u514383727
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()\n\nans = (V[0] + V[1]) / 2\nfor i in range(2, len(V) - 1)::\n ans = (ans + V[i]) / 2\nprint(ans)\n ', 'N = int(input())\nV = list(map(int, input().split()))\nV.sort()\n\nans = (V[0] + V[1]) / 2\nfor i in range(2, len(V)):\n ans = (ans + V[i]) / ...
['Runtime Error', 'Accepted']
['s961478260', 's063394731']
[2940.0, 2940.0]
[17.0, 18.0]
[161, 154]
p02935
u514894322
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*l, = map(int,input().split())\nl = l.sort()\nans=l[0]\nfor i in l:\n ans = ans/2 + i/2\nprint(ans)', 'n = int(input())\n*l, = map(int,input().split())\nl.sort()\nans=l[0]\nfor i in l:\n ans = ans/2 + i/2\nprint(ans)']
['Runtime Error', 'Accepted']
['s983622099', 's718322274']
[2940.0, 2940.0]
[17.0, 17.0]
[112, 108]
p02935
u516554284
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=list(map(int,input().split()))\nb=a.sorted\nc=(b[0]+b[1])/2\nfor i in range(3,n+1):\n c=(c+b[i])/2\nprint(c)', 'n=int(input())\na=list(map(int,input().split()))\nb=sorted(a)\nc=(b[0]+b[1])/2\nfor i in range(2,n):\n c=(c+b[i])/2\nprint(c)\n\n']
['Runtime Error', 'Accepted']
['s318749978', 's578779169']
[2940.0, 2940.0]
[21.0, 17.0]
[116, 122]
p02935
u517447467
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())\nM = np.fromiter(input().split(), dtype=int)\nK = (0.5) ** np.arange(1, N+1)\nprint(np.dot(M, K))', 'import heapq\nN = int(input())\nH = list(map(int, input().split()))\nheapq.heapify(H)\nwhile len(H) >= 2:\n f = heapq.heappop(H)\n s = heapq.heappop(H)\n heapq.heappush(H, (f + ...
['Wrong Answer', 'Accepted']
['s833591220', 's101980784']
[12392.0, 3060.0]
[148.0, 18.0]
[130, 193]
p02935
u519906559
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\nres = v[0]\n\nfor i in range(i,N):\n res = (res + v[i]) / 2 \n\nprint(res)\n', 'N = int(input())\nv = list(map(int,input().split()))\n\nv.sort()\n\nres = v[0]\n\nfor i in range(1,N):\n res = (res + v[i]) / 2 \n\nprint(res)\n\n']
['Runtime Error', 'Accepted']
['s798557880', 's433206011']
[2940.0, 2940.0]
[17.0, 19.0]
[136, 137]
p02935
u523545435
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(input().split()))\n\nV_sorted=sorted(V)\n\nnow_value=(V_sorted[0]+V_sorted[1])/2\nfor i in range(2,N):\n now_value=(now_value+V_sorted[i])/2\n\nprint(now_value)\n\n\n \n\n \n', 'N=int(input())\nV=list(map(input().split()))\n\nV_sorted=sorted(V)\n\nnow_value=(V_sorted[0]+V_sorted[1]...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s099913485', 's145853313', 's502221205', 's998444375']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[195, 195, 195, 199]
p02935
u524870111
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 \nstdin = sys.stdin\n \nns = lambda: stdin.readline().rstrip()\nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\ns = lambda h: [list(map(int, stdin.readline().split())) for i in range(h)]\n\nn = ni()\nv = na()\nv.sort(reverse=False)\nans = v[0]\n\nfor vi in v[1:]:\n ans...
['Wrong Answer', 'Accepted']
['s465417475', 's318752745']
[3188.0, 3064.0]
[44.0, 17.0]
[338, 333]
p02935
u527261492
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=v.sort()\ncnt=(V[0]+V[1])/2\nfor i in range(2,n):\n cnt=(cnt+V[i])/2\nprint(cnt)', 'n=int(input())\nv=list(map(int,input().split()))\nv.sort()\ncnt=(v[0]+v[1])/2\nif n==2:\n print((v[0]+v[1])/2)\nelse:\n for i in range(2,n):\n cnt=(cnt+v[i])/2\n print(cnt)\n'...
['Runtime Error', 'Accepted']
['s085842800', 's954494556']
[3060.0, 2940.0]
[18.0, 17.0]
[127, 170]
p02935
u531813944
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().rstrip())\nv_lst = [int(v) for v in stdin.readline().rstrip().split()]\nv_lst.sort()\n\nwhile(len(v_lst) > 1):\n v0 = v_lst.pop(0)\n v1 = v_lst.pop(0)\n vn = (v0 + v1) / 2\n v_lst.append(vn)\n v_lst.sort()\n \nprint(int(v_lst[0]))', 'from sys import stdin\n\nN =...
['Wrong Answer', 'Accepted']
['s455165702', 's523380438']
[3060.0, 3060.0]
[17.0, 17.0]
[273, 268]
p02935
u536034761
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())\nN -= 1\nD = deque(sorted(list(map(int, input().split()))))\nans = D.popleft() / (2 ** N)\nwhile D:\n d = D.popleft()\n ans += d / (2 ** N)\n N -= 1\nprint(ans)', 'from collections import deque\nN = int(input())\nN -= 1\nD = deque(sorted(list(map(int, input().split()))))\nans = D.popleft() / (2 **...
['Runtime Error', 'Accepted']
['s974437445', 's797226559']
[2940.0, 3316.0]
[18.0, 21.0]
[172, 202]
p02935
u536177854
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()\nsum=v[0]\nfor i in range(1,len(v)):\n sum=(sum+v[i])/2\nprint(sum)', 'n=int(input())\nv=list(map(int, input().split()))\nv.sort()\nsum=v[0]\nfor i in range(1,len(v)):\n sum=(sum+v[i])/2\nprint(sum)']
['Runtime Error', 'Accepted']
['s934210365', 's871733486']
[2940.0, 2940.0]
[18.0, 17.0]
[120, 122]
p02935
u538368953
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()))\nV.sort()\n\nmean = 0\nfor i in range(len(V)):\n mean += V[i]/2.**(len(V)-i)\nprint(mean)\n', 'N = int(input())\nV = list(map(int, input().split()))\nV.sort() \n\nmean = 0\nfor i in range(len(V)):\n mean += V[i]/2.**(len(V)-i)\npri...
['Wrong Answer', 'Accepted']
['s918563784', 's489647555']
[2940.0, 2940.0]
[17.0, 17.0]
[165, 176]
p02935
u545368057
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 = sorted(list(map(int,input().split())))\nans = (vs[0]+v[1])/2\nfor v in vs[2:]:\n ans = (ans + v)/2\nprint(ans)', 'N = int(input())\nvs = sorted(list(map(int,input().split())))\nans = (vs[0]+vs[1])/2\nfor v in vs[2:]:\n ans = (ans + v)/2\nprint(ans)']
['Runtime Error', 'Accepted']
['s863921152', 's501100168']
[3060.0, 2940.0]
[18.0, 18.0]
[129, 130]
p02935
u546074985
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...
["if __name__ == '__main__':\n N = int(input())\n v = sorted(list(map(int, input().split())), reverse=True)\n while (len(v) > 1):\n pops = v[-2:]\n del v[-2:]\n ave = sum(pops) // 2\n v.append(ave)\n print(v.pop())", "if __name__ == '__main__':\n N = int(input())\n v = sort...
['Wrong Answer', 'Accepted']
['s102193018', 's844312915']
[3060.0, 3060.0]
[17.0, 17.0]
[244, 245]
p02935
u556589653
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_new = 0\nfor i in range(N-1):\n x = max(v)\n y = min(v)\n v_new = (x+y)/2\n v.append(v_new)\n v.remove(x)\n v.remove(y)\n v_new = 0\nprint(v)', 'N = int(input())\nv = list(map(int,input().split()))\nv.sort()\nfor i in range(N-1):\n S = (v...
['Wrong Answer', 'Accepted']
['s034385693', 's194572600']
[3060.0, 3060.0]
[17.0, 17.0]
[207, 180]
p02935
u558242240
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#n = 3\n#v = list(map(int, "500 300 200".split()))\nv.sort()\nans = v[0]\nfor i in range(1,3):\n ans = (v[i] + ans)/2\nprint(ans)\n\n', 'input = sys.stdin.readline\nn = int(input())\na = list(map(int, input().split()))\nprint(1.0/sum(list(map(lambda x: 1.0 / x...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s206907279', 's529677229', 's578586810', 's930111753', 's989040278', 's418838864']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0, 17.0]
[181, 128, 125, 141, 139, 131]
p02935
u572142121
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())))\nif n==2:\n print(sum(A)//2)\nelse:\n a=0\n for i in range(n-1):\n a+=(2**i)*(A[i+1])\n print((a+A[0])//(2**(n-1)))', 'n=int(input())\nA=sorted(list(map(int,input().split())))\nif n==2:\n print(sum(A)/2)\nelse:\n a=0\n for i in range(n-1):\n a+=(2*...
['Wrong Answer', 'Accepted']
['s092844014', 's078943475']
[3060.0, 3060.0]
[17.0, 17.0]
[171, 169]
p02935
u572343785
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\nsys.setrecursionlimit(10**9)\nn=int(input())\nv=[int(x) for x in input().split()]\n\nv=sorted(v)\n\ndef A(l):\n if len(l)==1:\n print(l[0])\n else:\n v_new=[]\n if len(l)%2==0:\n for i in range(0,len(l)-1,2):\n v_new.append((l[i]+l[i+1])/2)\n ...
['Wrong Answer', 'Accepted']
['s287901712', 's226786240']
[3064.0, 3316.0]
[18.0, 20.0]
[588, 295]
p02935
u572561929
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())))\nfor _ in range(n - 1):\n v[1] = (v[0] + v[1]) / 2\n v = sorted(v)[1:]\nprint(v)', 'n = int(input())\nv = sorted(list(map(int, input().split())))\nfor _ in range(n - 1):\n v[1] = (v[0] + v[1]) / 2\n v = sorted(v)[1:]\nprint(v[0])\n']
['Wrong Answer', 'Accepted']
['s422453337', 's107367269']
[2940.0, 2940.0]
[18.0, 19.0]
[143, 147]
p02935
u574464625
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()))\nc=[0]*(n)\nv.sort()\nprint(v)\nans=0\nc[0]=v[0]\nfor i in range(1,n):\n c[i]=(c[i-1]+v[i])/2\nprint(c[n-1])\n', 'n=int(input())\nv= list(map(int,input().split()))\nc=[0]*(n)\nv.sort()\n\nans=0\nc[0]=v[0]\nfor i in range(1,n):\n c[i]=(c[i-1]+v[i])/2\nprint(c[n-1...
['Wrong Answer', 'Accepted']
['s207644196', 's747207873']
[3060.0, 3060.0]
[17.0, 17.0]
[153, 145]
p02935
u580697892
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\nN = int(input())\nV = list(map(int, input().split()))\nV.sort()\nprint(V)\nans = 0\nfor i in range(N//2):\n tmp = (V[2*i] + V[2*i+1]) / 2\n if i == 0:\n ans = tmp\n else:\n ans = (ans + tmp) / 2\nif N % 2 == 1:\n ans = (ans + V[-1]) / 2\nprint(ans)', '# coding: utf-8\nN = in...
['Wrong Answer', 'Accepted']
['s286479015', 's998399723']
[3064.0, 3064.0]
[17.0, 18.0]
[277, 191]
p02935
u581040514
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 = input().split()\nv_list = [int(v_list(i)) for i in range(N)]\nv_list.sort()\nans = int(v_list[0])\nfor i in range(1, N):\n ans = (ans + int(v_list[i]))/2 \nprint(ans)', 'N = int(input())\nv_list = list(map(int, input().split()))\nv_list.sort()\nans = v_list[0]\nfor i in range(1, N):\n ...
['Runtime Error', 'Accepted']
['s629278054', 's575832827']
[3060.0, 2940.0]
[17.0, 17.0]
[189, 151]
p02935
u581094488
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\n# V.sort(reverse = True)\nV.sort()\n# print(V)\nresult = V[0]\n\nfor i in range(1, N):\n\tresult = (V[i] + result) / 2.0\n\tprint(result)\n\nprint(result)\n', 'N = int(input())\nV = list(map(int, input().split()))\n\n# V.sort(reverse = True)\nV.sort()\n# print(...
['Wrong Answer', 'Accepted']
['s079697591', 's979509019']
[3060.0, 2940.0]
[21.0, 17.0]
[198, 200]
p02935
u581603131
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())))\nfor i in range(N-1):\n a = (v[i]+v[i+1])/2\n v[i+1] = int(a)\n v[i] = 'A'\n a = 0\nprint(v[-1])", "N = int(input())\nv = sorted(list(map(int, input().split())))\nfor i in range(N-1):\n a = (v[i]+v[i+1])/2\n v[i] = 'A'\n v[i+1] = int(a...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s016055398', 's373232140', 's314840615']
[3060.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[163, 163, 126]
p02935
u583455893
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()\narr = list(map(int, input().split()))\nwhile len(arr) > 1:\n arr = sorted(arr)\n v1 = arr.pop(0)\n v2 = arr.pop(0)\n arr.appned((v1 + v2) / 2)\nprint(arr[0])', 'n = int(input())\narr = list(map(int, input().split()))\nwhile len(arr) > 1:\n arr = sorted(arr)\n v1 = arr.pop(0)\n v2 = arr.pop(0)\n a...
['Runtime Error', 'Runtime Error', 'Accepted']
['s144473025', 's545396591', 's448622301']
[3060.0, 3060.0, 2940.0]
[18.0, 19.0, 17.0]
[167, 174, 168]
p02935
u586662847
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\nimport math\n\n\ndef solve(n, v):\n heapq.heapify(v)\n nn = math.ceil(n / 2)\n\n while len(nn) != 1:\n x = heapq.heappop(v)\n y = heapq.heappop(v)\n z = (x + y) / 2\n heapq.heappush(v, z)\n\n return v[0]\n\n\nn = int(input())\nv = list(map(int, input().split()))\n...
['Runtime Error', 'Accepted']
['s983148308', 's920953625']
[3060.0, 3060.0]
[19.0, 18.0]
[319, 292]
p02935
u593019570
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.sorted()\n\nb = a[0]\nfor i in range(n - 1):\n b = (b + a[i + 1]) / 2\n\nprint(b)', 'n = int(input())\na = list(map(int,input().split()))\na.sort()\n\nb = a[0]\nfor i in range(n - 1):\n b = (b + a[i + 1]) / 2\n\nprint(b)\n']
['Runtime Error', 'Accepted']
['s308377981', 's943459192']
[2940.0, 2940.0]
[17.0, 17.0]
[130, 129]
p02935
u595289165
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 = np.array(list(map(float, input().split())))\nv.sort()\n\nfor i in range(n-1):\n v[:n-i] = v[:n-i]/2\n print(v)\nprint(sum(v))', 'import numpy as np\nn = int(input())\nv = np.array(list(map(float, input().split())))\nv.sort()\n\nfor i in range(n-1):\n v[:n-i] = v[:n-i...
['Wrong Answer', 'Accepted']
['s477764448', 's925930993']
[14312.0, 12396.0]
[213.0, 151.0]
[165, 152]
p02935
u603324902
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()))\n\na.sort()\n\nans = int((a[0]+a[1])/2)\n\nfor i in range(2,n):\n ans = (ans + a[i])/2\n\nprint(ans)', 'n = int(input())\na = list(map(int,input().split()))\n\na.sort()\n\nans = (a[0]+a[1])/2\n\nfor i in range(2,n):\n ans = (ans + a[i])/2\n\nprint(ans)\n\n']
['Wrong Answer', 'Accepted']
['s167004405', 's123506406']
[3060.0, 2940.0]
[18.0, 17.0]
[146, 143]
p02935
u617228707
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 = list(map(int,input().split()))\nA = 0\nList = sorted(List)\nfor i in range(1,N):\n A += List[i]/2**(N-i)\nprint(int(A+List[0]/2**(N-1)))\n ', 'N = int(input())\nList = list(map(int,input().split()))\nA = 0\nList = sorted(List)\nfor i in range(1,N):\n A += List[i]/2**(N-i)\nprint(A+Li...
['Wrong Answer', 'Accepted']
['s561655009', 's082890912']
[2940.0, 3060.0]
[17.0, 20.0]
[163, 153]
p02935
u617440820
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().split()\n\na = [float(i) for i in a]#float cast\np = 1\nlist.sort(a)\nprint("初期値"+ str(a))\nN = int(N)\nfor j in range(N-1):\n sum = a[j]\n for i in range(1):\n sum = sum + a[p]\n ans = sum / 2\n a[p] = ans\n p += 1\n list.sort(a)\n print(str(j) + "回目:"...
['Wrong Answer', 'Accepted']
['s492162621', 's172176230']
[3064.0, 3060.0]
[19.0, 17.0]
[353, 355]
p02935
u617515020
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) > 2:\n temp = []\n for i in range(len(v)//2):\n temp.append((v[2*i] + v[2*i + 1])/2)\n if n % 2 == 0:\n v = temp\n else:\n temp.append(v[-1])\n v = temp\n \nprint(v[0]) ', 'N = int(input())\nv = list(map(int,input().split()))\nv.s...
['Runtime Error', 'Accepted']
['s479862709', 's425289385']
[3060.0, 3060.0]
[17.0, 17.0]
[245, 152]
p02935
u620846115
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...
['x = int(input())\na = list(map(int,input().split()))\na.sort()\ny = 0\nfor i in range(x):\n y += a[i-0]*(2**i)\nprint(y/(2**(x+1)))', 'x = int(input())\na = list(map(int,input().split()))\na.sort()\ny = 0\nfor i in range(x):\n y += a[i-0]*(2**i)\nprint(y//(2**(x+1)))', 'x = int(input())\na = [list(map(int,input().s...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s238340546', 's284741607', 's517100662', 's835579221', 's996228176', 's048265760']
[9160.0, 8972.0, 9064.0, 9180.0, 9080.0, 9072.0]
[30.0, 24.0, 24.0, 20.0, 31.0, 25.0]
[126, 127, 131, 134, 124, 128]
p02935
u621509924
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=list(map(int,input().split()))\nList.sort()\na= List[1]\nfor i in range(len(List)):\n a= (a+List[i])/2\nprint(a)', 'N=int(input())\nList=list(map(int,input().split()))\na=0\nList.sort()\nfor i in range(len(List)):\n a= (a+List[i])/2\nprint(a)', 'N=int(input())\nList=list(map(int,input().split()...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s036610508', 's152164326', 's415806639']
[2940.0, 3064.0, 2940.0]
[18.0, 18.0, 17.0]
[128, 121, 128]
p02935
u623283955
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())\nc=list(map(int,input().split()))\nc.sort(reverse=True)\nvalue=0\nfor x in c:\n value=(value+x)/2\nprint(value)', 'n=int(input())\nc=list(map(float,input().split()))\nc.sort()\nk=n\nfor i in range(n-2):\n v=(c[0]+c[1])/2\n c=c[2:]\n if c[k-3]<v:\n c.append(v)\n break\n for j in range(k-2):\n...
['Wrong Answer', 'Accepted']
['s616818793', 's024723989']
[2940.0, 3064.0]
[17.0, 17.0]
[121, 252]
p02935
u623814058
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,=sorted(map(int,input().split()))\n\nfrom bisect import insort\nc=1\nwhile c<N:\n #print(c,v)\n insort(v,(v.pop(0) + v.pop(0)) / 2)\n #print(c,v)\n c+=1\nprint(v)', 'N=int(input())\n*v,=sorted(map(int,input().split()))\n\nfrom bisect import insort\nc=1\nwhile c<N:\n insort(v,(v.pop(0...
['Wrong Answer', 'Accepted']
['s068744493', 's378811171']
[9080.0, 9132.0]
[32.0, 27.0]
[183, 152]
p02935
u624617831
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\nv = list(map(int, input().split()))\n\nv = sorted(v)\n\nprint(v)\n\ntmp = 0.0\nfor i in range(N-1):\n tmp = (v[i]+v[i+1])/2\n v[i+1] = tmp\n\nprint(v[-1])', 'N = int(input())\n\nv = list(map(int, input().split()))\n\nv = sorted(v)\n\ntmp = 0.0\nfor i in range(N-1):\n tmp = (v[i]+v[i+1])/2...
['Wrong Answer', 'Accepted']
['s079339749', 's706710350']
[3060.0, 3060.0]
[18.0, 17.0]
[167, 157]
p02935
u626337957
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 = list(map(int, input().split()))\nnums.sort()\nans = num\nfor num in nums[1:]:\n ans = (ans + num)/2\nprint(ans)\n ', 'N = int(input())\nnums = list(map(int, input().split()))\nnums.sort()\nans = nums[0]\nfor num in nums[1:]:\n ans = (ans + num)/2\nprint(ans)\n \n']
['Runtime Error', 'Accepted']
['s150194238', 's238078020']
[2940.0, 2940.0]
[17.0, 17.0]
[135, 140]
p02935
u628965061
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())\nvlis=list(map(int,input().split()))\nwhile len(vlis)>=2:\n\ttlis=[]\n\tfor i in range(len(vlis)-1):\n\t\tt=(vlis[i]+vlis[i+1])/2\n\t\ttlis.append(t)\n\tvlis.insert(tlis.index(min(tlis)),min(tlis))\n\tfor i in range(2):\n\t\tvlis.pop(tlis.index(min(tlis))+1)\n\t\t\nprint(int(vlis[0]))', 'n=int(input())...
['Wrong Answer', 'Accepted']
['s714645952', 's347689109']
[3064.0, 3060.0]
[19.0, 17.0]
[277, 166]
p02935
u629350026
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=[]\nv+=list(map(int,input().split()))\nv.sort()\nl=len(v)\nresult=v[0]/(2**(l-1))\nfor i in range(1,n):\n result=result+v[i]/(2**(l-i))\nprint(int(result))', 'n=int(input())\nv=[]\nv+=list(map(int,input().split()))\nv.sort()\nl=len(v)\nresult=v[0]/(2**(l-1))\nfor i in range(1,n):\n result=result+v...
['Wrong Answer', 'Accepted']
['s728231597', 's959810695']
[3060.0, 3064.0]
[17.0, 17.0]
[166, 161]
p02935
u630680619
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()))\nresult = 0\n\nb.sort()\nprint(b)\n\nfor i in range(a):\n if i == 0:\n result = b[i]\n else:\n result = result / 2\n result += b[i] / 2\n\nprint(result)', 'a = int(input())\nb = list(map(int, input().split()))\nresult = 0\n\nb.sort()\n\n...
['Wrong Answer', 'Accepted']
['s716058920', 's351833351']
[3060.0, 2940.0]
[18.0, 17.0]
[219, 215]
p02935
u635949425
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([int(a) for a in input().split()],reverse=True)\nif N == 2:\n print(round(sum(A)/2))\nelse :\n print(((A[2] + A[1])/2 + A[0]) / 2)', 'N =int(input())\nA = sorted([int(a) for a in input().split()],reverse=True)\nif N == 2:\n print(round(sum(A)/2))\nelse :\n print(round(((A[2] + A[1])/...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s249034544', 's271559725', 's936452282']
[3060.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[156, 163, 186]
p02935
u638867180
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()))\nfor i in range(N-1):\n v.sort()\n V=(v[0]+v[1])/2\n del v[0:2]\n v.append(V)\n print("v",v)\nprint(v)', 'N=int(input())\nv=list(map(int,input().split()))\nfor i in range(N-1):\n v.sort()\n V=(v[0]+v[1])/2\n del v[0:2]\n v.append(V)\nprint(v[0])']
['Wrong Answer', 'Accepted']
['s260023589', 's788828928']
[3060.0, 2940.0]
[17.0, 17.0]
[148, 136]
p02935
u639104973
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-2):\n v1=[(v[0]+v[1])/2]\n v1.extend(v[2:])\n v=v1\nprint(sum(v1)/2)', 'N=int(input())\nv=list(map(int, input().split()))\nv.sort()\nfor i in range(N-2):\n v1=[(v[0]+v[1])/2]\n v1.extend(v[2:])\n v=v1\nprint(sum(v1)/2)', 'N=int(input(...
['Runtime Error', 'Runtime Error', 'Accepted']
['s203297595', 's926199289', 's625089453']
[3060.0, 3060.0, 2940.0]
[17.0, 17.0, 18.0]
[142, 142, 96]
p02935
u642823003
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()))\nalist = []\ntmp = 0\ni = 0\n\ndef cook(N, V, alist, tmp, i):\n if N = 1:\n print(V[0])\n \n else:\n V.sort()\n while i < N:\n if i + 1 > N - 1:\n alist.append(V[i])\n \n else:\n ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s044078162', 's174967013', 's189617056', 's243651383', 's283056034', 's349690453', 's423427833', 's509692464', 's530561686', 's624652961', 's788449144', 's810969294', 's883454444', 's761881789']
[2940.0, 2940.0, 2940.0, 3064.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0, 18.0, 17.0]
[571, 472, 528, 585, 497, 434, 532, 472, 527, 524, 508, 493, 467, 138]
p02935
u653837719
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 _ in range(n - 1):\n v = sorted(v)\n value = (v.pop(1) + v.pop(0)) // 2\n v.append(value)\n\nprint(v[0])\n', 'n = int(input())\nv = list(map(int, input().split()))\n\nfor _ in range(n - 1):\n v = sorted(v)\n value = (v.pop(1) + v.pop(0)) / 2\...
['Wrong Answer', 'Accepted']
['s156231669', 's270422140']
[2940.0, 2940.0]
[17.0, 18.0]
[167, 166]
p02935
u654386293
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())\nvv = list(map(int, input().split(' ')))\n\nvv.sort()\n\nans += vv[0]\nfor v in vv:\n ans += v\n ans /= 2\n \nprint(ans)", "n = int(input())\nvv = list(map(int, input().split(' ')))\n \nvv.sort()\n \nans += vv[0]\nfor v in vv[1:]:\n ans += v\n ans /= 2\n \nprint(ans)", "n = int(input())\nvv = l...
['Runtime Error', 'Runtime Error', 'Accepted']
['s042040457', 's447224157', 's741972916']
[3060.0, 3060.0, 2940.0]
[18.0, 20.0, 17.0]
[130, 136, 135]