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 | u665852386 | 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())\nif n == 0:\n print(x)\nelse:\n p = list(map(int, input().split()))\n\n p.sort()\n y = 0\n\n for i in range(n):\n if p[i] <= x:\n y = i\n if i != n-1 and x < p[i+1]:\n break \n\n i = 0\n while 1 == 1:\n if 0 <= y - i and x - i != p[y - i]:\n print(x - i)\n break\n if y + i < n and x + i != p[y + i]:\n print(x + i)\n break\n i = i + 1', 'x = list(map(int, input().split()))\nfor i in range(5):\n if x[i] == 0:\n print(i+1)\n break'] | ['Runtime Error', 'Accepted'] | ['s471224169', 's714303747'] | [9224.0, 9096.0] | [22.0, 23.0] | [475, 105] |
p02639 | u666960126 | 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)\nelif b = 0:\n print(2)\nelif c = 0:\n print(3)\nelif d = 0:\n print(4)\nelse:\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:\n print(3)\nelif d==0:\n print(4)\nelse:\n print(5)'] | ['Runtime Error', 'Accepted'] | ['s719147109', 's545886635'] | [8828.0, 9116.0] | [23.0, 25.0] | [141, 137] |
p02639 | u668750703 | 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()))\nX=a[0]\nY=a[1]\n\ncrain = (4*X-Y)/2\nturtle = (Y-2*X)/2\n\nif crain.is_integer() and crain >= 0:\n if turtle.is_integer() and turtle >= 0:\n print("Yes")\n else:\n print("False")\nelse:\n print("False")', 'a = list(map(int,input().split()))\n\nprint(a.index(0)+1)'] | ['Wrong Answer', 'Accepted'] | ['s735511286', 's422981365'] | [9184.0, 9156.0] | [20.0, 19.0] | [248, 55] |
p02639 | u672370694 | 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. | ['k = list(map(int, input().split()))\n\nprint(k.index(0))', 'k = list(map(int, input().split()))\nprint(k.index(0) + 1)'] | ['Wrong Answer', 'Accepted'] | ['s526140966', 's688918719'] | [9152.0, 9020.0] | [19.0, 24.0] | [54, 57] |
p02639 | u680104082 | 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.index(0))', 'a=list(map(int,input().split()))\nprint(a.index(0)+1)'] | ['Wrong Answer', 'Accepted'] | ['s476947752', 's734230353'] | [9024.0, 9032.0] | [27.0, 23.0] | [50, 52] |
p02639 | u682822227 | 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=[]\n', 'a = list(map(int , input().split()))\nfor i in a:\n if i ==0:\n print(a.index(i)+1)'] | ['Wrong Answer', 'Accepted'] | ['s845650010', 's094225559'] | [9064.0, 9016.0] | [27.0, 28.0] | [5, 91] |
p02639 | u683956577 | 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\nstdin = sys.stdin\n\nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nns = lambda: stdin.readline().rstrip() # ignore trailing spaces\n\nx = na()\nc = 0\nfor i in x:\n c += 1\n if i == 0:\n c = i\nprint(c+1)\n', 'import sys\n\nstdin = sys.stdin\n\nni = lambda: int(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nns = lambda: stdin.readline().rstrip() # ignore trailing spaces\n\nx = na()\n\nfor i in range(5):\n if x[i] == 0:\n print(i+1)\n \n'] | ['Wrong Answer', 'Accepted'] | ['s965300566', 's247381250'] | [9108.0, 9108.0] | [21.0, 23.0] | [244, 237] |
p02639 | u686536081 | 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(len(a)):\n if a[i]==0:\n print(i)\n \n', 'a=list(map(int ,input().split()))\n \nfor i in range(len(a)):\n if a[i]==0:\n print(1+i)'] | ['Wrong Answer', 'Accepted'] | ['s961831389', 's373119296'] | [9156.0, 9096.0] | [30.0, 25.0] | [91, 88] |
p02639 | u690239017 | 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\nfor i in range(len(l)):\n if l[i] == 0:\n return i\n\n\n ', 'l = list(map(int,input().split()))\nfor i in range(len(l)):\n\tif l[i] == 0:\n\t\tprint(i)\n', 'l = list(map(int,input().split()))\nfor i in range(len(l)):\n\tif l[i] == 0:\n\t\tprint(i+1)\n '] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s052894775', 's314536663', 's236746783'] | [8968.0, 8924.0, 8848.0] | [20.0, 26.0, 26.0] | [99, 85, 92] |
p02639 | u690833702 | 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()\nx = int(a)\n\nfor i, k in x:\n if k == 0:\n print(i)\n break;', 'a = list(map(int, input().split()))\n\nif a[0] == 0:\n print(1)\nelif a[1] == 0:\n print(2)\nelif a[2] == 0:\n print(3)\nelif a[3] == 0:\n print(4)\nelse:\n print(5)'] | ['Runtime Error', 'Accepted'] | ['s716360641', 's994323011'] | [9064.0, 9104.0] | [20.0, 26.0] | [75, 159] |
p02639 | u691356370 | 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\nfor i in range(5):\n if input_list[i] == "0":\n print(i)\n', 'input_list = input()\ninput_list = input_list.split()\n \nfor i in range(5):\n if input_list[i] == "0":\n print(i)', 'input_list = input()\ninput_list = input_list.split()\n \nfor i in range(5):\n if input_list[i] == "0":\n print(i+1)'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s020599729', 's129546632', 's942375709'] | [8952.0, 8964.0, 9028.0] | [24.0, 32.0, 33.0] | [89, 113, 115] |
p02639 | u692746605 | 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 D=[0]*(10**6+1)\n\n for a in sorted(map(int,input().split())):\n if D[a]==0:\n D[a]=1\n for i in range(2*a,10**6+1,a):\n D[i]=-1\n else:\n D[a]=-1\n\n print(D.count(1))\n\nmain()\n', 'print([int(x) for x in input().split()].index(0)+1)\n'] | ['Runtime Error', 'Accepted'] | ['s787866865', 's797817208'] | [9072.0, 9148.0] | [27.0, 24.0] | [228, 52] |
p02639 | u693333798 | 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()))\nprint(x.index(0))', ' x = list(map(int,input().split()))\n print(x.index(0)+1)', 'x = list(map(int, input().split()))\nprint((x.index(0))+1)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s485913330', 's850163138', 's334408864'] | [9156.0, 8944.0, 9028.0] | [21.0, 23.0, 20.0] | [52, 62, 57] |
p02639 | u693410938 | 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. | ['vs = map(int,input().split())\nfor a in vs:\n if a == 0:\n print(a)', 'vs = map(int,input().split())\nfor i in range(len(vs)):\n if vs[i] == 0:\n print(i)', 'as= inst(input().split())\nfor a in as:\n if a ==0:\n return(a)', 'vs = list(map(int,input().split()))\nfor i in range(len(vs)):\n if vs[i] == 0:\n print(i+1)'] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s484824327', 's497385582', 's756811551', 's206738449'] | [9152.0, 8968.0, 8876.0, 9164.0] | [20.0, 26.0, 25.0, 24.0] | [74, 90, 69, 98] |
p02639 | u693565480 | 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())\nfor i in range(X+1):\n if Y==2*i+4*(X-i):\n print('YES')\n exit()\nprint('NO')", 'l=input().split()\nfor i in range(5):\n a = str(0)\n if l[i]==a:\n print(i+1)'] | ['Runtime Error', 'Accepted'] | ['s939496261', 's116436256'] | [9040.0, 9096.0] | [20.0, 23.0] | [110, 78] |
p02639 | u693953100 | 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 solve():\n l = list(map(int,input().split()))\n for i in range(5):\n if(l[i]==0){\n print(i+1)\n }\nif __name__=='__main__':\n solve()", "def solve():\n l = list(map(int,input().split()))\n for i in range(5):\n if(l[i]==0):\n print(i+1)\nif __name__=='__main__':\n solve()"] | ['Runtime Error', 'Accepted'] | ['s720225032', 's142596565'] | [9020.0, 9112.0] | [17.0, 22.0] | [165, 155] |
p02639 | u694951525 | 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. | ['ans = 0\nfor i in range(5):\n a = int(input())\n if a == 0:\n ans = i+1\nprint(ans) \n', 'ans = 0\nfor i in range(5):\n if int(input()) == 0:\n ans = i+1\nprint(ans) ', 'ans = 0\nfor i in range(5):\n\tif int(input()) == 0:\n\t\tans = i+1\nprint(ans) \n', 'a = list(map(int, input().split()))\nfor i in range(5):\n if a[i] == 0:\n print(i+1)'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s722590698', 's847843891', 's869743204', 's532478748'] | [9148.0, 9092.0, 9084.0, 8944.0] | [22.0, 21.0, 27.0, 25.0] | [86, 77, 75, 85] |
p02639 | u697063004 | 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().split()\nprint(n.index('0'))\n", "n = input().split()\nprint(n.index('0') + 1)"] | ['Wrong Answer', 'Accepted'] | ['s144082994', 's806302141'] | [9012.0, 9020.0] | [23.0, 29.0] | [40, 43] |
p02639 | u697340709 | 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 = input()\nx2 = input()\nx3 = input()\nx4 = input()\nx5 = input()\n\nif (x1==0):\n print(1)\nif (x2==0):\n print(2)\nif (x3==0):\n print(3)\nif (x4==0):\n print(4)\nif (x5==0):\n print(5)', "a = input().split()\nfor i in range(5):\n if (a[i]=='0'):\n print(i+1)"] | ['Runtime Error', 'Accepted'] | ['s319507160', 's878159626'] | [9052.0, 8956.0] | [25.0, 20.0] | [180, 71] |
p02639 | u709970295 | 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 y%2 != 0:\n print('No')\nelif 2*x <= y <= 4*x:\n print('Yes')\nelse:\n print('No')", 'x = list(map(int,input().split()))\nfor i in range(6):\n if i not in x:\n print(i)\n break'] | ['Runtime Error', 'Accepted'] | ['s724018150', 's049746286'] | [9016.0, 8992.0] | [26.0, 29.0] | [123, 103] |
p02639 | u716159461 | 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=int(input())\nY=int(input())\n\ncrain = (4 * X - Y) / 2\nif crain.is_integer() and crain > 0:\n crain = int(crain)\n print("yes")\nelse:\n print("no")', 'x=list(map(int,input().split()))\nprint(x.index(0)+1)'] | ['Runtime Error', 'Accepted'] | ['s019986020', 's904452065'] | [9052.0, 9164.0] | [24.0, 16.0] | [153, 52] |
p02639 | u720124072 | 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())\nfor i in range(5):\n if x[i] == 0:\n print(i)', 'x = list(map(int, input().split()))\nfor i in range(5):\n if x[i] == 0:\n print(i+1)'] | ['Runtime Error', 'Accepted'] | ['s334786666', 's318519733'] | [9092.0, 9156.0] | [18.0, 21.0] | [77, 85] |
p02639 | u721901576 | 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\nif (1 <= X <= 100) and (0 <= N <= 100) and ((1 <= len(p) <= 100 ) or N == 0) :\n ans = X-1\n bns = X+1\n \n while True:\n if N == 0:\n print(X)\n break\n \n if ans in p:\n ans-=1 \n if ans not in p:\n print(ans)\n break\n \n if bns in p:\n bns+=1\n if bns not in p:\n print(bns)\n break\n ', 'X,Y = map(float,input().split())\n\nif (1 <= X <= 100) and (1 <= Y <= 100 ) and float.is_integer(X) and float.is_integer(Y) :\n if Y % 2 == 0:\n if Y / X <= 4:\n print("Yes")\n print()\n\n else:\n print("No")\n else: \n print("No")', '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)\n \nelif e == 0:\n print(5)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s526894374', 's703941632', 's087615932'] | [9204.0, 8980.0, 9176.0] | [20.0, 22.0, 20.0] | [500, 280, 186] |
p02639 | u723065526 | 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\nX, Y = map(int,input().split())\nans = "No"\nfor i in range(X):\n if(2*X+2*i==Y):\n ans = "Yes"\nprint(ans)', 'P = list(map(int,input().split()))\nans = 0\nfor i in range(5):\n if(P[i]==0):\n ans = i+1\nprint(ans)'] | ['Runtime Error', 'Accepted'] | ['s024405677', 's171866952'] | [9112.0, 9164.0] | [19.0, 22.0] | [118, 101] |
p02639 | u724673021 | 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 = input().split()\n\nprint(data)\n\ncount = 0\nfor num in data:\n num2 = int(num)\n if num2 == 0:\n result = count\n count += 1\n\nresult += 1\n\nprint(result)', "import numpy as np\n\nXin, Yin = input().split()\n\nX = int(Xin)\nY = int(Yin)\n\na = np.array([[1, 1], [2, 4]])\nb = np.array([X, Y])\n\nresult = np.linalg.solve(a, b)\n\nif result[0].is_integer() and result[0] >= 0:\n if result[1].is_integer() and result[1] >= 0:\n print('Yes')\n else:\n print('No')\nelse:\n print('No')", 'data = input().split()\n\ncount = 0\nfor num in data:\n num2 = int(num)\n if num2 == 0:\n result = count\n count += 1\n\nresult += 1\n\nprint(result)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s447829175', 's607419283', 's767341837'] | [8980.0, 26872.0, 9032.0] | [21.0, 109.0, 22.0] | [167, 322, 154] |
p02639 | u725133562 | 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 and y <= 4*x:\n if y % 2 == 0:\n print('Yes')\n else:\n print('No')\nelse:\n print('No')\n", 'a,b,c,d,e = map(int, input().split())\nprint(15-a-b-c-d-e)'] | ['Runtime Error', 'Accepted'] | ['s377112286', 's703381684'] | [9152.0, 9088.0] | [23.0, 20.0] | [137, 57] |
p02639 | u726823037 | 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(input().replace(' ', ''))\nb = 12345\nc = b-a\nwhile c > 10:\n c = c//10\n \nprint(c)", 'import sys\ndef Ii():return int(sys.stdin.readline())\ndef Mi():return map(int,sys.stdin.readline().split())\ndef Li():return list(map(int,sys.stdin.readline().split()))\n\na = Li()\nfor i in range(5):\n if a[i] == 0:\n print(i+1)\n exit'] | ['Wrong Answer', 'Accepted'] | ['s459472468', 's947405678'] | [8944.0, 9164.0] | [27.0, 27.0] | [89, 235] |
p02639 | u729008627 | 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()))\nprint(X.index(0))', 'X = list(map(int, input().split()))\nprint(X.index(0) + 1)\n'] | ['Wrong Answer', 'Accepted'] | ['s070989981', 's645725394'] | [8956.0, 9128.0] | [24.0, 26.0] | [53, 58] |
p02639 | u729119068 | 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())]\ncount = 0\nfor a in A:\n count += 1\n if a == 0:\n print(count)\n exit()\n\n ', 'A = list(map(int, input().split()))\ncount = 0\nfor a in A:\n count += 1\n if a == 0:\n print(count)\n exit()'] | ['Runtime Error', 'Accepted'] | ['s030561356', 's402058188'] | [8796.0, 9120.0] | [20.0, 25.0] | [115, 111] |
p02639 | u729133443 | 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. | ["print(input().find('0')/2+1)", "print(input().find('0')//2+1)"] | ['Wrong Answer', 'Accepted'] | ['s726847633', 's148003280'] | [9080.0, 9028.0] | [23.0, 20.0] | [28, 29] |
p02639 | u730807152 | 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\nprint(a.index("0"))', 'a = list(map(int, input().split()))\n\nprint(list.index("0"))', 'a = list(map(int, input().split()))\n\nprint(a.index(0))', 'a = list(map(int, input().split()))\n\nprint(a.index(0)+1)'] | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s118111394', 's417159733', 's435264461', 's652564083'] | [9096.0, 9152.0, 9156.0, 9164.0] | [24.0, 24.0, 22.0, 19.0] | [56, 59, 54, 56] |
p02639 | u733581231 | 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. | ['\nimport sys,io,os,time\nfrom collections import defaultdict\nfrom collections import OrderedDict\nfrom collections import deque\nfrom itertools import combinations\nfrom itertools import permutations\nimport bisect,math,heapq\nalphabet = "abcdefghijklmnopqrstuvwxyz"\n\ninput = sys.stdin.readline\n\n########################################\n\nx = list(map(int , input().split()))\nfor i in range(x):\n\tif x[i] == 0:\n\t\tprint(i+1)\n\t\texit()\n\n\n\n\n\n\n\n', '\nimport sys,io,os,time\nfrom collections import defaultdict\nfrom collections import OrderedDict\nfrom collections import deque\nfrom itertools import combinations\nfrom itertools import permutations\nimport bisect,math,heapq\nalphabet = "abcdefghijklmnopqrstuvwxyz"\n\ninput = sys.stdin.readline\n\n########################################\n\nx = list(map(int , input().split()))\nfor i in range(len(x)):\n\tif x[i] == 0:\n\t\tprint(i+1)\n\t\texit()\n\n\n\n\n\n\n\n'] | ['Runtime Error', 'Accepted'] | ['s485739288', 's016860209'] | [9416.0, 9472.0] | [22.0, 26.0] | [456, 461] |
p02639 | u734252743 | 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 = []\na = list(map(int, input().split()))\nprint(a)\n\nfor i in range(len(a)):\n try:\n a.remove(i+1)\n except:\n print(i)\n break\n', 'import copy\n\na = []\na = list(map(int, input().split()))\n\nctn = 0\nfor i in a:\n if (i == 0):\n print(ctn+1)\n ctn += 1\n'] | ['Wrong Answer', 'Accepted'] | ['s300757455', 's348771310'] | [9160.0, 9288.0] | [21.0, 22.0] | [151, 128] |
p02639 | u735975757 | 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(int(input()))\n\nnum = 0\n\nfor i in x:\n\tnum += i\n if x[i]==0:\n \tbreak\nprint(num)\n\n', 'x = list(map(int,input().split()))\n\nnum = 0\n\nfor i in range(len(x)):\n\tnum += 1\n if x[i] == 0:\n print(num)\n break\n', 'x = map(int,input().split())\n\nnum = 0\n\nfor i in range(5):\n\tnum += 1\n if x[i] == 0:\n break\n\nprint(num)', 'x = list(map(int,input().split()))\n\nnum = 0\n\nfor i in range(5):\n\tnum += 1\n\tif x[i] == 0:\n\t\tbreak\n \nprint(num)\n'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s303999412', 's599505225', 's883560130', 's414075132'] | [9008.0, 8960.0, 8876.0, 9036.0] | [20.0, 21.0, 19.0, 22.0] | [94, 126, 109, 117] |
p02639 | u736470924 | 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 numba import jit\n\n@jit\ndef resolve():\n n = int(input())\n A = list(map(int, input().split()))\n if len(set(A)) == 1:\n print(0)\n return\n A.sort()\n\n ans = 0\n while len(A) > 0:\n a = A.pop(0)\n ans += 1\n A = [i for i in A if i % a != 0]\n\n print(ans)\n\nresolve()', 'import numpy as np\n\ndef resolve():\n x, n = map(int, input().split())\n if n == 0:\n print(x)\n return\n P = set(map(int, input().split()))\n if x not in P:\n print(x)\n return\n\n P_not = np.array(list(set(list(range(1, 101))) - P))\n diff = np.abs(P_not - x)\n print(P_not[diff.argmin()])\n\nresolve()\n', 'def resolve():\n A = list(map(int, input().split()))\n print(A.index(0) + 1)\n\nresolve()'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s017102469', 's231097147', 's745779132'] | [112844.0, 27132.0, 9020.0] | [703.0, 112.0, 21.0] | [314, 339, 91] |
p02639 | u738289281 | 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()\nb = a.split(" ")\nfor i in len(b):\n if b[i] == "0":\n print(i+1)\n break\n', 'a = input()\nb = a.split(" ")\nfor i in range(len(b)):\n if b[i] == "0":\n print(i + 1)\n break\n'] | ['Runtime Error', 'Accepted'] | ['s233557369', 's041925015'] | [9024.0, 8872.0] | [20.0, 23.0] | [89, 108] |
p02639 | u740284863 | 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()))\nans = float('inf')\nfor i in range(101):\n if i not in p:\n if abs(i-x) < abs(ans-x):\n ans = i\n elif abs(i-x) == abs(ans -x):\n ans = min(ans,i)\nprint(ans)", 'a = list(map(int,input().split()))\nprint(a.index(0)+1)'] | ['Runtime Error', 'Accepted'] | ['s705238776', 's086208792'] | [9228.0, 9100.0] | [19.0, 20.0] | [256, 54] |
p02639 | u741007505 | 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()))\nif(n[1] == 0):\n print(n[0])\n exit()\nx = list(map(int, input().split()))\nprint(n)\nprint(type(x))\n \nfor i in range(1,100):\n if(('n[0] - i' in x) == False):\n print(n[0] - i)\n exit()\n elif(('n[0] + i' in x) == False):\n print(n[0] + i)\n exit()", 'n = list(map(int, input().split()))\nif(n[1] == 0):\n print(n[0])\n exit()\nx = list(map(int, input().split()))\n\nfor i in range(1,102):\n if n[0] - i not in x:\n print(n[0] - i)\n break\n elif n[0] + i not in x:\n print(n[0] + i)\n break\n', 'n = list(map(int, input().split()))\n\nfor i in range(5):\n if(n[i] != i+1):\n print(i+1)\n exit()'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s177542411', 's348980752', 's104226434'] | [9076.0, 9056.0, 9036.0] | [21.0, 25.0, 21.0] | [291, 244, 100] |
p02639 | u742385708 | 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. | ['five_numbers = list(map(int, input().split()))\n\nfor x, order in enumerate(five_numbers):\n print(order,x)\n if x == 0:\n print(order + 1)', 'five_numbers = list(map(int, input().split()))\n\nfor order, number in enumerate(five_numbers):\n if number == 0:\n if order == 0:\n print(five_numbers[order+1]-1)\n break\n print(five_numbers[order-1]+1)'] | ['Wrong Answer', 'Accepted'] | ['s992648734', 's032630440'] | [9040.0, 9064.0] | [25.0, 24.0] | [148, 236] |
p02639 | u745812846 | 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. | ['lst = list(map(int, input().split()))\n\nfor i in lst:\n i == 0:\n print(i)\n exit()', 'lst = list(map(int, input().split()))\nfor i in lst:\n if i == 0:\n print(i)\n exit()', 'lst = list(map(int, input().split()))\nfor i in range(5):\n if lst[i] == 0:\n print(i + 1)\n exit()'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s361958513', 's620063017', 's125141481'] | [8696.0, 8840.0, 9076.0] | [29.0, 23.0, 28.0] | [86, 98, 112] |
p02639 | u749643742 | 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())\ni=0 \nfor i in range(a):\n if a[i] == 0:\n print(i-1)', 'a = list(map(int,input().split())\ni=0 \nfor i in len(a):\n if a[i] == 0:\n print(i+1)\n', 'line = list(map(int, input().split()))\nfor i in range(5):\n if line[i] == 0:\n print(i+1)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s633505366', 's896591090', 's804627396'] | [8884.0, 8956.0, 9152.0] | [24.0, 21.0, 18.0] | [108, 107, 92] |
p02639 | u751277549 | 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\nN = int(input())\nA = list(map(int, input().split()))\n\nA.sort()\ne = np.zeros(10**6 + 1)\nans = 0\nfor i in range(N):\n if e[A[i]] == 0:\n e[::A[i]] = 1 \n \n if A[i] != A[i+1]:\n ans += 1\nprint(ans)', 'x = list(map(int, input().split()))\nfor i in range(len(x)):\n if x[i] == 0:\n print(i+1)'] | ['Runtime Error', 'Accepted'] | ['s531086433', 's681640179'] | [27060.0, 9008.0] | [113.0, 23.0] | [359, 96] |
p02639 | u753854665 | 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\na=2*X\nb=(Y-a)/2\nc=X-b\n\nif(2*c+4*b==Y and (Y-a)%2==0 and c>=0):\n print("Yes")\nelse:\n print("No")\n ', 'N=list( map(int,input().split()))\n\nprint(N.index(0)+1)\n'] | ['Runtime Error', 'Accepted'] | ['s046453942', 's614808596'] | [8984.0, 9152.0] | [21.0, 28.0] | [138, 55] |
p02639 | u756761345 | 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\nprint(A.index(0) + 1)', 'A = list(map(int, input().split()))\n\nprint(A.index(0) + 1)\n'] | ['Runtime Error', 'Accepted'] | ['s192742511', 's012146874'] | [9024.0, 9152.0] | [19.0, 19.0] | [58, 59] |
p02639 | u757030836 | 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().split()\nx = n.find('0')\n\nprint(int(x)+1)", "n=input()\nnn=n.replace(' ','')\nx = nn.find('0')\n\nprint(int(x)+1)"] | ['Runtime Error', 'Accepted'] | ['s705550980', 's807183214'] | [9084.0, 8968.0] | [18.0, 23.0] | [50, 64] |
p02639 | u758517053 | 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 a :\n if i == 0 :\n print(a.index(i))\n break\n', 'a = list(map(int,input("").split()))\nfor i in a :\n if i == 0 :\n print(a.index(i) +1)\n break\n\n'] | ['Wrong Answer', 'Accepted'] | ['s597277297', 's918935439'] | [9096.0, 9092.0] | [20.0, 18.0] | [106, 110] |
p02639 | u758973277 | 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 2*X == Y or 4*X == Y or 3*X == Y or Y%X ==1 or Y%X == 2:\n print('Yes')\nelse:\n print('No')", "a,b,c,d,e = map(int,input().split())\nif a == 0 :\n print('1')\nelif b == 0 :\n print('2')\nelif c == 0 :\n print('3')\nelif d == 0 :\n print('4') \nelse:\n print('5')"] | ['Runtime Error', 'Accepted'] | ['s235679539', 's874986280'] | [9172.0, 9108.0] | [19.0, 20.0] | [125, 163] |
p02639 | u760961723 | 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(input().split())\nprint(15-sum(x))', 'x = list(map(int,input().split()))\nprint(15-sum(x))'] | ['Runtime Error', 'Accepted'] | ['s482544556', 's463981142'] | [9084.0, 9020.0] | [21.0, 18.0] | [42, 51] |
p02639 | u767438459 | 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 (4*X - Y) < 0:\n print("No")\nelif 6*X > Y:\n print("No")\nelif (4*X - Y)%2 != 0:\n print("No")\nelse:\n print("Yes")', 'X, Y = map(int, input().split())\nif ((4*X - Y) < 0) or (6*X > Y) or ((4*X - Y)%2 != 0):\n print("No")\nelse:\n print("Yes")', 'A = [int(x) for x in input().split()]\nnum = 1\nfor i in A:\n if i == num:\n num += 1\n else:\n print(num)\n break'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s415464943', 's965111683', 's146691080'] | [9172.0, 9112.0, 9160.0] | [20.0, 22.0, 20.0] | [158, 126, 134] |
p02639 | u768900473 | 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 = [int(x) for x in input().split()]\nfor i, a in enumerate(arr, 1):\n if a == 0:\n return i', 'arr = [int(x) for x in input().split()]\nfor i, a in enumerate(arr, 1):\n if a == 0:\n print(i)'] | ['Runtime Error', 'Accepted'] | ['s749466812', 's270586016'] | [9028.0, 9088.0] | [19.0, 21.0] | [102, 102] |
p02639 | u770076823 | 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()))\nans = 0\n\nA.sort(reverse=True)\n\nfor i in range(len(A)-1):\n flg = True\n for j in range(i+1, len(A)):\n if A[i] % A[j] == 0:\n flg = False\n break\n if flg == True:\n print(i)\n ans += 1\n\nprint(ans)\n', 'X = list(map(int, input().split()))\n\nfor i in range(5):\n if X[i] == 0:\n ans = i + 1\n print(ans)\n'] | ['Runtime Error', 'Accepted'] | ['s977979998', 's513173395'] | [9100.0, 9156.0] | [20.0, 23.0] | [295, 113] |
p02639 | u770468054 | 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())\nz=-2\nif x %2 == 0:\n for i in range(x):\n if i % 2 == 0:\n z +=4\n else:\n z +=2\n if z == y :\n print("Yes")\n elif z!=y :\n print("No")\nelif x%2 != 0:\n for i in range(x):\n if i % 2 == 0:\n z +=4\n else:\n z +=2\n if z == y or z == (y-2):\n print("Yes")\n elif z!=y :\n print("No")', 'x, y = map(int,input().split())\nz=-2\nif x %2 == 0:\n for i in range(x):\n if i % 2 == 0:\n z +=4\n else:\n z +=2\n if z == y :\n print("Yes")\n elif z!=y :\n print("No")\nelif x%2 != 0\n for i in range(x):\n if i % 2 == 0:\n z +=4\n else:\n z +=2\n if z == y or z == (y-2):\n print("Yes")\n elif z!=y :\n print("No")', 'x, y = map(int,input().split())\nz=-2\nif x %2 == 0:\n for i in range(x):\n if i % 2 == 0:\n z +=4\n else:\n z +=2\n if z == y :\n print("Yes")\n elif z!=y :\n print("No")\nelif x%2 != 0:\n for i in range(x):\n if i % 2 == 0:\n z +=4\n else:\n z +=2\n if z == y or z == (y-2):\n print("Yes")\n elif z!=y :\n print("No")', 'x, y = map(int,input().split())\nz=-2\nif x %2 == 0:\n for i in range(x):\n if i % 2 == 0:\n z +=4\n else:\n z +=2\n if z == y :\n print("Yes")\n elif z!=y :\n print("No")\nelse:\n for i in range(x):\n if i % 2 == 0:\n z +=4\n else:\n z +=2\n if z == y or z == (y-2):\n print("Yes")\n elif z!=y :\n print("No")', 'x1,x2,x3,x4,x5,=map(int,input().split())\nif 0 == x1:\n print("1")\nelif 0 == x2:\n print("2")\nelif 0 ==x3:\n print("3")\nelif 0 == x4:\n print("4")\nelse:\n print("5")'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s075492788', 's129530596', 's344246471', 's735369902', 's694046076'] | [9148.0, 8856.0, 9076.0, 9212.0, 9048.0] | [23.0, 22.0, 19.0, 21.0, 20.0] | [432, 431, 432, 423, 174] |
p02639 | u771322467 | 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()))\nprint(x.index(0)) ', 'x = list(map(int, input().split()))\nprint(x.index(0) + 1)'] | ['Wrong Answer', 'Accepted'] | ['s014104367', 's880250552'] | [9160.0, 9028.0] | [23.0, 25.0] | [55, 58] |
p02639 | u771383254 | 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\nfor i in l:\n if i == 0:\n print(l.index(i))\n break\n', 'l = list(map(int, input().split()))\n\nprint(l.index(0)+1)'] | ['Wrong Answer', 'Accepted'] | ['s622502309', 's027679294'] | [9040.0, 9156.0] | [20.0, 21.0] | [94, 56] |
p02639 | u771739784 | 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\nn = int(input())\nif n != 1:\n arr = np.asarray([[int(x) for x in input().split()]])\n arrT = arr.T\n eye = np.eye(n)\n ans = np.count_nonzero(arrT % arr + eye == 0, axis=1)\n ans = np.count_nonzero(ans == 0)\n print(ans)\nelse:\n print(input())', "l = input().split()\nans = l.index('0') + 1\nprint(ans)"] | ['Runtime Error', 'Accepted'] | ['s043558298', 's044643050'] | [27120.0, 9016.0] | [113.0, 25.0] | [262, 53] |
p02639 | u782638765 | 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. | ['num = list(map(int, input().split()))\ncount = 0\nfor i in num:\n if i = 0:\n count += 1\n print(count)\n else:\n count += 1', 'num = list(map(int, input().split()))\ncount = 0\nfor i in num:\n if i == 0:\n count += 1\n print(count)\n else:\n count += 1\n'] | ['Runtime Error', 'Accepted'] | ['s898935615', 's405690640'] | [8952.0, 9168.0] | [26.0, 25.0] | [128, 130] |
p02639 | u782643389 | 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. | ['xn = input().split()\ndata = input().split()\n\ndata_2 = []\n\nx = int(xn[0]) \ndata.sort() \n\n\n\na = x-1\nwhile True:\n #check\n for i in range(len(data)):\n if int(data[i]) == a:\n a = a - 1\n break\n else:\n data_2.append(a)\n break\n if a == int(data_2[0]):\n break\n\n\nb = x + 1\nwhile True:\n #check\n for i in range(len(data)):\n if int(data[i]) == b:\n b = b + 1\n break\n else:\n data_2.append(b)\n break\n if b == int(data_2[1]):\n break\n\n\nif a < b:\n print(a)\nelse:\n print(b)', 'listt = input().split()\n\ndoubutsu = int(listt[0])\nashi = int(listt[1])\n\nkame = (ashi-2*doubutsu)/2\nkamea = (ashi-2*doubutsu)%2\ntsuru = doubutsu - kame\n\nif kame == 0 and tsuru ==0:\n print("No")\n\nelif kamea == 0 and tsuru >= 0:\n print(\'Yes\')\nelse:\n print("No")', 'list_sunuke = []\nlist_m = []\n\nfor i in range(5):\n list_sunuke.append(input())\n\nfor i in range(5):\n list_m.append(i+1)\n\nfor i in range(5):\n if list_sunuke[i] != list_m[i]:\n print(list_m[i])\n break', 'list_sunuke = input().split()\nlist_m = []\n\nfor i in range(5):\n list_m.append(i+1)\n\nfor i in range(5):\n if list_sunuke[i] != list_m[i]:\n print(list_m[i])', 'list_sunuke = []\nlist_m = []\n\nfor i in range(5):\n list_sunuke.append(input())\n\nfor i in range(5):\n list_m.append(i+1)\n\nfor i in range(5):\n if list_sunuke[i] != list_m[i]:\n print(list_m[0])\n break\n\n\n', 'list_sunuke = input().split()\nlist_m = []\n\nfor i in range(5):\n list_m.append(i+1)\n\nfor i in range(5):\n if int(list_sunuke[i]) != list_m[i]:\n print(list_m[i])'] | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s643129909', 's686546078', 's823113997', 's924645068', 's979693735', 's567436603'] | [8972.0, 9108.0, 8968.0, 8832.0, 8964.0, 9056.0] | [24.0, 26.0, 25.0, 25.0, 19.0, 29.0] | [856, 267, 218, 165, 221, 170] |
p02639 | u783229284 | 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. | ['li = list(map(int, input().split())) \nfor i in range(len(li)):\n if li[i] == 0:\n print(i)\n', 'li = list(map(int, input().split())) \nfor i in range(len(li)):\n if li[i] == 0:\n print(i+1)'] | ['Wrong Answer', 'Accepted'] | ['s360535716', 's095918305'] | [9100.0, 9100.0] | [21.0, 24.0] | [99, 100] |
p02639 | u789854092 | 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(' '))\nfor i in range(0, len(x)):\n if x[i] == 0:\n print(i+1)\n break", "x = [x for x in map(int, input().split(' '))]\nfor i in range(0, len(x)):\n if x[i] == 0:\n print(i+1)\n break"] | ['Runtime Error', 'Accepted'] | ['s187312834', 's004819007'] | [9036.0, 9168.0] | [21.0, 22.0] | [100, 113] |
p02639 | u790867486 | 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. | ['L1=list(map(int,input().split()))\nfor i in range(len(l1)):\n if l1[i]==0:\n print(i+1)\n break', 'l1=list(map(int,input().split()))\nfor i in range(len(l1)):\n if l1[i]==0:\n print(i+1)\n break'] | ['Runtime Error', 'Accepted'] | ['s858492830', 's247008578'] | [9100.0, 9104.0] | [22.0, 25.0] | [98, 98] |
p02639 | u793821463 | 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()))\nfor i in range(5):\n if a[i]==0:\n print(i+1)', 'a = list(map(int,input().split()))\nfor i in range(5):\n if a[i]==0:\n print(i+1)\n'] | ['Runtime Error', 'Accepted'] | ['s898678465', 's490500962'] | [9028.0, 9144.0] | [20.0, 30.0] | [74, 83] |
p02639 | u796878730 | 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 = list(map(int,input().split()))\nP = list(map(int,input().split()))\n\nP_n = [i for i in range(1,101,1) if i not in P]\nabs_value = [abs(X-P_n[j]) for j in range(len(P_n))]\nmin_abs = min(abs_value)\n\nfor k in range(len(P_n)):\n if abs_value[k] == min_abs:\n print(P_n[k])\n sys.exit()', 'X,N = map(int,input().split())\nP = list(map(int,input().split()))\n\n\nP_n = [i for i in range(0,102,1) if i not in P]\nabs_value = [abs(X-P_n[j]) for j in range(len(P_n))]\n\n\nmin_abs = min(abs_value)\nfor k in range(len(abs_value)):\n if abs_value[k] == min_abs:\n print(P_n[k])\n break', 'X = [int(x) for x in input().split()]\n\nprint(X.index(0)+1)'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s705242184', 's738495621', 's568674501'] | [9208.0, 9012.0, 8976.0] | [25.0, 21.0, 21.0] | [310, 335, 58] |
p02639 | u797106134 | 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. | ['\nN = int(input())\nA = list(map(int,input().split()))\n\n\n\nimport numpy as np\n\nA.sort()\nMAX=10**6+1\nL = [0]*MAX\nused = set()\nfirst = True\nfor a in A:\n if L[a] ==2:\n continue\n if a in used and first:\n first = False\n for i in range(0,MAX,a):\n L[i] = 2\n \n continue\n used.add(a)\n \n L[a] = 1\n for i in range(2*a,MAX,a):\n L[i] = 2\n #L[::a] += 1\ncount = 0\nfor a in A:\n if L[a] == 1:\n count += 1\nprint(count)\n\n\n\n\n\n', 'X = map(int,input().split())\n\nfor i,x in enumerate(X):\n if x == 0:\n print(i+1)\n\n'] | ['Runtime Error', 'Accepted'] | ['s241688306', 's710438413'] | [9152.0, 9016.0] | [21.0, 23.0] | [910, 90] |
p02639 | u797798686 | 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\ndata = stdin.readlines()\n\nn = int(data[0].split()[0])\na = [int(s) for s in data[1].split()]\na = sorted(a)\n\nmax = a[-1]\n\nl = [0]*(max+1)\n\nfor i in a:\n l[i] += 1\n if l[i] == 1:\n for j in range(i*2,max+1,i):\n l[j] = 2\nprint(l.count(1))', 'from sys import stdin\ndata = stdin.readline().rstrip()\n\n\nb = [int(s) for s in data.split()]\nprint(b.index(0)+1)\n'] | ['Runtime Error', 'Accepted'] | ['s421595105', 's971671804'] | [9072.0, 8988.0] | [25.0, 28.0] | [278, 112] |
p02639 | u798260206 | 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\nprint(x.index("0")+1)', 'x = list(map(int,input().split()))\n \nprint(x.index(0)+1)'] | ['Runtime Error', 'Accepted'] | ['s906669060', 's870811428'] | [9160.0, 9160.0] | [24.0, 22.0] | [57, 56] |
p02639 | u798886512 | 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())\nfor i in range(len(l)):\n\tif l[i]==0:\n print(i+1)\n break', 'l=list(map(int,input().split()))\nfor i in range(len(l)):\n\tif l[i]==0:\n\t\tprint(i+1)\n\t\tbreak'] | ['Runtime Error', 'Accepted'] | ['s688649636', 's240464277'] | [8872.0, 9080.0] | [24.0, 28.0] | [101, 90] |
p02639 | u799428760 | 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. | ['if __name__ == "__main__":\n n = int(input())\n l_a = list(map(int, input().split()))\n s_a = list(set(l_a))\n\n s_a.sort()\n\n dub_a = [0]*(max(s_a)+1)\n\n for i in l_a:\n dub_a[i] += 1\n\n dp = [1]*(max(s_a)+1)\n\n for i in s_a:\n if dp[i] == 0:\n pass\n else:\n for j in range(2*i, len(dp), i):\n dp[j] = 0\n\n\n count = 0\n for i in s_a:\n if dp[i]==1 and dub_a[i]==1:\n count += 1\n print(count)', 'if __name__ == "__main__":\n s = input().split()\n for i, num in enumerate(s):\n if num == "0":\n print(i+1)'] | ['Runtime Error', 'Accepted'] | ['s337050774', 's109654762'] | [9004.0, 8980.0] | [24.0, 18.0] | [483, 128] |
p02639 | u801570811 | 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")\nelif b==0:\n print("2")\nelif c==0:\n print("3")\nelif d==0:\n print("4")\nelse:\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:\n print("3")\nelif d==0:\n print("4")\nelse:\n print("5")'] | ['Runtime Error', 'Accepted'] | ['s402333203', 's519096088'] | [8948.0, 9176.0] | [23.0, 21.0] | [148, 149] |
p02639 | u803503672 | 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 = map(int, input().split())\nlist = []\nfor y in range(a+1):\n list += [y*4 + (a-y)*2]\n \nif b in list:\n print("Yes")\nelse:\n print("No")', 's = input()\nlist = s.split(" ")\nfor i in range(5):\n if list[i] == 0:\n print(i)', 's = input()\nlist = s.split(" ")\nfor i in range(5):\n if int(list[i]) == 0:\n print(i)', 'a,b,c,d,e = map(int, input().split())\nlist = [a,b,c,d,e]\nfor i in range(5):\n if list[i] == 0:\n print(i+1)'] | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s050415357', 's277441037', 's714883532', 's373684035'] | [9012.0, 8892.0, 8988.0, 9012.0] | [26.0, 28.0, 25.0, 26.0] | [140, 82, 87, 109] |
p02639 | u805852597 | 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, x2, x3, x4, x5 = map(int, input().split())\nif x1 == 0:\n print(1)\nif x2 == 0:\n print(2)\nif x3 == 0:\n print(3)\nif x4 == 0:\n print(4)\nelse:\n print(5)', 'x1, x2, x3, x4, x5 = input().split()\n\nif x1 == 0:\n print(int(1))\nif x2 == 0:\n print(int(2))\nif x3 == 0:\n print(int(3))\nif x4 == 0:\n print(int(4))\nif x5 == 0:\n print(int(5))', 'x1, x2, x3, x4, x5 = input().split()\nif x1 == 0:\n print(1)\nif x2 == 0:\n print(2)\nif x3 == 0:\n print(3)\nif x4 == 0:\n print(4)\nelse:\n print(5)', 'a=[]\na=[int(x) for x in input().split()]\n\nans = list.index(0) + 1\nprint(ans)', 'a = list(map(int, input().split()))\n\nans = a.index(0) + 1\nprint(ans)'] | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s079425623', 's139123038', 's934279405', 's971173007', 's101887628'] | [9036.0, 9116.0, 9108.0, 9092.0, 9036.0] | [23.0, 20.0, 18.0, 22.0, 21.0] | [155, 177, 145, 76, 68] |
p02639 | u808585569 | 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())\nif N ==0:\n print(X)\n exit() \nif N !=0:\n p = list(map(int, input().split()))\nif p.count(X) == 0:\n print(X)\n exit()\nfor a in range(1000):\n if p.count(X-a) ==0:\n print(X-a)\n exit()\n elif p.count(X+a) ==0:\n print(X+a)\n exit()\n', 's = list(map(int, input().split()))\nfor i in range(len(s)):\n if s[i]==0:\n print(i+1)\n'] | ['Runtime Error', 'Accepted'] | ['s512273839', 's724222458'] | [9096.0, 9156.0] | [21.0, 22.0] | [273, 89] |
p02639 | u809043290 | 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()))\nprint(l.index(0))', 'l=list(map(int,input().split()))\nprint(l.index(0)+1)'] | ['Wrong Answer', 'Accepted'] | ['s734115977', 's791239017'] | [9028.0, 9168.0] | [18.0, 20.0] | [50, 52] |
p02639 | u809963697 | 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 = list(input().split())\ncounter = 0\nfor i in lists:\n if i == '0':\n break\n counter = counter + 1\nprint(str(counter))", "lists = list(input.split())\ncounter = 0\nfor i in lists:\n if i == '0':\n break\n counter = counter + 1\nprint(str(counter))", "lists = list(input().split())\ncounter = 1\nfor i in lists:\n if i == '0':\n break\n counter = counter + 1\nprint(str(counter))"] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s459193360', 's909947883', 's268708945'] | [8968.0, 9028.0, 9032.0] | [18.0, 21.0, 19.0] | [126, 124, 126] |
p02639 | u810348111 | 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()\ncnt = 0\nonaji = 0\n\nfor i in range(len(A)):\n if i >= len(A)-1:\n break\n for j in range(len(A)-1,i,-1):\n if A[i] == A[j]:\n onaji = 1\n if A[j] % A[i] == 0:\n del A[j]\n \n if onaji == 1:\n del A[i]\n onaji = 0\n\nprint(len(A))\n', 'a = list(map(int,input().split()))\n\nfor i in range(len(a)):\n if a[i] == 0:\n print(i+1)\n \n'] | ['Runtime Error', 'Accepted'] | ['s136133467', 's455470699'] | [9220.0, 9024.0] | [22.0, 22.0] | [354, 106] |
p02639 | u810787773 | 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 ans = i\n\nprint(ans)\n', 'x = list(map(int, input().split()))\nfor i in range(5):\n if x[i] == 0:\n ans = i\n\nprint(ans)\n', 'x = list(map(int, input().split()))\nfor i in range(5):\n if x[i] == 0:\n ans = i+1\n\nprint(ans)\n'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s402306655', 's647408720', 's345388994'] | [9088.0, 9156.0, 9152.0] | [22.0, 19.0, 24.0] | [101, 101, 103] |
p02639 | u811709035 | 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. | ['\nn = []\n\nn = input().split()\n\nfor i in range(5):\n n[i] = int(n[i])\n\nprint(n)\nfor i in range(5):\n if n[i] == 0:\n print(i+1)', '\nn = []\n\nn = input().split()\n\nfor i in range(5):\n n[i] = int(n[i])\n\nfor i in range(5):\n if n[i] == 0:\n print(i+1)'] | ['Wrong Answer', 'Accepted'] | ['s210042147', 's731940192'] | [9172.0, 9164.0] | [21.0, 22.0] | [135, 126] |
p02639 | u812458368 | 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. | ['var_list = map(int, input().split(" "))\nvar_list = list(var_list)\nprint(var_list)\n\nfor i, v in enumerate(var_list):\n print(v)\n if v == 0:\n arg = i\n\nprint(arg + 1)\n', 'var_list = map(int, input().split(" "))\nvar_list = list(var_list)\n#print(var_list)\n\nfor i, v in enumerate(var_list):\n #print(v)\n if v == 0:\n arg = i\n\nprint(arg + 1)\n'] | ['Wrong Answer', 'Accepted'] | ['s578338134', 's703743828'] | [9100.0, 8976.0] | [23.0, 22.0] | [176, 178] |
p02639 | u814271993 | 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 i in range(101):\n xl = x - i\n xr = x + i\n if xl not in P:\n print(xl)\n break\n elif xr not in P:\n print(xr)\n break', 'x=list(map(int,input().split()))\nprint(x.index(0)+1)\n'] | ['Runtime Error', 'Accepted'] | ['s432133263', 's339530901'] | [9036.0, 9092.0] | [26.0, 23.0] | [200, 53] |
p02639 | u814288001 | 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 = map(int,input().split())\nif(b%2!=0):\n print("No")\nelse:\n z = b//2 \n y = b//4\n if(a>=y and a <=z):\n print(\'Yes\')\n else:\n print(\'No\')\n', 'lol= [int(n) for n in input().split()]\nfor i in range(5):\n if(lol[i] == 0):\n print(i+1)\n break\n \t'] | ['Runtime Error', 'Accepted'] | ['s268665509', 's543616675'] | [9032.0, 9064.0] | [23.0, 29.0] | [167, 115] |
p02639 | u816171517 | 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=0\ns=0\n\nfor i in range(x+1):\n for k in range(x-i+1):\n a=4*i+2*k\n\n if a==y:\n s+=1\n\nif s>=1:\n print("Yes")\nelse:\n print("No")\n', 'a=list(map(int,input().split()))\n\nfor i in range(len(a)):\n if a[i]==0:\n print(i+1)\n'] | ['Runtime Error', 'Accepted'] | ['s216206534', 's252942309'] | [9104.0, 9156.0] | [19.0, 20.0] | [188, 93] |
p02639 | u820351940 | 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()))\nprint(sum(range(1, 5 + 1)) - sum(a))', 'a = list(map(int, input().split()))\nprint(sum(range(1, 5 + 1)) - sum(a))\n'] | ['Runtime Error', 'Accepted'] | ['s009404214', 's929166303'] | [9016.0, 9076.0] | [21.0, 27.0] | [64, 73] |
p02639 | u820435135 | 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())\na=[int(x) for x in input().split()]\n1<=x<=100\n0<=y<=100\nwhile y>0:\n if y in a:\n z=y+1\n elif not y in a:\n print('y')\n break\n elif z in a:\n z+=1\n else:\n break\nwhile y<100:\n if y in a:\n b=y-1\n elif b in a:\n b+=1\n else:\n break\nc=z-y\nd=b-y\nif not y in a:\n pass\nelif abs(c)<abs(d):\n print(c)\nelse:\n print(d)\n", "x,y=(int(x) for x in input().split())\nif y>x*4:\n print('No')\nelif y<x*2:\n print('No')\nelif y%2==1:\n print('No')\nelse:\n print('Yes')\n", "a,b,c,d,e=(int(x) for x in input().split())\nif a==0:\n print('1')\nelif b==0:\n print('2')\nelif c==0:\n print('3')\nelif d==0:\n print('4')\nelif e==0:\n print('5')\n"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s444767860', 's516674417', 's508114834'] | [9208.0, 9104.0, 9100.0] | [20.0, 21.0, 19.0] | [426, 144, 172] |
p02639 | u822090837 | 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 k in range(5)\n if x[k]=0:\n print(k)\n else:\n continue', 'x=list(map(int,input().split()))\nfor k in range(5)\n if x[k]==0:\n print(k+1)\n else:\n continue', 'x=list(map(int,input().split()))\nfor k in range(5)\n if x[k]==0:\n print(k)\n exit()\n else:\n continue', 'x=list(map(int,input().split()))\nfor k in range(5):\n if x[k]==0:\n print(k+1)\n else:\n continue'] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s158987513', 's268206580', 's801277907', 's307699375'] | [8940.0, 8948.0, 9016.0, 9040.0] | [26.0, 25.0, 24.0, 25.0] | [109, 112, 125, 113] |
p02639 | u823585596 | 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)', 'x=list(map(int,input().split()))\nfor i in range(5):\n if x[i]==0:\n print(i+1)'] | ['Wrong Answer', 'Accepted'] | ['s462745018', 's398326359'] | [9024.0, 9164.0] | [20.0, 25.0] | [84, 86] |
p02639 | u827261928 | 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())\nfor i in range(1,6):\n if X[i]==0:\n print(i)\n exit()', 'X=list(map(int,input().split()))\nfor i in range(0,5):\n if X[i]==0:\n print(i+1)\n break\n'] | ['Runtime Error', 'Accepted'] | ['s038701807', 's148760965'] | [9092.0, 8980.0] | [19.0, 26.0] | [95, 103] |
p02639 | u827553608 | 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,l=map(int,input().split())\ns=0\nif l/a==2 or l/a==4:\n\tprint("YES")\nelse:\n\tf=a*4\n\tif f>l:\n\t\twhile f>l:\n\t\t\tf=f-2\n\t\tif f==l:\n\t\t\tprint("YES")\t\t\t\n\t\telse:\n\t\t\tprint("NO")\n\telse:\n\t\tprint("NO") ', 'try:\n a=list(map(int,input().split()))\n for i in range(len(a)):\n if a[i]==0:\n print(i+1)\n break\nexcept:\n pass'] | ['Runtime Error', 'Accepted'] | ['s140528555', 's413214962'] | [9124.0, 9164.0] | [19.0, 19.0] | [186, 125] |
p02639 | u827627481 | 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 = [0]\nfor i in range(1,6):\n\tx.append(int(input("Please input:\\n")))\nfor j in range(1,5):\n\tif x[j] == 0:\n\t\tprint(j)', 'x = list(map(int,input().split()))\nfor j in range(0,5):\n\tif x[j] == 0:\n\t\tprint(j+1)'] | ['Runtime Error', 'Accepted'] | ['s940977244', 's683302698'] | [9100.0, 8980.0] | [23.0, 21.0] | [116, 83] |
p02639 | u829573578 | 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(input()))\np=sum(n)\nans=(15-p)\nprint(ans)', 'n=list(map(int,input()))\np=sum(n)\nf=15\nans=(f-p)\nprint(ans)', 'n=list(map(int,input().split()))\np=sum(n)\nf=15\nans=(f-p)\nprint(ans)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s326914464', 's595283683', 's311230010'] | [8940.0, 9080.0, 9020.0] | [20.0, 22.0, 23.0] | [51, 59, 68] |
p02639 | u830881690 | 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(int, input().split())\nfor i in range(5):\n if x[i] == 0:\n print(i)\n break', 'x = list(map(int, input().split()))\nfor i in range(5):\n if x[i] == 0:\n print(i)\n break', 'x = list(map(int, input().split()))\nfor i in range(5):\n if x[i] == 0:\n print(i+1)\n break'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s201480046', 's501891301', 's952042634'] | [8920.0, 9024.0, 9004.0] | [24.0, 23.0, 25.0] | [88, 93, 95] |
p02639 | u830982516 | 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()))\nindx=1\nfor i in arr:\n if i==0:\n indx+=1\nprint(indx)\n \n ', 'arr= list(map(int,input().split()))\nindx=1\nfor i in arr:\n if i==0:\n print(indx)\n indx+=1'] | ['Wrong Answer', 'Accepted'] | ['s026321664', 's994534424'] | [9092.0, 8920.0] | [26.0, 25.0] | [101, 93] |
p02639 | u831053714 | 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=[int(x) for x in input().split(" ")\nprint(L.index(0)+1)', 'L=[int(x) for x in input().split(" ")]\nprint(L.index(0)+1)\nL.clear()'] | ['Runtime Error', 'Accepted'] | ['s073534756', 's128039467'] | [8804.0, 9156.0] | [20.0, 20.0] | [57, 68] |
p02639 | u835095496 | 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 run(x, n, num_array):\n '''\n '''\n if len(num_array) == 0:\n print(x)\n return\n \n i = 1\n while True:\n if x - i not in num_array:\n print(x - i)\n print('x-i: x={}, i={}'.format(x, i))\n return\n if x + i not in num_array:\n print(x + i)\n return\n i += 1\n \n\nif __name__ == '__main__':\n x, n = list(map(int, input().split()))\n num_array = list(map(int, input().split()))\n run(x, n, num_array)", "def run(x, n, num_array):\n '''\n '''\n if len(num_array) == 0:\n print(x)\n return\n \n i = 1\n while True:\n if x - i not in num_array:\n print(x - i)\n return\n if x + i not in num_array:\n print(x + i)\n return\n i += 1\n \n\nif __name__ == '__main__':\n x, n = list(map(int, input().split()))\n num_array = list(map(int, input().split()))\n run(x, n, num_array)", "def run(x, n, num_array):\n '''\n '''\n if len(num_array) == 0:\n print(x)\n return\n \n i = 0\n while True:\n if x - i not in num_array:\n print(x - i)\n return\n elif x + i not in num_array:\n print(x + i)\n return\n i += 1\n \n\nif __name__ == '__main__':\n x, n = list(map(int, input().split()))\n num_array = list(map(int, input().split()))\n run(x, n, num_array)", "def run(x):\n '''\n '''\n for i,v in enumerate(x):\n if v == 0:\n print(i+1)\n\n\nif __name__ == '__main__':\n x = list(map(int, input().split()))\n run(x)"] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s063198821', 's709911770', 's989417182', 's428812917'] | [9140.0, 9096.0, 9076.0, 9096.0] | [26.0, 29.0, 23.0, 30.0] | [508, 458, 460, 178] |
p02639 | u836311327 | 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()\nprint(max(a))', 'a,b,c,d,e = map(int,input().split())\n\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)'] | ['Runtime Error', 'Accepted'] | ['s493803304', 's028308035'] | [9096.0, 9180.0] | [22.0, 22.0] | [75, 157] |
p02639 | u837340160 | 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)\n break\n', 'x = list(map(int, input().split()))\nfor i in range(x):\n if x[i] == 0:\n print(i+1)\n break\n', 'x = list(map(int, input().split()))\nfor i in range(len(x)):\n if x[i] == 0:\n print(i+1)\n break\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s172891785', 's810054658', 's380624398'] | [9028.0, 9028.0, 9156.0] | [22.0, 27.0, 18.0] | [104, 106, 111] |
p02639 | u840920983 | 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()]\na.sort()\nmax=a[-1]\ndp=[False for _ in range(max+1)]', 'x=[int(x) for x in input().split()]\nprint(x.index(0)+1)'] | ['Runtime Error', 'Accepted'] | ['s906250277', 's200599347'] | [9100.0, 9032.0] | [23.0, 19.0] | [102, 55] |
p02639 | u844895214 | 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 \nfrom collections import deque\nsys.setrecursionlimit(10**6)\ndef S(): return sys.stdin.readline().rstrip()\ndef SL(): return map(str,sys.stdin.readline().rstrip().split())\ndef I(): return int(sys.stdin.readline().rstrip())\ndef IL(): return map(int,sys.stdin.readline().rstrip().split())\ndef LS(): return list(sys.stdin.readline().rstrip().split())\ndef LI(): return list(map(int,sys.stdin.readline().rstrip().split()))\n\ndef main():\n x = LS()\n for i in len(x):\n if x[i] == '0':\n print(i)\n exit()\n return\n\nif __name__=='__main__':\n main()", "import sys \nfrom collections import deque\nsys.setrecursionlimit(10**6)\ndef S(): return sys.stdin.readline().rstrip()\ndef SL(): return map(str,sys.stdin.readline().rstrip().split())\ndef I(): return int(sys.stdin.readline().rstrip())\ndef IL(): return map(int,sys.stdin.readline().rstrip().split())\ndef LS(): return list(sys.stdin.readline().rstrip().split())\ndef LI(): return list(map(int,sys.stdin.readline().rstrip().split()))\n\ndef main():\n x = SL()\n ans = 0\n for i in len(x):\n if x[i] == '0':\n print(i)\n exit()\n return\n\nif __name__=='__main__':\n main()", "import sys \nfrom collections import deque\nsys.setrecursionlimit(10**6)\ndef S(): return sys.stdin.readline().rstrip()\ndef SL(): return map(str,sys.stdin.readline().rstrip().split())\ndef I(): return int(sys.stdin.readline().rstrip())\ndef IL(): return map(int,sys.stdin.readline().rstrip().split())\ndef LS(): return list(sys.stdin.readline().rstrip().split())\ndef LI(): return list(map(int,sys.stdin.readline().rstrip().split()))\n\ndef main():\n x = LI()\n for i in range(len(x)):\n if x[i] == 0:\n print(i+1)\n exit()\n return\n\nif __name__=='__main__':\n main()"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s077995056', 's557799315', 's154066519'] | [9340.0, 9204.0, 9408.0] | [23.0, 21.0, 23.0] | [585, 597, 592] |
p02639 | u845416499 | 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. | ["if __name__ == '__main__':\n x = map(int, input().strip().split())\n for num, i in enumerate(x):\n if i == 0:\n print(num)\n break\n", "if __name__ == '__main__':\n x = map(int, input().strip().split())\n for num, i in enumerate(x):\n if i == 0:\n print(num + 1)\n break\n"] | ['Wrong Answer', 'Accepted'] | ['s053060910', 's297341073'] | [9148.0, 9156.0] | [27.0, 20.0] | [161, 165] |
p02639 | u845902283 | 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(" ")))\nprint(l.index("0")+1)', 'l=list(map(int,input().split(" ")))\n#print(l)\nprint(l.index(0)+1)'] | ['Runtime Error', 'Accepted'] | ['s852686648', 's765707392'] | [8856.0, 9020.0] | [27.0, 22.0] | [55, 65] |
p02639 | u849433300 | 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\nlst = N\n\ndef func1(lst, value):\n return [i for i, x in enumerate(lst) if x == value]\n\n\n \nprint(func1(lst, 0))\n\n', 'N = list(map(int, input().split())) \nprint(N)\nfor i in N:\n if N[i] == 0:\n print(i+1)', 'a=list(map(int,input().split()))\nprint(a.index(0)+1)'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s580151848', 's836953897', 's292720270'] | [9076.0, 9040.0, 9128.0] | [22.0, 24.0, 23.0] | [153, 88, 52] |
p02639 | u853728588 | 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\tif x[i] == 0:\n \tprint(i+1)\n ', 'x = list(map(int,input().split())\n \nfor i in range(5):\n\tif x[i] == 0:\n \tprint(i+1)', 'x=map(int,input().split())\n \nfor i in range(5):\n if x[i]==0:\n print(i+1)', 'x = list(map(int,input().split())\nfor i in range(5):\n\tif x[i] == 0:\n print(i+1)\n ', 'x = list(map(int, input().split()))\nfor i in range(0,5):\n if x[i] == 0:\n print(i+1)\n '] | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s064148112', 's108974919', 's111685120', 's487402886', 's046007080'] | [8912.0, 9012.0, 8904.0, 8936.0, 9176.0] | [26.0, 22.0, 22.0, 26.0, 28.0] | [96, 93, 82, 96, 90] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.