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
u463470469
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.
['list = list(map(int,input().split()))\nfor i in list:\n if i == 0:\n print(i)', 'list = list(map(int,input().split()))\ni=0\nwhile i<5:\n \n if list[i] == 0:\n print(i+1)\n i += 1']
['Wrong Answer', 'Accepted']
['s816886317', 's905918982']
[8968.0, 9092.0]
[26.0, 27.0]
[78, 98]
p02639
u465101448
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 x in enumerate(X):\n if x[1]==0:\n print(x[0])\n break', 'X=list(map(int,input().split()))\nfor x in enumerate(X):\n if x[1]==0:\n print(x[0]+1)\n break']
['Wrong Answer', 'Accepted']
['s842367274', 's009793383']
[9132.0, 9096.0]
[17.0, 22.0]
[105, 107]
p02639
u474561976
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 io,sys\nsys.setrecursionlimit(10**6)\n\n\ndef main():\n X,Y = map(int,sys.stdin.readline().rstrip().split())\n\n y = (Y-2*X)/2\n x = X-y\n\n if y>=0 and y == int(y) and x >= 0:\n print("Yes")\n else:\n print("No")\nmain()', 'import io,sys\nsys.setrecursionlimit(10**6)\n\n\ndef main():\n X = list(map(int,sys.stdin.readline().rstrip().split()))\n g = set([0,1,2,3,4,5])\n\n a = list(g - set(X))\n print(a[0])\nmain()']
['Runtime Error', 'Accepted']
['s002323151', 's645172425']
[9108.0, 9172.0]
[22.0, 23.0]
[243, 193]
p02639
u475189661
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.
['v_list = [int(i) for i in input().split()]\nfor i in len(v_list):\n if v_list[i] == 0:\n print(i+1)\n \n', 'v_list = list(map(int,input().split()))\nfor i in range(len(v_list)):\n if v_list[i] == 0:\n print(i+1)']
['Runtime Error', 'Accepted']
['s479132176', 's184101959']
[9044.0, 9160.0]
[23.0, 28.0]
[104, 104]
p02639
u477638578
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.
["'''\nIn the name of God\n'''\n\na,b,c,d,e = map(int, input().split())\n\nfor i in range(1, 6):\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 elif e == 0:\n print(5)", 'a,b,c,d,e = map(int, input().split())\n\n\nif 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:\n print(5)', '# #\n # author : samars_diary #\n \n# #\n\nimport sys, os.path\n\n#if(os.path.exists(\'input.txt\')):\n \n #sys.stdout = open(\'output.txt\',"w")\n\nsys.setrecursionlimit(10 ** 5)\n\ndef mod(): return 10**9+7\ndef i(): return sys.stdin.readline().strip()\ndef ii(): return int(sys.stdin.readline())\ndef li(): return list(sys.stdin.readline().strip())\ndef mii(): return map(int, sys.stdin.readline().split())\ndef lii(): return list(map(int, sys.stdin.readline().strip().split()))\n\n#print=sys.stdout.write\n\ndef solve():\n a=lii()\n print(1+a.index(0))\n\nfor _ in range(1):\n solve()']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s261457357', 's649417280', 's566067439']
[9180.0, 8772.0, 9196.0]
[26.0, 22.0, 29.0]
[256, 196, 699]
p02639
u479641507
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(5):\n if l[i] == 0:\n print(i)\n', 'l = list(map(int, input().split()))\nfor i in range(5):\n if l[i] == 0:\n print(i + 1)\n']
['Wrong Answer', 'Accepted']
['s253180683', 's344018938']
[9084.0, 9128.0]
[23.0, 27.0]
[90, 94]
p02639
u480456127
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 = input().split()\n\nif x1 == 0:\n print(1)\nelif x2 == 0:\n print(2)\nelif x3 == 0:\n print(3)\nelif x4 == 0:\n print(4)\nelse:\n print(5)\n', 'x1, x2, x3, x4, x5 = input().split()\n\nif int(x1) == 0:\n print(1)\nelif int(x2) == 0:\n print(2)\nelif int(x3) == 0:\n print(3)\nelif int(x4) == 0:\n print(4)\nelse:\n print(5)\n']
['Wrong Answer', 'Accepted']
['s884062983', 's943212125']
[9080.0, 8980.0]
[23.0, 25.0]
[163, 183]
p02639
u485819963
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\n\nhuga = list(map(int, input().split()))\n\nfor i in range(5):\n if huga[i] == 0:\n print(huga[i])', '\n\n\nhuga = list(map(int, input().split()))\n\nfor i in range(len(huga)):\n if huga[i] == 0:\n print(huga[i])', '\n\n\nhuga = list(map(int, input().split()))\n\nfor i in range(len[huga]):\n if huga[i] == 0:\n print(huga[i])', '\n\n\nhuga = list(map(int, input().split()))\n\nif huga[0] == 0:\n print(1)\nif huga[1] == 0:\n print(2)\nif huga[2] == 0:\n print(3)\nif huga[3] == 0:\n print(4)\nif huga[4] == 0:\n print(5)\n']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s216469359', 's235487210', 's834212046', 's555134623']
[9156.0, 8984.0, 8972.0, 9084.0]
[19.0, 22.0, 20.0, 26.0]
[118, 126, 126, 206]
p02639
u486209657
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())\nx = list(x)\n\nfor idx in range(len(x)):\n if x[idx] == 0:\n print(idx + 1)\n break', 'x = int(input())\n\nx = tuple(x)\n\nfor idx in range(5):\n if x[idx] == 0:\n print(idx + 1)\n break', "x = map(int, input().replace(' ',''))\nx = list(x)\n\nfor idx in range(len(x)):\n if x[idx] == 0:\n print(idx + 1)\n break"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s677552200', 's771601893', 's309080107']
[9056.0, 8996.0, 9168.0]
[19.0, 26.0, 23.0]
[102, 99, 123]
p02639
u486773779
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\ni=1\nwhile i<=len(x):\n \n if x[i]==0:\n print(i)\n \n i+=1', 'x=list(map(int,input().split()))\n\ni=1\nwhile i<=len(x):\n \n if x[i-1]==0:\n print(i)\n \n i+=1']
['Runtime Error', 'Accepted']
['s896061994', 's703572456']
[9096.0, 9144.0]
[19.0, 19.0]
[106, 108]
p02639
u487288850
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=input().split()\nprint("{} {} {}".format(c,a,b))', 'array = list(map(int, input().split()))\nprint(array.index(0)+1)']
['Runtime Error', 'Accepted']
['s221398415', 's886277299']
[9080.0, 8976.0]
[22.0, 27.0]
[53, 63]
p02639
u490489966
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\nx = list(map(int, input().split()))\nans = 0\nfor i in range(5):\n if x[i] == i + 1:\n ans = i + 1\nprint(ans)\n', '# A\nx = list(map(int, input().split()))\nans = 0\nfor i in range(5):\n if x[i] != i + 1:\n ans = i + 1\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s948410078', 's917855092']
[9156.0, 9160.0]
[24.0, 20.0]
[120, 120]
p02639
u490553751
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 = [int(i) for i in input().split()]\nfor i in range(5):\n\tif li[i] == 0:\n \t\tprint(i+1)\n exit()', '#template\ndef inputlist(): return [int(j) for j in input().split()]\n#template\nli = inputlist()\nfor i in range(5):\n if li[i] == 0:\n print(i+1)']
['Runtime Error', 'Accepted']
['s982617806', 's218373212']
[8964.0, 9100.0]
[25.0, 25.0]
[109, 151]
p02639
u491550356
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(18 - sum(a))', 'a = list(map(int, input().split()))\nprint(15 - sum(a))']
['Wrong Answer', 'Accepted']
['s625057969', 's327207259']
[8980.0, 9112.0]
[24.0, 24.0]
[54, 54]
p02639
u491729244
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.
['#!/usr/bin/env python3\n\nX, Y = map(int, input().split())\n\n# a + b = X\n# 2a + 4b = Y\n# --\n# b = (Y-2X) / 2\n\nb = (Y - 2 * X) / 2.0\na = X - b\n\nif a.is_integer() and b.is_integer() and a >= 0 and b >= 0:\n print("Yes")\nelse:\n print("No")\n', '#!/usr/bin/env python3\n\na = list(map(int, input().split()))\nprint(a.index(0) + 1)\n']
['Runtime Error', 'Accepted']
['s408495387', 's391707731']
[9040.0, 8968.0]
[18.0, 22.0]
[239, 82]
p02639
u491830143
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 function(ar):\n print((ar.index(0))+1)\n\nif __name__==__"main"__:\n ar=list(map(int, input().rstrip().split()))\n function(ar)', "def function(ar):\n print(ar.index(0)+1)\n\nif __name__ == '__main__':\n ar = list(map(int, input().rstrip().split()))\n function(ar)"]
['Runtime Error', 'Accepted']
['s060508341', 's967723005']
[8672.0, 9004.0]
[27.0, 29.0]
[129, 137]
p02639
u493318999
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 exit()', 'x = list(map(int,input().split()))\nfor i in range(5):\n if x[i] == 0:\n print(i+1)\n exit()\n']
['Wrong Answer', 'Accepted']
['s845004562', 's446402219']
[9160.0, 9088.0]
[21.0, 22.0]
[93, 96]
p02639
u497158316
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 = input().split()\nfor i in range(0,len(num)):\n if num[i] == 0:\n print(i+1)\n ', 'num = input().split()\nfor i in range(0,len(num)):\n if int(num[i]) == 0:\n print(i+1)\n \n']
['Wrong Answer', 'Accepted']
['s961880649', 's165773417']
[9024.0, 9184.0]
[22.0, 23.0]
[85, 91]
p02639
u497188176
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()\nfor i in range(0,5):\n i=i+1\n if x[i]=="0":\n int(i)\n print(i+1)\n', 'x=input()\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)\nelse:\n print(5)', 'x=input()\nfor i in range(0,5):\n if x[i]==0:\n int(i)\n i=i+1\n print(i)\n break\n', 'x=list(map(int,input()))\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)\nelse:\n print(5)\n', 'x=input()\nfor i in range(0,5):\n if x[i]==0:\n print(i)\n break', '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)\nelse:\n print(5)\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s005290001', 's216119036', 's230060241', 's496991179', 's684772754', 's563526270']
[8904.0, 9104.0, 9024.0, 9040.0, 9024.0, 9036.0]
[18.0, 20.0, 22.0, 20.0, 21.0, 23.0]
[93, 134, 107, 150, 77, 158]
p02639
u498136917
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())\n \nif n==0:\n print(x)\nelse:\n P =list(map(int,input().split()))\n for i in range(100):\n if (x-i) not in P:\n print(x-i)\n break\n elif (x+i) not in P:\n print(x+i)\n break', 'x = list(map(int, input().split()))\nprint(x.index(0) + 1)']
['Runtime Error', 'Accepted']
['s670836231', 's721978252']
[9052.0, 9160.0]
[23.0, 21.0]
[262, 57]
p02639
u507145838
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 X:\n\tif i == 0:\n print(i+1)', 'X = input().split()\n \nfor i,num in enumerate(X):\n\tif num == "0":\n\t\tprint(int(i)+1)']
['Runtime Error', 'Accepted']
['s813678619', 's682109793']
[9012.0, 9120.0]
[23.0, 25.0]
[88, 90]
p02639
u511154092
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 n == 0:\n print(x)\nelif n == 1:\n if x == p:\n print(x-1)\n else:\n print(x)\nelse:\n p.sort()\n m = float("inf")\n if x<p[0] or p[n-1]<x:\n print(x)\n else:\n for y in [y for y in range(p[0]-1,p[n-1]) if not y in p]:\n if abs(x-y)<m:\n m = abs(x-y)\n ans_y = y\n print(ans_y)', 'x,n = map(int, input().split())\np = list(map(int, input().split()))\nif n == 0:\n print(x)\nelif n == 1:\n if x == p:\n print(x-1)\n else:\n print(x)\nelse:\n p.sort()\n m = float("inf")\n if x<p[0] or p[n-1]<x:\n print(x)\n else:\n for y in [y for y in range(p[0]-1,p[n-1]) if not y in p]:\n if abs(x-y)<m:\n m = abs(x-y)\n ans_y = y\n print(ans_y)', 'a,b,c,d,e = map(int, input().split())\nlis = [a,b,c,d,e]\nfor i,n in enumerate(lis):\n if n==0:\n print(i+1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s172192447', 's452744907', 's741376604']
[9088.0, 9108.0, 9168.0]
[24.0, 20.0, 21.0]
[370, 370, 108]
p02639
u511449169
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']
['s104950506', 's817702222']
[9092.0, 9032.0]
[20.0, 18.0]
[53, 57]
p02639
u514118270
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.
['F?++++-p', '[p]sp?[zr0=p1<x]dsxx', 'import sys\nimport math\nimport itertools\nfrom copy import copy\nfrom collections import deque,Counter\nfrom decimal import Decimal\ndef s(): return input()\ndef i(): return int(input())\ndef S(): return input().split()\ndef I(): return map(int,input().split())\ndef L(): return list(input().split())\ndef l(): return list(map(int,input().split()))\ndef lcm(a,b): return a*b//math.gcd(a,b)\nsys.setrecursionlimit(10 ** 9)\nmod = 10**9+7\n\nx1 = l()\nfor i in range(5):\n if i != x1[i]:\n print(i+1)\n', 'def ๅˆ†ๅ‰ฒๅ…ฅๅŠ›(): return input().split()\ndef ไฝ็ฝฎ(a): return ้…ๅˆ—.index(a)+1\n้…ๅˆ—ๅŒ–,้ซ˜้šŽ,ๅ‡บๅŠ›,ๆ•ฐๅญ—ๅŒ– = list,map,print,int\n\n\n\n\n\n้…ๅˆ— = ้…ๅˆ—ๅŒ–(้ซ˜้šŽ(ๆ•ฐๅญ—ๅŒ–,ๅˆ†ๅ‰ฒๅ…ฅๅŠ›()))\nๅ‡บๅŠ›(ไฝ็ฝฎ(0))\n\n\n\n\n\n\n\n\n\n\n\n\n\n']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s233923633', 's366095482', 's933143376', 's196531720']
[9080.0, 8972.0, 10048.0, 9132.0]
[21.0, 22.0, 25.0, 25.0]
[8, 20, 491, 227]
p02639
u521866787
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 x:\n if x==0:\n print(i+1)', 'x = list(map(int,input().split()))\n\nfor i in range(5):\n if x[i]==0:\n print(i+1)']
['Wrong Answer', 'Accepted']
['s281077939', 's024450039']
[9160.0, 9096.0]
[19.0, 20.0]
[78, 89]
p02639
u522293645
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()))\n\nfor i in range(5):\n if li[i]==0:\n print(i)\n break', 'li = list(map(int,input().split()))\n\nfor i in range(5):\n if li[i]==0:\n print(i+1)\n break']
['Wrong Answer', 'Accepted']
['s939735918', 's762964165']
[9092.0, 9100.0]
[20.0, 27.0]
[103, 105]
p02639
u525303224
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(len(a)):\n if a[i] == 0:\n print(i)\n break', 'a = list(map(int,input().split()))\nfor i in range(len(a)):\n if a[i] == 0:\n print(i+1)\n break\n']
['Wrong Answer', 'Accepted']
['s056606750', 's085992118']
[9104.0, 9152.0]
[24.0, 22.0]
[97, 100]
p02639
u529134895
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()\nA = A.split()\n\nB = []\nfor x in A:\ny = int(x)\nB.append(y)\n\nC = [1, 2, 3, 4, 5]\nfor x in range(len(B)):\nif B[x]!=C[x]:\nz = x +1\nprint(z)\n', 'A = Input()\nA = A.split()\n\nB = []\nfor x in A:\n y = int(x)\n B.append(y)\n\nc = [1, 2, 3, 4, 5]\nfor x in range(len(B)):\n if B[x] != c[x]:\n z = x+1\n print(z)', 'A = input()\nA = A.split()\nB = []\nfor x in A:\n y = int(x)\n B.append(y)\n\nc = [1, 2, 3, 4, 5]\nfor x in range(len(B)):\n if B[x] != c[x]:\n z = x+1\n print(z)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s604622598', 's614206487', 's586364616']
[8880.0, 9048.0, 9184.0]
[21.0, 20.0, 21.0]
[147, 175, 174]
p02639
u531456543
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 = [int(i) for i in input().split()]\nfor i in range(lst):\n if lst[i] == 0:\n ans = i+1\nprint(ans)', 'lst = [int(i) for i in input().split()]\nfor i in range(lst):\n if lst[i] == 0:\n ans = i+1\nprint(ans)', 'lst = [int(i) for i in input().split()]\nfor i in range(len(lst)):\n if lst[i] == 0:\n ans = i+1\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s007263765', 's875523314', 's513950369']
[9164.0, 9160.0, 9092.0]
[20.0, 21.0, 24.0]
[103, 109, 114]
p02639
u532309633
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 = input()\nuser_input = user_input.split()\nfor i in range(len(user_input)):\n\tif user_input[i] == '0':\n \tprint(i+1)", "def solution():\n user_input = input()\n user_input = user_input.split()\n for i in range(len(user_input)):\n if user_input[i] == '0':\n print(i+1)\n \n\n\n\nsolution()\n"]
['Runtime Error', 'Accepted']
['s544714928', 's226610309']
[8860.0, 9024.0]
[20.0, 27.0]
[127, 197]
p02639
u536034761
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 = map(int. input().split())\nfor x, n in enumarate(N, 1):\n if n == 0:\n print(x)\n break', 'N = map(int, input().split())\nfor x, n in enumerate(N, 1):\n if n == 0:\n print(x)\n break']
['Runtime Error', 'Accepted']
['s672796821', 's471898816']
[9092.0, 9156.0]
[21.0, 21.0]
[94, 94]
p02639
u536230475
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.
["''''atcoder beginner contest-170'''\n\nimport math\nfrom collections import defaultdict\ndef r():\n return int(input())\ndef rm():\n return map(int,input().split())\ndef rl():\n return list(map(int,input().split()))\n\n'''A'''\na=rl()\nfor i in range(len(a)):\n if a[i]==0:\n print(i)\n break\n", "''''atcoder beginner contest-170'''\n\nimport math\nfrom collections import defaultdict\ndef r():\n return int(input())\ndef rm():\n return map(int,input().split())\ndef rl():\n return list(map(int,input().split()))\n\n'''A'''\na=rl()\nb=defaultdict(int)\nfor i in a:\n b[i]=1\nfor i in range(1,len(a)+1):\n if b[i]==0:\n print(i)\n break\n"]
['Wrong Answer', 'Accepted']
['s700688319', 's602345576']
[9400.0, 9412.0]
[25.0, 25.0]
[303, 349]
p02639
u536642030
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 break', 'x = list(map(int, input().split()))\nfor i,j in enumerate(x):\n if j == 0:\n print(i + 1)\n break']
['Wrong Answer', 'Accepted']
['s300543085', 's799078260']
[9048.0, 9156.0]
[23.0, 23.0]
[96, 100]
p02639
u539367121
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())\n\nif N==0:\n print(X)\n exit(0)\n \np = [int(i) for i in input().split()]\n\nfor i in range(X+1):\n for s in [-1,1]:\n a = X + i*s\n if a not in p:\n print(a)\n exit(0)\n ', "print(input().split().index('0')+1)"]
['Runtime Error', 'Accepted']
['s196931705', 's326634819']
[9064.0, 9012.0]
[19.0, 28.0]
[212, 35]
p02639
u539969758
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 break', 'x = list(map(int, input().split()))\n\nfor i in range(5):\n if x[i] == 0:\n print(i + 1)\n break']
['Wrong Answer', 'Accepted']
['s718390745', 's431700509']
[9068.0, 9160.0]
[20.0, 23.0]
[104, 108]
p02639
u541610817
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(_) for _ in inpur().split()]\nprint(a.index(0)+1)', 'a = [int(_) for _ in input().split()]\nprint(a.index(0)+1)']
['Runtime Error', 'Accepted']
['s784870995', 's059942884']
[9088.0, 9152.0]
[21.0, 21.0]
[57, 57]
p02639
u543122853
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\nimport sys\nx,N = map(int, input().split())\n\nP = list(map(int, input().split()))\n\nabs_list = []\n\nfor p in P:\n abs_list.append(np.abs(x-p))\n \nif len(abs_list) == 0:\n print(x)\n sys.exit()\n \nabs_max = max(abs_list)\nfor i in range(100):\n if abs_list.count(i) == 0:\n print(x-i)\n sys.exit()\n elif abs_list.count(i) == 1 and x+i in P and i !=0:\n print(x-i)\n sys.exit()\n elif abs_list.count(i) == 1 and x-i in P and i != 0:\n print(x+i)\n sys.exit()', 'X = list(map(int, input().split()))\n\nfor i, x in enumerate(X):\n if x == 0:\n print(i+1)\n ']
['Runtime Error', 'Accepted']
['s665085389', 's407332699']
[26968.0, 9152.0]
[98.0, 20.0]
[484, 93]
p02639
u545805271
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 sunuke():\n x=list(map(int, input().split()))\n for i in range(0,len(x)):\n if x[i]==0:\n return i\nprint(sunuke())', 'def sunuke():\n x=list(map(int, input().split()))\n for i in range(0,len(x)):\n if x[i]==0:\n return i+1\nprint(sunuke())']
['Wrong Answer', 'Accepted']
['s143577002', 's924054708']
[9164.0, 9168.0]
[19.0, 26.0]
[138, 140]
p02639
u546236742
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.
['for i in range(5):\n n = input()\n if n == 0:\n print(i + 1)', 'number = input()\nnumber_list = number.split()\nfor n in number_list:\n if n == 0:\n print(number_list.index(n) + 1)', 'number = input()\nfor i, n in enumerate(number.split()):\n if n == "0":\n print(i + 1)\n break']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s002448732', 's074407458', 's499380226']
[9088.0, 8976.0, 9032.0]
[17.0, 21.0, 24.0]
[62, 116, 97]
p02639
u547375079
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 java.io.*;\nimport java.util.*;\n\npublic class five {\n\tstatic class InputReader {\n\t\tBufferedReader reader;\n\t\tStringTokenizer tokenizer;\n\n\t\tpublic InputReader(InputStream stream) {\n\t\t\treader = new BufferedReader(new InputStreamReader(stream));\n\t\t\ttokenizer = null;\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (tokenizer == null || !tokenizer.hasMoreTokens())\n\t\t\t\ttry {\n\t\t\t\t\ttokenizer = new StringTokenizer(reader.readLine());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\treturn tokenizer.nextToken();\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n\n\t\tpublic void close() throws IOException {\n\t\t\treader.close();\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputReader f = new InputReader(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out);\n\n\t\tfor (int i = 1; i <= 5; i++) {\n\t\t\tif (f.nextInt() == 0) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tf.close();\n\t\tout.close();\n\t}\n}', 'A = map(int, input().split())\nfor i in range(5):\n\tif (A[i] == 0):\n\t\tprint(i+1)\n break\n', 'A = list(map(int, input().split()))\n\nfor i in range(5):\n if A[i] == 0:\n print(i + 1)\n break\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s212814445', 's818351756', 's077838323']
[8876.0, 8888.0, 9092.0]
[22.0, 22.0, 21.0]
[1033, 93, 109]
p02639
u548123110
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 itertools\n\ndef main():\n n = int(input())\n a = list(map(int,input().split()))\n b = set(a)\n ansAry = [0] * 10000000\n\n num = len(a) - len(b)\n\n count = 0\n\n a.sort()\n\n x = list(itertools.combinations(a,2))\n # print (x)\n\n \n for i in range(len(x) // 3 * 2):\n if x[i][1] % x[i][0] == 0 and ansAry[x[i][1]] == 0 :\n count += 1\n ansAry[x[i][1]] = 1\n\n print(n - count - num)\n\nif __name__ == "__main__":\n main()\n', 'def main():\n x = list(map(int,input().split()))\n ans = x.index(0)\n\n print(ans+1)\n\n\nif __name__ == "__main__":\n main()\n']
['Runtime Error', 'Accepted']
['s026046580', 's130280593']
[9156.0, 9024.0]
[24.0, 18.0]
[475, 130]
p02639
u548765110
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)', 'A = list(map(int, input().split()))\nfor i in range(len(A)):\n if A[i]==0:\n print(i+1)\n ']
['Wrong Answer', 'Accepted']
['s511637553', 's666968915']
[9084.0, 9152.0]
[21.0, 25.0]
[44, 91]
p02639
u555458045
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())\nln = [a,b,c,d,e]\nfor i,j in enumerate(ln):\n if j == 0:\n print(i)\n break', 'l = list(map(int, input().split()))\nfor i,j in enumerate(l):\n if j == 0:\n print(i+1)\n break']
['Wrong Answer', 'Accepted']
['s918251592', 's313943584']
[9120.0, 9156.0]
[25.0, 31.0]
[120, 98]
p02639
u555649269
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()))\nfor i in range(len(n)):\n if(n[i]==0):\n cout<<i+1\n break', 'n=list(map(int,input().split()))\nfor i in range(len(n)):\n if(n[i]==0):\n print(i+1)\n break']
['Runtime Error', 'Accepted']
['s574160055', 's188917056']
[9096.0, 9156.0]
[19.0, 21.0]
[93, 96]
p02639
u558129042
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.
['number = input().split(" ")\nfor i in number:\n if i == 0:\n print(number[i])\n else:\n pass', 'number = input().split(" ")\n\nfor i in number:\n if i == "0":\n print(number.index(i)+1)\n else:\n pass']
['Wrong Answer', 'Accepted']
['s043474357', 's875866561']
[8900.0, 8964.0]
[26.0, 24.0]
[95, 118]
p02639
u559367141
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 2*i+4*(x-i)==y:\n print("Yes")\nprint(\'No\')', 'x,y=map(int,input().split())\nfor i in range(x+1):\n if 2*i+4*(x-i)==y:\n print("Yes")\n break\nelse:\n print("No")', "X, Y = map(int, input().split())\n\nfor i in range(X + 1):\n if i * 2 + (X - i) * 4 == Y:\n print('Yes')\n break\nelse:\n print('No')", 'n = list(map(int, input().split()))\nresult = 0\nfor i in range(len(n)):\n if n[i] == 0:\n print(i+1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s164632516', 's239783528', 's405468673', 's543033283']
[9164.0, 9112.0, 9072.0, 9028.0]
[25.0, 21.0, 25.0, 26.0]
[105, 129, 146, 101]
p02639
u562015767
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\ncnt = 1\nfor i in range(len(l)):\n cnt += 1\n if l[i] == 0:\n break\n\nprint(cnt)', 'x,y = map(int,input().split())\n \nans = 0\nfor i in range(x+1):\n f = (2*i) + 4*(x-i)\n if f == y:\n print("Yes")\n exit()\n \nprint("No")', 'l = list(map(int,input().split()))\n\ncnt = 1\nfor i in range(len(l)):\n if l[i] == 0:\n break\n else:\n cnt += 1\n \n\nprint(cnt)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s221634251', 's988545911', 's667993154']
[9040.0, 9112.0, 9188.0]
[22.0, 22.0, 22.0]
[124, 151, 147]
p02639
u562147608
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(" ")\nm = len(a)\nb = 0\nwhile b < m :\n if a[b]=="0"\n print(b)\n b = b + 1', 'a = input().split(" ")\nm = len(a)\nb = 0\nwhile b < m :\n if a[b] == "0":\n print(b + 1)\n b = b + 1']
['Runtime Error', 'Accepted']
['s041191527', 's159177934']
[8892.0, 9100.0]
[21.0, 22.0]
[97, 108]
p02639
u565433835
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']
['s488002820', 's051033991']
[8968.0, 9156.0]
[19.0, 23.0]
[50, 52]
p02639
u565751569
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)+1)', 'a=list(map(int,input().split()))\nprint(str(a.index(0))+1)', 'a=list(map(int,input().split())\nprint(a.index(0)+1)', 'a=list(map(int,input().split()))\nprint(str(a.index(0))+1)', 'a=list(map(int,input().split()))\nprint(a.index(0)+1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s039113672', 's444707479', 's851094141', 's909705157', 's222768641']
[9020.0, 9156.0, 8836.0, 9036.0, 9028.0]
[19.0, 24.0, 23.0, 20.0, 21.0]
[51, 57, 51, 57, 52]
p02639
u565761178
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()))\ncount = N\nfor i in range(N):\n\tfor j in range(N):\n\t\tif a[i]%a[j] ==0 and i!= j:\n\t\t\tcount = count -1\n\t\t\tbreak\nprint(count)', 'N = int(input())\na = list(map(int,input().split()))\ncount = 0\nflag = 0\nfor i in range(N):\n\tfor j in range(N):\n\t\tif a[i]%a[j] ==0 and i!= j:\n\t\t\tflag = 1\n\tif(flag == 0):\n\t\tcount = count +1\n\tflag = 0\nprint(count)', 'x = list(map(int,input().split()))\nprint(x.index(0)+1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s745996742', 's891807698', 's052741835']
[9180.0, 9192.0, 9160.0]
[19.0, 23.0, 22.0]
[172, 209, 54]
p02639
u566297428
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(int, input().split())\nprint(A.index(0) + 1)', 'A = list(map(int,input().split()))\nprint (l.index(0)+1)', 'a = list(map(int,input().split()))\nprint (l.index(0)+1)\n', "A = list(int, input().split())\nprint(A.index('0') + 1)", 'A = list(int, input().split())\n\nfor i in A:\n if 0 == A[i]:\n print(i + 1)\n ', 'A = list(map(int, input().split()))\n\nc = 0\nfor i in A:\n c += 1\n if i == 0:\n print(c)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s075326717', 's092031297', 's121176814', 's474213967', 's636897310', 's645010257']
[8980.0, 8880.0, 9084.0, 8816.0, 8948.0, 9092.0]
[23.0, 23.0, 29.0, 22.0, 23.0, 24.0]
[52, 55, 56, 54, 80, 97]
p02639
u566371932
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 = set(map(int, input().split()))\n\nif n == 0:\n print(x)\n sys.exit()\n\ni = 1\nwhile i < 103:\n left = x - i\n right = x + i\n if left not in p:\n print(left)\n sys.exit()\n elif right not in p:\n print(right)\n sys.exit()\n i += 1\n', 'i = input().split()\nprint(i.index("0") + 1)']
['Runtime Error', 'Accepted']
['s621988716', 's792276733']
[9176.0, 8952.0]
[23.0, 27.0]
[314, 43]
p02639
u570391873
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()))\nfor e in range(len(lst)):\n if lst[e] == 0;\n print(lst[e]+1)', 'lst = list(map(int, input().split()))\nfor e in range(len(lst)):\n if lst[e] == 0:\n print(e+1)']
['Runtime Error', 'Accepted']
['s415923388', 's521028571']
[8900.0, 8904.0]
[22.0, 27.0]
[106, 102]
p02639
u571210910
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 = np.array(list(map(int, input().split())))\n\nprint(np.where(n == 0))', 'import numpy as np\n\nn = np.array(list(map(int, input().split())))\n\nval = np.where(n == 0)\n\nprint(val[0]+1)\n', 'import numpy as np\n\nn = np.array(list(map(int, input().split())))\n\nprint(np.argmin(n)+1)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s201658666', 's538143956', 's270737268']
[27184.0, 27188.0, 27132.0]
[112.0, 111.0, 109.0]
[90, 107, 88]
p02639
u572032237
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 = [int(s) for s in input().split()]\nprint(lst.index(0))', 'lst = [int(s) for s in input().split()]\nprint(str(lst.index(0)))', 'lst = [int(s) for s in input().split()]\nprint(lst.index(0) + 1)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s363701725', 's894855048', 's898790741']
[9072.0, 8964.0, 9048.0]
[24.0, 24.0, 25.0]
[59, 64, 63]
p02639
u573332356
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 for j in range(X+1):\n if(i+j > X):\n continue\n\n if(Y == 4*i+2*j):\n print("Yes")\n exit()\n\nprint("No")\n', 'X, Y = map(int, input().split())\n\nfor i in range(X+1):\n for j in range(X+1):\n if(i+j > X):\n continue\n if(Y == 4*i+2*j):\n print("Yes")\n exit()\n \nprint("No")\n', 'x = list(map(int, input().split()))\n\nfor count, i in enumerate(x):\n if(i == 0):\n print(count+1)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s256340190', 's921372176', 's740839078']
[9140.0, 9116.0, 9088.0]
[20.0, 23.0, 21.0]
[206, 206, 106]
p02639
u578093902
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 = 5\nSi = n(n+1)/2\nlst = list(map(int,input().split()))\nSr = sum(lst)\nprint(Si-Sr)', 'n = 5\nSi = n*(n+1)/2\nlst = list(map(int,input().split()))\nSr = sum(lst)\nprint(int(Si-Sr))']
['Runtime Error', 'Accepted']
['s738981278', 's192767748']
[8776.0, 9036.0]
[26.0, 25.0]
[83, 89]
p02639
u579469974
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.
["ar=input().split()\n print(ar.index('0')+1)", "ar=input().split()\nprint(ar.index('0')+1)"]
['Runtime Error', 'Accepted']
['s021473618', 's805924053']
[8832.0, 8952.0]
[22.0, 22.0]
[45, 41]
p02639
u582396808
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()\n\nfor i, a in enumerate(x):\n if(a == "0"):\n print(i)', 'x = input().split()\n\nfor i, a in enumerate(x):\n if(a == "0"):\n print(i+1)']
['Wrong Answer', 'Accepted']
['s208452611', 's789513327']
[9088.0, 9092.0]
[18.0, 25.0]
[81, 83]
p02639
u582803594
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(5):\n if A[i]==0:\n print(i)', 'A=list(map(int,input().split()))\n\nfor i in range(5):\n if A[i]==0:\n print(i+1)']
['Wrong Answer', 'Accepted']
['s769805183', 's058580773']
[9024.0, 9024.0]
[24.0, 29.0]
[85, 87]
p02639
u583200093
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(len(x)):\n\tif x[i] == 0:\n print(i+1)', 'x = list(map(int,input().split()))\nfor i in range(len(x)):\n if x[i] == 0:\n print(i+1)']
['Runtime Error', 'Accepted']
['s469854370', 's648741225']
[8852.0, 9160.0]
[22.0, 22.0]
[90, 89]
p02639
u586280809
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()]\nfor i in range(5):\n if x_list[i] == 0:\n print(i)', 'x_list = list(map(int, input().split()))\nfor i in range(5):\n if x_list[i] == 0:\n print(i + 1)']
['Runtime Error', 'Accepted']
['s447836867', 's988060871']
[9092.0, 9040.0]
[22.0, 22.0]
[71, 103]
p02639
u587199081
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\nsys.setrecursionlimit(10**8)\ndef line_to_int(): return int(sys.stdin.readline())\ndef line_to_each_int(): return map(int, sys.stdin.readline().split())\ndef line_to_list(): return list(map(int, sys.stdin.readline().split()))\ndef line_to_list_in_iteration(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]\n# def dp(init, i, j): return [[init]*i for i2 in range(j)]\n#from collections import defaultdict #d = defaultdict(int) d[key] += value\n#from collections import Counter # a = Counter(A).most_common()\n# from itertools import accumulate #A = [0]+list(accumulate(A))\n\n\nn, k = line_to_each_int()\np = line_to_list()\n\np = sorted(p)\nans = 0\nfor i in range(k):\n ans += p[i]\nprint(ans)', 'import sys\nsys.setrecursionlimit(10**8)\ndef line_to_int(): return int(sys.stdin.readline())\ndef line_to_each_int(): return map(int, sys.stdin.readline().split())\ndef line_to_list(): return list(map(int, sys.stdin.readline().split()))\ndef line_to_list_in_iteration(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]\n# def dp(init, i, j): return [[init]*i for i2 in range(j)]\n#from collections import defaultdict #d = defaultdict(int) d[key] += value\n#from collections import Counter # a = Counter(A).most_common()\n# from itertools import accumulate #A = [0]+list(accumulate(A))\n\n\nx = line_to_list()\nprint(x.index(0)+1)']
['Runtime Error', 'Accepted']
['s134242188', 's357333909']
[9140.0, 8988.0]
[25.0, 29.0]
[784, 709]
p02639
u589969467
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(len(x)):\n if x[i] == 0:\n print(i+1)\n ', 'x = list(map(int,input().split()))\nfor i in range(len(x)):\n if x[i] == 0:\n print(i+1)\n ']
['Runtime Error', 'Accepted']
['s670986258', 's047321181']
[8988.0, 9052.0]
[22.0, 29.0]
[88, 94]
p02639
u590853144
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(0, 4): \n if x[i]==0 : \n break\n print(i) \n else:\n i+=1', 'a = list(map(int, input().split()))\nfor i in range(0, 4): \n if a[i]==0 : \n print(i) \n break\n else:\n i+=1', 'a = list(map(int, input().split()))\nfor i in range(0, 4): \n if a[i]==0 : \n break\n print(i) \n else:\n i+=1', 'x = list(map(int, input().split()))\nfor i in range(0, 5): \n if x[i]==0 : \n i+=1\n print(i) \n break\n else:\n i+=1']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s131205746', 's601385233', 's957525258', 's362956561']
[9088.0, 9028.0, 9160.0, 9096.0]
[21.0, 25.0, 22.0, 18.0]
[115, 115, 115, 124]
p02639
u591700046
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()))\nn=sum(p)\nprint(n-15)', 'p=list(map(int,input().split()))\nn=sum(p)\nprint(15-n)']
['Wrong Answer', 'Accepted']
['s128971207', 's946967393']
[9156.0, 8976.0]
[22.0, 22.0]
[53, 53]
p02639
u593920359
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(input().split()))\nprint(l.index(0)+1)', 'l=list(map(input().split()))\nprint(l.index(0))', 'x,n=map(int, input().split())\nl=list(map(int ,input().split()))\ni=0\nwhile(True):\n if (x-i) not in l:\n print(x-i)\n break\n if(x+i) not in l:\n print(x+i)\n break\n i+=1\n\n', 'l=list(map(int ,input().split()))\nprint(l.index(0)+1)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s110676609', 's225118040', 's284881967', 's942094619']
[9016.0, 8836.0, 8964.0, 8980.0]
[21.0, 27.0, 24.0, 25.0]
[48, 46, 202, 54]
p02639
u601508807
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.
['xl = list(map(int,input().split()))\nfor i in range(1,5):\n if xl[i] == 0:\n print(i+1)\n else :\n i = i + 1\n \n\n', 'x1,x2,x3,x4,x5 = input().split()\n\nif int(x1) == 0:\n print(1)\nelif int(x2) == 0:\n print(2)\nelif int(x3) == 0:\n print(3)\nelif int(x4) == 0:\n print(4)\nelse:\n print(5)\n\n']
['Wrong Answer', 'Accepted']
['s025451486', 's585014346']
[8988.0, 9036.0]
[30.0, 21.0]
[118, 170]
p02639
u601575292
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\nf = False\nfor num_of_tsuru in range(0, x+1):\n num_of_kame = x - num_of_tsuru\n if (2*num_of_tsuru) + (4*num_of_kame) == y:\n f = True\n break\n\nif f:\n print('Yes')\nelse:\n print('No')", 'x = list(map(int, input().split()))\n\nprint(x.index(0)+1)']
['Runtime Error', 'Accepted']
['s666500053', 's583199769']
[9104.0, 9160.0]
[21.0, 20.0]
[238, 56]
p02639
u605601159
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.
['return input().strip().split().index("0") + 1', 'print(input().strip().split().index("0") + 1)\n']
['Runtime Error', 'Accepted']
['s330349645', 's758665762']
[9004.0, 8984.0]
[25.0, 28.0]
[45, 46]
p02639
u605853674
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 x*4<y:\n print("No")\n\nelif y/2<x:\n print ("No")\n\nelif y % 2 == 0:\n print("Yes")\n\nelse:\n print("No")\n', 'lst = []\n\nfor i in range (5):\n element = int(input())\n lst.append(element)\n\nn=lst.index(0)\nprint(n+1)\n\n', 'lst = []\n\na, b, c, d, e = map(int, input().split())\n\nlst.append(a)\nlst.append(b)\nlst.append(c)\nlst.append(d)\nlst.append(e)\n\nn=lst.index(0)\nprint(n+1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s360138804', 's717764899', 's158033412']
[9088.0, 9096.0, 9076.0]
[21.0, 28.0, 24.0]
[148, 109, 149]
p02639
u607563136
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 = map(int,input().split())\n\nfor i,num in enumerate(n):\n if num == 0:\n print(i)', 'n = map(int,input().split())\n\nfor i,num in enumerate(n):\n if num == 0:\n print(i+1)']
['Wrong Answer', 'Accepted']
['s273231339', 's727386753']
[9036.0, 9108.0]
[32.0, 30.0]
[90, 92]
p02639
u608080019
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()\nnumlist = list(nums.split(\' \'))\n\nif numlist[0] = "0"\nprint(1)\n\nelif numlist[1] = "0"\nprint(2)\n\nelif numlist[2] = "0"\nprint(3)\n\nelif numlist[3] = "0"\nprint(4)\n\nelif numlist[4] = "0"\nprint(5)\n', 'nums = input()\nnumlist = list(nums.split(\' \'))\n\nif numlist[0] = "0"\nprint(0)\n\nif numlist[1] = "0"\nprint(1)\n\nif numlist[2] = "0"\nprint(2)\n\nif numlist[3] = "0"\nprint(3)\n\nif numlist[4] = "0"\nprint(4)\n', 'nums = input().split()\n\nif nums[0] == "0":\nprint(1)\n\nelif nums[1] == "0":\nprint(2)\n\nelif nums[2] == "0":\nprint(3)\n\nelif nums[3] == "0":\nprint(4)\n\nelif nums[4] == "0":\nprint(5)\n', 'nums = input()\nnumlist = list(nums.split(\' \'))\n\nif numlist[0] = "0"\nprint(0)\n\nelif numlist[1] = "0"\nprint(1)\n\nelif numlist[2] = "0"\nprint(2)\n\nelif numlist[3] = "0"\nprint(3)\n\nelif numlist[4] = "0"\nprint(4)\n', 'nums = input().split()\n\nif numlist[0] = "0"\nprint(1)\n\nelif numlist[1] = "0"\nprint(2)\n\nelif numlist[2] = "0"\nprint(3)\n\nelif numlist[3] = "0"\nprint(4)\n\nelif numlist[4] = "0"\nprint(5)\n', "nums = input()\nnumlist = list(nums.split(' '))\nfor i in numlist:\n if i == '0':\n print i\n", 'nums = input().split()\n\nif nums[0] = "0"\nprint(1)\n\nelif nums[1] = "0"\nprint(2)\n\nelif nums[2] = "0"\nprint(3)\n\nelif nums[3] = "0"\nprint(4)\n\nelif nums[4] = "0"\nprint(5)\n', 'nums = input().split()\n\nif nums[0] == "0":\n\tprint(1)\n\nelif nums[1] == "0":\n\tprint(2)\n\nelif nums[2] == "0":\n\tprint(3)\n\t\nelif nums[3] == "0":\n\tprint(4)\n\nelif nums[4] == "0":\n\tprint(5)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s171819277', 's246113463', 's287174951', 's387038477', 's583061052', 's879994059', 's908888675', 's035519462']
[8956.0, 9016.0, 8920.0, 8952.0, 8940.0, 8824.0, 8944.0, 8996.0]
[21.0, 20.0, 27.0, 19.0, 19.0, 19.0, 19.0, 25.0]
[205, 197, 176, 205, 181, 92, 166, 182]
p02639
u608755339
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.
['array = [int(i) for i in input().split()]\ni = 0\n\nfor x in array:\n if x == 0:\n print(i)\n break\n i += 1', '[S,Y] = [int(i) for i in input().split()]\n\nif Y % 2 == 1:\n print("No")\nelse:\n for x in range(S+1):\n y = S - x\n if 4*x + 2*y == Y:\n print("Yes")\n break\n else:\n print("No")', 'array = [int(i) for i in input().split()]\ni = 1\n\nfor x in array:\n if x == 0:\n print(i)\n break\n i += 1']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s351795884', 's739321706', 's164738966']
[9084.0, 8992.0, 9156.0]
[21.0, 17.0, 23.0]
[109, 192, 109]
p02639
u609018550
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().split().index('0'))", "print(input().split().index('0')+1)"]
['Wrong Answer', 'Accepted']
['s174111596', 's766967117']
[8904.0, 9024.0]
[20.0, 18.0]
[33, 35]
p02639
u609814378
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\nX, N = map(int, input().split())\n\nif N == 0:\n print(X)\n sys.exit()\n \nif X == 100 and N == 100:\n print(-100)\n sys.exit()\n \n \nP = list(map(int, input().split()))\n\nlis = []\nfor i in range (-100,102,1):\n if i not in P:\n lis.append(i)\n\n\n \n \n \nans = 10**18\nsuzi = 0\nlis2 = []\nfor j in lis:\n num = abs(X-j)\n if num < ans:\n ans = num\n suzi = j\n\nprint(suzi)\n\n \n', 'X1,X2,X3,X4,X5 = map(int, input().split())\nlis = [X1,X2,X3,X4,X5]\n\nfor i in range(len(lis)):\n if lis[i] == 0:\n print(i+1)']
['Runtime Error', 'Accepted']
['s828986672', 's833299226']
[9016.0, 9172.0]
[22.0, 20.0]
[424, 131]
p02639
u616382321
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())\n\nl = [x1, x2, x3, x4, x5]\nprint(l.index(0)+1)', 'x1, x2, x3, x4, x5 = map(int, input().split())\n\nl = [x1, x2, x3, x4, x5]\n\nprint(l.index(0)+1)']
['Runtime Error', 'Accepted']
['s221718193', 's116423340']
[8936.0, 9148.0]
[21.0, 28.0]
[135, 93]
p02639
u617322197
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) for i in 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 ', 'a,b,c,d,e = (int(i) for i in 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)']
['Runtime Error', 'Accepted']
['s233499798', 's996941614']
[8936.0, 8920.0]
[26.0, 26.0]
[158, 155]
p02639
u617448925
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()))\nx=p.get(0)\nprint(x)', 'p=list(map(int,input().split()))\nx=p.index(0)\nprint(x+1)']
['Runtime Error', 'Accepted']
['s280688988', 's270245593']
[9068.0, 9160.0]
[19.0, 21.0]
[52, 56]
p02639
u621596556
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 \tprint(x[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']
['s326102046', 's556638564']
[9068.0, 9100.0]
[18.0, 21.0]
[86, 86]
p02639
u626228246
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)\n']
['Wrong Answer', 'Accepted']
['s918822996', 's283007467']
[9152.0, 9148.0]
[22.0, 22.0]
[52, 55]
p02639
u627600101
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()))\ncount = 0\nA.sort()\nc=0\nfor k in range(len(A)-1):\n if A[k] == A[k+1]:\n del A[k]\n A.insert(0,0)\n c+=1\n if k <len(A)-2:\n if A[k+1] != A[k+2]:\n del A[k+1]\n A.insert(0,0)\n c+=1\n else:\n del A[k+1]\n A.insert(0,0)\n c+=1\ndel A[:c]\nif len(A)>0:\n saidai = A[-1]\nelse:\n saidai=0\nprint(A)\nfoo = [0 for k in range(saidai+1)]\nfor k in range(len(A)):\n if foo[A[k]] == 1:\n continue\n else:\n count+=1\n for j in range(A[k], saidai+1, A[k]):\n foo[j] = 1\nprint(count) ', 'A = list(map(int, input().split()))\nfor k in range(5):\n if A[k] == 0:\n print(k+1)\n break']
['Runtime Error', 'Accepted']
['s076534123', 's386852597']
[9268.0, 9160.0]
[19.0, 19.0]
[670, 105]
p02639
u629186149
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(aa.index(0))', 'a = list(map(int,input().split()))\nprint(a.index(0) + 1)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s348428339', 's784803628', 's456066329']
[9028.0, 9100.0, 9156.0]
[19.0, 25.0, 21.0]
[52, 53, 56]
p02639
u629471944
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\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\n\n", "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')\n\n\n\n", "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')\n\n\n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s877054005', 's965567131', 's743288629']
[8948.0, 9012.0, 9168.0]
[23.0, 22.0, 22.0]
[148, 154, 158]
p02639
u631579948
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(input())\nfor i in range(5):\n if a[i]=='0':\n a[i]=i\n print(i)", "a=list(input())\nfor i in range(5):\n if a[i]=='0':\n a[i]=i\n print(i-1)\n", 'a=list(map(int,input().split()))\nfor i in range(5):\n if a[i]==0:\n print(i+1)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s137753012', 's752378445', 's040399673']
[8968.0, 8964.0, 9160.0]
[23.0, 19.0, 22.0]
[74, 77, 85]
p02639
u632609425
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.
['list=list(map(int,input().split()))\nfor i in range(5):\n\tif list[i]==0:\n\t\tprint(i)\n', 'list=map(int,input().split())\nfor i in range(5):\n\tif list[i]==0:\n\t\tprint i', 'list=map(int,input().split())\nfor i in range(5):\n\tif list[i]==0:\n\t\tprint(i)\n', 'list=list(map(int,input().split()))\nfor i in range(5):\n\tif list[i]==0:\n\t\tprint(i+1)\n']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s312164548', 's788211303', 's853725416', 's348449356']
[9148.0, 8836.0, 9028.0, 9092.0]
[23.0, 25.0, 22.0, 23.0]
[82, 74, 76, 84]
p02639
u633466792
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(x[i])', 'x=list(map(int,input().split()))\nfor i in range(5):\n if x[i]==0:\n print(i+1)']
['Wrong Answer', 'Accepted']
['s587868114', 's650532760']
[8924.0, 9156.0]
[29.0, 28.0]
[87, 86]
p02639
u634079249
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, os, math, bisect, itertools, collections, heapq, queue\nfrom scipy.sparse.csgraph import csgraph_from_dense, floyd_warshall\nfrom decimal import Decimal\nfrom collections import defaultdict\n\n# import fractions\n\nsys.setrecursionlimit(10000000)\n\nii = lambda: int(sys.stdin.buffer.readline().rstrip())\nil = lambda: list(map(int, sys.stdin.buffer.readline().split()))\nfl = lambda: list(map(float, sys.stdin.buffer.readline().split()))\niln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]\n\niss = lambda: sys.stdin.buffer.readline().decode().rstrip()\nsl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))\nisn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]\n\nlcm = lambda x, y: (x * y) // math.gcd(x, y)\n# lcm = lambda x, y: (x * y) // fractions.gcd(x, y)\n\nMOD = 10 ** 9 + 7\nMAX = float(\'inf\')\n\n\ndef main():\n if os.getenv("LOCAL"):\n sys.stdin = open("input.txt", "r")\n\n X, N = il()\n P = il()\n\n if len(P) == 0:\n print(X)\n exit()\n\n mx = max(P)\n p = MAX\n ret = 0\n for n in range(-1, mx + 1):\n if n not in P and p > abs(X - n):\n ret = n\n p = X - n\n print(ret)\n\n\nif __name__ == \'__main__\':\n main()\n', 'import sys, os, math, bisect, itertools, collections, heapq, queue\nfrom scipy.sparse.csgraph import csgraph_from_dense, floyd_warshall\nfrom decimal import Decimal\nfrom collections import defaultdict\n\n# import fractions\n\nsys.setrecursionlimit(10000000)\n\nii = lambda: int(sys.stdin.buffer.readline().rstrip())\nil = lambda: list(map(int, sys.stdin.buffer.readline().split()))\nfl = lambda: list(map(float, sys.stdin.buffer.readline().split()))\niln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]\n\niss = lambda: sys.stdin.buffer.readline().decode().rstrip()\nsl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))\nisn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]\n\nlcm = lambda x, y: (x * y) // math.gcd(x, y)\n# lcm = lambda x, y: (x * y) // fractions.gcd(x, y)\n\nMOD = 10 ** 9 + 7\nMAX = float(\'inf\')\n\n\ndef main():\n if os.getenv("LOCAL"):\n sys.stdin = open("input.txt", "r")\n\n X = il()\n print(X.index(0) + 1)\n\n\nif __name__ == \'__main__\':\n main()\n']
['Runtime Error', 'Accepted']
['s826633980', 's413451810']
[37520.0, 37516.0]
[180.0, 154.0]
[1250, 1035]
p02639
u636256839
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 E == 0:\n print(5)\n', '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)\nelif E == 0:\n print(5)\n']
['Runtime Error', 'Accepted']
['s528164058', 's968845271']
[8968.0, 9168.0]
[20.0, 21.0]
[170, 170]
p02639
u637874199
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(a)\nif b == 0:\n print(b)\nif c == 0:\n print(c)\nif d == 0:\n print(d)\nif e == 0:\n print(e)', 'x = list(map(int, input().split()))\nfor i in x:\n if i == 0:\n print(int(x.index(i)) + 1)']
['Wrong Answer', 'Accepted']
['s608470438', 's938457306']
[9180.0, 9100.0]
[22.0, 21.0]
[146, 91]
p02639
u642829572
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 = list(map(int,input().split()))\nprint(n_list)\nfor i in range(len(n_list)):\n if n_list[i] == 0:\n print(i+1)', 'n_list = list(map(int,input().split()))\nfor i in range(len(n_list)):\n if n_list[i] == 0:\n print(i+1)']
['Wrong Answer', 'Accepted']
['s881866760', 's131436403']
[9160.0, 9116.0]
[20.0, 24.0]
[132, 118]
p02639
u645250356
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 = inpl()\nfor i in range(5):\n if x[i] == 0:\n print(i+1)\n break', "from collections import Counter,defaultdict,deque\nfrom heapq import heappop,heappush,heapify\nfrom bisect import bisect_left,bisect_right \nimport sys,math,itertools,fractions,pprint\nsys.setrecursionlimit(10**8)\nmod = 10**9+7\nINF = float('inf')\ndef inp(): return int(sys.stdin.readline())\ndef inpl(): return list(map(int, sys.stdin.readline().split()))\n\nx = inpl()\nfor i in range(5):\n if x[i] == 0:\n print(i+1)\n break"]
['Runtime Error', 'Accepted']
['s835539216', 's791539696']
[8760.0, 10500.0]
[24.0, 37.0]
[80, 432]
p02639
u645568816
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']
['s685590767', 's427436542']
[8972.0, 8916.0]
[23.0, 26.0]
[53, 55]
p02639
u645937929
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 = input().split()\n\ni = 0\nwhile True:\n if num_list[i] == 0:\n print(i + 1)\n break\n i += 1', 'num_list = input().split()\n\ni = 0\nwhile True:\n if int(num_list[i]) == 0:\n print(i + 1)\n break\n i += 1']
['Runtime Error', 'Accepted']
['s876609471', 's459550605']
[8896.0, 9104.0]
[23.0, 25.0]
[116, 121]
p02639
u646661668
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.
['variable = input().split()\nprint(variable.index("0"))', 'variable = input().split()\nprint(variable.index("0")+1)']
['Wrong Answer', 'Accepted']
['s452438761', 's810554812']
[9020.0, 9084.0]
[20.0, 19.0]
[53, 55]
p02639
u652068981
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+1)\n break', "print(input().find('0')//2+1)"]
['Runtime Error', 'Accepted']
['s911114784', 's073921341']
[9096.0, 9084.0]
[21.0, 26.0]
[106, 29]
p02639
u656803083
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(len(a)):\n if a[i] == 0:\n print(i+1)\n break', 'a = list(map(int,input().split()))\n\nfor i in range(len(a)):\n if a[i] == 0:\n print(i+1)']
['Runtime Error', 'Accepted']
['s595342440', 's897621243']
[9020.0, 9100.0]
[22.0, 23.0]
[94, 90]
p02639
u658600714
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(%):\n if x[i] == 0:\n print(i+1)', "x,y = map(int,input().split())\n\nif y%2 == 0 and x*2<=y<=x*4:\n print('Yes')\nelse:\n print('No')", 'x= list(map(int,input().split()))\n\nfor i in range(5):\n if x[i] == 0:\n print(i+1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s532539295', 's733010866', 's404058417']
[8964.0, 9112.0, 9088.0]
[21.0, 19.0, 26.0]
[84, 95, 84]
p02639
u660899380
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()))\nanswer = 0\nfor i in range(len(a)):\n if (a[i] == 0):\n answer = 0\n break\nprint(i)', 'a = list(map(int, input().split()))\nanswer = 0\nfor i in range(len(a)):\n if (a[i] == 0):\n answer = 0\n break\nprint(i+1)']
['Wrong Answer', 'Accepted']
['s193959735', 's135117720']
[9020.0, 9108.0]
[21.0, 21.0]
[122, 124]