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 | u655663334 | 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()\n\nprint(Vs)\n\ninitialGousei = (Vs[0] + Vs[1]) / 2\n\nfor i in range(2, N):\n initialGousei = (initialGousei + Vs[i]) / 2\n\nprint(initialGousei)\n', 'N = int(input())\nVs = list(map(int, input().split()))\n\nVs.sort()\n\n#print(Vs)\n\ninitialGou... | ['Wrong Answer', 'Accepted'] | ['s016211779', 's054185846'] | [2940.0, 2940.0] | [18.0, 17.0] | [206, 207] |
p02935 | u663861584 | 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())\nlis = list(map(int,input().split()))\n\nm = min(lis)\nlis.remove(min(lis))\nm_2 = min(lis)\nlis.remove(min(lis))\nv = (m + m_2) / 2 \n\nfor i in range(0, N - 1):\n v = (v + min(lis)) / 2\n lis.remove(min(lis))\n\nprint(v)\n \n ', 'N = int(input())\nlis = list(map(int,input().split()))\... | ['Runtime Error', 'Accepted'] | ['s558605246', 's834659607'] | [3060.0, 3060.0] | [18.0, 17.0] | [244, 239] |
p02935 | u666844906 | 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_n = list(map(int, input().split()))\nv_n_ord = sorted(v_n, reverse=True)\nv_n_mod = []\nfor i in range(len(v_n)):\n if i == (len(v_n) - 1):\n print('b')\n v_n_mod.append(v_n_ord[i] / (2**i))\n else:\n print('a')\n v_n_mod.append(v_n_ord[i] / (2**(i+1)))\nprint(sum... | ['Wrong Answer', 'Accepted'] | ['s814772930', 's102962951'] | [3064.0, 3060.0] | [17.0, 18.0] | [317, 172] |
p02935 | u667189155 | 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 = v[0]\nfor i in v[1:]:\n w += (w+i)/2\n\nprint(w)\n', 'n = int(input())\nv = list(map(int, input().split()))\nv.sort()\n\nw = v[0]\nfor i in v[1:]:\n w = (w+i)/2\n\nprint(w)'] | ['Wrong Answer', 'Accepted'] | ['s623886912', 's484701753'] | [3068.0, 2940.0] | [17.0, 17.0] | [106, 113] |
p02935 | u667978773 | 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 n>1:\n v.sort()\n v.append((v[0]+v[1])/2)\n v.remove(v[0])\n v.remove(v[1])\n n-=1\nprint(int((v[0])))', 'n=int(input())\nv=list(map(int,input().split()))\nwhile n>1:\n v.sort()\n v.append((v[0]+v[1])/2)\n v.remo... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s229273691', 's906534317', 's999493381', 's703147241'] | [3060.0, 3060.0, 2940.0, 3060.0] | [17.0, 17.0, 19.0, 17.0] | [181, 181, 184, 176] |
p02935 | u669334569 | 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,arr = int(input()),list(map(int,input().split(' ')))\nstack = []\narr = sorted(arr)\nfor i in range(0,len(arr),2):\n if i == len(arr)-1:\n print(int((stack[-1] + arr[i])/2))\n else:\n stack.append((arr[i] + arr[i+1])/2)", "n,arr = int(input()),list(map(int,input().split(' ')))\nstack = []\narr =... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s481595066', 's941843571', 's911432552'] | [3060.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [234, 229, 199] |
p02935 | u671889550 | 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()))\n\nans = v[0]\n\nfor i in range(1, N):\n ans = (ans + v[i]) / 2\n\nprint(ans)', 'n = int(input())\nv = sorted(map(int, input().split()))\n\nans = v[0]\n\nfor i in range(1, n):\n ans = (ans + v[i]) / 2\n\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s794154334', 's804508182'] | [9172.0, 9168.0] | [22.0, 28.0] | [128, 128] |
p02935 | u673559119 | 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)\n\nans=v[0]\n\nfor i in range(1,N):\n ans =(ans+v[i])/2\n\nprint(ans)', '#coding utf-8\nN=int(input())\nv=list(map(int,input().split()))\nv.sort()\n\nans=v[0]\n\nfor i in range(1,N):\n ans =(ans+v[i])/2\n\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s413750440', 's331934656'] | [3060.0, 2940.0] | [17.0, 17.0] | [143, 134] |
p02935 | u680851063 | 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())\nl = [int(x) for x in input().split()]\ni =0\nwhile len(l) >= 2:\n l.sort()\n a = l.pop(i)\n b = l.pop(i)\n c = (a + b) / 2\n l.append (c)\n\nprint(l)\n', '# easy for C!!!\n\nn = int(input())\nl = [int(x) for x in input().split()]\ni =0\nwhile len(l) >= 2:\n l.sort()\n a = ... | ['Wrong Answer', 'Accepted'] | ['s052153383', 's042723685'] | [2940.0, 2940.0] | [17.0, 17.0] | [177, 191] |
p02935 | u682181971 | 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 = list(map(int, input().split()))\nV = sorted(V)\nvalue = V.pop(-1)\nwhile value:\n value += V.pop(-1)\nprint(value)', 'N = input()\nV = list(map(int, input().split()))\nV = sorted(V)\nvalue = V.pop(0)\nwhile V:\n value += V.pop(0)\nprint(value)', '\nN = input()\nV = list(map(int, input().split()... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s004769805', 's962135276', 's685492698'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [128, 122, 138] |
p02935 | u684267998 | 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\nb = a.sort()\n\nfor i in range(n-1):\n c=(a[0]+a[1])/2\n a.pop(1)\n a.pop(0)\n a.insert(0,c)\n \nprint(a)', 'n =int(input())\na = list(map(int,input().split()))\n\nb = a.sort()\n\nfor i in range(n-1):\n c=(a[0]+a[1])/2\n a.pop(1)\n a.pop(0... | ['Wrong Answer', 'Accepted'] | ['s452271189', 's598158455'] | [3060.0, 3060.0] | [19.0, 18.0] | [164, 167] |
p02935 | u690037900 | 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())\nL1=sorted(list(map(int,input().split())))\nans=L1[0]\nL1.pop(0)\nfor i in range(len(L1)):\n ans=(ans+L1[i])/2\n print(ans)\nprint(ans)\n', 'N=int(input())\nL1=sorted(list(map(int,input().split())))\nans=L1[0]\nL1.pop(0)\nfor i in range(len(L1)):\n ans=(ans+L1[i])//2\nprint(ans)', 'N=int(input... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s409739047', 's598351910', 's448367119'] | [2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [150, 135, 134] |
p02935 | u694951525 | 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())\ne = list(map(int,input().split()))\nfor i in range(N):\n x = int(input())\n e.append(x)\ne.sort()\nfor i in range(N - 1):\n a = e.pop(0)\n b = e.pop(0)\n e.insert(0, (a+b)/2)\nans = e[0]\nprint(ans)', 'N = int(input())\ne = list()\nfor i in range(N):\n x = int(input())\n e.appen... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s230446117', 's788820049', 's588622141'] | [3064.0, 3060.0, 3060.0] | [17.0, 18.0, 17.0] | [220, 196, 164] |
p02935 | u696444274 | 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#h, w = list(map(int, input().split()))\nv.sort()\nans = 0\npoint = (v[0]+v[1])/2\nif n == 2:\n print(point)\nelse:\n for i in range(2, n):\n point = (point+v[i])/2\n\nprint(point)\n', 'n = int(input())\nv = list(map(int, input().split()))\n#h, w =... | ['Wrong Answer', 'Accepted'] | ['s526369476', 's591587251'] | [3060.0, 2940.0] | [18.0, 17.0] | [238, 196] |
p02935 | u696486967 | 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 makabe((float)num, (float)ko):\n ky=(num+ko)/2\n return ky\n\n\n\nn=int(input())\ng=list(map(float,input().split()))\ng.sort()\nty=(g[0]+g[1])/2\nfor h in range(2,n):\n ty= makabe(ty,g[h])\n \nprint(ty)', 'def makabe(nam, co):\n ky=(nam+co)/2.0\n return ky\n\n\n\nn=int(input())\ng=list(map(int,input().spl... | ['Runtime Error', 'Accepted'] | ['s270095486', 's295437798'] | [2940.0, 3060.0] | [17.0, 17.0] | [198, 186] |
p02935 | u700334327 | 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 = map(int, input().split())\nvv = map(float, v)\nvv.sort()\nans = vv[0]\nfor i in range(1, len(vv)):\n ans = (ans + vv[i]) / 2\nprint(ans)', 'N = int(input())\nv = [int(vi) for vi in input().split()]\nvv = [float(vf) for vf in v]\nvv.sort()\nans = vv[0]\nfor i in range(1, N):\n ans = (ans + vv[i... | ['Runtime Error', 'Accepted'] | ['s736262212', 's443794421'] | [3060.0, 3064.0] | [18.0, 17.0] | [152, 166] |
p02935 | u700929101 | 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())\nh = list(map(int,input().split(" ")))\n\nplsl = []\nplsn = 0\nfor i in range(n-1):\n if h[i]>= h[i+1] and i == n-1:\n plsn += 1\n # print(plsn)\n plsl.append(plsn)\n # print(plsl)\n elif h[i]>= h[i+1] and i < n-1:\n plsn += 1\n # print(plsn)\n else:... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s001729425', 's528519269', 's718118089', 's489182650'] | [3064.0, 2940.0, 3064.0, 3064.0] | [17.0, 17.0, 17.0, 17.0] | [432, 433, 432, 225] |
p02935 | u703890795 | 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 = map(int, input().split())\nV = sorted(V)\nP = V[0]\nfor i in range(N-1):\n P += V[i+1]\n P = P/2', 'N = int(input())\nV = map(int, input().split())\nV = sorted(V)\nP = V[0]\nfor i in range(N-1):\n P += V[i+1]\n P = P/2\nprint(P)'] | ['Wrong Answer', 'Accepted'] | ['s258347178', 's561049053'] | [2940.0, 2940.0] | [17.0, 17.0] | [114, 123] |
p02935 | u705279344 | 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()\nprint(v)\n#subtotal=(v[0]+v[1])/2\n\nfor i in range(n-2):\n subtotal = (subtotal+v[i+2])/2\nprint(subtotal)\n ', 'n=int(input())\nv=list(map(int, input().split()))\n\nv.sort()\n#print(v)\nsubtotal=(v[0]+v[1])/2\n\nfor i in range(n-2):\n subtotal ... | ['Runtime Error', 'Accepted'] | ['s148465643', 's369276740'] | [3444.0, 2940.0] | [25.0, 17.0] | [169, 169] |
p02935 | u713914478 | 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)\n\nans = 0\n\nfor i in range(N):\n\tif i == 0 or i == 1:\n\t\tans += V[i] / (2**(N-1))\n\telse:\n\t\tans += V[i] / (2**(N-i))\n\nprint(ans)', 'N = int(input())\nV = [int(i) for i in input().split()]\n\nV.sort()\n#print(V)\n\nans = 0\n\nfor ... | ['Wrong Answer', 'Accepted'] | ['s335295803', 's470302632'] | [3060.0, 3060.0] | [17.0, 17.0] | [197, 198] |
p02935 | u719840207 | 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()))\nb=sorted(n,reverse=True)\nans=0\nfor i,j in enumerate (b):\n print(i,j)\n if i < a-1:\n ans += j*((1/2)**(i+1))\n if i ==a-1:\n ans += j*((1/2)**(i))', 'a = int(input())\nn = list(map(int, input().split()))\nb=sorted(n,reverse=True)\nans=0\... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s227071535', 's783880799', 's544068735'] | [3060.0, 3060.0, 3064.0] | [18.0, 18.0, 17.0] | [218, 229, 214] |
p02935 | u721425712 | 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()))\nvsort = sorted(v)\n\nfor i in range(N):\n ans = (vsort[0]+vsort[1])/2\n if N <= 2:\n print(ans)\n else:\n ans = (ans + vsort[i])/2 # first term\n \nprint(ans)', 'N = int(input())\nv = list(map(int, input().split()))\nvsort = sorted(... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s645939287', 's807806679', 's324201801'] | [3060.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0] | [233, 238, 140] |
p02935 | u724686507 | 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\nv1 = v.sort().reverse()\nk = 0\n\nfor i in range(n):\n k += v[i] * (2 ** ( - (i + 1)))\n\nprint(k + v[n] * (2 ** ( - (n + 1)))', 'n = int(input())\nv = list(map(int, input().split()))\n\nv1 = list(sorted(v))\nv2 = list(reversed(v1))\nk = 0\n\nfor i in range(n)... | ['Runtime Error', 'Accepted'] | ['s913139651', 's285937975'] | [2940.0, 3060.0] | [17.0, 18.0] | [175, 198] |
p02935 | u731362892 | 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.sort()\nfor i in range(N):\n if i<N-1:\n \tvalue[0]=(value[0]+value[1])/2\n \tvalue.pop(1)\n if i==N-1:\n pass\nprint(int(value[0])) ', 'N=int(input())\nvalue= list(map(int,input().split()))\nvalue.sort()\nfor i in range(N):\n if i<N-1:\n \tvalue[... | ['Wrong Answer', 'Accepted'] | ['s515527666', 's128392246'] | [3060.0, 3060.0] | [19.0, 18.0] | [191, 193] |
p02935 | u731706246 | 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\n#include <algorithm>\n\n#include <set>\n#include <map>\n#include <string>\n#include <cmath>\n#include <climits>\n#include <iomanip>\n\nusing namespace std;\n\n#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)\n\ntypedef long long LL;\ntypedef vector<int> VI;\n\nint main() {\n int N;\n cin >> N;\n prio... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s146426536', 's382923710', 's726789259'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 18.0] | [676, 685, 219] |
p02935 | u735163997 | 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=list(map(int,input().split()))\nprint(v)', 'N=int(input())\nv=sorted(list(map(int,input().split())))\nv[0]=v[0]/(2**(N-1))\nfor i in range(1,N):\n v[i]=v[i]/(2**(N-i))\nprint(sum(v))'] | ['Wrong Answer', 'Accepted'] | ['s257754375', 's437625850'] | [2940.0, 3064.0] | [17.0, 17.0] | [51, 134] |
p02935 | u736729525 | 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([int(x) for x in input().split()])\n\nimport heapq\n\nheapq.heapify(V)\n\nwhile len(V) >= 2:\n x = heapq.heappop(V)\n y = heapq.heappop(V)\n heapq.heappush(V, (x + y) // 2)\n\nprint(V[0])\n\n\n\n\n', 'N = int(input())\nV = sorted([int(x) for x in input().split()])\n\nimport heapq... | ['Wrong Answer', 'Accepted'] | ['s605512232', 's137089294'] | [3060.0, 3060.0] | [18.0, 18.0] | [218, 217] |
p02935 | u740324418 | 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... | ['##C problem\nN = int(input())\nv = list(map(float, input().split()))\n\na=min(v)\n\n#v.remove(a)\n#v.remove(b)\n#v.append( (a+b)/2 )\n\nfor i in range(N-1):\n a=v[-1]\n remove(a)\n b=min(v)\n v.remove(b)\n v.append((a+b)/2)', '##C problem\nN = int(input())\nv = list(map(float, input... | ['Runtime Error', 'Accepted'] | ['s800836913', 's513457955'] | [3060.0, 3064.0] | [17.0, 17.0] | [307, 240] |
p02935 | u742569919 | 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())\nlistV = list(map(int,input().split()))\nsortedListV = sorted(listV)\nresult = (sortedListV[0] + sortedListV[1]) / 2\n\nfor i range (0,3):\n result = (sortedListV[i] + sortedListV[i+1]) / 2\nprint(result)', 'n = int(input())\nlistV = list(map(int,input().split()))\nsortedListV = sorted(listV)\nr... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s156712309', 's158125965', 's300694256', 's583271235', 's794037534', 's878687453', 's108444258'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 3060.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [218, 222, 221, 210, 212, 256, 257] |
p02935 | u746154235 | 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=True)\n\nresult=V[0]\nfor i in range(1,N):\n result =(result + v[i])/2\nprint(result)\n', 'n = int(input())\nv = [int(e) for e in input().split()]\nv.sort()\nresult = v[0]\nfor i in range(1, n):\n result = (result + v[i]) / 2\nprint(result)'] | ['Runtime Error', 'Accepted'] | ['s783363647', 's270233838'] | [2940.0, 2940.0] | [17.0, 17.0] | [147, 144] |
p02935 | u756604554 | 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\ndef nabe(v):\n \n if len(v) == 1:\n return v[0]\n\n smallests = heapq.nsmallest(2, v)\n\n print(smallests)\n\n for s in smallests:\n v.remove(s)\n v.append(sum(smallests) / 2)\n\n return nabe(v)\n\nprint(nab... | ['Wrong Answer', 'Accepted'] | ['s422824096', 's125843097'] | [3064.0, 3060.0] | [19.0, 18.0] | [303, 281] |
p02935 | u757117214 | 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,*a=map(int,open(0).read().split())\nfor i in range(n-1):\n a.sort()\n b=(a[0]+a[1])/2\n a[:2]=[b]\nprint(int(a[0])) ', 'n,*a=map(int,open(0).read().split())\na.sort()\ntmp=(a[0]+a[1])/2\nfor i in range(2,n):\n tmp=(tmp+a[i])/2\nprint(int(tmp))', 'n,*a=map(int,open(0).read().split())\nfor i in range(n-1):\n a.s... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s338451820', 's722566911', 's918539436', 's866522085'] | [2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [116, 119, 276, 114] |
p02935 | u757274384 | 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()\nV.reverse()\n\nif len(V) == 2:\n print(V[0]+V[1])/2\nelse:\n ans = 0\n for i in range(n-1):\n ans += V[i]/(2**(i+1))\n ans += V[n-1]/(2**(n-1))\n print(ans)', 'n = int(input())\nV = list(map(int, input().split()))\nV.sort()\nV.reverse()\n\nif le... | ['Runtime Error', 'Accepted'] | ['s162065685', 's036351318'] | [3060.0, 3060.0] | [17.0, 18.0] | [217, 220] |
p02935 | u763628696 | 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\nfor i in range(0,n-1):\n sum = int((v[i] + v[i+1])/ 2)\n v[i+1] = sum \n\nprint(v[n-1])', 'n = int(input())\nv = list(map(int,input().split()))\nv.sort()\n\nfor i in range(0,n-1):\n sum = (v[i] + v[i+1])/ 2\n v[i+1] = sum \n\nprint(v[n-1])'] | ['Wrong Answer', 'Accepted'] | ['s024592386', 's501088430'] | [9176.0, 9036.0] | [27.0, 25.0] | [147, 142] |
p02935 | u764956288 | 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 C():\n N = int(input())\n values = list(map(int, input().split()))\n\n values = values.sort()\n total_value = [values[i]*((1/2)**i) for i in range(N)] \n \n print(total_value)\n\n \nif __name__ == '__main__':\n C()\n", "def C():\n N = int(input())\n values = list(map(int, input().... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s469809025', 's845231158', 's401143199'] | [3052.0, 2940.0, 3060.0] | [17.0, 19.0, 18.0] | [235, 243, 310] |
p02935 | u765401716 | 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()\nwhile len(A)>=2: \n X = int((A[0]+A[1])/2)\n A.pop(0)\n A.pop(0)\n A.append(X)\n A.sort()\nelse:\n print(*A)', 'N = int(input())\nA = list(map(int, input().split()))\nA.sort()\nwhile len(A)>=2: \n X = (A[0]+A[1])/2\n A.pop(0)\n ... | ['Wrong Answer', 'Accepted'] | ['s753047593', 's639280598'] | [3060.0, 3060.0] | [17.0, 18.0] | [181, 178] |
p02935 | u768249349 | 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\n Arrnums = sorted([float(x) for x in input().split(' ')])\n j = 1\n print(*Arrnums)\n q = Arrnums[0]\n for i in range(j, n):\n q = (Arrnums[i] + q)/2\n\n print(q)", "\nif __name__ == '__main__':\n n = int(input())\n Arrnums = sorted([f... | ['Wrong Answer', 'Accepted'] | ['s578730503', 's659729546'] | [3064.0, 3060.0] | [17.0, 17.0] | [229, 209] |
p02935 | u768896740 | 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()))\nsum = 0\n\na.sort()\na_1 = (a[0] + a[1])/2\nb = [a_1]\n\nfor i in range(2, n):\n b.append((b[-1]+a[i])/2)\n\nprint(int(b[-1]))', 'n = int(input())\na = list(map(int, input().split()))\nsum = 0\n\na.sort()\na_1 = (a[0] + a[1])/2\nb = [a_1]\n\nfor i in range(2... | ['Wrong Answer', 'Accepted'] | ['s307827470', 's880877806'] | [3060.0, 3060.0] | [19.0, 17.0] | [174, 169] |
p02935 | u770272828 | 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()\nn=int(n)\nval=list(map(int,input().strip().split(' ')))\nval.sort()\nres=0\nif len(val)>0:\n if len(val)==1:\n print(val[0]/2)\n elif len(val)==2:\n print(sun(val)/2)\n else:\n #res=(val[0]+val[1])/2\n res=(val[0]+val[1])/2\n for i in range(2,len(val)):\n ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s737173468', 's814170514', 's937806061'] | [3064.0, 3064.0, 3064.0] | [17.0, 17.0, 18.0] | [404, 397, 413] |
p02935 | u775771854 | 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 = sorted(map(int, input().split()))\nvt = v[0]\nvt = list(map(lambda x:(vt+x)/2, v[1:]))\nfor vn in v[1:]:\n\tvt = (vt + vn)/2\nprint(vt)', 'n = input()\nv = sorted(map(int, input().split()))\nvt = v[0]\nfor vn in v[1:]:\n\tvt = (vt + vn)/2\nprint(vt)'] | ['Runtime Error', 'Accepted'] | ['s604346688', 's592181962'] | [3060.0, 2940.0] | [17.0, 17.0] | [145, 104] |
p02935 | u779073299 | 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=True)\nans = 0\nprint(v)\nfor i, j in enumerate(v):\n if i!=len(v)-1:\n ans += j/(2**(i+1))\n else:\n ans += j/(2**(i))\nprint(ans)', 'n = int(input())\nv = sorted(list(map(int, input().split())), reverse=True)\nans = 0\nfor i, j in enumera... | ['Wrong Answer', 'Accepted'] | ['s120479459', 's251413247'] | [3060.0, 3060.0] | [18.0, 17.0] | [200, 191] |
p02935 | u779293207 | 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 v[i+1]=(v[i]+v[i+1])/2\n\nprint(int(v[N-1]))\n ', 'N=int(input())\nv=sorted(list(map(int,input().split())))\nfor i in range(N-1):\n v[i+1]=(v[i]+v[i+1])/2\n\nprint(v[N-1])\n '] | ['Wrong Answer', 'Accepted'] | ['s151793535', 's913600269'] | [2940.0, 2940.0] | [17.0, 17.0] | [124, 119] |
p02935 | u781379878 | 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 = sorted(list(map(int, input().split())))\nb = (a[0] + a[1]) / 2\nif N > 2:\n for c in a[2:]:\n b = (b + c) / 2\nprint(b)', 'N = int(input())\na = sorted(list(map(int, input().split())))\nb = (a[0] + a[1]) / 2\nif N > 2:\n for c in a[2:]:\n b = (b + c) / 2\nprint(b)\n'] | ['Runtime Error', 'Accepted'] | ['s905781223', 's618776744'] | [2940.0, 2940.0] | [17.0, 17.0] | [134, 140] |
p02935 | u788068140 | 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 calculate(arr):\n\n if len(arr) == 1:\n return arr[0]\n\n if len(arr) == 2:\n return (arr[0] + arr[1]) / 2\n\n result = (calculate(arr[:-2]) + (arr[-1] + arr[-2])/2) / 2\n\n return result\n\ndef rank(arr):\n lastIndex = len(arr) - 1\n while lastIndex > 0:\n for i in range(la... | ['Wrong Answer', 'Accepted'] | ['s687589084', 's082107503'] | [3192.0, 3064.0] | [18.0, 18.0] | [636, 717] |
p02935 | u788734639 | 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 = input()\nN = int(N)\nstN = str(N)\np = input().split()\np_l = [int(s) for s in p]\n\np_sort = sorted(p_l,reverse=True)\nprint(p_sort)\nfor i in range(0,N-1):\n x = p_sort.pop()\n y = p_sort.pop()\n z = (x+y)/2\n p_sort.append(z)\n #print(p_sort)\n\nprint(p_sort[0])', 'import n... | ['Wrong Answer', 'Accepted'] | ['s488393256', 's914146861'] | [12500.0, 21256.0] | [150.0, 303.0] | [289, 290] |
p02935 | u796708718 | 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.sort()\nprint(lst)\nval = min(lst)\nfor i in range(1,len(lst)):\n print("i=%d" %i)\n val += (2**(i-1))*lst[i]\n print(val)\nprint(val/(2**(N-1)))', 'N = int(input())\nlst = list(map(int,input().split(" ")))\nlst.sort()\nval = min(lst)\nfor i in range(1... | ['Wrong Answer', 'Accepted'] | ['s056535270', 's922914424'] | [3064.0, 3060.0] | [17.0, 17.0] | [202, 159] |
p02935 | u798260206 | 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 = sotred(list(map(int,input().split())))\n\n\nfor i in range(n-1): \n v[i+1] = (v[i]+v[i+1])/2\n\nprint(v[n-1])\n', 'n = int(input())\nv = sorted(list(map(int,input().split())))\n \n \nfor i in range(n-1): \n v[i+1] = (v[i]+v[i+1])/2\n \nprint(v[n-1])'] | ['Runtime Error', 'Accepted'] | ['s400168104', 's577011893'] | [2940.0, 3060.0] | [17.0, 17.0] | [140, 142] |
p02935 | u798894056 | 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()\n\nwhile len(v) > 1:\n tmp = v[0] + v[1]\n del v[1]\n v[0] = tmp / 2\nprint(v)', 'N = int(input())\n\nv = list(map(int, input().split()))\n\nv.sort()\n\nwhile len(v) > 1:\n tmp = v[0] + v[1]\n del v[1]\n v[0] = tmp / 2\nprint(v[0])'... | ['Wrong Answer', 'Accepted'] | ['s892661902', 's708654780'] | [2940.0, 2940.0] | [18.0, 18.0] | [145, 148] |
p02935 | u799710027 | 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()\nr = v[0]\nfor i in r:\n r = (r + i) / 2\nprint(r)', 'n = int(input())\nv = [int(i) for i in input().split()]\nv.sort()\nans = (v[0] + v[1]) / 2\nfor i in range(2, len(v)):\n ans = (ans + v[i]) / 2\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s523232729', 's556290715'] | [2940.0, 3060.0] | [17.0, 17.0] | [108, 152] |
p02935 | u801106491 | 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=sorted(list(map(int,input().split())))\ni=1\nwhile i<=n-1:\n x=Values.pop(0)\n y=Values.pop(0)\n new=(x+y)/2\n Values.append(new)\n Values=sorted(Values)\n i+=1\nprint(int(*Values))', 'n=int(input())\nValues=list(map(int,input().split()))\nValues=sorted(Values)\ni=1\nwhile i<=... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s611762014', 's978134069', 's073193660'] | [3060.0, 3064.0, 3060.0] | [17.0, 17.0, 17.0] | [212, 226, 175] |
p02935 | u805552010 | 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()))\n\nvalue = v[0]\nfor i in range(1,n):\n value = (value + v[i]) / 2\nprint(int(value))', 'n = int(input())\nv = sorted(map(int,input().split()))\n\nvalue = v[0]\nfor i in range(1,n):\n value = (value + v[i]) / 2\nprint(value)'] | ['Wrong Answer', 'Accepted'] | ['s971922024', 's787453270'] | [2940.0, 3060.0] | [18.0, 18.0] | [137, 132] |
p02935 | u815108319 | 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\nfor i in range(N):\n v[i] = float(v[i])\n \nv.sort()\nite = 0\nwhile(ite < N-1):\n v[ite+1] = (v[ite]+v[ite+1])/2\n v[ite] = 0\n v.sort()\n print(v)\n ite += 1\n\nprint(v[-1])\n\n', 'N = int(input())\nv = input().split()\n\nSUM = 0\nfor i in range(N):\n ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s158898423', 's360360560', 's041789249'] | [3060.0, 3064.0, 3060.0] | [21.0, 18.0, 17.0] | [224, 218, 225] |
p02935 | u821969418 | 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[0] + v[1])/2\n del v[0:2]\n v.insert(0, new)\n\nprint(v)', 'n = int(input())\nv = list(map(int, input().split()))\nv.sort()\n\nwhile len(v) > 1:\n new = (v[0] + v[1])/2\n del v[0:2]\n v.insert(0, new)\n\n... | ['Wrong Answer', 'Accepted'] | ['s291158856', 's318220862'] | [2940.0, 3060.0] | [17.0, 17.0] | [152, 155] |
p02935 | u823885866 | 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 math\nimport itertools\nimport collections\nimport heapq\nimport re\nimport numpy as np\n\nrr = lambda: str(sys.stdin.buffer.readline().rstrip())\nrs = lambda: map(str, sys.stdin.buffer.readline().split())\nri = lambda: int(sys.stdin.buffer.readline())\nrm = lambda: map(int, sys.stdin.buffer.readli... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s034512591', 's118348667', 's173028899'] | [20908.0, 22308.0, 12508.0] | [277.0, 324.0, 149.0] | [604, 595, 595] |
p02935 | u827141374 | 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(float,input().split())))\nz = v[0]\nfor i in range(1,n):\n print(i)\n z=(z+v[i])/2\nprint(z)', 'n=int(input())\nv=sorted(list(map(float,input().split())))\nz = v[0]\nfor i in range(1,n):\n z=(z+v[i])/2\nprint(z)'] | ['Wrong Answer', 'Accepted'] | ['s884629001', 's562217696'] | [2940.0, 2940.0] | [18.0, 18.0] | [126, 113] |
p02935 | u827306875 | 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 = sorted(list(map(int,input().split())))\nprint(v_list)\n\nsum = 0\na = 0\n\nif N == 1:\n sum += v_list[0]\n\nelif N == 2:\n sum += (v_list[0] + v_list[1])/2\n\nelse:\n a = v_list[0] + v_list[1]\n for i in range(N-1):\n sum += a *2 ** (-N + i +1)\n \nprint(sum)', 'N = i... | ['Wrong Answer', 'Accepted'] | ['s162798311', 's634717761'] | [3064.0, 3064.0] | [17.0, 18.0] | [291, 313] |
p02935 | u831274245 | 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())\nD = sorted([int(i) for i in input().split()])\nD = [D[i]*2**max(0,i-1) for i in range(N)]\nprint(D)\nprint(sum(D)/2**(N-1))', 'N = int(input())\nD = sorted([int(i) for i in input().split()])\nD = [D[i]*2**max(0,i-1) for i in range(N)]\nprint(sum(D)/2**(N-1))'] | ['Wrong Answer', 'Accepted'] | ['s610403453', 's541595115'] | [3060.0, 2940.0] | [17.0, 17.0] | [137, 128] |
p02935 | u832039789 | 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(a)\nres = a[0]\nfor i in range(1, n):\n res += a[i]\n res /= 2\nprint(resz)', 'n = int(input())\na = list(map(int,input().split()))\na = sorted(a)\nres = a[0]\nfor i in range(1, n):\n res += a[i]\n res /= 2\nprint(res)'] | ['Runtime Error', 'Accepted'] | ['s392664029', 's172336309'] | [2940.0, 2940.0] | [17.0, 17.0] | [139, 138] |
p02935 | u832058515 | 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()\nvalues = list((input()).split(" "))\nv = list(map(lambda x: int(x), values))\nresult = 0\nwhile len(v) > 0 :\n el = v.pop(0)\n result = (result + el)/2\nprint(result)', 'n = input()\nvalues = list((input()).split(" "))\n\nv = sorted(list(map(lambda x: int(x), values)))\n\nresult = v.pop(0)\nwhile l... | ['Wrong Answer', 'Accepted'] | ['s498561476', 's865200435'] | [2940.0, 3060.0] | [17.0, 17.0] | [178, 200] |
p02935 | u834832056 | 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\nfor _ in range(n - 1):\n arr.sort()\n new_v = (arr[0] + arr[1]) / 2\n del arr[0:2]\n arr.append(new_v)\n\nprint(int(arr[0]))\n', 'n = int(input())\narr = list(map(int, input().split()))\n\nfor _ in range(n - 1):\n arr.sort()\n new_v = (arr[0... | ['Wrong Answer', 'Accepted'] | ['s896347559', 's144528246'] | [9152.0, 9168.0] | [25.0, 28.0] | [187, 182] |
p02935 | u835534008 | 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 qsort(seq, left, right):\n \n if left == right: return seq\n elif left+1 == right:\n if seq[left]>seq[right]:\n seq[left],seq[right] = seq[right], seq[left]\n return seq\n\n med = (left+right)//2\n pivot = seq[med] \n \n cur_l = left\n cur_r = right\n \n \n ... | ['Wrong Answer', 'Accepted'] | ['s633822541', 's976706051'] | [3064.0, 3064.0] | [18.0, 18.0] | [1915, 2051] |
p02935 | u840958781 | 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())))\nans=a[0]\nfor i in range(n):\n ans+=a[i]\n ans=ans//2\nprint(ans)\n', 'n=int(input())\na=list(map(int, input().split()))\na.sort()\nans=a[0]\nfor i in range(n):\n ans+=a[i]\n ans=ans//2\nprint(ans)', 'n=int(input())\na=list(map(int, input().split(... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s477494970', 's828550689', 's885693685', 's308888449'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [125, 125, 125, 124] |
p02935 | u845847173 | 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(e) for e in input().split()]\n\na = sorted(v, reversed = True) \nresult = a[0]\nfor i in range(N - 1):\n result += (result + a[i]) / 2\nprint(result)', 'N = int(input())\nv = [int(e) for e in input().split()]\n\na = sorted(v, reversed = True) \nresult = a[0]\nfor i in range(1, N):\n r... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s205730865', 's686131646', 's962167513', 's643770893'] | [2940.0, 3060.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0] | [191, 189, 190, 167] |
p02935 | u858670323 | 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().rstrip().split(' ')))\nV.sort(reverse=True)\n\nsum = 0\nfor i, v in enumerate(V):\n sum += v/(2**(i+1))\nsum += V[-1]/(2**(N-1))\nprint(sum)", "N = int(input())\nV = list(map(int,input().rstrip().split(' ')))\nV.sort(reverse=True)\n\nsum = 0\nfor i, v in enumerate(V):\n ... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s499565762', 's970467619', 's405597491'] | [3064.0, 2940.0, 3060.0] | [20.0, 17.0, 18.0] | [178, 179, 176] |
p02935 | u859897687 | 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=0\nfor i in range(n):\n if i==0:\n ans+=v[n-1]/2\n elif i==n-1:\n ans+=v[0]/(2**(n-2))\n else:\n ans+=v[n-1-i]/(2**i)\nprint(ans)', 'n=int(input())\nv=list(map(int,input().split()))\nv.sort()\nfor i in range(n-1):\n v[i+1]=(v[i]+v[i+1])/2\np... | ['Wrong Answer', 'Accepted'] | ['s784038444', 's798065518'] | [3060.0, 2940.0] | [17.0, 18.0] | [194, 116] |
p02935 | u862108688 | 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 heapify, heappush\nn = int(input())\nL = [int(i) for i in input().split()]\nheapify(L)\nfor i in range(n-1):\n s = (L[0]+L[1])/2\n L = L[2:] \n heappush(L,s)\nans = heapq.heappop(L)\nprint(ans)', 'from heapq import heapify, heappush, heappop\nn = int(input())\nL = [int(i) for i in input().s... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s560906248', 's750981496', 's097231819'] | [3064.0, 3060.0, 3060.0] | [18.0, 18.0, 18.0] | [211, 220, 208] |
p02935 | u863370423 | 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#include <algorithm>\n\nusing namespace std;\n\n#define ld long double\n\nint main() {\n ll n;\n cin >> n;\n vector<ll> numbers(n);\n for(auto &i: numbers) cin >> i ;\n sort(numbers.begin(), numbers.end());\n ld ans = numbers[0];\n for(auto i: numbers) {\n ans = (ans + i)/2;\n }\n ... | ['Runtime Error', 'Accepted'] | ['s961020125', 's461794027'] | [2940.0, 3064.0] | [17.0, 17.0] | [393, 193] |
p02935 | u863397945 | 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\nans = 0\n\nans += (V[0]+V[1])/2**(len(V)-1)\n\nprint(ans)\n\nfor i in range(2,N):\n ans += V[i]/2**(N-i)\n\nprint(ans)', 'N = int(input())\nV = sorted(list(map(int,input().split())))\n\nans = (V[0]+V[1])/2**(len(V)-1)\n\nfor i in range(2,N):\n ans ... | ['Wrong Answer', 'Accepted'] | ['s381324955', 's788261240'] | [9168.0, 9180.0] | [26.0, 30.0] | [173, 151] |
p02935 | u863850961 | 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()))\nl=[]\ndraw_list=[]\nsecond_draw=[]\nfor i in range(0,len(v)-1):\n first_combination=float((v[i]+v[i+1])/2)\n draw_list.append(first_combination)\n \nfor j in range(0,len(v)-1):\n second_combination=float((draw_list[j]+v[j])/2)\n second_draw.append(seco... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s176648417', 's272707311', 's818888130'] | [9168.0, 9132.0, 9148.0] | [27.0, 34.0, 23.0] | [423, 423, 155] |
p02935 | u868628468 | 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()))\ndef func(a,b):\n return (a+b)/2\n v = sorted(v)\nave = (v[0]+v[1])/2\nfor i in range(2,N):\n ave = func(ave,v[i])\n \nprint(ave)', 'N = int(input())\nv = list(map(int,input().split()))\ndef func(a,b):\n return (a+b)/2\nv = sorted(v)\nave = (v[0]+v[1])... | ['Runtime Error', 'Accepted'] | ['s828156585', 's734135826'] | [2940.0, 3060.0] | [17.0, 17.0] | [183, 181] |
p02935 | u868767877 | 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\nsum = v[0]\n\nfor i in range(N-1):\n sum = (sum + v[i+1]) / 2\nprint(int(sum))', 'N = int(input())\nv = list(map(int, input().split(" ")))\n\nv.sort()\n\nsum = v[0]\n\nfor i in range(N-1):\n sum = (sum + v[i+1]) / 2\nprint(sum)'] | ['Wrong Answer', 'Accepted'] | ['s034605725', 's421535785'] | [3060.0, 2940.0] | [18.0, 17.0] | [142, 137] |
p02935 | u874333466 | 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())\nvi = list(map(int,input().split()))\nvi_sort = sorted(vi)\n\nprint(vi_sort)\n\nif N == 2:\n print((vi[0]+vi[1])/2)\nelse:\n i = 0\n while i < (N-1):\n new_number = (vi_sort[0]+vi_sort[1])/2\n del vi_sort[0:2]\n vi_sort.append(new_number)\n vi_sort.sort()\n i += 1\n \n print(vi_... | ['Wrong Answer', 'Accepted'] | ['s176350081', 's323459116'] | [3064.0, 3060.0] | [19.0, 18.0] | [309, 293] |
p02935 | u875347753 | 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\nans = v[0]\nfor n in range(1, n):\n ans = (ans + v[i]) / 2.0\n \nprint(ans)', 'n = int(input())\nv = list(map(int, input().split()))\n\nv.sort()\nans = v[0]\n\nfor i in range(1, n):\n ans = (ans + v[i]) / 2.0\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s883237997', 's393399997'] | [2940.0, 2940.0] | [17.0, 17.0] | [127, 134] |
p02935 | u877428733 | 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()\nfor i in range(n-1):\n a[i+1] = (a[i] + a[i+1] / 2)\n\nprint(a[-1])', 'n = int(input())\na = list(map(int,input().split()))\n \na.sort()\nfor i in range(n-1):\n a[i+1] = (a[i] + a[i+1] / 2)\n\nprint(a[-1])', 'n = int(input())\na = list(map(int,i... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s253366044', 's495865291', 's198102293'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [130, 130, 131] |
p02935 | u890485928 | 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 i in range(n - 1):\n v[i + 1] = (v[i] + v[i + 1]) / 2\n\nprint(v[n - 1])\n', 'n = int(input())\nv = sorted(list(map(int, input().split())))\n\nfor i in range(n - 1):\n v[i + 1] = (v[i] + v[i + 1]) / 2\n\nprint(v[n - 1])\n'] | ['Wrong Answer', 'Accepted'] | ['s767753428', 's421763337'] | [2940.0, 2940.0] | [17.0, 17.0] | [147, 139] |
p02935 | u892227843 | 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 = [int(a) for a in input().split()]\n\nv.sort()\n\nfor i in range(N-1):\n tmp = (v[0]+v[1])/2\n v.pop(0)\n v.pop(0)\n v.insert(0,tmp)\n v.sort()\n print(v)\n\nprint(v[0])\n', '# -*- coding: utf-8 -*-\n \nN = int(input())\nv = [int(a) for a in input().sp... | ['Wrong Answer', 'Accepted'] | ['s589444507', 's198127209'] | [3060.0, 3060.0] | [17.0, 17.0] | [221, 211] |
p02935 | u895040371 | 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()\n \nres = v[0]\nfor i in range(1,N+1):\n res = (res+v[i])/2\nprint(res)', 'N=int(input())\nv=[int(i) for i in input().split()]\nv.sort()\n \nres = v[0]\nfor i in range(1,N):\n res = (res+v[i])/2\nprint(res)'] | ['Runtime Error', 'Accepted'] | ['s821395363', 's923933663'] | [2940.0, 3060.0] | [17.0, 19.0] | [129, 127] |
p02935 | u895408600 | 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\nfor i in range(N-1):\n tn = (v[0]+v[1])/2\n v.pop(0)\n v.pop(0)\n v.insert(0,tn)\n\nprint(v)', 'N = int(input())\nv = list(map(int,input().split()))\nv.sort()\n\nfor i in range(N-1):\n tn = (v[0]+v[1])/2\n v.pop(0)\n v.pop(0)\n ... | ['Wrong Answer', 'Accepted'] | ['s429968432', 's626284439'] | [2940.0, 3060.0] | [17.0, 17.0] | [161, 164] |
p02935 | u898080410 | 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()))\nsort_v = sorted(v, reverse=False)\nprint(sort_v)\nsum_tmp = 0\nfor i in range(2, n):\n sum_tmp += sort_v[i]*(2**(i-1))\nsum_all = sort_v[0] + sort_v[1] + sum_tmp\ndiv = 2 ** (n-1)\nans = sum_all / div\nprint(ans)\n \n ', 'n = int(input())\nv = list(map(int, in... | ['Wrong Answer', 'Accepted'] | ['s230490619', 's093654906'] | [3060.0, 3060.0] | [17.0, 17.0] | [264, 247] |
p02935 | u898336293 | 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())) \nimport bisect\nv.sort()\nfor i in range(N-1):\n bisect.insort(v,(v.pop(0)+v.pop(0))/2)\nprint(v)\n', 'N = int(input())\nv = list(map(int, input().split())) \nimport bisect\nv.sort()\nfor i in range(N-1):\n bisect.insort(v,(v.pop(0)+v.pop(0))/2)\nprint(*v)\n'] | ['Wrong Answer', 'Accepted'] | ['s093874550', 's906963818'] | [2940.0, 2940.0] | [17.0, 18.0] | [148, 149] |
p02935 | u902430070 | 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 = sorted(list(map(int,input().split())))\nfor i in range(a):\n if a = 0 :\n c = b[0]\n else:\n c = (b[i]+c)/2\nprint(c)\n\n', 'a = int(input())\nb = sorted(list(map(int,input().split())))\nfor i in range(a):\n if a == 0 :\n c = b[0]\n else:\n c = (b[i]+c)/2\nprint(c)', 'a = int(inp... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s514784179', 's885174949', 's001004487'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [142, 141, 141] |
p02935 | u909716307 | 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())\ntree = [[] for _ in range(n)]\nfor _ in range(n-1):\n a, b = map(int, input().split())\n tree[a-1].append(b-1)\n tree[b-1].append(a-1)\n\nxs = [0] * n\nfor _ in range(q):\n p, x = map(int, input().split())\n xs[p-1] += x\n\nans = [0] * n\n\ndef dfs(u, parent=None):\n ... | ['Runtime Error', 'Accepted'] | ['s126168900', 's783683485'] | [9192.0, 2940.0] | [27.0, 17.0] | [456, 161] |
p02935 | u910295650 | 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)\nwhile len(V)!=2:\n a=(V[0]+V[1])/2\n V.pop(0)\n V.pop(1)\n V.insert(0,a)\nprint((V[0]+V[1])/2)', 'N=int(input())\nV=sorted(list(map(int,input().split())))\nwhile len(V)!=2:\n a=(V[0]+V[1])/2\n V.pop(0)\n V.pop(0)\n V.insert(0,... | ['Wrong Answer', 'Accepted'] | ['s154029709', 's040339995'] | [3060.0, 3060.0] | [18.0, 17.0] | [166, 157] |
p02935 | u911438260 | 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\nfor i in range(N-1):\n v[i+1] = (v[i]+v[i+1]) / 2\n\nprint(v[n-1])', 'N = int(input())\nv = list(map(int,input().split()))\nv.sort()\n\nfor i in range(N-1):\n v[i+1] = (v[i]+v[i+1]) / 2\n\nprint(v[N-1])'] | ['Runtime Error', 'Accepted'] | ['s022527659', 's275171774'] | [2940.0, 2940.0] | [17.0, 17.0] | [128, 128] |
p02935 | u915934642 | 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()\nprint(v)\n\nans = v[0]\nfor i in range(N-1):\n ans = (ans+v[i+1])/2\n\nprint(ans)\n', '// Last Change: 08/18/2019 21:25:06.\n#include <algorithm>\n#include <array>\n#include <bitset>\n#include <cmath>\n#include <cstdlib>\n#include <functional>\n#inclu... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s450943432', 's715212005', 's990165917'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [140, 623, 133] |
p02935 | u919633157 | 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(reverse=True)\n\nwhile len(v)!=1:\n tmp=(v.pop()+v.pop())/2\n v.append(tmp)\nprint(v)', 'n=int(input())\nv=list(map(int,input().split()))\n\nv.sort(reverse=True)\n\nwhile len(v)!=1:\n tmp=(v.pop()+v.pop())/2\n v.append(tmp)\nprint(*v)'] | ['Wrong Answer', 'Accepted'] | ['s711612678', 's002091713'] | [2940.0, 3060.0] | [17.0, 17.0] | [142, 143] |
p02935 | u923659712 | 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()\ni=0\n\nk=v[0]\n \n \n\n \nwhile n>i:\n k+=v[i-1]\n k=k/2\n i+=1\n \nprint(k)', 'n = int(input())\nv = list(map(int, input().split()))\ni=0\nk=v[0]\n \n \n\n \nwhile n>i:\n k+=v[i-1]\n k=k/2\n i+=1\n \nprint(k)', 'n = int(input())\nv = list(m... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s422002861', 's831022536', 's074032767'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [132, 121, 129] |
p02935 | u932868243 | 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,inout().split()))\nl.sort()\nnew=(l[0]+[1])/2\nif n>=3:\n for i in range(2,n):\n new=(new+l[i])/2\n print(new)\nelse:\n print((l[0]+l[1])/2)\n ', 'n=int(input())\nl=list(map(int,input().split()))\nprint(max(l))', 'n=int(input())\nl=list(map(int,input().split()))\nl.sort()\nnew=... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s370924735', 's778532925', 's571421542'] | [3060.0, 2940.0, 3060.0] | [17.0, 17.0, 18.0] | [173, 61, 174] |
p02935 | u934868410 | 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(reverse=True)\nans = 0\ndiv = 2\nfor i in range(n-1):\n ans += v[i]/div\n div *= 2\nans += v[n-1]/div\nprint(ans)', 'n = int(input())\nv = list(map(int, input().split()))\nv.sort(reverse=True)\nans = 0\ndiv = 1\nfor i in range(n-1):\n div *= 2\n ans +=... | ['Wrong Answer', 'Accepted'] | ['s048106406', 's541247805'] | [3064.0, 3064.0] | [17.0, 17.0] | [168, 168] |
p02935 | u939581910 | 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=[x for x in map(int,input().split())]\nx=0\nfor i in a:\n x+=1/i\nprint(1/x)', 'N=int(input())\nx=[x for x in map(float,input().split())]\nx.sort()\na=0\nfor i in range(N):\n if i==0 or i==1:\n a+=x[i]/2**(N-1)\n else:\n a+=x[i]/2**(N-i)\nprint(a)'] | ['Wrong Answer', 'Accepted'] | ['s196047603', 's538706392'] | [2940.0, 2940.0] | [18.0, 17.0] | [92, 178] |
p02935 | u939734474 | 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())\n\na = list(map(float, input().split()))\nvalue = a[0]\n#value = a.get(0)\nfor i, e in enumerate(a):\n\tif i > 0:\n\t\tvalue += (value + e)/2\nprint(value)', '# -*- coding: utf-8 -*-\n\nn = int(input())\n\na = sorted(list(map(float, input().split())))\nvalue = a[0]\n#value ... | ['Wrong Answer', 'Accepted'] | ['s523989654', 's159881375'] | [2940.0, 3060.0] | [17.0, 18.0] | [239, 246] |
p02935 | u946424121 | 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 =[]\nfor i in range(n):\n l.append(int(input()))\nl = sorted(l)\n \nfor i in range(n-1):\n ave = (l[0] + l[1])/2\n l[0:2] = []\n l.insert(0,ave)\n \nprint(l[0])', 'n = int(input())\nl =[]\nfor i in range(n):\n l.append(int(input()))\nl.sort()\n\nfor i in range(n-1):\n ave = (l... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s762538285', 's780311712', 's793342921'] | [3060.0, 3060.0, 3060.0] | [17.0, 19.0, 17.0] | [184, 178, 166] |
p02935 | u947193699 | 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 random\nnum = int(input())\ns =list(map(int,input().split()))\ns =sorted(s)\na = s[0]\n\n\nprint(a)\nfor i in range(num):\n a=(a+s[i])/2\nprint(a)', 'import random\nnum = int(input())\ns =list(map(int,input().split()))\ns =sorted(s)\na = s[0]\n\nfor i in range(num):\n a=(a+s[i])/2\nprint(a)'] | ['Wrong Answer', 'Accepted'] | ['s261019620', 's805374259'] | [4336.0, 4336.0] | [33.0, 41.0] | [144, 134] |
p02935 | u949981986 | 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... | ['3\n500 300 200', 'import heapq\n\nn = int(input())\nv = list(map(int, input().split()))\n\nheapq.heapify(v)\nwork = heapq.heappop(v)\n\nfor _ in range(n - 1):\n work += heapq.heappop(v)\n work /= 2\n\nprint(work)'] | ['Runtime Error', 'Accepted'] | ['s917078883', 's897477841'] | [2940.0, 3060.0] | [17.0, 18.0] | [13, 188] |
p02935 | u950825280 | 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()))\nwhile len(v_list) != 1:\n sort(v_list)\n a = v_list.pop()\n b = v_list.pop()\n v_list.append((a + b) / 2)\nprint(v_list[0])', 'N = int(input())\nv = list(map(int, input().split()))\n \nwhile len(v) != 1:\n v.sort(reverse = True)\n a = v.pop... | ['Runtime Error', 'Accepted'] | ['s923601474', 's295414678'] | [3060.0, 3060.0] | [19.0, 19.0] | [188, 173] |
p02935 | u952708174 | 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 c_alchemist():\n N = int(input())\n V = [int(i) for i in input().split()]\n v = sorted(V, reverse=True)\n while len(v) > 1:\n x = v.pop()\n y = v.pop()\n v.append((x + y) / 2)\n return sum(v)', 'def c_alchemist():\n from functools import reduce\n N = int(input())\n V =... | ['Wrong Answer', 'Accepted'] | ['s294712720', 's364030292'] | [2940.0, 3572.0] | [18.0, 23.0] | [223, 191] |
p02935 | u953868469 | 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())\na = []\nfor i in range(n-1):\n a.append((input()))\n\nb = []\nfor j in range(q):\n b.append((input()))\n \naws = []\nfor k in range(n):\n aws.append(0)\n \ndef tree(t_num,point):\n aws[t_num - 1] += point\n for an in a:\n if t_num == int(an.split()[0]):\n ... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s091949835', 's194362580', 's781513399', 's816263748', 's305771428'] | [3064.0, 3064.0, 3064.0, 3064.0, 3064.0] | [17.0, 18.0, 18.0, 17.0, 17.0] | [536, 393, 475, 407, 414] |
p02935 | u962575856 | 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 = map(int, input().split())\na = (V[0] + V[1]) / 2\nfor i in range(2, N):\n a = (a + V[i]) / 2\nprint(a)', 'N = int(input())\nV = sorted(map(int, input().split()))\na = (V[0] + V[1]) / 2\nfor i in range(2, N):\n a = (a + V[i]) / 2\nprint(a)\n'] | ['Runtime Error', 'Accepted'] | ['s203648181', 's298041869'] | [2940.0, 2940.0] | [17.0, 18.0] | [120, 129] |
p02935 | u965033073 | 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(reverse=True)\nans=0\nfor i in range(N-1):\n k = List[i]/(2**(i+1))\n ans += k\nl = List[N]/(2**(N-1))\nans += l\nprint(ans)\n \n ', 'N=int(input())\nList=list(map(int,input().split()))\nList.sort(reverse=True)\nans=0\nfor i in range(N-2):\n ... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s046762638', 's723625983', 's607250250'] | [3060.0, 3060.0, 2940.0] | [17.0, 17.0, 18.0] | [194, 197, 196] |
p02935 | u965436898 | 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 itertools\nn = int(input())\nv = list(map(int,input().split()))\nvalues = []\nfor root in itertools.permutations(v):\n pot = root[0]\n for i in range(n - 1):\n pot = (pot + root[i + 1]) // 2\n if i == n - 2:\n values.append(pot)\nprint(max(values))', 'n = int(input())\nv = list(map(int,input().spl... | ['Wrong Answer', 'Accepted'] | ['s423342393', 's372341159'] | [23212.0, 3060.0] | [2105.0, 17.0] | [258, 199] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.