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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02639 | u076555346 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['X, N = map(int, input("").split(" "))\np = list(map(int,input().split()))\np.sort()\nq = [i+1 for i in range(-2*X,2*X)]\n\nans = 0\ndiff = 100\n\nfor i in q:\n if (abs(X - i) < diff and (not i in p)):\n ans = i\n diff = abs(X-i)\nprint(ans)\n', 'l = list(map(int,input().split()))\n\nfor i in range(le... | ['Runtime Error', 'Accepted'] | ['s381561078', 's216164080'] | [9012.0, 9104.0] | [19.0, 17.0] | [246, 112] |
p02639 | u077816564 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['X = list(map(int,input().split()))\nfor i in range(X):\n if X[i] == 0:\n print(i+1)', 'X = list(map(int,input().split()))\n\nfor i in range(len(X)):\n if X[i] == 0:\n print(i+1)\n break'] | ['Runtime Error', 'Accepted'] | ['s367100691', 's121697060'] | [9052.0, 8980.0] | [23.0, 25.0] | [84, 100] |
p02639 | u078276601 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x, y = map(int, input().split())\na = y - 2*x\nif a < 0:\n print("No")\nelif a > x:\n print("No")\nelif a % 2 == 0:\n print("Yes")\nelif a == 0:\n print("Yes")', 'a = list(map(int, input().split()))\nprint(a.index(0)+1)'] | ['Runtime Error', 'Accepted'] | ['s322032174', 's315504897'] | [9180.0, 9104.0] | [21.0, 21.0] | [162, 55] |
p02639 | u081714930 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['X,Y=map(int,input().split())\n\nif 2*X<Y<4*X and (Y-2*X)%2==0 and (4*X-Y)%2==0:\n print("Yes")\nelif (4*X-Y)/2==1 and (Y-2*X)/2==0:\n print("Yes")\nelif (4*X-Y)/2==0 and (Y-2*X)/2==1:\n print("Yes")\nelse:\n print("No")', 'var=list(map(int,input().split()))\n\nif var[0]==0:\n print(1)\nelif var[1]==0:\... | ['Runtime Error', 'Accepted'] | ['s251783052', 's287026433'] | [9064.0, 9124.0] | [23.0, 21.0] | [222, 178] |
p02639 | u081948001 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a, b, c, d, e=(int(x) in input().split())\nlist=[a, b, c, d, e]\nfor num in list:\n if num=1:\n print((list.index(num))+1)\n ', 'a,b,c,d,e=(int(x) for x in input().split())\nif a==1:\n print(1)\nelif b==1:\n print(2)\nelif c==1:\n print(3)\nelif d==1:\n print(4)\nelif e==1:\n print(5)', 'def sunukeaho(a, ... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s035793649', 's101335520', 's129752841', 's556101775', 's168329310'] | [8960.0, 9176.0, 9008.0, 9012.0, 9116.0] | [24.0, 20.0, 24.0, 22.0, 20.0] | [127, 151, 205, 164, 151] |
p02639 | u083031094 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x=list(map(int,input().split()))\nfor i,j in enumerate(x):\n if j == 0:\n print(i)\n ', 'x=list(map(int,input().split()))\nfor i in enumerate(x):\n if i[1]==0:\n print(i[0]+1)'] | ['Wrong Answer', 'Accepted'] | ['s238901954', 's373263877'] | [8976.0, 9156.0] | [24.0, 28.0] | [88, 87] |
p02639 | u083874202 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['import numpy as np\n\n\ndef getNearestValue(list, num):\n \n\n \n idx = np.abs(np.asarray(list) - num).argmin()\n return list[idx]\n\n\nX, Y = map(int, input().split())\nlist = list(map(int, input().split()))\nlist = sorted(list)\n\n\nlistHandred = []\nfor i in range(0,102):\n listHandred.append(i)\n ... | ['Runtime Error', 'Accepted'] | ['s207983610', 's720836328'] | [27048.0, 9100.0] | [110.0, 24.0] | [697, 48] |
p02639 | u084411645 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["r = 1\nfor i in range(input().split(' ')):\n r ^= int(i)\nprint(r)", "r = 1\nfor i in input().split(' '):\n r ^= int(i)\nprint(r)\n"] | ['Runtime Error', 'Accepted'] | ['s207238370', 's581868901'] | [9016.0, 9144.0] | [23.0, 25.0] | [63, 57] |
p02639 | u085329544 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['l = list(int, input())\n\nfor i in range(5):\n if l[i] == 0:\n print(i+1)\n exit()', 'l = list(map(int,input().split()))\n\nfor i in range(5):\n if l[i] == 0:\n print(i+1)\n exit()'] | ['Runtime Error', 'Accepted'] | ['s293626725', 's023011844'] | [9060.0, 9036.0] | [25.0, 22.0] | [84, 96] |
p02639 | u086056891 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['from bisect import bisect_left, bisect_right\n\nn = int(input())\na = list(map(int, input().split()))\na.sort()\nm = a[-1]\nc = [0] * (m + 1)\n\nfor ai in a:\n for i in range(ai, m + 1, ai):\n if bisect_right(a, i) - bisect_left(a, i) == 1:\n c[i] += 1\n\nprint(c.count(1))', 'x = list(map(int, in... | ['Runtime Error', 'Accepted'] | ['s923087255', 's128400473'] | [9128.0, 9108.0] | [24.0, 25.0] | [281, 54] |
p02639 | u087470052 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['nums = [int(s) for s in input().split(" ")]\nprint(nums)\nfor i in range(len(nums)):\n if nums[i] == 0:\n print(i + 1)', 'nums = [int(s) for s in input().split(" ")]\nfor i in range(len(nums)):\n if nums[i] == 0:\n print(i + 1)'] | ['Wrong Answer', 'Accepted'] | ['s153380381', 's544301264'] | [9164.0, 9104.0] | [20.0, 20.0] | [124, 112] |
p02639 | u087665185 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["ind = 1\nfor i in a:\n if i == '0':\n print(ind)\n break\n ind += 1", "a = input().split()\nind = 1\nfor i in a:\n if i == '0':\n print(ind)\n break\n ind += 1\n"] | ['Runtime Error', 'Accepted'] | ['s363879386', 's854201534'] | [9020.0, 9024.0] | [21.0, 23.0] | [82, 103] |
p02639 | u088475928 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['p=list(map(int,input().split()))\ncount=1\nfor item in p:\n if item==0:\n return count\n else:\n count+=1\n \n \n', 'p=list(map(int,input().split()))\ncount=1\nfor item in p:\n if item==0:\n print(count)\n else:\n count+=1\n continue\n \n \n'] | ['Runtime Error', 'Accepted'] | ['s686642097', 's215060882'] | [8900.0, 9092.0] | [24.0, 22.0] | [116, 129] |
p02639 | u089925107 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['X,N = map(int,input().split())\nA = list(map(int,input().split()))\nfor d in range(X+1):\n for i in [+1,-1]:\n B = X + d*i\n if A.count(B) == 0:\n print(B)\n exit(0)', 'X,N = map(int,input().split())\nA = list(map(int,input().split()))\nfor d in range(X+1):\n for i in [-1, +1]:\n B = X + d*i\n ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s044206643', 's148666884', 's762678339'] | [9180.0, 8996.0, 9092.0] | [20.0, 22.0, 30.0] | [175, 176, 62] |
p02639 | u091855288 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["n = input().spilt()\nfor i, j in range(n):\n if j == '0':\n print(i+1)\n exit()", "n = input().split()\nfor i, j in enumerate(n):\n if j == '0':\n print(i+1)\n break"] | ['Runtime Error', 'Accepted'] | ['s546874899', 's179978216'] | [9096.0, 8928.0] | [18.0, 22.0] | [82, 85] |
p02639 | u093793757 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x = input().split(" ")\nfor i in range(len(x)):\n if x[i] == 0:\n print (str(i))\n break', 'x = input().split(" ")\nfor i in range(len(x)):\n if int(x[i]) == 0:\n print (i+1)\n break'] | ['Wrong Answer', 'Accepted'] | ['s587025474', 's820888411'] | [8964.0, 9100.0] | [23.0, 25.0] | [91, 93] |
p02639 | u094300401 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['# -*- coding: utf-8 -*-\na, b, c, d, e = map(int, input().split())\n\nsuuji_list = ["", a, b, c, d, e]\n\nprint(list.index(0))\n', '# -*- coding: utf-8 -*-\na, b, c, d, e = map(int, input().split())\n \nsuuji_list = ["", a, b, c, d, e]\n \nprint(suuji_list.index(0))'] | ['Runtime Error', 'Accepted'] | ['s072466363', 's053550777'] | [8992.0, 9100.0] | [26.0, 23.0] | [122, 129] |
p02639 | u094999522 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['n,*a=map(int,open(0).read().split())\ni = 0\nwhile a:\n if a.count(a[0]) == 1:\n i+=1\n a = list(filter(lambda x: x%a[0] >0,a))\nprint(i)', '_, *a = map(int, open(0).read().split())\na.sort()\nm = -~a[-1]\nc = [0] * m\nfor i in a:\n c[i] += 1\n if c[i] > 1:\n continue\n for j in range(i *... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s615510095', 's858846091', 's755694345'] | [9108.0, 9108.0, 9056.0] | [19.0, 24.0, 22.0] | [144, 210, 67] |
p02639 | u102776280 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a1 = input()\na2 = input()\na3 = input()\na4 = input()\na5 = input()\nif a1 == 0:\n print(1)\nif a2 == 0:\n print(2)\nif a3 == 0:\n print(3)\nif a4 == 0:\n print(4)\nif a5 == 0:\n print(5)\n', 'a1,a2,a3,a4,a5 = map(int, input().split())\nans = [a1,a2,a3,a4,a5]\nprint(ans.index(0)+1)'] | ['Runtime Error', 'Accepted'] | ['s936575132', 's291502512'] | [9112.0, 9188.0] | [23.0, 21.0] | [180, 87] |
p02639 | u105146481 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a,b,c,d =map(int, input().split())\n\nif(a==0):\n print("1")\n\nelif(b==0):\n print("1")\n\nelif(c==0):\n print("1")\n\nelif(d==0):\n print("1")', 'a,b,c,d,e =map(int, input().split())\n\nif(a==0):\n print("1")\n\nelif(b==0):\n print("2")\n\nelif(c==0):\n print("3")\n\nelif(d==0):\n print("4... | ['Runtime Error', 'Accepted'] | ['s226029758', 's188120024'] | [9112.0, 9176.0] | [26.0, 23.0] | [145, 180] |
p02639 | u107494228 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a,b,c,d,e=map(int,input().split()))\nif(a==0):\n print(1)\nif(b==0):\n print(2)\nif(c==0):\n print(3)\nif(d==0):\n print(4)\nif(e==0):\n print(5)', 'n=int(input())\nl=list(map(int,input().split()))\na=[0]*(10**6+1)\nfor i in range(n):\n if(a[l[i]]==0):\n for j in range(2*l[i],10**6+1,l[i]):\n ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s546687111', 's819754487', 's154767527'] | [8844.0, 9096.0, 9124.0] | [22.0, 24.0, 23.0] | [150, 205, 149] |
p02639 | u107799502 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['import numpy as np\nX, N = map(int, input().split())\np_list = set([int(i) for i in input().split()])\nset_all = set(np.arange(-100, 101))\nex_list = set_all-p_list\nex_list = list(ex_list)\ndiff_list = [np.abs(i-X) for i in ex_list]\nmin_index = np.argmin(diff_list)\nprint(ex_list[min_index])', 'import numpy\ninput_... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s019139686', 's703056275', 's439993108'] | [27164.0, 27136.0, 27112.0] | [112.0, 108.0, 107.0] | [286, 122, 124] |
p02639 | u111473084 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['def main():\n from operator import itemgetter\n import sys\n sys.setrecursionlimit(10**9)\n input = sys.stdin.readline\n\n X = list(map(int,input().split))\n for i in range(X):\n if X[i] == 0:\n print(i+1)\n return\n\nmain()', 'def main():\n from operator import itemg... | ['Runtime Error', 'Accepted'] | ['s761487380', 's150773789'] | [9100.0, 9096.0] | [23.0, 26.0] | [259, 267] |
p02639 | u113569368 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x_ = list(map(int, input().split()))\n\nfor i in range(x_):\n if x_[i] == 0:\n print(i)', 'x_ = list(map(int, input().split()))\n \nfor i in range(len(x_)):\n if x_[i] == 0:\n print(i)', 'x_ = list(map(int, input().split()))\n \nfor i in range(len(x_)):\n if x_[i] == 0:\n print(i+1)'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s651394315', 's971210337', 's766278027'] | [9104.0, 9028.0, 9156.0] | [21.0, 23.0, 21.0] | [87, 93, 95] |
p02639 | u115297349 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['n = int(input())\ns = [int(i) for i in input().split()]\nl = 0\nfor i in range(n):\n for j in range(n):\n if (s[i] == s[j] or s[i]%s[j] == 0) and (i != j):\n l += 1\n break\nprint(len(s)-l)\n', 'n = int(input())\ns = [int(i) for i in input().split()]\ns = set(s)\nfor i in s:\n\tfor j in s:\n\t\tif i == ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s095975643', 's112877680', 's503445576'] | [9176.0, 9052.0, 9028.0] | [23.0, 24.0, 22.0] | [196, 195, 57] |
p02639 | u121879791 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x,n=map(int,input().split())\nimport sys\nif n==0:\n _=input()\n print(x)\n sys.exit()\n \np_list=list(map(int,input().split()))\nr=list(range(100))\na=list(set(r)-set(p_list))\n\nans=100000\nkkk=100000\nfor i in a:\n tem=abs(i-x)\n if ans>tem:\n ans=tem\n kkk=i\n \nprint(kkk)', "a=... | ['Runtime Error', 'Accepted'] | ['s285984734', 's209599332'] | [9232.0, 9092.0] | [19.0, 22.0] | [293, 73] |
p02639 | u132583371 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x = list(map(int,input().split()))\n\nfor i in range(5):\n if i == 0:\n print(i)', 'x = list(map(int,input().split()))\n\nfor i in range(5):\n if x[i] == 0:\n print(i+1)'] | ['Wrong Answer', 'Accepted'] | ['s671845989', 's700614990'] | [9188.0, 9168.0] | [21.0, 26.0] | [86, 91] |
p02639 | u135632715 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['data = list(map(int, input().split()))\np = data.find(0)\nprint(p+1)', 'data = list(map(int, input().split()))\np = data.index(0)\nprint(p+1)'] | ['Runtime Error', 'Accepted'] | ['s931900705', 's395035986'] | [9128.0, 9160.0] | [25.0, 28.0] | [66, 67] |
p02639 | u136284779 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["x,y=map(int,input().split())\nif y%2==0 and 2*x<=y and y<=4*x:\n print('Yes')\nelse:\n print('No')", "x,y=map(int,input().split())\nif y%2==0 and 2*x<=y and y<=4*x:\n print('Yes')\nelse:\n print('No')", "x,y=map(int,input().split())\nif y%2==0 and 2*x<=y and y<=4*x:\n print('Yes')\nelse:\n print('No... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s162973956', 's705521404', 's916448197', 's345804685'] | [9052.0, 9160.0, 9092.0, 9152.0] | [25.0, 20.0, 23.0, 21.0] | [100, 100, 100, 108] |
p02639 | u137646745 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['length=int(input())\nlist=list(map(int,input().split()))\nlist.sort()\nmax=list[-1]\ndp=[True]*(max+1)\nret=0\nfor num in list:\n if dp[num]:\n if list.count(num)!=1:\n dp[num]=False\n else:\n ret=ret+1\n i=2\n num2=num*i\n while num2<max+1:\n ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s219320446', 's307515717', 's897146251'] | [9208.0, 9084.0, 9012.0] | [20.0, 29.0, 26.0] | [427, 395, 102] |
p02639 | u141419468 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["X, Y = map(int, input().split())\n\nfor i in range(X+1):\n foot=i*2+(X-i)*4\n if foot==Y:\n print('Yes')\n exit()\n\nprint('No')", 'x = list(map(int,input().split()))\n\nprint(x)\nfor i in range(5):\n if x[i] == 0:\n print(i+1)', 'x = list(map(int,input().split()))\n\nprint(x)\nfor i in ... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s118425080', 's224925320', 's844892614', 's621662372'] | [9016.0, 9104.0, 9112.0, 9148.0] | [24.0, 24.0, 24.0, 30.0] | [140, 100, 123, 112] |
p02639 | u146346223 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['arr = list(map(int, input().split()))\n\nfor i in arr:\n if i == 0:\n print(i)\n exit()\n', 'arr = list(map(int, input().split()))\nprint(arr.index(0)+1)'] | ['Wrong Answer', 'Accepted'] | ['s434874872', 's610746692'] | [9100.0, 9156.0] | [19.0, 19.0] | [100, 59] |
p02639 | u149475724 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['user_input = list(map(int, input().split()))\n# print(user_input)\n# to find the index where zero is located\nindexOfZero = [x for x in range(0, 5) if user_input[x] == 0]\nprint(indexOfZero[0])', 'user_input = list(map(int, input().split()))\n# print(user_input)\n# to find the index where zero is located\nindexOfZero... | ['Wrong Answer', 'Accepted'] | ['s802544753', 's902163887'] | [9016.0, 9000.0] | [26.0, 26.0] | [189, 193] |
p02639 | u152252650 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['X = list(map(int,input().split()))\n\nif X[0]==0:\n print(1)\n elif X[1] == 0:\n print(2)\n elif X[2] == 0:\n print(3)\n elif X[3] == 0:\n print(4)\n else:\n print(5)\n', 'X = list(map(int,input().split()))\n\nif X[0]==0:\n print(1)\n elif X[1] == 0:\n print(2)\n elif X[2] == 0:\n print(3)\n... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s269750588', 's897839773', 's261936136'] | [8828.0, 9020.0, 8880.0] | [27.0, 21.0, 27.0] | [169, 196, 157] |
p02639 | u159144188 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x = list(map(int, input().split()))\ncounter = 0\nfor i in x:\n counter += 1\n if x == 0:\n print(counter) ', 'x = list(map(int, input().split()))\ncounter = 0\nfor i in x:\n counter += 1\n if i == 0:\n print(counter)'] | ['Wrong Answer', 'Accepted'] | ['s503485509', 's497015580'] | [9152.0, 9116.0] | [25.0, 23.0] | [107, 106] |
p02639 | u159369286 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x = (list(map(int,input().split()))\nx = sum(x)\nans = 15-x\nprint(ans)', 'x = (list(map(int,input().split()))\nx = sum(x)\nans = 15-x\nprint(ans)', 'x = list[map(int,input().split())]\nx = sum(x)\nans = 15-x\nprint(ans)', 'x,y = map(int,input().split())\nif y < x * 4 and y > x * 2 and y % 2 != 0:\n ans ="No"\n... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s037179415', 's416154663', 's458908064', 's554245652', 's826033069', 's714341554'] | [8812.0, 8768.0, 8836.0, 9156.0, 8684.0, 9016.0] | [20.0, 25.0, 18.0, 24.0, 21.0, 28.0] | [69, 69, 68, 120, 80, 71] |
p02639 | u161411695 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x, y = [int(x) for x in input().split()]\nif 4 * x >= y and (y%4 ==0 or (y %2 == 0 and (y-2)%4==0)):\n print("Yes")\nelse:\n print("No")\n', 'a = [int(x) for x in input().split()]\nfor i in range(5):\n if a[i] == 0:\n print(i+1)\n exit(0)'] | ['Runtime Error', 'Accepted'] | ['s608986402', 's839852830'] | [9104.0, 9052.0] | [23.0, 25.0] | [135, 99] |
p02639 | u162023460 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["nums = input().split()\nnums = list(map(int, nums))\nprint('hoge')\nfor i, n in enumerate(nums):\n if n == 0:\n print(i + 1)\n", 'nums = input().split()\nnums = list(map(int, nums))\n\nfor i, n in enumerate(nums):\n if n == 0:\n print(i + 1)\n'] | ['Wrong Answer', 'Accepted'] | ['s035954411', 's048281814'] | [8992.0, 9152.0] | [29.0, 25.0] | [130, 117] |
p02639 | u162565714 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["x1=int(input())\nx2=int(input())\nx3=int(input())\nx4=int(input())\nx5=int(input())\nif x1==0:\n print('x1')\nif x2==0:\n print('x2')\nif x3==0:\n print('x3')\nif x4==0:\n print('x4')\nif x5==0:\n print('x5')\n", 'x1=int(input())\nx2=int(input())\nx3=int(input())\nx4=int(input())\nx5=int(input())\nif x... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s606664148', 's930473699', 's606675159'] | [9004.0, 9176.0, 8828.0] | [24.0, 20.0, 26.0] | [210, 195, 163] |
p02639 | u162893962 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a = [int(i) for i in input().split()]\nprint(a)\nfor idx in range(len(a)):\n x = a[idx]\n if x == 0:\n print(idx + 1)\n', 'a = [int(i) for i in input().split()]\nfor idx in range(len(a)):\n x = a[idx]\n if x == 0:\n print(idx + 1)\n'] | ['Wrong Answer', 'Accepted'] | ['s111351158', 's814009656'] | [8976.0, 9156.0] | [21.0, 23.0] | [126, 117] |
p02639 | u163971674 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['line=input().split(" ")\nj=0\nfor i in line:\n j=j+1\n if i==0:\n print(j)', 'line=input().split(" ")\nj=0\nfor i in line:\n j=j+1\n if i=="0":\n print(j)\n\n'] | ['Wrong Answer', 'Accepted'] | ['s217329201', 's131190691'] | [8968.0, 8956.0] | [26.0, 19.0] | [74, 78] |
p02639 | u165314687 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['str = input()\ndata = str.strip().split()\nfor i in range(5):\n print(data[i])\n if data[i] == "0":\n print(i+1)\n break', 'str = input()\ndata = str.strip().split()\nfor i in range(5):\n if data[i] == "0":\n print(i+1)'] | ['Wrong Answer', 'Accepted'] | ['s767605905', 's479871696'] | [8844.0, 8908.0] | [24.0, 27.0] | [124, 96] |
p02639 | u167681994 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a = input().split()\nfor i in range(0,5):\n if (i + 1) == int(a[i]):\n continue\n else:\n print(a[i])\n', 'a = input().split()\nfor i in range(5):\n if i + 1 == int(a[i]):\n continue\n else:\n print(a[i])\n', 'a = input().split()\nfor i in range(0,5):\n if i + 1 == int(a[i]):\n continue\n else:\n... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s401199404', 's692225365', 's795281876', 's828204258'] | [9088.0, 9048.0, 8860.0, 9072.0] | [23.0, 26.0, 24.0, 30.0] | [105, 101, 102, 104] |
p02639 | u168030064 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x = input().split()\nprint(x.index("0"))', 'x = input().split()\nprint(x.index("0") + 1)'] | ['Wrong Answer', 'Accepted'] | ['s123086784', 's067569197'] | [9016.0, 9024.0] | [23.0, 19.0] | [39, 43] |
p02639 | u173644182 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['def main():\n x, n = map(int, input().split())\n p = list(map(int, input().split()))\n _near = 0\n for i in range(101):\n if i in p:\n continue\n if abs(_near - x) > abs(i - x):\n if _near > i:\n _near = i\n print(_near)\n\n\nif __name__ == "__main__":... | ['Runtime Error', 'Accepted'] | ['s522039000', 's489194470'] | [9172.0, 9032.0] | [24.0, 19.0] | [317, 167] |
p02639 | u174831560 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a = input()\nj = 1\nfor i in a:\n if i ==0 :\n print(j)\n j++', "c = input()\nc = c.split(' ')\nx = int(c[0])\ny = int(c[1])\nsa = 4 * x -y\nsa /=2\nsb = x - sa\nall = sa * 2 + sb * 4\nif all == y and 100 >= sa >=0 and 100 >= sb >= 0:\n print('Yes')\nelse:\n print('No')", "x = input()\nx = x.split(' ')\nj = ... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s307364869', 's376284953', 's825319645'] | [8884.0, 9188.0, 9092.0] | [21.0, 21.0, 23.0] | [63, 196, 85] |
p02639 | u174990305 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x = list(map(int,input().split()))\nfor i in range(5):\n if x[i] == 0:\n print(i)\n else:\n pass', 'x = list(map(int,input().split()))\nfor i in range(5):\n if x[i] == 0:\n print(i+1)\n else:\n pass'] | ['Wrong Answer', 'Accepted'] | ['s178395071', 's837489800'] | [8972.0, 9004.0] | [29.0, 23.0] | [99, 101] |
p02639 | u179365960 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x, y = input().split()\nx = int(x)\ny = int(y)\n\ndef check(x, y):\n \n for i in range(0, x):\n \n leg2_animal = i\n leg4_animal = x - leg2_animal\n \n \n sum_legs = leg2_animal * 2 + leg4_animal * 4\n\n if sum_legs == y:\n print("Yes")\n re... | ['Runtime Error', 'Accepted'] | ['s134538008', 's700141612'] | [9128.0, 9552.0] | [22.0, 25.0] | [437, 126] |
p02639 | u180172332 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['input_list = input().split(" ")\n[print(i+1) for i in range(len(input_list)) if input_list[i]!=i+1]', 'input_list = list(map(lambda x:int(x),input().split(" ")))\n[print(i+1) for i in range(len(input_list)) if input_list[i]!=i+1]'] | ['Wrong Answer', 'Accepted'] | ['s823621673', 's072375806'] | [8972.0, 9192.0] | [22.0, 22.0] | [98, 125] |
p02639 | u181159654 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x = list(map(int, input().split()))\nx_l = [1,2,3,4,5]\n\nfor i in range(ren(x_l)):\n if x_l[i] != x[i]:\n print(i+1)', 'x = list(map(int, input().split()))\n\nfor i in range(len(x)):\n if x[i] == 0:\n print(i+1)'] | ['Runtime Error', 'Accepted'] | ['s855876220', 's853231640'] | [9168.0, 9160.0] | [23.0, 20.0] | [122, 97] |
p02639 | u181424364 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['c=list(map(int, input().split()))\nc = str(c)\nc = c.find(0)\nprint(c)', 'a=list(map(int, input().split()))\n\nindex = a.find(0)\nprint(index)', 'a=list(map(int, input().split()))\nindex = input.a(0)\nprint(a)', 'c=list(map(int, input().split()))\nprint(c.find(0))', 'c=list(map(int, input().split()))\nfor i in range(... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s206672928', 's507193937', 's708158141', 's866040501', 's616862848'] | [9140.0, 9164.0, 9016.0, 9156.0, 9108.0] | [24.0, 18.0, 18.0, 21.0, 20.0] | [67, 65, 61, 50, 107] |
p02639 | u183158695 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a,b,c,d,e = map(int, input().split())\nr = o\nif a = 0:\n r = a\n else if b = 0:\n r = b\n else if c = 0:\n r = c\n else if d = 0:\n r = d\n else if e = 0:\n r = e\nprint(r)', 'num_list = list(map(int, input().split()))\n\n\nif num_list[0] == 0:\n print(1)\nelif num_list[1] == 0:\n print(2)\nelif n... | ['Runtime Error', 'Accepted'] | ['s872408444', 's794116488'] | [9020.0, 9064.0] | [22.0, 20.0] | [178, 212] |
p02639 | u185120792 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['l = list(map(int, input().split()))\n\nc = 0\nfor x in l:\n if x == 0:\n print(c)\n c++', 'l = list(map(int, input().split()))\n\nc = 1\nfor x in l:\n if x == 0:\n print(c)\n c += 1\n'] | ['Runtime Error', 'Accepted'] | ['s950288276', 's319939863'] | [9020.0, 9152.0] | [21.0, 21.0] | [94, 98] |
p02639 | u187883751 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a,b,c,d,e=[int(input()) for i in range(4)]\nif i == 0:\n print(range(i))\n', 'a,b,c,d,e=map(int,input().split())\nlist=[a,b,c,d,e]\nfor i in list():\n if i==0:\n print(list.index(i)+1) \n', "a,b,c,d,e = int(input())\nlists = ['a', 'b', 'c', 'd', 'e']\nfor i in range(lists(4)):\n if i == 0:\n pr... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s329266429', 's376702655', 's426361963', 's043892621'] | [9156.0, 8888.0, 9168.0, 8916.0] | [23.0, 21.0, 22.0, 22.0] | [74, 114, 116, 52] |
p02639 | u188305619 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['X, N = map(int, input().split())\np = list(map(int, input().split()))\n\nnot_in_p = list(range(1,101))\nfor pn in p:\n if pn in not_in_p:\n not_in_p.remove(pn)\n\ndiff_p = []\nfor not_in_pn in not_in_p:\n diff_p.append(abs(not_in_pn - X))\nmin_value_index = [j for j, value in enumerate(diff_p) if value ... | ['Runtime Error', 'Accepted'] | ['s619255042', 's247175632'] | [9152.0, 9180.0] | [20.0, 24.0] | [500, 57] |
p02639 | u190178779 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['import sys\n\nX,N = map(int,input().split())\nP = list(map(int,input().split()))\nif X < 1 or 100 < X:\n sys.exit()\nif N < 0 or 100 < N:\n sys.exit()\nif N == 0:\n print(X)\n sys.exit()\n\nP_number = len(P)\nif P_number < 1 or 100 < P_number:\n sys.exit()\n\nres1 = 100\nres2 = 100\nres0 = 0\ni = 0\nj ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s026110238', 's072009691', 's075658681', 's086863730', 's232156692', 's316029081', 's515334578', 's544254524', 's591033696', 's725739468', 's842028475', 's291655471'] | [9228.0, 9168.0, 9080.0, 8972.0, 9112.0, 9032.0, 9224.0, 8880.0, 9220.0, 9024.0, 8840.0, 9156.0] | [25.0, 26.0, 23.0, 21.0, 28.0, 19.0, 21.0, 23.0, 20.0, 26.0, 18.0, 24.0] | [559, 494, 562, 87, 72, 561, 520, 571, 580, 382, 107, 74] |
p02639 | u193771328 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['X, N = map(int, input().split())\np = list(map(int, input().split()))\n\nfor d in range(X + 1):\n if X - d not in p:\n print(X-d)\n exit()\n elif X + d not in p:\n print(X+d)\n exit()\n', 'X, N = map(int, input().split())\np = list(map(int, input().split()))\n\nfor d in range(X + 1):... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s091667685', 's885573396', 's491825261'] | [9064.0, 9004.0, 27024.0] | [25.0, 21.0, 115.0] | [209, 212, 139] |
p02639 | u197368761 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['i = input()\np = i.index(0) + 1\nprint(p)', "i = input().split(' ')\nl_si_i = [int(s) for s in i]\np = l_si_i.index(0) + 1\nprint(p)"] | ['Runtime Error', 'Accepted'] | ['s976441503', 's730856632'] | [8940.0, 9028.0] | [20.0, 23.0] | [39, 84] |
p02639 | u197457087 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['N = int(input())\nA = list(map(int,input().split()))\nAdic={}\nfor i in range(N):\n if A[i] not in Adic:\n Adic[A[i]] = 1\n else:\n Adic[A[i]] += 1\nAset = set(A)\nif 1 in Aset: \n if Adic[1] == 1:\n print(1)\n else:\n print(0)\n exit()\nans = 0\nfor j in range(N):\n Flag = True\n temp = A[j]\n i ... | ['Runtime Error', 'Accepted'] | ['s137345753', 's932880440'] | [9244.0, 9028.0] | [21.0, 22.0] | [608, 67] |
p02639 | u200228637 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['n = list(map(int, input().split()))\n\nx = s.index(0)\nprint(x + 1)', 'n = list(map(int, input().split()))\ns = n.index(0)\nprint(s + 1)'] | ['Runtime Error', 'Accepted'] | ['s474743337', 's792583996'] | [9068.0, 8968.0] | [18.0, 24.0] | [64, 63] |
p02639 | u206352909 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a=input()\nprint(a.find("0"))', 'a=input()\na=a.replace(" ","")\nprint(a.find("0")+1)'] | ['Wrong Answer', 'Accepted'] | ['s859376863', 's343384399'] | [8956.0, 8904.0] | [20.0, 22.0] | [28, 50] |
p02639 | u206541745 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x= list(map(int, input().strip().split()))\nfor i in range(len(x)):\n if x[i]==3:\n print(i+1)\n break', 'x= list(map(int, input().strip().split()))\nfor i in range(len(x)):\n if x[i]==0:\n print(i+1)\n break'] | ['Wrong Answer', 'Accepted'] | ['s349478061', 's287819383'] | [9100.0, 9096.0] | [21.0, 22.0] | [105, 105] |
p02639 | u208633734 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['X = list(map(int,input()))\n\nfor i in range(len(X)):\n if X[i]==0:\n print(i+1)\n ', 'x = list(map(int,input()))\nfor i in range(5):\n if x[i]==0:\n print(i)', 'x = list(map(int,input()))\nfor i in range(5):\n if find 0 in x:\n print(i)', 'X = list(map(int,input()))\n\nfor i in len(5):\n if X[i]==0:\... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s338603310', 's395994369', 's515385473', 's646350107', 's759345113', 's794980822', 's877666648', 's475291586'] | [8796.0, 8824.0, 8776.0, 8860.0, 9128.0, 9048.0, 8896.0, 9092.0] | [21.0, 25.0, 25.0, 23.0, 25.0, 26.0, 26.0, 27.0] | [85, 72, 76, 78, 73, 86, 74, 84] |
p02639 | u210987097 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a = list(map(,int, input().split()))\nn = len(a)\nprint((n * (n+1) // 2) - sum(a))', 'a = list(map(int, input().split()))\nn = len(a)\nprint((n * (n+1) // 2) - sum(a))'] | ['Runtime Error', 'Accepted'] | ['s603627373', 's695610897'] | [8876.0, 9108.0] | [19.0, 21.0] | [80, 79] |
p02639 | u211706121 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['A=list(map(int,input().split()))\nfor i in range(1):\n if A[i]==0:\n print(i)', 'A=list(map(int,input().split()))\nfor i in range(1,6):\n if A[i]==0:\n print(i)', 'A=list(map(int,input().split()))\nfor i in range(1,6):\n if A[i-1]==0:\n print(i)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s260592474', 's864378513', 's912650881'] | [9156.0, 9116.0, 9016.0] | [28.0, 25.0, 23.0] | [84, 86, 88] |
p02639 | u214209871 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['xlist = list(map(int,input().split()))\n\nprint(xlist.index(0))\n', 'xlist = list(map(int,input().split()))\n\nprint(xlist.index(0) + 1)\n'] | ['Wrong Answer', 'Accepted'] | ['s862468473', 's630622375'] | [9068.0, 9024.0] | [22.0, 28.0] | [62, 66] |
p02639 | u215286521 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['from math import floor,ceil,sqrt,factorial,log\nfrom collections import Counter, deque\nfrom functools import reduce\nimport numpy as np\ndef S(): return input()\ndef I(): return int(input())\ndef MS(): return map(str,input().split())\ndef MI(): return map(int,input().split())\ndef FLI(): return [int(i) for i in inpu... | ['Wrong Answer', 'Accepted'] | ['s692848074', 's047175737'] | [27000.0, 26780.0] | [112.0, 119.0] | [702, 693] |
p02639 | u217836256 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["xy = [int(x) for x in input().split()]\nX = xy[0]\nY = xy[1]\nif Y%2 == 0 and 2*X< Y and Y<4*X:\n print('Yes')\nelse:\n print('No')", 'x = [int(x) for x in input().split()]\nt = [1,2,3,4,5]\nx_set = set(x)\nt_set = set(t)\nxt = x_set&t_set\ns = t_set-xt\ns1 = list(s)\nprint(s1[0])'] | ['Wrong Answer', 'Accepted'] | ['s766069530', 's243003654'] | [9164.0, 9184.0] | [22.0, 21.0] | [131, 139] |
p02639 | u218108604 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["import sys\n# from collections import deque\n# from collections import Counter\n# from math import sqrt\n# from math import log\n# from math import ceil\n\n\n# \tif(a==0):\n# \t\treturn b \n\n\n\n\n# \tp=2\n# \twhile(p*p<=n): \n\n\n\n# \t\tp+=1\n\n\n# \ts=set()\n\n\n# \t\ts.add(i)\n\n\n# alpha=['a', 'b', 'c', 'd', 'e... | ['Runtime Error', 'Accepted'] | ['s538120900', 's421262896'] | [9208.0, 9196.0] | [25.0, 21.0] | [1251, 1130] |
p02639 | u219937318 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['A,B,C,D,E=map(int,input().split())\n if A == 0:\n print(1)\n elif B == 0:\n print(2)\n elif C == 0:\n print(3)\n elif D == 0:\n print(4)\n else E == 0:\n print(5)', 'A,B,C,D,E=map(int,input().split())\nif A == 0:\n print(1)\nelif B == 0:\n print(2)\nelif C == 0:... | ['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'] | ['s012240623', 's098162963', 's142556519', 's257662817', 's400919283', 's450000935', 's463382317', 's467859411', 's498778636', 's597491218', 's722821639', 's743952768', 's780326887', 's993158390'] | [8952.0, 8964.0, 8944.0, 8948.0, 9016.0, 8956.0, 8964.0, 8948.0, 8884.0, 8956.0, 8848.0, 9200.0, 9172.0, 9108.0] | [18.0, 24.0, 22.0, 23.0, 19.0, 22.0, 20.0, 22.0, 23.0, 22.0, 26.0, 22.0, 22.0, 20.0] | [202, 163, 183, 196, 204, 164, 219, 213, 153, 159, 153, 133, 177, 157] |
p02639 | u221301671 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["h, w, k = map(int, input().split())\nx1, y1, x2, y2 = map(int, input().split())\nx1, y1, x2, y2 = x1-1, y1-1, x2-1, y2-1\n\nm = [[-1] * w for _ in range(h)]\nfor hh in range(h):\n c = input()\n for ww, cc in enumerate(c):\n if cc == '.':\n m[hh][ww] = h*w\n\nfrom collections import deque\nq = ... | ['Runtime Error', 'Accepted'] | ['s097792889', 's941964669'] | [9268.0, 9076.0] | [22.0, 21.0] | [1561, 44] |
p02639 | u221998589 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['import numpy as np\n\nA = np.array(list(map(int, input().split())))\n\nprint(np.where(A == 0)[0][0])', 'import numpy as np\n\nA = np.array(list(map(int, input().split())))\n\nprint(np.where(A == 0)[0][0] + 1)'] | ['Wrong Answer', 'Accepted'] | ['s177096593', 's117293288'] | [26904.0, 26980.0] | [116.0, 116.0] | [96, 100] |
p02639 | u222109016 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["i = list(map(int, input().split()))\n\nani_amounts = i[0]\nleg_amounts = i[1]\n\nk = 0\n\n\n\nfor turtle in range(ani_amounts):\n for crane in range(ani_amounts):\n if 4 * turtle + 2 * crane == leg_amounts and turtle + crane == ani_amounts:\n print('yes')\n k = 1\nif k == 0:\n print... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s378692691', 's507482482', 's527318903', 's704626495', 's969405127', 's538525382'] | [9116.0, 9148.0, 9060.0, 9116.0, 9088.0, 8996.0] | [28.0, 28.0, 25.0, 25.0, 26.0, 23.0] | [309, 306, 313, 311, 556, 92] |
p02639 | u222668979 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x = list(map(int, input().split()))\n\nfor i in range(5):\n if x[i] == 0:\n print(i)\n', 'x = list(map(int, input().split()))\n\nfor i in range(5):\n if x[i] == 0:\n print(i + 1)\n'] | ['Wrong Answer', 'Accepted'] | ['s789642091', 's489965616'] | [9128.0, 9024.0] | [26.0, 24.0] | [91, 95] |
p02639 | u224851973 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['nums = [int(e) for e in input().split()]\nfor i in range(5):\n if not xs[i] == i:\n print(i)\n break', 'xs[5] = []\nfor i in range(5):\n xs.append(int(input()))\n if not xs[i] = i:\n print i\n break\n', 'nums = [int(e) for e in input().split()]\nfor i in range(5):\n if not xs[i] == i:\n print(i)\n ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s431773370', 's602725647', 's620088252', 's621234961', 's731345033', 's210707331'] | [9164.0, 8952.0, 9160.0, 9016.0, 8948.0, 9160.0] | [25.0, 23.0, 26.0, 21.0, 24.0, 22.0] | [103, 98, 103, 99, 97, 105] |
p02639 | u225463683 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['data = [int(x) for x in input().split(" ")]\n\nfor i in range(len(data)):\n if data[i] == 0: print(i)\n', 'data = [int(x) for x in input().split(" ")]\n\nfor i in range(len(data)):\n if data[i] == 0: print(i+1)\n'] | ['Wrong Answer', 'Accepted'] | ['s745065569', 's121212975'] | [9028.0, 9128.0] | [28.0, 20.0] | [100, 102] |
p02639 | u227688394 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['X = list(map(int, input().split()))\nif X[0] == 0:\n print(1)\nelif X[1] == 0:\n print(2)\nelif X[2] == 0:\n print(3)\nelif X[3] == 0:\n print(4)\n else:\n print(5)', 'X = list(map(int, input().split()))\nif X[0] == 0:\n print(1)\nelif X[1] == 0:\n print(2)\nelif X[2] == 0:\n print(3)\nelif X[3] == 0:\n... | ['Runtime Error', 'Accepted'] | ['s295152300', 's067615917'] | [8928.0, 9112.0] | [25.0, 27.0] | [159, 168] |
p02639 | u227907942 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['c=list(map(int, input().split())) \nfor i,a in enumerate(c):\n if a ==0:\n print(i)', 'c=list(map(int, input().split())) \nfor i,a in enumerate(c):\n if a ==0:\n print(i+1)'] | ['Wrong Answer', 'Accepted'] | ['s215267106', 's610921048'] | [9164.0, 9164.0] | [24.0, 20.0] | [84, 86] |
p02639 | u227929139 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x, n = map(int, input().split())\np = list(map(int, input().split()))\nif x not in p:\n print(x)\nelse:\n a, b = 1, 1\n while True:\n if (x + a) not in p:\n break\n else:\n a += 1\n\n while True:\n if (x - b) not in p:\n break\n else:\n ... | ['Runtime Error', 'Accepted'] | ['s535587932', 's318466127'] | [9068.0, 9020.0] | [21.0, 28.0] | [379, 89] |
p02639 | u228303592 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['import numpy as np\n\ndef main():\n N = int(input())\n A = list(map(int,input().split()))\n A.sort()\n d = np.zeros(A[-1]+1, dtype=np.unit64)\n \n for i in range(N):\n a = A[i]\n a1 = A[i-1]\n if a != a1:\n if a != a1:\n d[a::a] += 1\n else:\n d[a] += 1\n print(np.count_nonzero... | ['Runtime Error', 'Accepted'] | ['s754494736', 's737755123'] | [26964.0, 8980.0] | [115.0, 21.0] | [325, 102] |
p02639 | u231530807 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['N = int(input())\nA = [int(x) for x in input().split()]\n\nfor i in N:\n if A[i]==0:\n return i', 'N = int(input())\nA = [int(x) for x in input().split()]\n \nfor i in N:\n if A[i]==0:\n print int(i)', 'A = [int(x) for x in input().split()]\nN = int(len(A))\n\nfor i in range(N):\n if A[i]-0==0:\n print(i+... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s219934797', 's808079571', 's517167183'] | [8964.0, 8968.0, 9168.0] | [24.0, 21.0, 20.0] | [94, 99, 104] |
p02639 | u232652798 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['lists = [int(x) for x in range(1,6)]\nfor i in range(1,len(list)+1):\n if list[i] == 0:\n print(i)', 'lista = [int(x) for x in input().split()]\n\nfor i in range(len(lista)):\n if lista[i] == 0:\n print(i+1)\n exit()'] | ['Runtime Error', 'Accepted'] | ['s899283099', 's757319050'] | [9096.0, 9004.0] | [20.0, 24.0] | [99, 126] |
p02639 | u235027735 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a = map(int, input().split())\n\nfor i in range(5):\n if a[i] == 0:\n print(i+1)\n\n', 'a = list(map(int, input().split()))\n\nfor i in range(5):\n if a[i] == 0:\n print(i+1)\n\n'] | ['Runtime Error', 'Accepted'] | ['s298099569', 's157644974'] | [8900.0, 9156.0] | [23.0, 23.0] | [88, 94] |
p02639 | u235053098 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a = input().split(" ")\nbase = int(a[0])\ncount = int(a[1])\nif count == 0:\n print(base)\nelse:\n num = list(map(int, input().split())) \n\n i = 0\n while i <= count:\n if num.count(base - i) == 0:\n print(num.count(base - i))\n print(base - i)\n break\n elif num.count(base + 1) == 0:\n ... | ['Runtime Error', 'Accepted'] | ['s213822770', 's069715518'] | [9096.0, 9080.0] | [23.0, 23.0] | [388, 68] |
p02639 | u235210692 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a=[int(i) for i in input()]\n\nfor i,j in enumerate(a):\n if j==0:\n print(i+1)\n ', 'a=[int(i) for i in input().split()]\n \nfor i,j in enumerate(a):\n if j==0:\n print(i+1)'] | ['Runtime Error', 'Accepted'] | ['s495220899', 's657383379'] | [9096.0, 9100.0] | [26.0, 25.0] | [82, 88] |
p02639 | u235783479 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['A = list(map(int, input().split()))\n\nfor i in range(A):\n if A[i] == i+1:\n print(i+1)\n', 'A = list(map(int, input().split()))\n\nfor i in range(len(A)):\n if A[i] != i+1:\n print(i+1)\n'] | ['Runtime Error', 'Accepted'] | ['s738276874', 's732032277'] | [9092.0, 9028.0] | [24.0, 25.0] | [95, 100] |
p02639 | u237299453 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['n = int(input())\na = list(map(int,input().split()))\na.sort()\n\n\nunans = 0\nfor i in a:\n count = 0\n for j in a:\n if i % j == 0:\n count += 1\n if count >= 2:\n unans += 1\n break\n \nprint(n - unans)', 'x = list(map(int, input().split()))\n\nfor i in range(len(x)):\n if x[i] == 0:\n ... | ['Runtime Error', 'Accepted'] | ['s303429586', 's796489927'] | [9004.0, 8948.0] | [29.0, 24.0] | [281, 104] |
p02639 | u237584412 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["X,Y = map(int, input().split())\n\nfor i in range(0,X):\n foot = 2*i+4*(X-i)\n if foot==Y:\n print('Yes')\n break\nelse:\n print('No')\n", 'x = list(map(int, input().split()))\n\ncount=x.index(0)\nans = count+1\nprint(ans)\n'] | ['Runtime Error', 'Accepted'] | ['s162394694', 's793838300'] | [9156.0, 9092.0] | [21.0, 24.0] | [150, 79] |
p02639 | u238084414 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['import math\n\ndef isPrime(n):\n if n == 1:\n return False\n for k in range(2, int(math.sqrt(n)) + 1):\n if n % k == 0:\n return False\n return True\n\nN = int(input())\nA = sorted(list(map(int, input().split())))\ncnt = N\n\nif len(A) == 1:\n print(N)\n exit()\n\nif A[0] == 1 and A[1] == 1:\n print(... | ['Runtime Error', 'Accepted'] | ['s766833701', 's904290673'] | [9252.0, 9016.0] | [20.0, 18.0] | [673, 94] |
p02639 | u238438917 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['N=list(map(int,input().splti()))]\nprint(15-n[01]-n[1]-n[2]-n[3]-n[4])\n ', 'n=list(map(int,input().split()))\nprint(15-n[0]-n[1]-n[2]-n[3]-n[4])\n \n'] | ['Runtime Error', 'Accepted'] | ['s262285657', 's250311445'] | [8788.0, 9088.0] | [22.0, 28.0] | [75, 74] |
p02639 | u239368018 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['l = map(int, input().split())\nfor i in range(5):\n if not i+1 == l[i]:\n print(i+1)\n ', 'l = list(map(int, input().split()))\nfor i in range(5):\n if not i+1 == l[i]:\n print(i+1)'] | ['Runtime Error', 'Accepted'] | ['s554955693', 's137689448'] | [8860.0, 9088.0] | [23.0, 25.0] | [88, 91] |
p02639 | u241190800 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['res = [int(idx) for idx in input().split()]\nprint(res)\ncount = 0\nfor idx in res:\n if idx == 0:\n if count == 4:\n print(res[count-1]+1)\n break\n elif count == 0:\n print(res[count+1]-1)\n break\n else:\n print(res[count+1]-1)\n break\n count += 1\n', 'res = [int(idx) for ... | ['Wrong Answer', 'Accepted'] | ['s992762410', 's335692141'] | [9124.0, 8924.0] | [23.0, 28.0] | [279, 267] |
p02639 | u242316925 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['from sys import stdin, stdout\nimport sys\nimport bisect\nINF=1e9\ndef get_int(): return int(stdin.readline().strip())\ndef get_ints(): return map(int,stdin.readline().strip().split()) \ndef get_array(): return list(map(int,stdin.readline().strip().split()))\ndef get_string(): return stdin.readline().strip()\ndef op(... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s287499457', 's546961459', 's216359509'] | [9060.0, 8984.0, 9080.0] | [20.0, 21.0, 21.0] | [482, 486, 487] |
p02639 | u243159381 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a=list(map(int,input().split()))\nprint(a.find(0)+1)\n', 'a=list(map(int,input().split()))\nprint(a.index(0)+1)\n'] | ['Runtime Error', 'Accepted'] | ['s099853140', 's811772343'] | [9156.0, 9060.0] | [26.0, 26.0] | [52, 53] |
p02639 | u243312682 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["def main():\n n = int(input())\n a = list(map(int, input().split()))\n a_s = sorted(a)\n a_set = set(a_s)\n maxv = max(a)\n res = [0] * maxv\n rep = 0\n for i in a_s:\n if res[i-1] == 0:\n for j in range(i, maxv+1, i):\n res[j-1] += 1\n else:\n ... | ['Runtime Error', 'Accepted'] | ['s861376485', 's835825926'] | [9224.0, 9164.0] | [20.0, 24.0] | [468, 130] |
p02639 | u244416763 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x = map(int,input().split())\nprint(x.index(0))', 'x = map(int,input().split())\nprint(x.index(0)+1)', 'x = list(map(int,input().split()))\nprint(x.index(0))\n', 'x = map(int,input(),split())\nprint(x.index(0))', 'x = list(map(int,input().split()))\nprint(x.index(0)+1)'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s390694393', 's421620143', 's596614393', 's803146232', 's663296487'] | [9024.0, 8956.0, 9020.0, 9088.0, 9100.0] | [23.0, 21.0, 25.0, 18.0, 20.0] | [46, 48, 53, 46, 54] |
p02639 | u244466744 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x = list(map(int, input().split()))\nn = len(x)\n\nfor _ in range(n):\n if x[i] == 0:\n print(i + 1)\n', 'x = list(map(int, input().split()))\n\nfor _ in range(5):\n if x[i] == 0:\n print(i + 1)', 'x = list(map(int, input().split()))\nn = len(x)\n\nfor i in range(n):\n if x[i] == 0:\n print(i + 1)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s244895636', 's763500439', 's083140729'] | [9008.0, 9072.0, 9040.0] | [25.0, 19.0, 29.0] | [100, 88, 100] |
p02639 | u244836567 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['a,b,c,d,e=input().split()\nif a==0:\n print("1")\nif b==0:\n print("2")\nif c==0:\n print("3")\nif d==0:\n print("4")\nif e==0:\n print("5")', 'a,b,c,d,e=input().split()\na=int(a)\nb=int(b)\nc=int(c)\nd=int(d)\ne=int(e)\nif a==0:\n print("1")\nif b==0:\n print("2")\nif c==0:\n print("3")\nif d==0:\n print("4... | ['Wrong Answer', 'Accepted'] | ['s513124666', 's064700071'] | [8980.0, 9040.0] | [26.0, 26.0] | [135, 180] |
p02639 | u246448955 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ["x = list(map(int, input().split()))\ndef func(x):\n for i in range(x[0]+1):\n for j in range(x[0]+1):\n if i+j>x[0]:\n break\n elif i*2 + j*4 == x[2] or j*2 + i*4 == x[2]:\n print('Yes')\n return\n print('No')\n return\nfunc(x)", 'x = ... | ['Wrong Answer', 'Accepted'] | ['s413850095', 's538986245'] | [9116.0, 9156.0] | [23.0, 21.0] | [299, 106] |
p02639 | u246809151 | 2,000 | 1,048,576 | We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0. | ['x,y = map(int, input().split())\ncnt2 = 0\ncnt4 = 0\nfor i in range(x+1):\n cnt2 = 2*(i)\n cnt4 = 4*(x-i)\n if cnt2 + cnt4 == y:\n print("Yes")\n exit()\n\nprint("No")\n', 'a,b,c,d,e = map(int, input().split())\nif a ==0:\n print(1)\n exit()\nelif b ==0:\n print(2)\n exit()\nelif c ... | ['Runtime Error', 'Accepted'] | ['s737220155', 's563110201'] | [9108.0, 9044.0] | [21.0, 22.0] | [181, 199] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.