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
u854117336
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['arr = list(map(int, input().split()))\n\n\ni=1\nfor num in arr:\n if(num==0):\n print(i)\n else:\n i++;\n', 'arr = list(map(int, input().split()))\n\n\ni=1\nfor num in arr:\n if(num==0):\n print(i)\n else:\n i = i +1\n']
['Runtime Error', 'Accepted']
['s080524700', 's795722549']
[8964.0, 9108.0]
[23.0, 23.0]
[116, 120]
p02639
u854405453
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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=map(int,open(0).read().split())\ni=0\np.sort()\nwhile(len(p)!=0):\n t=p[0]\n p=[m if m!=t else 0 for m in p[1:] if m%t!=0 or m==t ]\n if 0 in p:p=[i for i in p if i!=0]\n else:i+=1\nprint(i)', '[ print(i+1) for i,x in enumerate(map(int, input().split())) if x == 0]']
['Runtime Error', 'Accepted']
['s307881951', 's553628145']
[8972.0, 9160.0]
[26.0, 22.0]
[191, 71]
p02639
u854931881
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 print(i)\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']
['Wrong Answer', 'Accepted']
['s838409936', 's274082340']
[9004.0, 9144.0]
[26.0, 23.0]
[88, 90]
p02639
u854992222
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()))\nd = max(x[2] - x[1], x[1] - x[0])\nif x[0] == 0:\n print(x[1] - d)\nelif x[1] == 0:\n print(x[2] - d)\nelif x[2] == 0:\n print(x[3] - d)\nelif x[3] == 0:\n print(x[4] - d)\nelif x[4] == 0:\n print(x[3] + d)', 'x = list(map(int, input().split()))\nif x.count(1) == 0:\n print(1)\nelif x.count(2) == 0:\n print(2)\nelif x.count(3) == 0:\n print(3)\nelif x.count(4) == 0:\n print(4)\nelif x.count(5) == 0:\n print(5)']
['Wrong Answer', 'Accepted']
['s293855743', 's173775315']
[9064.0, 9120.0]
[21.0, 21.0]
[247, 208]
p02639
u855831834
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\nA = list(map(int,input().split()))\n\nchofuku_dict = {}\nchofuku = []\n\nfor a in A:\n if a not in chofuku_dict:\n chofuku_dict[a] = 1\n else:\n chofuku.append(a)\n \nchofuku = set(chofuku)\n\nA = list(set(A))\nA.sort()\n\nbl = np.array([0] + [1]*A[-1])\n\nans = 0\nfor a in A:\n if bl[a] == 0:\n continue\n if a in chofuku:\n continue\n bl[a] = 0\n ans += 1\n bl[2*a::a] = 0\nprint(ans)', 'import numpy as np\nN = int(input())\nA = list(map(int,input().split()))\n\nchofuku_dict = {}\nchofuku = []\n\nfor a in A:\n if a not in chofuku_dict:\n chofuku_dict[a] = 1\n else:\n chofuku.append(a)\n \nchofuku = set(chofuku)\n\nA = list(set(A))\nA.sort()\n\nbl = np.array([0] + [1]*A[-1])\nans = 0\nfor a in A:\n if a in chofuku:\n continue\n if bl[a] == 1:\n bl[a] = 0\n ans += 1\n bl[2*a::a] = 0\nprint(ans)', 'x = list(map(int,input().split()))\nprint(x.index(0)+1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s661938815', 's756522661', 's256732232']
[27172.0, 27144.0, 9024.0]
[105.0, 104.0, 23.0]
[452, 446, 54]
p02639
u856726960
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['a,b,c,d,e=int(input().split())\n0 2 3 4 5\nprint(15-a-b-c-d-e)', 'a,b,c,d,e=map(int,input().split())\n\nprint(15-a-b-c-d-e)']
['Runtime Error', 'Accepted']
['s487581441', 's026106496']
[8968.0, 9036.0]
[25.0, 30.0]
[60, 55]
p02639
u857555436
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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) + 1)', 'x = list(map(int, input().split()))\nprint(x.index(0) + 1)']
['Runtime Error', 'Accepted']
['s143467236', 's491076785']
[8792.0, 9140.0]
[20.0, 24.0]
[58, 57]
p02639
u859021444
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['books1= list(map(int, input().split()))\ni=0\nwhile(i<len(books)):\n if(books[i]==0):\n print(i)\n break\n i+=1', 'books1= list(map(int, input().split()))\ni=0\nwhile(i<len(books)):\n if(books[i]==0):\n print(i+1)\n break\n i+=1', 'books1= list(map(int, input().split()))\ni=0\nwhile(i<len(books)):\n if(books1[i]==0):\n print(i+1)\n break\n i+=1', 'books1= list(map(int, input().split()))\ni=0\nwhile(i<len(books1)):\n if(books1[i]==0):\n break\n i+=1\nprint(i+1)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s006153593', 's719494940', 's813912865', 's515962478']
[9156.0, 8940.0, 9016.0, 9112.0]
[19.0, 25.0, 24.0, 29.0]
[115, 117, 118, 114]
p02639
u860338101
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(reverse=True)\ncount = 1\nfor i in range(N-1):\n flag = 1\n for j in range(N-1, i, -1):\n if A[i] % A[j] == 0:\n flag = 0\n break\n if flag:\n count += 1\nif N == 1:\n print(0)\nelif A[0] == A[1]:\n print(0)\nelse:\n print(count)', 'X = list(map(int, input().split()))\nfor i in range(len(X)):\n if X[i] == 0:\n print(i+1)\n break']
['Runtime Error', 'Accepted']
['s825582030', 's960728315']
[9076.0, 9164.0]
[21.0, 23.0]
[298, 100]
p02639
u863371419
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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, M = map(int,input().split())\n\n\nfor i in range(1, N+1,1):\n \n f = 2 * i + 4 * (N - i)\n if f == M:\n print('Yes')\n break\n elif N == M:\n print('No')\n break\n elif N >= M:\n print('No')\n break\nelse:\n print('No')\n", 's = list(map(int,input().split()))\n\ncount = 0\nfor i in s:\n if i != 0:\n count+=1\n elif i == 0:\n count+=1\n print(count)\n']
['Runtime Error', 'Accepted']
['s681348077', 's708949737']
[9044.0, 9096.0]
[23.0, 20.0]
[278, 145]
p02639
u864085306
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()))\nprint(num.index(0))', 'num = list(map(int, input().split()))\nprint(num.index(0)+1)']
['Wrong Answer', 'Accepted']
['s192359148', 's218079102']
[9096.0, 9092.0]
[27.0, 24.0]
[57, 59]
p02639
u864276028
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()))\nk = A.find(0)\nprint(k+1)', 'A = list(map(int, input().split()))\nk = A.index(0)\nprint(k+1)']
['Runtime Error', 'Accepted']
['s942275319', 's831378605']
[9160.0, 8936.0]
[26.0, 27.0]
[60, 61]
p02639
u872271866
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['\ndef main():\n x, n = map(int, input().split(" "))\n p =[]\n dif = 1e2\n ans = 0\n l_a = [i for i in range(101)]\n if n != 0:\n p = list(map(int, input().split(" ")))\n for ele in l_a[::-1]:\n if abs(x - ele) <= dif and ele not in p:\n ans = ele\n dif = abs(x - ele)\n print(ans)\nif __name__ == "__main__":\n main()', '\ndef main():\n x = list(map(int, input().split(" ")))\n for i in range(5):\n if x[i] == 0:\n print(i +1)\n\nif __name__ == "__main__":\n main()']
['Runtime Error', 'Accepted']
['s030537382', 's036246086']
[9104.0, 9100.0]
[20.0, 23.0]
[365, 163]
p02639
u877220920
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\n\nfor i in range(5):\n if x[i] == 0:\n print(i+1)\n', 'x = list(map(int, input().split()))\n\nfor i in range(5):\n if x[i] == 0:\n print(i+1)\n']
['Runtime Error', 'Accepted']
['s786942624', 's385465412']
[8960.0, 9156.0]
[23.0, 19.0]
[87, 93]
p02639
u879921371
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['x=input().split()\nfor i in range(5):\n if x[i]=="0":\n print(i)\n exit()', 'x=input().split()\nfor i in range(5):\n if x[i]=="0":\n print(i+1)\n exit()']
['Wrong Answer', 'Accepted']
['s380550383', 's789239923']
[9092.0, 9052.0]
[21.0, 22.0]
[76, 78]
p02639
u880400515
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 in range(5):\n if (X[i] == 0):\n print(i+1)\n', 'X = input().split()\n\nfor i in range(5):\n if (X[i] == "0"):\n print(i+1)\n']
['Wrong Answer', 'Accepted']
['s893274440', 's986233467']
[9024.0, 9084.0]
[22.0, 22.0]
[79, 81]
p02639
u880911340
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['i = list(map(int, input().split()))\nprint(i.index(0))', 'i = list(map(int, input().split()))\nprint(i.index(0)+1)']
['Wrong Answer', 'Accepted']
['s420017455', 's495624923']
[9068.0, 9160.0]
[25.0, 19.0]
[53, 55]
p02639
u882389182
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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']
['s264114803', 's059288729']
[9156.0, 9092.0]
[20.0, 20.0]
[53, 55]
p02639
u882869256
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()\nb=0\nwhile b<m:\n if a[b]=='0':\n print(b)\n m=m+1", "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)\n m=m+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', 'Wrong Answer', 'Time Limit Exceeded', 'Accepted']
['s334938546', 's468960724', 's826131160', 's849887996']
[8964.0, 9096.0, 14696.0, 9104.0]
[18.0, 24.0, 2227.0, 23.0]
[88, 89, 89, 91]
p02639
u883237011
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = list(map(int, input().split()))\ntarget = 0\nprint(array.index(target))\n', 'array = list(map(int, input().split()))\ntarget = 0\nprint(array.index(target)+1)\n']
['Wrong Answer', 'Accepted']
['s768435824', 's083562802']
[9012.0, 9056.0]
[24.0, 25.0]
[78, 80]
p02639
u883983516
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['lis=list(input().split( ))\n \nfor i,x in enumerate(lis):\n if x == 0:\n a = i\nprint a', 'lis=list(input())\n\nfor i,x in enumerate(lis):\n if x == 0:\n a = i\nprint a\n \n \n', 'lis=list(map(int,input().split()))\nfor i, x in enumerate(lis):\n if x == 0:\n a = i+1\nprint (a)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s631603845', 's922713074', 's308428334']
[8840.0, 8924.0, 9092.0]
[25.0, 20.0, 24.0]
[86, 83, 97]
p02639
u885722498
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['# coding: utf-8\n\n\n\nx, y = map(int, input().split())\nif y > 4*x or 2*x >y:\n print("No")\nelif (4*x - y) % 2 == 0:\n print("Yes")\nelse:\n print("No")', "# coding: utf-8\n\n\nnum_list = []\nnum_list = input().split()\n\nans = int(num_list.index('0')) + 1\n\nprint(ans)"]
['Runtime Error', 'Accepted']
['s267770235', 's615583712']
[9092.0, 9028.0]
[26.0, 27.0]
[240, 180]
p02639
u886567399
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = input()\n\nnums = input.split(" ")\n\nfor index, num in enumerate(nums):\n if int(num)==0:\n print(index)', 'input = input()\nnums = input.split(" ")\nfor index, num in enumerate(nums):\n if int(num)==0:\n print(index)', 'input = input()\nnums = input.split(" ")\nfor index, num in enumerate(nums):\n if int(num)==0:\n print(index+1)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s309340965', 's516615120', 's481380235']
[9020.0, 8832.0, 9136.0]
[29.0, 24.0, 25.0]
[117, 115, 117]
p02639
u886718563
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 if X[i-1] = 0:\n print(i)', 'X = list(map(int, input().split()))\nprint(X.index(0)+1)']
['Runtime Error', 'Accepted']
['s466138495', 's028937176']
[8812.0, 9092.0]
[24.0, 27.0]
[89, 55]
p02639
u887080361
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['abcde=input().split()\nfor i in range(5):\n if int(abcde[i]) == 0:\n c=i\nprint(c)\n ', 'abcde=input().split()\nfor i in range(5):\n if int(abcde[i]) == 0:\n print(i)\n ', 'data=input().split()\nc=0\nfor i in range(5):\n if int(data[i]) == 0:\n c=i\nprint(c)', 'data=input().split()\nfor i in range(5):\n if int(data[i]) == 0:\n c=i\nprint(c)', 'data=input().split()\nx=int(data[0])\ny=int(data[1])\nif y%2 != 0:\n print("No")\nelse:\n if y-2*x > 0:\n if (y-2*x)/2 >= 0 and (y-2*x)/2 <=x:\n print("Yes")\n else:\n print("No")\n else:\n print("No")', '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])']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s127966185', 's299785556', 's491784437', 's805697724', 's878496598', 's693239285']
[8992.0, 9080.0, 9152.0, 8940.0, 8996.0, 9012.0]
[26.0, 25.0, 27.0, 23.0, 27.0, 28.0]
[97, 93, 90, 86, 241, 170]
p02639
u888260487
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\nfor i in range(len(a)):\n if a[i]!=i:\n print(a[i])', 'a=list(map(int,input().split()))\nfor i in range(5):\n if a[i]!=i+1:\n print(i+1)']
['Runtime Error', 'Accepted']
['s415313629', 's205926351']
[9036.0, 9100.0]
[20.0, 20.0]
[80, 82]
p02639
u890727880
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 check(a):\n for i in a:\n if i==0:\n print(a.index(i))\n\na = list(map(int, input().split()))\ncheck(a)', 'def check(a):\n for i in a:\n if i==0:\n ans = a.index(i)+1\n return ans\n\na = list(map(int, input().split()))\nprint(check(a))']
['Wrong Answer', 'Accepted']
['s408006999', 's574722928']
[9152.0, 8880.0]
[25.0, 26.0]
[110, 153]
p02639
u895758938
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = 0\nfor i,s in enumerate(l):\n \n if s == 0:\n print(i)\n exit()\n else:\n pass\n', 'l = list(map(int,input().split()))\n\ncnt = 0\nfor i,s in enumerate(l):\n \n if s == 0:\n print(i+1)\n exit()\n else:\n pass\n\n']
['Wrong Answer', 'Accepted']
['s019609433', 's882855227']
[9036.0, 9164.0]
[23.0, 20.0]
[126, 129]
p02639
u898176173
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\na = map(int, sys.stdin.readline().rstrip().split(' '))\n\nfor i in range(len(a)):\n if a[i] == 0:\n print(i+1)\n break", "import sys\na = list(map(int, sys.stdin.readline().rstrip().split(' ')))\n \nfor i in range(len(a)):\n if a[i] == 0:\n print(i+1)\n break"]
['Runtime Error', 'Accepted']
['s441013326', 's822772144']
[8888.0, 8964.0]
[20.0, 27.0]
[131, 138]
p02639
u900245251
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 binary_search(list, item):\n \n low = 0\n high = len(list) - 1\n \n while low <= high:\n # ... check the middle element\n mid = (low + high) // 2\n guess = list[mid]\n if guess == item:\n return mid\n if guess > item:\n high = mid - 1\n else:\n low = mid + 1\n return None\n\nmy_list = [1,2,0,4,5]\nprint(binary_search(my_list,5)) # => 1', '#', 'S = input()\nn = 0\nnums = S.split(" ")\nfor index, num in enumerate(nums):\n if int(num) == 0:\n n = index + 1\n \n \n \nprint(n)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s030040096', 's077614450', 's931879370']
[9060.0, 8984.0, 9088.0]
[23.0, 21.0, 22.0]
[362, 1, 131]
p02639
u901915490
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = int(input().split())\nx = list()\nx.append(x1)\nx.append(x2)\nx.append(x3)\nx.append(x4)\nx.append(x5)\nans = 0\nfor i, j in enumerate(x):\n if i+1 != j:\n \tans = j\nprint(j)', 'x1, x2, x3, x4, x5 = input().split()\nx = list()\nx.append(x1)\nx.append(x2)\nx.append(x3)\nx.append(x4)\nx.append(x5)\nans = 0\nfor i, j in enumerate(x):\n if int(j) == 0:\n \tans = j\nprint(int(ans))', 'x1, x2, x3, x4, x5 = int(input().split())\nx = list()\nx.append(x1)\nx.append(x2)\nx.append(x3)\nx.append(x4)\nx.append(x5)\nans = 0\nfor i, j in enumerate(x):\n if i+1 != j\n ans = j\nprint(j)\n', 'x1, x2, x3, x4, x5 = int(input().split())\nx = list()\nx.append(x1)\nx.append(x2)\nx.append(x3)\nx.append(x4)\nx.append(x5)\nans = 0\nfor i, j in enumerate(x):\n if i+1 != j:\n \tans = j\nprint(type(0 2 3 4 5),j)', 'x1, x2, x3, x4, x5 = int(input().split( ))\nx = []\nx.append(x1)\nx.append(x2)\nx.append(x3)\nx.append(x4)\nx.append(x5)\nans = 0\nfor i, j in enumerate(x):\n if i+1 != j:\n \tans = j\nprint(type(0 2 3 4 5),j)', 'x1, x2, x3, x4, x5 = input().split()\nx = list()\nx.append(x1)\nx.append(x2)\nx.append(x3)\nx.append(x4)\nx.append(x5)\nans = 0\nfor i, j in enumerate(x):\n if int(j) == 0:\n \tans = i+1\nprint(int(ans))\n']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s163937803', 's347970708', 's583932517', 's783635771', 's911415452', 's766239024']
[9052.0, 9184.0, 9004.0, 8988.0, 8988.0, 9056.0]
[20.0, 20.0, 18.0, 17.0, 25.0, 24.0]
[186, 191, 185, 202, 199, 194]
p02639
u903148768
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(5):\n if li[i]:\n print(i+1)', 'li = list(map(int,input().split()))\nfor i in range(5):\n if li[i]==0:\n print(i+1)\n']
['Wrong Answer', 'Accepted']
['s208975399', 's706742780']
[9096.0, 9156.0]
[19.0, 20.0]
[81, 85]
p02639
u904331908
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()))\n\nfor i in range(5):\n if p[i] == 0:\n x = i\n \n print(x)', 'x,n = map(int,input().split())\n\np = list(map(int,input().split()))\ns = []\n\nfor i in range(101):\n if i not in p:\n s.append(i)\n\n \nif s == [0]:\n print(0)\n\nelse:\n \n\n k = abs(x-s[0])\n del s[0]\n for j in range(100-n):\n if abs(x-s[j]) < k:\n k = abs(x-s[j])\n else:\n answer = s[j-1]\n break\n else:\n answer = s[100-n-1]\n print(answer)\n\n\n\n\n ', 'p = list(map(int,input().split()))\n\nfor i in range(5):\n if p[i] == 0:\n x = i + 1\n \nprint(x)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s495309768', 's770239817', 's833879078']
[8780.0, 9148.0, 9016.0]
[20.0, 25.0, 24.0]
[95, 370, 99]
p02639
u910263818
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['l=map(int,input().split())\nprint(l.index(0))', 'l=list(map(int,input().split()))\nprint(l.index(0))', 'l=list(map(int,input().split()))\nprint(l.index(0)+1)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s024012940', 's491998486', 's860295824']
[9024.0, 9152.0, 9160.0]
[26.0, 24.0, 22.0]
[44, 50, 52]
p02639
u911612592
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 legs = 2 * i + 4 * (x - i)\n \n if legs == y:\n print("Yes")\n break\n \n else:\n print("No")\n', 'a,b,c,d,e = (int(x) for x in 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 \nelse:\n print(5)']
['Runtime Error', 'Accepted']
['s547012981', 's298198801']
[9168.0, 9172.0]
[20.0, 19.0]
[160, 169]
p02639
u919463386
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['numlist = input().split()\nindex = 0\nfor num in numlist:\n if int(num) == 0:\n print(index)\n break\n index += 1', 'numlist = input().split()\nindex = 1\nfor num in numlist:\n if int(num) == 0:\n print(index)\n break\n index += 1']
['Wrong Answer', 'Accepted']
['s803923414', 's372025374']
[9084.0, 8976.0]
[23.0, 26.0]
[127, 127]
p02639
u919730120
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(cache = True)\ndef solve(i,j,a):\n k=False\n sc=0\n for c in a:\n if c>j:\n break\n elif c>j//2 and c<j:\n continue\n elif c==j:\n sc+=1\n if sc>=2:\n k=True\n break\n else:\n if j%c==0:\n k=True\n break\n return k\n\nn=int(input())\na=sorted(list(map(int,input().split())))\nans=0\nfor i,j in enumerate(a):\n if solve(i,j,a):\n continue\n else:\n ans+=1\nprint(ans)', 'x=list(map(int,input().split()))\nfor i,j in enumerate(x):\n\tif j==0:\n\t\tprint(i+1)\n\t\tbreak']
['Runtime Error', 'Accepted']
['s803214634', 's155670491']
[91760.0, 9032.0]
[394.0, 23.0]
[541, 88]
p02639
u921156673
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(list(map(int,input().split()).index(0) + 1)\n', 'print(list(map(int,input().split()).index(0))\n', 'print(list(map(int,input().split())).index(0) + 1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s106008040', 's503629783', 's091400818']
[8868.0, 8852.0, 9024.0]
[25.0, 26.0, 25.0]
[50, 46, 50]
p02639
u923172145
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 heapq import heapify,heappush,heappop\nimport sys\n\nN, Q = map(int,input().split())\n\nS = []\nPQs = [[] for _ in range(200000)]\nT = [0]*200000 \nM = []\nfor n in range(N):\n a, b = map(int,input().split())\n S.append([a,b-1])\n #print(PQs[0:10])\n PQs[b-1]=PQs[b-1]+[(-a,n)]\n #print(PQs[0:10])\n\nfor b in range(200000):\n if len(PQs[b])>0:\n heapify(PQs[b])\n M.append((-PQs[b][0][0],b,0))\nheapify(M)\n \nfor q in range(1,Q+1):\n c, d = map(int,input().split())\n d = d-1\n d_prv = S[c-1][1]\n S[c-1][1] = d \n #print(S)\n \n #print(d_prv)\n #print(d)\n \n \n heappush(PQs[d],(-S[c-1][0],c-1))\n #print(S[P[d][0][1]][1])\n #print(d)\n #print(PQs[0:4]) \n while d != S[PQs[d][0][1]][1]:\n heappop(PQs[d])\n heappush(M,(-PQs[d][0][0],d,q))\n T[d] = q \n #print(PQs[0:4])\n \n \n if len(PQs[d_prv])>0:\n while d_prv != S[PQs[d_prv][0][1]][1]:\n #print(S[PQs[d_prv][0][1]])\n heappop(PQs[d_prv])\n if len(PQs[d_prv]) == 0:\n break\n \n if len(PQs[d_prv]) > 0: \n heappush(M,(-PQs[d_prv][0][0],d_prv,q))\n T[d_prv] = q \n\n #print(M) \t\n \n while M[0][2] != T[M[0][1]]:\n heappop(M)\n #print(M)\n \n \n print(M[0][0]) \n #print(M)', 'x = list(map(int, input().split()))\nans = 0\nfor xi in x:\n ans += 1\n if xi == 0:\n print(ans)\n break']
['Runtime Error', 'Accepted']
['s596930219', 's150908301']
[9256.0, 9156.0]
[21.0, 25.0]
[1762, 106]
p02639
u923269289
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()))\nprint(l.index(0))', 'l=list(map(int,input().split()))\nprint(l.index(0))', 'l=list(map(int,input().split()))\nprint(l.index(0)+1)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s635826807', 's640463333', 's539788232']
[9096.0, 9100.0, 9032.0]
[21.0, 21.0, 22.0]
[42, 50, 52]
p02639
u924828749
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(n):\n if n[i] == 0:\n print(i)\n break', 'n = [int(x) for x in input().split()]\nfor i in range(len(n)):\n if n[i] == 0:\n print(i + 1)\n break']
['Runtime Error', 'Accepted']
['s233000780', 's106520088']
[9044.0, 9032.0]
[21.0, 23.0]
[92, 104]
p02639
u924852499
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\n\nX = stdin.readline().strip().split(" ")\n\nn = 0\nfor i in range(len(X)):\n if X[i] == 0:\n n = i+1\n break\nprint n', 'from sys import stdin\n \nX = stdin.readline().strip().split(" ")\n \nn = 0\nfor i in range(len(X)):\n if X[i] == "0":\n n = i+1\n break\nprint n', 'from sys import stdin\n \nX = stdin.readline().strip().split(" ")\n \nn = 0\nfor i in range(len(X)):\n if X[i] == "0":\n n = i+1\n break\nprint(n)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s128704057', 's479879096', 's728910190']
[9004.0, 8960.0, 9084.0]
[25.0, 25.0, 25.0]
[139, 143, 144]
p02639
u925406312
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\n\ndef index(a, x):\n if x in a:\n return a.index(x)\n\nprint(index(a, 0))', 'a = list(map(int,input().split()))\n\n\ndef index(a, x):\n if x in a:\n return a.index(x)\n\naa = index(a, 0)\nprint(aa + 1)']
['Wrong Answer', 'Accepted']
['s646994493', 's684182637']
[9096.0, 9100.0]
[18.0, 21.0]
[114, 126]
p02639
u926080943
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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().find('0')+1)", "print(input().split().index('0')+1)"]
['Runtime Error', 'Accepted']
['s797368042', 's120234479']
[8988.0, 8896.0]
[26.0, 24.0]
[34, 35]
p02639
u926266624
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(A.index(0)+1)', 'A = list(map(int,input().split()))\n\nprint(A.index(0)+1)\n']
['Runtime Error', 'Accepted']
['s035864526', 's298929007']
[8996.0, 9060.0]
[28.0, 29.0]
[55, 56]
p02639
u929996201
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = map(int, input().split())\nfor i in range(len(arr)):\n if (arr[i] == 0):\n print(i+1)', 'arr = list(map(int, input().split()))\nfor i in range(len(arr)):\n if (arr[i] == 0):\n print(i+1)']
['Runtime Error', 'Accepted']
['s168303040', 's750862623']
[9100.0, 9100.0]
[21.0, 24.0]
[92, 98]
p02639
u930847736
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['rint(15 - sum(list(map(int, input().split()))))', 'x = list(map(int, input().split()))\nif x[0] == 0: print(1)\nif x[1] == 0: print(2)\nif x[2] == 0: print(3)\nif x[3] == 0: print(4)\nif x[4]: print(5)', 'print(15 - sum(list(map(int, input().split()))))']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s037009143', 's706022455', 's521889935']
[9016.0, 9164.0, 9012.0]
[25.0, 26.0, 27.0]
[47, 145, 48]
p02639
u934119021
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()))\na = 0\nans = ''\np.sort()\nprint(p)\nwhile ans == '':\n if len(p) == 0:\n ans = x\n elif x - a not in p:\n ans = x - a\n elif x + a not in p:\n ans = x + a\n else:\n a += 1\nprint(ans)", 'l = list(map(int, input().split()))\nprint(l.index(0) + 1)']
['Runtime Error', 'Accepted']
['s548289408', 's511850307']
[9132.0, 9096.0]
[24.0, 20.0]
[256, 57]
p02639
u938933689
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()\nlist = A.split()\nanswer = 0\nfor i in range (5):\n list[i] = int(list[i])\n if list[i] == 0:\n answer = i+1\nprint(answer)\nprint(list)', 'A=input()\nlist = A.split()\nanswer = 0\nfor i in range (5):\n list[i] = int(list[i])\n if list[i] == 0:\n answer = i+1\nprint(answer)\n\n']
['Wrong Answer', 'Accepted']
['s188909553', 's355745099']
[9016.0, 9024.0]
[31.0, 24.0]
[144, 134]
p02639
u939172252
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 if x[i] == 0:\n print(x + 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']
['s939531515', 's763402036']
[8956.0, 8892.0]
[20.0, 24.0]
[92, 92]
p02639
u942435175
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = {xn: idx for idx, xn in enumerate(map(int,input().split()))}\nprint(x[0])', 'for idx, xn in enumerate(map(int,input().split())):\n if xn == 0:\n print(idx+1)']
['Wrong Answer', 'Accepted']
['s451369120', 's971867393']
[9164.0, 9164.0]
[25.0, 21.0]
[76, 82]
p02639
u944886577
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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=input().split()\nfor i in range(5):\n if a[i]=='0':\n print(str(i))\n else:\n pass", 'a,b=map(int,input().split())\nfor i in range(a):\n for j in range(b):\n if i+j=a and i*2+4*j=b:\n print("Yes")\n break\n else:\n print("No")', 'a=[]\na=input().split()\nfor i in range(0,4):\n if a[i]==0:\n print(i)\n else:\n pass', 'a=[]\na=map(int, input().split())\nfor i in a:\n if a[i]==0:\n print(i)\n else:\n pass', "a=[]\na=input().split()\nfor i in range(5):\n if a[i]=='0':\n print(str(int(i)))\n else:\n pass\n", 'a,b=map(int,input().split())\nfor i in range(a):\n for j in range(b):\n if i+j==a and i*2+4*j==b:\n print("Yes")\n break\n else:\n print("No")', 's=[]\nx,n=map(int,input().split())\nif n==0:\n print(x)\n exit()\n \ns=list(map(int,input().split()))\nslist=sorted(s)\nout=0\nfor i in range(0,1000):\n out=0\n for j in range(n):\n if slist[j]==x-i:\n out=1\n if out !=1:\n print(x-i)\n exit()\n out=0\n for k in range(n):\n if slist[k]==x+i:\n out=1\n if out !=1:\n print(x+i)\n exit()', 'a=int(input().split())\nfor i in range(4):\n if a[i]==0:\n print(i)\n else:\n pass', "a=[]\na=input().split()\nprint(a)\nfor i in range(0,4):\n if a[i]=='0':\n print(i)\n else:\n pass\n", 'a=[]\na=int(input().split())\nfor i in range(4):\n if a[i]==0:\n print(i)\n else:\n pass\n\n', 's=[]\nx,n=map(int,input().split())\ns=list(map(int,input().split()))\nslist=sorted(s)\n\nif n==0:\n print(x)\n exit()\nfor i in range(0,101):\n for j in range(n):\n if slist[j]==x-i:\n flag=1\n if slist[j]==x+i:\n flag=2\n \n if flag==2:\n flag=0\n elif flag==0:\n print(x-i)\n exit()\n elif flag==1:\n print(x+i)\n exit()\n', "a=[]\na=input().split()\nfor i in range(0,4):\n if a[i]=='0':\n print(i)\n else:\n pass\n", 'a=[]\na=int(input().split())\nfor i in a:\n if a[i]==0:\n print(i+1)\n else:\n pass', 'a=int(input().split())\nfor i in range(4):\n if a[i]==0:\n print(i)\n else\n pass', 'a=[]\na=map(int, input().stlip())\nfor i in a:\n if a[i]==0:\n print(i)\n else:\n pass', 's=list(map(int,input().stlip())\nfor i in s:\n if i==0:\n print(i+1)\n exit()\n else:\n pass', 's=list(map(int,input().split())\nfor i in range(5):\n if s[i]==0:\n print(i+1)\n exit()\n else:\n pass', "a=[]\na=input().split()\nprint(a)\nfor i in range(0,4):\n if a[i]=='0':\n print(i+1)\n else:\n pass\n", 's=list(map(int,input().split()))\nfor i in range(5):\n if s[i]==0:\n print(i+1)\n exit()\n else:\n pass']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s009477146', 's046236349', 's130991134', 's173736406', 's290526549', 's340070345', 's376350212', 's395859572', 's409788346', 's477862601', 's490023145', 's706757775', 's745555747', 's754975182', 's782930710', 's888574114', 's946116989', 's955452778', 's945990510']
[8972.0, 8896.0, 8972.0, 9148.0, 9036.0, 8932.0, 8952.0, 9008.0, 8992.0, 9020.0, 8992.0, 9088.0, 9016.0, 8808.0, 8952.0, 8820.0, 8788.0, 8924.0, 9064.0]
[24.0, 22.0, 26.0, 21.0, 27.0, 25.0, 20.0, 26.0, 25.0, 29.0, 27.0, 33.0, 26.0, 26.0, 24.0, 26.0, 25.0, 32.0, 26.0]
[88, 149, 81, 83, 92, 150, 348, 79, 93, 86, 353, 84, 80, 78, 83, 100, 110, 95, 111]
p02639
u951985579
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
["X, Y = map(int, input().split())\nif Y % 2 == 0 and Y <= 4*X and Y >= 2*X:\n print('Yes')\nelse:\n print('No')", 'x = list(map(int, input().split()))\nfor i in range(len(x)):\n if x[i] == 0:\n print(i + 1)']
['Runtime Error', 'Accepted']
['s067135668', 's608686387']
[9000.0, 9108.0]
[20.0, 25.0]
[112, 98]
p02639
u956547804
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\ntry:\n p=list(map(int,input().split()))\n p.sort()\n min=abs(p[0])\n for i in range(p[0],p[n-1]):\n if i not in p:\n if min>abs(i-x):\n min=abs(i-x)\n ans=i\nexcept:\n ans=x\nprint(ans)', 'x,n=map(int,input().split())\ntry:\n p=list(map(int,input().split()))\n mina=100\n for i in range(min(p),max(p)):\n if i not in p:\n if mina>abs(i-x):\n mina=abs(i-x)\n ans=i\n if ans>x and (x-mina) not in p:\n ans=x-mina\nexcept:\n ans=x\n\nprint(ans)', 'x=list(map(int,input().split()))\ncount=0\nfor i in x:\n count+=1\n if i==0:\n print(count)\n break']
['Runtime Error', 'Runtime Error', 'Accepted']
['s252063180', 's808683543', 's604124401']
[9068.0, 9136.0, 8980.0]
[21.0, 20.0, 18.0]
[266, 332, 113]
p02639
u957486750
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['rt=list(map(in(t,input().split()))\nfor i in range(0,4):\n if(rt[i]==0):\n \tprint(i+1)\n \tbreak\n ', 'rt=list(map(int,input().split()))\nfor i in range(5):\n if(rt[i]==0):\n \tprint(i+1)\n \tbreak']
['Runtime Error', 'Accepted']
['s156665808', 's923610419']
[8952.0, 8956.0]
[27.0, 26.0]
[121, 109]
p02639
u961247631
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 ())\nx = [a,b,c,d,e]\nfor i in x:\n if i * 1 == 0:\n print(i)', 'a,b,c,d,e = map(int,input(). split ())\nx = [a,b,c,d,e]\nfor i in x:\n if i * 1 == 0:\n print(x.index(i))', 'a,b,c,d,e = map(int,input(). split ())\nfor i in 5:\n if i * 1 == 0:\n print(i)', 'a,b,c,d,e = map(int,input(). split ())\nx = [a,b,c,d,e]\nfor i in x:\n if i * 1 == 0:\n print(x.index(i) + 1)']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s146994238', 's586975419', 's675247128', 's918151222']
[9160.0, 9052.0, 9160.0, 9112.0]
[22.0, 19.0, 27.0, 21.0]
[102, 111, 86, 115]
p02639
u962609087
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['\ndef main():\n a = map(int,input().split())\n ans = 0\n for i in range(5):\n ans += a[i]\n print(15 - ans)\nmain()', 'a = list(map(int,input().split()))\n\ncnt = 1\nfor i in range(a):\n if i == 0:\n print(cnt)\n cnt += 1\n', 'a = list(map(int,input().split()))\n\ncnt = 1\nfor i in range(a):\n if i == 0:\n print(cnt)\n cnt += 1', 'a = map.int(input().split())\nprint(15 - sum(a))', '\ndef main():\n a = list(map(int,input().split()))\n ans = 0\n for i in range(5):\n ans += a[i]\n print(15 - ans)\nmain()']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s624766332', 's658386395', 's876112265', 's922669650', 's151095440']
[9092.0, 9072.0, 9056.0, 8956.0, 8996.0]
[23.0, 29.0, 25.0, 26.0, 31.0]
[117, 104, 103, 47, 123]
p02639
u967484343
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\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)\nelif x5 == 0:\n', 'x1,x2,x3,x4,x5 = map(int, 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)\nelif x5 == 0:\n print(5)']
['Runtime Error', 'Accepted']
['s740610938', 's231208486']
[8896.0, 8932.0]
[24.0, 24.0]
[164, 176]
p02639
u970497613
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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().stlip()))\nfor i in range(5):\n if x[i] == 0:\n print(i+1)\n', 'x = list(map(int,input().split()))\nfor i in range(5):\n if x[i] == 0:\n print(i+1)\n']
['Runtime Error', 'Accepted']
['s565283636', 's404239445']
[9088.0, 9152.0]
[26.0, 26.0]
[85, 85]
p02639
u972605362
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\nans = 'No'\nfor a in range(X + 1):\n b = X - a\n if 2 * a + 4 * b == Y:\n ans = 'Yes'\n print(ans)\n", '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)']
['Runtime Error', 'Accepted']
['s204898801', 's795502373']
[9104.0, 9180.0]
[19.0, 22.0]
[147, 168]
p02639
u973352616
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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=[]\nstr = input()\nlst = str.split(' ')\ni = lst.index(0)\nprint(i+1)", "lst=[]\nstr = input()\nlst = str.split(' ')\nfor i in lst:\n if i==0:\n print(i+1)", "lst=[]\nstr = input()\nlst = str.split(' ')\ni = lst.index('0')\nprint(i+1)\n"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s033152976', 's415217877', 's342045274']
[9032.0, 8968.0, 8960.0]
[18.0, 19.0, 21.0]
[69, 81, 72]
p02639
u975771310
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['import numpy as np\n\ndef main():\n\n var = list(map(int, input().split()))\n\n return var.index(0)+1', 'def main():\n\n var = list(map(int, input().split()))\n if 1 not in var:\n ans = 1\n elif 2 not in var:\n ans = 2\n elif 3 not in var:\n ans = 3\n elif 4 not in var:\n ans = 4\n else:\n ans = 5\n\n return ans', 'def main():\n\n var = list(map(int, input().split()))\n\n if 1 not in var:\n ans = 1\n elif 2 not in var:\n ans = 2\n elif 3 not in var:\n ans = 3\n elif 4 not in var:\n ans = 4\n else:\n ans = 5\n\n return ans\n\nif __name__=="__main__":\n ans = main()\n print(ans)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s943338897', 's992390316', 's262131320']
[26900.0, 8940.0, 9184.0]
[99.0, 23.0, 22.0]
[109, 318, 385]
p02639
u975997984
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(10 - sum(x))\n', "X, Y = map(int, input().split())\n\nfor i in range(1, X+1):\n for j in range(1, X-i):\n if 2*i + 4*j == Y:\n print('Yes')\n exit(0)\nprint('No')\n", 'x = list(map(int, input().split()))\nprint(15 - sum(x))\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s211794440', 's641882109', 's478311978']
[9024.0, 9004.0, 8980.0]
[28.0, 19.0, 23.0]
[55, 170, 55]
p02639
u976337934
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\nline = sys.stdin.readlines()[0].rstrip("\\n")\nprint(line.split(" ").index("0", 1))\n', 'import sys\nline = sys.stdin.readlines()[0].rstrip("\\n")\nnums = line.split(" ")\nprint(nums.index("0") + 1)\n']
['Runtime Error', 'Accepted']
['s359632708', 's755566283']
[8896.0, 9084.0]
[22.0, 30.0]
[93, 106]
p02639
u978167553
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\nans = x.index("0")\nprint(ans)', 'x = input().split()\n\nans = x.index("0") + 1\nprint(ans)']
['Wrong Answer', 'Accepted']
['s432357873', 's645223713']
[8716.0, 9080.0]
[25.0, 28.0]
[50, 54]
p02639
u978494963
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 for i,n in enumerate(list(map(int,input().split()))):\n \tif n == 0:\n \treturn i + 1\n\nif __name__ == '__main__':\n main()", "def main():\n for i,n in enumerate(list(map(int,input().split()))):\n if n == 0:\n return i + 1\n\nif __name__ == '__main__':\n main()", "def main():\n for i,n in enumerate(map(int,input().split())):\n \tif n == 0:\n \treturn i\n\nif __name__ == '__main__':\n main()", "def main():\n nums = list(map(int,input().split()))\n for i,n in enumerate(nums):\n if n == 0:\n return i + 1\n\nif __name__ == '__main__':\n print(main())"]
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s514441660', 's766093285', 's853284991', 's388987562']
[8628.0, 9072.0, 9020.0, 9140.0]
[20.0, 25.0, 22.0, 26.0]
[136, 138, 126, 159]
p02639
u981747421
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()))\ncnt = 1\nfor i in a:\n if a == 0:\n print(cnt)\n cnt += 1', 'a = list(map(int, input().split()))\ncnt = 1\nfor i in a:\n if i == 0:\n print(cnt)\n cnt += 1\n']
['Wrong Answer', 'Accepted']
['s260093981', 's311984561']
[9088.0, 9052.0]
[23.0, 28.0]
[96, 95]
p02639
u983367697
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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().split()\nprint(1+l.index("0"))', 'l=list().split()\nprint(1+l.index("0"))\n', 'l=input().split()\nprint(1+l.index("0"))\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s311120520', 's461982939', 's045426169']
[9076.0, 8984.0, 8844.0]
[19.0, 27.0, 27.0]
[38, 39, 40]
p02639
u985418994
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()]\nc=1\nfor i in arr:\n if i==0:\n print(c)\n else:\n c+=1', 'arr = list(map(int,input().split()))\n\nfor i,j in enumerate(len(arr)):\n if j==0:\n print(i)\n\n', 'arr = list(map(int,input().split()))\n\nif arr[0]==0:\n print(1)\nelif arr[1]==0:\n print(2)\nelif arr[2]==0:\n print(3)\nelif arr[3]==0:\n print(4)\nelse:\n print(5)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s272660841', 's990030635', 's186955769']
[8784.0, 9076.0, 8852.0]
[22.0, 20.0, 26.0]
[84, 101, 160]
p02639
u986661497
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['\na,b,c,d,e=input().split()\n\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(3)\n', '\na,b,c,d,e=input().split()\n\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)\n\n', '\na,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)\n\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s212948576', 's321509432', 's277673439']
[8944.0, 9104.0, 9168.0]
[23.0, 22.0, 22.0]
[141, 142, 151]
p02639
u987654380
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(input())\nn = [int(i) for i in input().split()]\nu = n.copy()\nn.sort()\nu.sort(reverse=True)\n\ncounter = 0\n\nfor j in range(l):\n for i in range(l):\n if n[i] == u[j]:\n pass\n elif u[j] % n[i] == 0:\n counter += 1\n break\n else:\n pass\n\nprint(l - counter)', 'l = input().split()\n\nfor i in range(5):\n if l[i] == "0":\n print(i+1)\n break']
['Runtime Error', 'Accepted']
['s480985951', 's948707296']
[9200.0, 8904.0]
[20.0, 22.0]
[282, 82]
p02639
u993594708
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['z = 1\nx = []\nwhile z != 5:\n x.append[input()]\n z+=\ny = 0\nwhile y!= 5:\n if x[y] == 0:\n print(y+1)\n else:\n y+=1\n continue', 'x = [0,2,3,4,5]\ny = 0\nfor i in x:\n\tif x[y] == "0":\n\t\tprint(y+1)\n\telse:\n\t\tprint("1")\n\ty +=1\n', 'x = []\nz = 1\nwhile z != 6:\n\tprint("Enter number"+z,":")\n\tx.append(input())\n\tz+=1\ny = 0\nfor i in x:\n\tif x[y] == "0":\n\t\tprint(y+1)\n\telse:\n\t\tprint("1")\n\ty +=1\n', 'num = list(map(int, input().split()))\nprint(num.index(0)+1)']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s209793386', 's985168560', 's995074943', 's203832529']
[8940.0, 9032.0, 9032.0, 8924.0]
[22.0, 23.0, 22.0, 26.0]
[132, 91, 156, 59]
p02639
u994865749
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['a = input().split()\nfor i in range(4):\n if a[i] = 0:\n print(i)', 'a = input().split()\nfor i in range(4):\n if i = 0:\n print(i)', 'a = list(map(int, input().split()))\nn = 0\nfor i in range(5):\n if a[n] == 0:\n print(n+1)\n break\n else:\n n += 1']
['Runtime Error', 'Runtime Error', 'Accepted']
['s517460545', 's535028181', 's246984383']
[8960.0, 8948.0, 9104.0]
[24.0, 23.0, 23.0]
[66, 63, 120]
p02639
u994935583
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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+1)\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', 'Accepted']
['s468071020', 's764354781']
[8876.0, 9032.0]
[25.0, 20.0]
[93, 94]
p02639
u995827503
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['ins = input().split()\nif ins[0] == 0:\n\tprint(1)\nelif ins[1] == 0:\n\tprint(2)\nelif ins[2] == 0:\n\tprint(3)\nelif ins[3] == 0:\n\tprint(4)\nelif ins[4] == 0:\n\tprint(5) ', 'ins = list(map(int, input().split()))\nif ins[0] == 0:\n\tprint(1)\nelif ins[1] == 0:\n\tprint(2)\nelif ins[2] == 0:\n\tprint(3)\nelif ins[3] == 0:\n\tprint(4)\nelif ins[4] == 0:\n\tprint(5)\nelse :\n print("something wrong.")']
['Wrong Answer', 'Accepted']
['s082159927', 's850475878']
[8932.0, 9088.0]
[19.0, 24.0]
[161, 210]
p02639
u996506712
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 if x[i]==0:\n print(i)', 'x=list(map(int,input().split()))\nfor i in range(len(x)):\n if x[i]==0:\n print(i+1)']
['Wrong Answer', 'Accepted']
['s183244322', 's264023523']
[9088.0, 8956.0]
[25.0, 32.0]
[89, 91]
p02639
u996665352
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['xs = list(map(int,input().split()))\nprint(xs.index(0)+1)1 ', 'xs = list(map(int,input().split()))\nprint(xs.index(0)+1)']
['Runtime Error', 'Accepted']
['s999200828', 's426210760']
[8956.0, 9160.0]
[19.0, 21.0]
[58, 56]
p02639
u999503965
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\nl=list(map(int,input().split()))\n\ncount=0\nfor i in l:\n for j in l:\n if i%j==0:\n if i!=j:\n count+=1\n break\n \nprint(n-count)', 'lis=list(map(int,input(),split()))\n\nprint(lis.index(0)+1)', 'lis=list(map(int,input().split()))\n\nprint(lis.index(0)+1)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s674278504', 's722265439', 's616270100']
[9180.0, 9024.0, 9148.0]
[27.0, 23.0, 23.0]
[165, 57, 58]
p02639
u999983491
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(15 - sum(x))', 'x = list(map(int, input().split()))\nprint(x.index(0))\n', 'x = list(map(int, input().split()))\nprint(17-sum(x))', 'x = list(map(int, input.split()))\nprint(x.index(0))', 'x = list(map(int, input().split()))\nprint(x.index(0)+1)\n']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s193459338', 's897546927', 's902498115', 's981197358', 's223348151']
[8908.0, 9032.0, 9048.0, 8844.0, 9024.0]
[23.0, 21.0, 26.0, 21.0, 24.0]
[52, 54, 52, 51, 56]
p02640
u000037600
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
['x,y=map(int,input().split())\nif 2x<=y<=4x and y%2==0:\n print("Yes")\nelse:\n print("No")', 'x,y=map(int,input().split())\nif 2*x<=y<=4*x and y%2==0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s919092368', 's141334166']
[9000.0, 9148.0]
[28.0, 27.0]
[88, 90]
p02640
u000298463
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
['X, Y = [int(), input().split()]\n\nif X % 2 == 0 and 2 * X < Y < 4 * X:\n print("Yes")\nelse:\n print("No")\n', 'X, Y = map(int, input().split())\n\nif Y % 2 == 0 and 2 * X <= Y <= 4 * X:\n print("Yes")\nelse:\n print("No")\n\n']
['Runtime Error', 'Accepted']
['s666717578', 's239983033']
[9068.0, 9052.0]
[23.0, 28.0]
[109, 113]
p02640
u000579017
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
['x,y = map(int,input().split(" "))\nflag=0\nfor i in range(x+1):\n j=x-i\n if 4*i+2*j==y:\n flag=1\n\nif flag==0:\n print("no")\nelse:\n print("yes")', 'x,y = map(int,input().split(" "))\nflag=0\nfor i in range(x+1):\n j=x-i\n if 4*i+2*j==y:\n flag=1\n\nif flag==0:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s377303273', 's287826179']
[9172.0, 9116.0]
[22.0, 24.0]
[157, 157]
p02640
u000842852
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
["X, Y = input().split()\nX = int(X)\nY = int(Y)\n\nif X*2>Y or Y>X*4:\n print('No')\nelif not Y%2==0:\n print('No')\nelif 50 < X:\n print('No')\nelif Y%6==0:\n if Y == X*6:\n print('Yes')\n else:\n print('No')\nelif Y%3==0:\n if Y == X*3:\n print('Yes')\n else:\n print('No')\nelif Y%2==0:\n if Y == X*2:\n print('Yes')\n else:\n print('No')", "X, Y = input().split()\nX = int(X)\nY = int(Y)\n\nif X*2>Y or Y>X*4:\n print('No')\nelif not Y%2==0:\n print('No')\nelif 50 < X:\n print('No')\na = X\nb = 0\nfor i in range(X+1):\n if Y == a*2 + b*4:\n print('Yes')\n break\n else:\n a -= 1\n b += 1"]
['Wrong Answer', 'Accepted']
['s012530180', 's754954431']
[9208.0, 9196.0]
[23.0, 21.0]
[343, 247]
p02640
u004823354
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
['x,y = map(int,input().split())\nif 2*x <= y <= 4x and y %2 =0:\n print("Yes")\nelse:\n print("No")', 'x,y = map(int,input().split())\nif 2*x <= y <= 4x and y %2 =0:\n print("Yes")\nelse:\n print("No")', 'x,y = map(int,input().split())\nif 2*x <= y <= 4*x and y %2 == 0:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s026233606', 's290614560', 's415814841']
[8952.0, 8948.0, 9096.0]
[22.0, 26.0, 27.0]
[96, 96, 99]
p02640
u005569385
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
['x,y = map(int,input().split())\nif y % 2 != 0:\n print("NO")\nelif y % 2 == 0:\n s = "A"\n for i in range(0,101):\n for j in range(0,101):\n if 2*i + 4*j == y and i + j == x:\n print("YES")\n exit()\n else:\n s = "NO"\n print(s)', 'x,y = map(int,input().split())\nif y % 2 != 0:\n print("No")\nelif y % 2 == 0:\n s = "A"\n for i in range(0,101):\n for j in range(0,101):\n if 2*i + 4*j == y and i + j == x:\n print("Yes")\n exit()\n else:\n s = "No"\n print(s)']
['Wrong Answer', 'Accepted']
['s335487527', 's135009815']
[9132.0, 9156.0]
[23.0, 22.0]
[303, 303]
p02640
u011202375
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
['L, R = map(int,input().split())\nfor a in range(L):\n L1=L-a\n if R==L*2+L1*4:\n han="Yes"\n else:\n han="No"\nprint(han)', 'L, R = map(int,input().split())\nfor a in range(L+1):\n L1=L-a\n if R==a*2+L1*4:\n han="Yes"\n break\n else:\n han="No"\nprint(han)']
['Wrong Answer', 'Accepted']
['s642061981', 's043696911']
[9100.0, 8764.0]
[29.0, 28.0]
[137, 153]
p02640
u015416155
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
["line = input()\nline = line.rstrip().split(' ')\n\ntotal = int(line[0])\ntotal_leg = int(line[1])\n\nkame = (total_leg - total * 2) / 2\ntsuru = total - kame\n\nprint(tsuru, kame)\n\nif total_leg % 2 == 1:\n print('No')\nelif (0 <= kame and kame <= total) and (0 <= tsuru and tsuru <= total):\n print('Yes')\nelse:\n print('No')\n", "line = input()\nline = line.rstrip().split(' ')\n\ntotal = int(line[0])\ntotal_leg = int(line[1])\n\nkame = (total_leg - total * 2) / 2\ntsuru = total - kame\n\nif total_leg % 2 == 1:\n print('No')\nelif (0 <= kame and kame <= total) and (0 <= tsuru and tsuru <= total):\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s066555202', 's570569903']
[9180.0, 9188.0]
[24.0, 20.0]
[322, 302]
p02640
u017415492
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
['x,y=map(int,input().split())\nif 2*x<=y and y<=4*x and y%2==0 and x%2==0:\n print("Yes")\nelse:\n print("No")', 'x,y=map(int,input().split())\nif 2*x<=y and y<=4*x and y%2==0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s356876610', 's759384552']
[8940.0, 9092.0]
[30.0, 27.0]
[107, 96]
p02640
u017829818
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
["x, y = map(int, input().split())\nans = 'No'\nfor a in range(x+1):\n b = x-a\n if 2*a+4*b == Y:\n ans = 'Yes'\n\nprint(ans)", "x, y = map(int, input().split())\nans = 'No'\nfor a in range(x+1):\n b = x-a\n if 2*a+4*b == y:\n ans = 'Yes'\n\nprint(ans)"]
['Runtime Error', 'Accepted']
['s674647774', 's687267596']
[9024.0, 9164.0]
[25.0, 29.0]
[129, 129]
p02640
u018679195
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
['x,y=map(int,input().split()) #input for x=animals, y=legs\n\nc=2 #crane has 2 legs\nt=4 #turtle has 4 legs\n\nfor i in range (x+1): #loop the number of animals\n\n a=x-i #the subtraction to get the number of turtle available for every loop starting from i=0\n\n if (i*c) +(x*a)==y: #the formula to get the amount of legs for both animals in a loop\n print ("yes") #if equals to y then there is a combination of both animals\n else:\n print("no")', 'x,y= map(int,input().split())\ncrane= 2\nturtle= 4\nans="No"\nfor i in range(x+1):\n b=x-i\n if cranei + turtleb == y:\n ans = "Yes"\nprint(ans)', 'x,y=map(int,input().split()) #input for x=animals, y=legs\n\nc=2 #crane has 2 legs\nt=4 #turtle has 4 legs\n\nfor i in range (x): #loop the number of animals\n\n a=x-i #the subtraction to get the number of turtle available for every loop starting from i=0\n\n if (i*c) +(x*t)==y: #the formula to get the amount of legs for both animals in a loop\n print ("yes") #if equals to y then there is a combination of both animals\n else:\n print("no")', 'x,y=map(int,input().split()) #input for x=animals, y=legs\n\nc=2 #crane has 2 legs\nt=4 #turtle has 4 legs\n\nfor i in range (x+1): #loop the number of animals\n\n a=x-i #the subtraction to get the number of turtle available for every loop starting from i=0\n\n if i*c +a*t==y: #the formula to get the amount of legs for both animals in a loop\n print ("yes") #if equals to y then there is a combination of both animals\n else:\n print("no")', 'x,y=map(int,input().split()) #input for x=animals, y=legs\n\nc=2 #crane has 2 legs\nt=4 #turtle has 4 legs\n\nfor i in range (x): #loop the number of animals\n\n a=x-i #the subtraction to get the number of turtle available for every loop starting from i=0\n\n if (i*c) +(x*a)==y: #the formula to get the amount of legs for both animals in a loop\n print ("yes") #if equals to y then there is a combination of both animals\n else:\n print("no")', 'x,y=map(int,input().split()) #input for x=animals, y=legs\n\nc=2 #crane has 2 legs\nt=4 #turtle has 4 legs\n\nfor i in range (x+1): #loop the number of animals\n\n a=x-i #the subtraction to get the number of turtle available for every loop starting from i=0\n\n if (i*c) +(a*t)==y: #the formula to get the amount of legs for both animals in a loop\n print ("yes") #if equals to y then there is a combination of both animals\n else:\n print("no")', 'x,y=input().split(" ") #get input for X and Y\n\nif x*2==y: \n print ("YES")\nelif x*4==y:\n print ("YES")\nelse:\n print ("NO")', "# we input the number of animals(A)\n# we then input the number of legs(B)\n# we set the number of crane = 2 and turtle = 4\n# we then compute (crane * i + turtle * j) to see if it's = B\nA, B = map(int, input().split())\n\ncrane = 2\nturtle = 4\nans = 'No'\n\nfor i in range(A + 1):\n j = A - i\n if crane * i + turtle * j == B:\n ans = 'Yes'\nprint(ans)"]
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s332096209', 's524435623', 's580832979', 's614715338', 's789364249', 's800907090', 's814576203', 's029374968']
[9080.0, 9012.0, 9116.0, 9100.0, 9168.0, 9056.0, 9032.0, 9116.0]
[30.0, 25.0, 29.0, 27.0, 28.0, 26.0, 26.0, 27.0]
[456, 149, 454, 452, 454, 456, 130, 354]
p02640
u019053283
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
["import sys\nx,y = map(int,input().split())if y % x != 0:\n print('No')\n sys.exit()\nif 2**x >= y:\n print('Yes')\nelse:\n print('No')", "import sys\nx,y = map(int,input().split())\nif y % x != 0:\n print('No')\n sys.exit()\nif 2**x >= y:\n print('Yes')\nelse:\n print('No')", "import sys\n\nx,y = map(int,input().split())\nif y % 2 != 0:\n print('No')\n sys.exit()\n\nif 4 * x < y:\n print('No')\n sys.exit()\n\nif 4 * x >= y:\n if 2 * x <= y:\n print('Yes')\n else:\n print('No')"]
['Runtime Error', 'Wrong Answer', 'Accepted']
['s779787589', 's897983603', 's654557165']
[8980.0, 9164.0, 9180.0]
[24.0, 23.0, 22.0]
[139, 140, 220]
p02640
u021849254
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
['a=34\n\nif a==int\nprint(6)', 'from fractions import Fraction\n\na=input()\na=a.split()\n\nX=int(a[0])\nY=int(a[1])\n\nx=Fraction(4*X-Y,2)\ny=Fraction(Y-2*X,2)\n\nif x-round(x)==0 and x >= 0:\n if y-round(y)==0 and y >= 0:\n print("Yes")\n else :\n print("No")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s074094865', 's182137606']
[8952.0, 10392.0]
[24.0, 36.0]
[24, 242]
p02640
u021877437
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
["X, Y = [int(v) for v in input().rstrip().split()]\n\nr = 'No'\nif Y % 2 == 0:\n\tcranenum = 2 * X\n\tif cranenum >= Y:\n\t\tr = 'Yes'\n\nprint(r)\n", "X, Y = [int(v) for v in input().rstrip().split()]\n\nr = 'No'\nif Y % 2 == 0:\n\tfor n in range(X + 1):\n\t\tcn = n\n\t\ttn = X - cn\n\t\tif cn * 2 + tn * 4 == Y:\n\t\t\tr = 'Yes'\n\t\t\tbreak\n\nprint(r)\n"]
['Wrong Answer', 'Accepted']
['s276000476', 's235539426']
[9060.0, 8952.0]
[25.0, 29.0]
[134, 181]
p02640
u022658079
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
['X,Y=map(int, input().split())\nif(Y%2==1):\n print("NO")\n exit()\nif(2*X-Y//2<0):\n print("NO")\nif(Y//2-X<0):\n print("NO")', 'X,Y=map(int, input().split())\nif(Y%2==1):\n print("No")\n exit()\nif(2*X-Y//2<0):\n print("No")\n exit()\nif(Y//2-X<0):\n print("No")\n exit()\nprint("Yes") ']
['Wrong Answer', 'Accepted']
['s722008344', 's391376490']
[9176.0, 9180.0]
[22.0, 19.0]
[122, 155]
p02640
u027903950
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
['X = input()\nY = input()\nT = false\nfor i in range(1,X+1):\n p = X-i\n J= 2*i + 4*p\n if J =Y:\n T = true\nif T == true:\n print("Yes")\n else print("No")', 'X,Y = map(int,input().split())\nT = False\nfor i in range(0,X+1):\n p = X-i\n J= 2*i + 4*p\n if J ==Y:\n T = True\nif T == True:\n print("Yes")\nelse: print("No")\n']
['Runtime Error', 'Accepted']
['s941253095', 's355473036']
[9028.0, 9168.0]
[24.0, 23.0]
[153, 161]
p02640
u029251499
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
["x, y = map(int,input(),split())\n\nif y % 2 == 0 and y >= x*2 and y <= x*4:\n print('Yes')\nelse:\n print('No')\n", "x, y = map(int,input().split())\n\nif y % 2 == 0 and y >= x*2 and y <= x*4:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s465407053', 's730519660']
[9068.0, 9012.0]
[26.0, 28.0]
[113, 113]
p02640
u033287260
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
["X, Y = map(int, input().split())\n\nif Y%2 == 1:\n print('No')\n exit()\nelse:\n if 0 > (Y-2*X)/2 or (Y-2*X)/2 < X:\n print('No')\n else:\n print('Yes')\n", "X, Y = map(int, input().split())\n\nif Y%2 == 1:\n print('No')\n exit()\nelse:\n if 2X <= Y <= 4*X:\n print('Yes')\n else:\n print('No')\n", "X, Y = map(int, input().split())\n\nif Y%2 == 1:\n print('No')\n exit()\nelse:\n if 2*X <= Y <= 4*X:\n print('Yes')\n else:\n print('No')\n"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s000133402', 's704006318', 's811318108']
[9168.0, 9020.0, 9124.0]
[22.0, 25.0, 22.0]
[171, 154, 155]
p02640
u033642300
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
["def main():\n sum, leg = map(int, input().split())\n \n if leg // sum == 2 and leg % sum == 0:\n print('Yes')\n return\n elif leg / sum == 4 and leg % sum == 0:\n print('Yes')\n return\n\n for i in range(sum):\n if i == 0:\n i = i + 1\n for x in range(sum - i):\n crane = i * 2\n turtle = x * 4\n total = crane + turtle\n if total == leg:\n print('Yes')\n return\n print('No')\n \nmain()", "def main():\n sum, leg = map(int, input().split())\n \n if leg / sum == 2:\n print('Yes')\n return\n elif leg / sum == 4:\n print('Yes')\n return\n\n for i in range(sum + 1):\n\n x = sum - i\n\n crane = i * 2\n turtle = x * 4\n total = crane + turtle\n if total == leg:\n print('Yes')\n return\n print('No')\n \nmain()"]
['Wrong Answer', 'Accepted']
['s674397136', 's881759304']
[9144.0, 9128.0]
[23.0, 20.0]
[513, 402]
p02640
u039065404
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
['X, Y = map(int, input().split())\nfor i in range(X+1):\n if (Y - 4*(i))/2 == X - i:\n print("Yes")\nelse:\n print("No")', 'X, Y = map(int, input().split())\nfor i in range(X):\n if (Y - 4*(i+1))/2 == X - (i + 1):\n print("Yes")\nelse:\n print("No")', 'import sys\nX, Y = map(int, input().split())\nfor i in range(X+1):\n if (Y - 4*(i))/2 == X - i:\n print("Yes")\n sys.exit()\n \nprint("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s351790994', 's611382018', 's677477742']
[9084.0, 9168.0, 9168.0]
[29.0, 31.0, 26.0]
[119, 125, 142]
p02640
u040752342
2,000
1,048,576
There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs. Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.
['x, y = map(lambda x: int(x), input().split(\' \'))\n\nif(x * 2 <= y and x * 4 >= y and y % 2 == 0):\n print("YES")\nelse:\n print("NO")', 'x, y = map(lambda x: int(x), input().split(\' \'))\n\nif(y % 2 == 1):\n print("No")\n exit(0)\n\nif(y < 2*x):\n print("No")\n exit(0)\n\nif(y > x * 4):\n print("No")\n exit(0)\n\nprint("Yes")']
['Wrong Answer', 'Accepted']
['s642230410', 's296729987']
[9104.0, 9056.0]
[22.0, 27.0]
[134, 193]