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
u247753603
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(str,input().split()))\nprint(N)\n\nT = N.index("0")\nprint(T+1)', 'a = list(map(int,input().split()))\n\nT = a.index(0)\nprint(T+1)\n#']
['Wrong Answer', 'Accepted']
['s572044200', 's379455742']
[9004.0, 9044.0]
[28.0, 22.0]
[72, 63]
p02639
u248670337
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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))', 'print(list(map(int,input().split())).index(0)+1)']
['Wrong Answer', 'Accepted']
['s826618864', 's183553439']
[9136.0, 9120.0]
[22.0, 26.0]
[46, 48]
p02639
u250061066
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['A, B = map(int, input().split())\nL=list(map(int,input().split()))\nL = [abs(i - A) for i in L]\nL +=[0]\nL=sorted(L)\nx=0\ni,j=0,1\nwhile True:\n if L[i] == x and L[j] == x :\n i,j = i+2,j+2\n x += 1\n else:\n break\nprint(A+x)', 'L=list(map(int,input().split()))\nfor i in range(5):\n if L[i] == 0 and i == 0:\n print(L[i+1] - 1)\n elif L[i] == 0 and i != 0:\n print(L[i-1] +1)']
['Runtime Error', 'Accepted']
['s548661840', 's132238948']
[9024.0, 9184.0]
[20.0, 20.0]
[242, 162]
p02639
u256224800
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['arr = [int(x) for x in input().split()]\nfor i,x in enumerate(arr):\n if x == 0:\n print(i)', 'arr = [int(x) for x in input().split()]\nfor i, x in enumerate(arr):\n if x == 0:\n print(i+1)\n']
['Wrong Answer', 'Accepted']
['s561452579', 's449339753']
[9160.0, 9156.0]
[21.0, 20.0]
[98, 102]
p02639
u263352518
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(lambda x:int(x), input().split()))\nX = x[0]\nN = x[1]\np = []\nif N != 0:\n p = list(map(lambda x:int(x), input().split()))\n\nnear = [False]*102\n#print(near)\n#print(near[200])\n\nfor i in p:\n near[i] = True\n \nfor i in range(0,100):\n if not near[X-i]:\n print(X-i)\n break\n elif not near[X+i]:\n print(X+i)\n break\n ', 'x = list(map(lambda x:int(x), input().split()))\n#x = list()\n\nfor i in range(len(x)):\n if x[i] == 0:\n print(i+1)\n break']
['Runtime Error', 'Accepted']
['s144445667', 's767081319']
[9200.0, 9164.0]
[24.0, 22.0]
[335, 125]
p02639
u266014018
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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,el in enumerate(x):\n\tif el == 0:\n \tprint(i+1)', "def main():\n import sys\n def input(): return sys.stdin.readline().rstrip()\n x = list(map(int, input().split()))\n for i,el in enumerate(x):\n if el == 0:\n print(i+1)\n\n\nif __name__ == '__main__':\n main()"]
['Runtime Error', 'Accepted']
['s412129520', 's697948014']
[8808.0, 9172.0]
[19.0, 27.0]
[89, 233]
p02639
u266262808
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = str(input())\nif x[n] == 0:\n print(n)', 'x = int(input())\nif x[n] ==0:\n print(n)', 'x = str(input())\nif x[n] ==0:\n print(n)', 'print(15 - sum(list(map(int , input().split()))))']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s067516967', 's672765276', 's681556135', 's433621436']
[9000.0, 9040.0, 8908.0, 8916.0]
[25.0, 19.0, 29.0, 28.0]
[41, 40, 40, 49]
p02639
u266724026
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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# Your code here!\nx,n=map(int,input().split())\nif n!=0:\n a=list(map(int,input().split()))\nelse:\n a=[0]*3\nnumber=[0]*101\n\nfor num in range(len(a)):\n number[a[num]]=a[num]\n \ncounter=0\nplus=0\nans=0\n\nwhile counter==0:\n if number[x-plus]==0:\n counter+=1\n ans=x-plus\n elif number[x+plus]==0:\n counter+=1\n ans=x+plus\n else:\n plus+=1\n if plus>x or plus>(100-x):\n counter+=1\n ans=0\n\nprint(ans)', 'x,y=map(int,input().split())\n\nif y%2==0 and y/x<=4 and y/x>=2:\n print("Yes")\nelse:\n print("No")', 'a=list(map(int,input().split()))\n\nfor num in range(len(a)):\n if a[num]==0:\n print(num+1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s257090479', 's681784200', 's245868145']
[9072.0, 9164.0, 9100.0]
[18.0, 21.0, 24.0]
[485, 101, 98]
p02639
u266795424
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()))\nif not a[1] ==0:\n b = list(map(int,input().split()))\n b2 = sorted(b)\n if abs(a[0]-b2[0]) <= abs(a[0]-b2[a[1]-1]):\n c = b2[0]-a[0]-1\n else:\n c = b2[a[1]-1]-a[0]+1\n if a[0] < b2[0]:\n print(a[0])\n elif a[0] > b2[a[1]-1]:\n print(a[0])\n else:\n for i in range(a[1]-1):\n if abs(b2[i+1]-b[i])>1:\n for j in range(b2[i+1]-b2[i]-1):\n if abs(c) > abs(b2[i]-a[0]+j+1):\n c = b2[i]-a[0]+j+1\n print(c+a[0])\nelse:\n print(a[0])', 'a = list(map(int,input().split()))\nfor i in range(5):\n if a[i] == 0:\n print(i+1)']
['Runtime Error', 'Accepted']
['s767363657', 's169237325']
[9196.0, 9100.0]
[23.0, 20.0]
[608, 84]
p02639
u268318377
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['X = list(int, input().split())\n\nfor i, x in enumerate(X):\n if x == 0:\n print(i + 1)\n break', 'X = list(map(int, input().split()))\n\nfor i, x in enumerate(X):\n if x == 0:\n print(i + 1)\n break']
['Runtime Error', 'Accepted']
['s255364830', 's334298802']
[9036.0, 9156.0]
[24.0, 23.0]
[107, 112]
p02639
u268822556
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\nprint("Yes" if 2*Y <= X <= 4*Y and Y%2 == 0 else "No")', 'print(15 - sum(list(map(int, input().split()))))']
['Runtime Error', 'Accepted']
['s953847252', 's144734090']
[9044.0, 8876.0]
[25.0, 29.0]
[87, 48]
p02639
u272457181
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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)\n break', 'x = list(input())\nfor i in range(len(x)):\n if x[i] = 0:\n print(x[i])\n break', 'x = list(map(int,input().split()))\nfor i in range(len(x)):\n if x[i] == 0:\n print(i)\n break', 'x = list(map(int,input().split()))\nfor i in range(len(x)):\n if x[i] == 0:\n print(i+!)\n break', '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', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s412052160', 's693741500', 's721274407', 's857322705', 's924628511']
[8812.0, 8828.0, 9156.0, 8924.0, 8924.0]
[23.0, 20.0, 30.0, 19.0, 24.0]
[96, 82, 97, 99, 99]
p02639
u274885984
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 if int(input()) == 0:\n print(i + 1)', 'arr = input().split();\nfor i in range(5):\n\tif(int(arr[i]) == 0): print(i + 1)']
['Runtime Error', 'Accepted']
['s968580720', 's053542164']
[9068.0, 9180.0]
[26.0, 25.0]
[59, 77]
p02639
u275885859
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['a = [int(i) for i in input().split()]\nfor i in range(0,a.len()):\n if a[i]==0:\n print(i+1)', 'a = [int(i) for i in input().split()]\nfor i in range(0,len(a)):\n if a[i]==0:\n print(i+1)']
['Runtime Error', 'Accepted']
['s922775523', 's206962677']
[9100.0, 9168.0]
[22.0, 25.0]
[93, 92]
p02639
u276204978
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = input().split()\n\nans = 0\nfor i, l in enumerate(L):\n if l == 0:\n ans = i+1\n \nprint(ans)', "#!/usr/bin/env python3\n\ndef II(): return int(input())\ndef MII(): return map(int, input().split())\ndef LII(): return list(map(int, input().split()))\n\ndef main():\n L = input().split()\n ans = 0\n for i, l in enumerate(L):\n if l == '0':\n ans = i + 1\n \n print(ans)\n\n\nif __name__ == '__main__':\n main()\n"]
['Wrong Answer', 'Accepted']
['s991748752', 's718003853']
[8964.0, 9112.0]
[21.0, 26.0]
[107, 332]
p02639
u281334626
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['X = list(map(int, input().split()))\n\nfor i in range(5):\n\tif (X[i] == 0):\n\t\tprint(i)', 'X = list(map(int, input().split()))\n\nfor i in range(5):\n\tif (X[i] == 0):\n\t\tprint(i+1)']
['Wrong Answer', 'Accepted']
['s853084909', 's426144613']
[9068.0, 8932.0]
[24.0, 26.0]
[83, 85]
p02639
u282908818
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()))\ndiffer=[]\n\nif N == 0:\n print(X)\nelse:\n for i in range(0,100):\n if i not in P:\n differ.append(abs(X - i))\n else:\n differ.append(1000)\n ans = differ.index(min(differ))\n print(ans)\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']
['s833698854', 's528310172']
[9192.0, 9104.0]
[20.0, 18.0]
[295, 93]
p02639
u283068625
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['a = int(input()).aplit(" ")\ncnt=0\nfor i, ai in enumerate(a):\n if ai==0\n return i+1\n \n', 'a = input().aplit(" ")\ncnt=0\nfor i, ai in enumerate(a):\n if ai==0\n return i+1', 'a = input().split(" ")\ncnt=0\nfor i, ai in enumerate(a):\n if ai==0\n return i+1', 'a = input().split(" ")\ntemp = 0\nfor i, ai in enumerate(a):\n print(ai)\n if int(ai)==0:\n temp=i\n\nprint(temp+1)\n', 'a = input().split(" ")\ntemp = 0\nfor i, ai in enumerate(a):\n if int(ai)==0:\n temp=i\n break\n \nprint(temp+1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s233918686', 's483959758', 's838139801', 's940074986', 's883451120']
[8948.0, 8832.0, 8952.0, 9088.0, 9164.0]
[21.0, 22.0, 25.0, 23.0, 22.0]
[88, 79, 79, 122, 122]
p02639
u284261648
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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, v in enumerate(a):\n if v == 0:\n print(i)\n break', 'a = map(int, input().split())\nfor i, v in enumerate(a):\n if v == 0:\n print(i + 1)\n break']
['Wrong Answer', 'Accepted']
['s985405877', 's642750994']
[9032.0, 9024.0]
[21.0, 20.0]
[91, 95]
p02639
u287219926
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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().index("0")\nprint(x)\n', 'i = input().split().index("0")\nprint(i)', 'i = int(input().split().index("0")) + 1\nprint(i)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s324911426', 's333814628', 's637901897']
[8916.0, 8956.0, 9036.0]
[29.0, 23.0, 27.0]
[40, 39, 48]
p02639
u287660527
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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', "x,y = map(int,input().split())\na = 4 * x - y\nb = y - 2*x\nif a/2 == a//2 and a >= 0 and b/2 == b//2 and b >= 0:\n print('Yes')\nelse:\n print('No')", 'x,n = map(int,input().split())\np = input().split()\np.sort()\nq = p[::-1]\na = x\nb = x\nfor i in q:\n if a == int(i):\n a -= 1\nfor i in p:\n if b == int(i):\n b += 1 \nif x - a <= b - x:\n print(a)\nelse:\n print(b)', 'x = input()\na,b,c,d,e = map(int,x.split())\nprint(15 - a-b-c-d-e)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s200544451', 's549156537', 's942969750', 's228674699']
[8900.0, 9128.0, 9092.0, 9040.0]
[22.0, 24.0, 20.0, 23.0]
[2, 145, 213, 64]
p02639
u289105044
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\n\nfor i in len(a):\n if 0==a[i]:\n print(i)\n break', 'a=list(map(int,input().split()))\n\n\n\nfor i in range(len(a)):\n if 0==a[i]:\n print(i+1)\n ']
['Runtime Error', 'Accepted']
['s536593098', 's416580147']
[8964.0, 9032.0]
[31.0, 26.0]
[70, 93]
p02639
u293436958
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()\n\nl = a.split()\nprint(l)\nfor i in range(5):\n if l[i]=='0':\n print(i+1)", "a = input()\n\nl = a.split()\nfor i in range(5):\n if l[i]=='0':\n print(i+1)"]
['Wrong Answer', 'Accepted']
['s995763882', 's952981781']
[9096.0, 9100.0]
[22.0, 22.0]
[91, 82]
p02639
u293825440
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()))\nmin = 0\ni = 0\ncount = 0\nwhile True:\n if abs(X - i) == min:\n if i not in p:\n break\n elif i in p and min != 0:\n count += 1\n if count == 2:\n min += 1\n count = 0\n i = 0\n else:\n min += 1\n i = 0\n i += 1\n\nprint(i)', 'x = list(map(int,input().split()))\n\nfor i in range(5):\n if x[i] == 0:\n print(i+1)\n exit()']
['Runtime Error', 'Accepted']
['s298178171', 's907253163']
[9128.0, 9108.0]
[22.0, 20.0]
[399, 106]
p02639
u294542073
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\ncount = 0\nfor i in range (5):\n if a[i] == 0:\n print(count) \n else:\n count += 1\n ', 'x = list(map(int, input().split()))\n\nprint(x.index(0) + 1)']
['Wrong Answer', 'Accepted']
['s549215372', 's014696490']
[9036.0, 8964.0]
[23.0, 22.0]
[144, 112]
p02639
u298976461
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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] is 0:\n print(i+1)', 'x = list(map(int, input().split())) \n\nfor i in 5:\n if x[i] is 0:\n print(i+1)', 'x = list(map(int, input().split())) \n\nfor i in range(len(x)):\n if x[i] == 0:\n print(i+1)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s360608701', 's655324338', 's888063712']
[9160.0, 9000.0, 9132.0]
[19.0, 23.0, 26.0]
[133, 126, 93]
p02639
u302707263
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\nn = [int(i) for i in input().split()]\n\nfor z in n:\n if z == 0:\n print(n.index(z))\n sys.exit()', '\nn = [int(i) for i in input().split()]\n\nprint(n.index(0))', 'import sys\nn = [int(i) for i in input().split()]\n\nprint(n.index(0) + 1)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s161786313', 's516785260', 's942682766']
[9160.0, 9092.0, 9088.0]
[19.0, 20.0, 24.0]
[121, 57, 71]
p02639
u303344598
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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, j in enumerate(li):\n if j == 0:\n echo i + 1', 'li = list(map(int,input().split()))\nfor i, j in enumerate(li):\n if j == 0:\n print(i + 1)']
['Runtime Error', 'Accepted']
['s209900812', 's258119055']
[8860.0, 9096.0]
[23.0, 30.0]
[90, 92]
p02639
u303650160
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\ninput = sys.stdin.readline\n\nA=[int(input()) for _ in range(5)]\n\nfor i,a in enumerate(A):\n if a == 0:\n print(i)\n break', 'import sys\n \ninput = sys.stdin.readline\n \ns = input()\n\ns.split(" ")\n\nmap(int,s)\n \nfor i,a in enumerate(s):\n if a == 0:\n print(i)\n break', 'import sys\n \ninput = sys.stdin.readline\n \ns = input().rstrip()\n \ns_1 = s.split(" ")\n \ns_i = list(map(int,s_1))\n\nfor i,a in enumerate(s_i):\n if a == 0:\n print(i+1)\n break']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s213669752', 's838015622', 's151934253']
[9028.0, 8908.0, 8888.0]
[21.0, 23.0, 26.0]
[136, 142, 176]
p02639
u303650945
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = list(map(int, input().split()))\nans = -1\nfor i in nums:\n if nums[i] == 0:\n print(i)', 'nums = list(map(int, input().split()))\nindex = 0\nfor i in nums:\n if nums[index] == 0:\n print(index+1)\n index += 1']
['Runtime Error', 'Accepted']
['s786499447', 's305242420']
[9164.0, 9160.0]
[22.0, 21.0]
[100, 126]
p02639
u313890617
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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)\nfor i in range(len(x)):\n\tif x[i]==0:\n\t\tprint(i+1)\n\t\t', 'x=list(map(int,input().split()))\n#print(x)\nfor i in range(len(x)):\n\tif x[i]==0:\n\t\tprint(i+1)\n\t\t']
['Wrong Answer', 'Accepted']
['s995438225', 's189467462']
[9004.0, 9092.0]
[19.0, 23.0]
[94, 95]
p02639
u317423698
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\na = sys.stdin.read()\nfor i, v in enumerate(map(int, a.split), 1):\n if v == 0:\n print(i)\n break', 'import sys\n \na = sys.stdin.read()\nfor i, v in enumerate(map(int, a.split()), 1):\n if v == 0:\n print(i)\n break']
['Runtime Error', 'Accepted']
['s278486615', 's363400795']
[9024.0, 9104.0]
[21.0, 22.0]
[113, 116]
p02639
u320511454
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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=list(map(int,input().split()))\n\nfor i in range(x+1):\n if i*2+(x-i)*4 == y:\n print("Yes")\n exit()\n \nprint("No")', 'A=list(map(int,input().split()))\nfor i in range(len(A)):\n if A[i] == 0:\n print(i+1)\n break']
['Runtime Error', 'Accepted']
['s808841104', 's748597724']
[9164.0, 9096.0]
[26.0, 21.0]
[124, 97]
p02639
u320763652
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 num in range(0, 5, 1):\n x = int(input())\n if x == 0:\n print(num + 1)\n exit()', 'line = list(map(int, input().split()))\ncnt = 1\nfor num in line:\n if num == 0:\n print(cnt)\n exit()\n\n cnt+=1\n']
['Runtime Error', 'Accepted']
['s760256014', 's015959863']
[9100.0, 9024.0]
[27.0, 22.0]
[100, 127]
p02639
u321065001
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 if x[i]==0:\n print(i)\n', 'x = list(map(int, input().split()))\n\nfor i in range(len(x)):\n if x[i]==0:\n print(i+1)\n']
['Runtime Error', 'Accepted']
['s595706926', 's573277225']
[9036.0, 8960.0]
[24.0, 30.0]
[82, 96]
p02639
u321415743
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(input().split())\nprint(lst)\nfor i in range(5):\n if lst[i] == "0":\n print(i + 1)', 'lst = list(input().split())\nfor i in range(5):\n if lst[i] == "0":\n print(i + 1)']
['Wrong Answer', 'Accepted']
['s425027740', 's030515453']
[9036.0, 9092.0]
[22.0, 21.0]
[100, 89]
p02639
u321644110
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\nvar=0\nfor i in range(2X,4X+1,2):\n if Y==i:\n var=1\nif var==1:\n print("Yes")\nelse:\n print("No")', 'A = list(map(int,input().split()))\nans=0\nfor i in range(5):\n if A[i]!=i+1:\n ans=i+1\nprint(ans)']
['Runtime Error', 'Accepted']
['s734585514', 's684337736']
[8884.0, 9164.0]
[21.0, 21.0]
[128, 98]
p02639
u321881571
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(0,4):\n if a[i]==0:\n print(i+1)', 'a = list(map(int,input().split()))\nfor i in range(0,5):\n if a[i]==0:\n print(i+1)']
['Runtime Error', 'Accepted']
['s331785443', 's073090801']
[8968.0, 9168.0]
[20.0, 23.0]
[84, 90]
p02639
u322171361
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()\nx=0\nfor n in a:\n x+=1\n if n=0:\n aa=x\nprint(aa)', 'a=input().sprit()\nx=0\nfor n in a:\n x+=1\n if n=="0":\n aa=x\nprint(aa)', 'a=input().split()\nx=0\nfor n in a:\n x+=1\n if n=="0":\n aa=x\nprint(aa)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s241147765', 's842561511', 's785926797']
[8912.0, 8936.0, 8908.0]
[23.0, 19.0, 19.0]
[69, 72, 72]
p02639
u322187839
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\np=set(map(int,input().split()))\n\nn=set(n for n in range(-100,101))\n\npd=list(n-p)\n\nmin1=1000\n\nfor i in range(len(pd)):\n if abs(pd[i]-x)<abs(min1-x):\n min1=pd[i]\n elif abs(pd[i]-x)==abs(min1-x):\n min1=min(pd[i],min1)\nprint(min1)', 'x,n=map(int,input().split())\n\np=set(map(int,input().split()))\n\nn=set(n for n in range(-100,101))\n\npd=list(n-p)\n\nmin1=1000\n\nfor i in range(len(pd)):\n if abs(pd[i]-x)<abs(min1-x):\n min1=pd[i]\n elif abs(pd[i]-x)==abs(min1-x):\n min1=min(pd[i],min1)\nprint(min1)', 'x=list(map(int,input().split()))\n\nfor i in range(5):\n if x[i]==0:\n print(i+1)\n break']
['Runtime Error', 'Runtime Error', 'Accepted']
['s577231857', 's689882890', 's955388071']
[9112.0, 9096.0, 9160.0]
[23.0, 22.0, 32.0]
[276, 276, 101]
p02639
u323045245
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()\nM = a[-1]+1\nt=[True]*M\n\n\nfor i in a:\n if t[i] == False:\n continue\n if a.count(i)>1:\n t[i] = False\n for j in range(2*i,M,i):\n t[j] = False\nans = 0\nfor k in a:\n if t[k] == True:\n ans += 1\n\nprint(ans)', 'num = list(map(int, input().split()))\nprint(num.index(0)+1)']
['Runtime Error', 'Accepted']
['s547595724', 's637704307']
[9200.0, 9160.0]
[24.0, 22.0]
[294, 59]
p02639
u326408598
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['li = list(map(int,input().split()))\nfor i in range(len(li)):\n if li[i] == 0:\n print(i)\n break', 'li = list(map(int,input().split()))\nfor i in range(len(li)):\n if li[i] == 0:\n print(i+1)']
['Wrong Answer', 'Accepted']
['s044938092', 's012036480']
[9108.0, 8816.0]
[21.0, 27.0]
[100, 98]
p02639
u328608670
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = map(int, input().split())\nfor i in range(len(xs)):\n if xs[i] == 0:\n print(i+1)\n', 'xs = list(map(int, input().split()))\nfor i in range(len(xs)):\n if xs[i] == 0:\n print(i+1)\n']
['Runtime Error', 'Accepted']
['s684815301', 's270609699']
[8900.0, 9088.0]
[22.0, 27.0]
[94, 100]
p02639
u329962837
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['\nX,Y = map(int,input().split())\na = (4 * X - Y) / 2\nif a.is_integer() and 0 <= a:\n print("Yes")\nelse:\n print("No")\n', 'nums = list(map(int, input().split()))\nprint(nums.index(0)+1)']
['Runtime Error', 'Accepted']
['s046122803', 's291857870']
[9016.0, 9148.0]
[25.0, 30.0]
[261, 61]
p02639
u330799501
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\nx, y = map(int, input().split())\n#l = list(map(int, input().split()))\n#s = input()\nans = "Yes"\nfor i in range(x+1):\n if 2*i+4*x == y:\n ans = "No"\n\nprint(ans)\n', '#n = int(input())\n\nl = list(map(int, input().split()))\n#s = input()\n\nfor i in range(len(l)):\n if l[i] == 0:\n print (i+1)\n']
['Runtime Error', 'Accepted']
['s305605623', 's409463539']
[9140.0, 9112.0]
[26.0, 28.0]
[186, 164]
p02639
u334222621
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['D = list(map(int, input().split()))\n\nfor i in D:\n if D[i]==0:\n print(i)', 'D = list(map(int, input().split()))\n\nfor i in range (len(D)):\n if D[i]==0:\n print(i)', 'D = list(map(int, input().split()))\n\nfor i in range (len(D)):\n if D[i]==0:\n print(i+1)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s064506097', 's156836850', 's752492118']
[8928.0, 9168.0, 9060.0]
[20.0, 31.0, 27.0]
[81, 94, 96]
p02639
u334242570
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['l = list(map(int,input().split()))\nfor i in range(len(l)):\n if l[i]==0:\n break;\n \nprint(i)', 'l = list(map(int,input().split()))\nfor i in range(len(l)):\n if l[i]==0:\n break;\n \nprint(i+1)']
['Wrong Answer', 'Accepted']
['s957441309', 's915565505']
[9148.0, 8964.0]
[31.0, 29.0]
[97, 99]
p02639
u334533374
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\ny =15\nprint(y)\nprint(y-sum(x))', 'x = map(int,input().split())\ny =15\nprint(y-sum(x))']
['Wrong Answer', 'Accepted']
['s455392214', 's069762653']
[9104.0, 9160.0]
[21.0, 21.0]
[59, 50]
p02639
u335599768
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['x = int(input())\ny = list(map(int, input().split()))\n\ny.sort()\nans = [bool(a+1) for a in range(x)]\n\nfor i in range(x-1):\n if ans[i] == True:\n if y[i] == y[i+1]:\n ans[i] = False\n for j in range(i+1 ,x):\n if (ans[j] == True) and (y[j]%y[i]==0):\n ans[j] = False\n\nprint(sum(ans))', 'x = list(map(int, input().split()))\ny = set(map(int, input().split()))\n\nif x[1] == 0:\n min = x[0]\nelse:\n for i in range(1, x[1]):\n if set() == {x[0]-i}&y:\n print(x[0]-i)\n exit()\n elif set() == {x[0]+i}&y:\n print(x[0]+i)\n exit()\n', 'x = list(map(int, input().split()))\n\nfor i, j in enumerate(x, 1):\n if i != j:\n print(i)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s677075146', 's975335636', 's904673918']
[9136.0, 9184.0, 9112.0]
[22.0, 24.0, 23.0]
[329, 292, 97]
p02639
u336721073
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(" ")))\nans = 0\nfor i in range(5):\n\tif x[i] == 0:\n \tans = i + 1\n \nprint(ans)', 'x = list(map(int, input().split(" ")))\nans = 0\nfor i in range(5):\n\tif x[i] == 0:\n\t\tans = i + 1\n \nprint(ans)']
['Runtime Error', 'Accepted']
['s403929757', 's934088944']
[8960.0, 9064.0]
[24.0, 26.0]
[117, 114]
p02639
u336968242
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\nalist=list(map(int, input().split()))\n\nalist.sort()\n#print(alist)\nans=0\nfor i in range(1,N):\n a=alist[i]\n aaa=[a]*i\n x=np.array(aaa)\n y=np.array(alist[0:i])\n amari=x%y\n if list(amari).count(0)==1:\n ans+=1\nprint(ans)\n', 'xlist=list(map(int, input().split()))\ni=xlist.index(0)\nprint(i+1)\n']
['Runtime Error', 'Accepted']
['s646629414', 's149244210']
[26740.0, 9088.0]
[101.0, 20.0]
[275, 66]
p02639
u337949146
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['X = map(int,input().split())\nfor i in range(5):\n if X[i] != i :\n print(i+1)', 'X = list(map(int,input().split()))\nfor i in range(5):\n if X[i] != i+1 :\n print(i+1)']
['Runtime Error', 'Accepted']
['s390127868', 's201489672']
[8904.0, 9012.0]
[21.0, 30.0]
[85, 93]
p02639
u340064601
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['sieve=[0]*1000009\nn=int(input())\ns=sorted(map(int,input().split()))\nfor i in s:\n if sieve[i]<2:\n for j in range(i,1000009,i):sieve[j]+=1\nprint(sum(sieve[i]==1for i in s))', 'print(list(map(int,input().split())).index(0)+1)']
['Runtime Error', 'Accepted']
['s079431563', 's409099516']
[16560.0, 9156.0]
[38.0, 24.0]
[180, 48]
p02639
u342502598
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 l:\n if(i==0):\n print(i)\n break', 'l=list(map(int,input().split()))\nfor i in range(len(l)):\n if(l[i]==0):\n print(i+1)\n break']
['Wrong Answer', 'Accepted']
['s853065539', 's081037691']
[9168.0, 9152.0]
[20.0, 24.0]
[79, 96]
p02639
u345577588
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()))\nfor d in range(X + 1):\n for s in [-1, +1]:\n a = X + s * d\nif p.count(a) == 0:\n\tprint(a)\nexit(0)\n', 'X, N = map(int, input().split())\np = list(map(int, input().split()))\nfor d in range(X + 1):\n for s in [-1, +1]:\n a = X + s * d\n\t\t\tif p.count(a) == 0:\n\t\t\t\tprint(a)\n\t\t\t\texit(0)\n', 'X, N = map(int, input().split())\np = list(map(int, input().split()))\nfor d in range(X + 1):\n for s in [-1, +1]:\n \n a = X + s * d\n if p.count(a) == 0:\n print(a)\n exit(0)\n', 'x1,x2,x3,x4,x5=map(int,input().split())\na=[]\na.append(x1)\na.append(x2)\na.append(x3)\na.append(x4)\na.append(x5)\nfor i in range(5):\n if a[i]==0:\n print(i+1)\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s629377579', 's769145709', 's904294789', 's072087980']
[9036.0, 8852.0, 9044.0, 9012.0]
[25.0, 24.0, 26.0, 21.0]
[179, 189, 215, 164]
p02639
u349856178
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\n ', 'a = list(map(int, input().split()))\n\nfor i in range(len(a)):\n if a[i] == 0:\n print(i)\n break\n ', 'a= list(map(int, input().split()))\n\nfor i in range(len(a)):\n if a[i] == 0:\n print(i+1)\n break\n ']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s019076184', 's667705360', 's977478409']
[9088.0, 9004.0, 8972.0]
[21.0, 26.0, 27.0]
[103, 104, 106]
p02639
u355078864
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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, y = [int(x) for x in stdin.readline().rstrip().split()]\n\n\nif y < 2*x or 4*x < y:\n print('No')\nelse:\n if (4*x-y) % 2 == 0:\n print('Yes')\n else:\n print('No')\n", "from sys import stdin\n\nx, y = [int(x) for x in stdin.readline().rstrip().split()]\n\n\nif y < 2*x and 4*x < y:\n print('No')\nelse:\n if (4*x-y) % 2 == 0:\n print('Yes')\n else:\n print('No')\n", 'from sys import stdin\n\nx, n = [int(x) for x in stdin.readline().rstrip().split()]\nif n > 0:\n P = [int(x) for x in stdin.readline().rstrip().split()]\n\nmemos = [False] * 102\n\nfor p in P:\n memos[p] = True\n\ntgt = x\noffset = 1\nlook_down = True\nwhile True:\n\n if memos[tgt] == False:\n break\n if look_down:\n look_down = False\n tgt = tgt-offset\n else:\n look_down = True\n tgt = offset + offset\n offset += 1\n\nprint(tgt)\n', 'from sys import stdin\n\na = [int(x) for x in stdin.readline().rstrip().split()]\n\n\nfor i, x in enumerate(a):\n i += 1\n if x == 0:\n print(i)\n\n\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s085401609', 's406499241', 's593062733', 's155862776']
[9168.0, 9164.0, 9136.0, 9148.0]
[21.0, 19.0, 23.0, 24.0]
[205, 206, 466, 152]
p02639
u357230322
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(n):\n if x[i]==0:\n print(i+1)\n break', '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']
['s513413578', 's872533950']
[9028.0, 9104.0]
[20.0, 20.0]
[100, 105]
p02639
u357751375
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['n = int(input())\na = list(map(int,input().split()))\na.sort()\nprint(a)\np = 0\n\nfor i in range(n):\n for j in range(n):\n if i == j:\n pass\n elif a[i] % a[j] == 0:\n break\n else:\n pass\n if j == n - 1:\n p += 1\n\nprint(p)', 'n = int(input())\na = list(map(int,input().split()))\na.sort(reverse = True)\np = 0\n\nfor i in range(n):\n j = i + 1\n for j in range(n):\n if i == j:\n pass\n elif a[i] % a[j] == 0:\n break\n else:\n pass\n if j == n - 1:\n p += 1\n\nprint(p)', '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)\nelse:\n print(5)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s034369859', 's801418416', 's442072909']
[9172.0, 9116.0, 9172.0]
[22.0, 18.0, 21.0]
[290, 309, 167]
p02639
u362127784
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(0,5):\n if li[i] == 0:\n print(i)', 'li = list(map(int,input().split()))\nfor i in range(0,5):\n if li[i] == 0:\n print(i + 1)']
['Wrong Answer', 'Accepted']
['s714891394', 's213001171']
[9160.0, 9164.0]
[21.0, 22.0]
[86, 90]
p02639
u364555831
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['nums = input().split()\n\nprint(nums)\nindex = 0\nfor num in nums:\n index += 1\n if num == "0":\n print(index)\n break\n', 'nums = input().split()\n\n#print(nums)\nindex = 0\nfor num in nums:\n index += 1\n if num == "0":\n print(index)\n break\n']
['Wrong Answer', 'Accepted']
['s111594605', 's986670243']
[8852.0, 8956.0]
[26.0, 25.0]
[132, 133]
p02639
u364693468
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()))\n\nB = [1] * (max(A) + 1)\nfor a in A:\n for k in range(a * 2,len(B),a):\n B[k] = 0\nprint(sum(B[a] == 1 and A.count(a) == 1 for a in A))\n', 'N = int(input())\nA = list(map(int, input().split()))\n\nB = [1] * (max(A) + 1)\nfor a in A:\n for k in range(a * 2,len(B),a):\n B[k] = 0\nprint(sum(B[a] == 1 and A.count(a) == 1 for a in A))\n', 'x = list(map(int,input().split()))\nans = x.index(0) + 1\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s801916232', 's987148746', 's526502684']
[9156.0, 8908.0, 9160.0]
[18.0, 24.0, 30.0]
[200, 200, 66]
p02639
u366996583
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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]==i+1:\n print(i+1)', 'n=int(input())\nl=list(map(int,input().split()))\nl.sort()\nsum=1\nif l[0]==l[1]:\n sum=0\nfor j in range(1,n):\n i=1\n for m in range(0,j):\n if l[j]%l[m]==0:\n i=0\n break\n sum+=i\n \nprint(sum)', "a,b=map(int,input().split())\nif 2*a<=b and b<=4*a and b%2==0:\n print('yes')\nelse:print('no')", 'l=list(map(int,input().split()))\nc=collections.Counter(l)\ndef j(n):\n judge=1\n for k in c.keys():\n if n%k==0:\n if n!=k:\n judge=0\n break\n return judge\ncount=0\nif len(list(c.keys()))==1:\n print(count)\nelse:\n for k in c.keys():\n if j(k)==1:\n count+=1\n print(count)\n ', "l=list(map(int,input().split()))\na=l[0]\nb=l[1]\nif 2*a<=b<=4*a and b%2==0:\n print('yes')\nelse:print('no')", 'l=list(map(int,input().split()))\nfor i in range(5):\n if l[i]!=i+1:\n print(i+1)']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s150067508', 's463572091', 's514649205', 's757762439', 's922047256', 's902746702']
[8956.0, 9196.0, 9156.0, 9168.0, 9160.0, 9008.0]
[31.0, 26.0, 21.0, 24.0, 23.0, 23.0]
[82, 210, 93, 313, 105, 82]
p02639
u371385198
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['x = list(map(int, input().split()))\nprint(x.index(0))', 'x = list(map(int, input().split()))\nprint(x.index(0) + 1)\n']
['Wrong Answer', 'Accepted']
['s771768425', 's893971519']
[9156.0, 9092.0]
[19.0, 24.0]
[53, 58]
p02639
u373858851
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['arr=list(map(int,input().split()))\n\nfor i range(5):\n if arr[i]==0:\n print(i+1)', "x,y=map(int,input().split())\n\ndef main():\n if 0<=(y/2 -x)<=x:\n if y==0 or x==0:\n return 'No'\n if (y/2 -x)%1==0:\n return('Yes')\n else:\n return('No')\n else:\n return('No')\nprint(main())\n\n", 'arr=list(map(int,input().split()))\n\nfor i in range(5):\n if arr[i]==0:\n print(i+1)\n \n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s184060549', 's761898674', 's913380902']
[8884.0, 8896.0, 8936.0]
[19.0, 22.0, 25.0]
[82, 251, 101]
p02639
u377834804
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 break', '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']
['s149520316', 's084443530']
[9096.0, 9164.0]
[20.0, 20.0]
[94, 100]
p02639
u380187071
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = input().split()\nX = int(X)\nN = int(N)\n\nif N == 0:\n print(X)\n exit()\n\nP = input().split()\nfor i in range(len(P)):\n P[i] = int(P[i])\n\nif X not in P:\n print(X)\n exit()\n\nflag_p = True\nflag_n = True\n\nabs_num = 0\nabs_num_p = X + 1\nabs_num_n = X - 1\nwhile True:\n\n if abs_num_p in P:\n flag_p = True\n else:\n flag_p = False\n\n if abs_num_n in P:\n flag_n = True\n else:\n flag_n = False\n\n if(flag_p == True & flag_n == True):\n abs_num_p += 1\n abs_num_n -= 1\n continue;\n elif(flag_p == True & flag_n == False):\n print(abs_num_n)\n break;\n elif(flag_p == False):\n print(abs_num_p)\n break;\n', 'import numpy as np\n\nX = np.array(input().split())\n\nfor i in range(len(X)):\n if (i+1) != int(X[i]):\n print(i+1)\n break;']
['Runtime Error', 'Accepted']
['s937661682', 's665381326']
[9104.0, 27092.0]
[22.0, 103.0]
[692, 135]
p02639
u383429137
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 input_num=list(input(">>"))\n del input_num[1::2]\n print(input_num)\n number_list=[\'1\',\'2\',\'3\',\'4\',\'5\']\n for i in range(5):\n if input_num[i] != number_list[i]:\n print(i+1)\n break\n\nif __name__==\'__main__\':\n main()\n', "def main():\n input_number=list(map(int, input().split()))\n for i in input:\n if i==0:\n print(i)\n break\n\nif __name__=='__main__':\n main()", "def main():\n input=[1,2,0,4,5]\n number_list=[1,2,3,4,5]\n for i in range(5):\n if input[i] != number_list[i]:\n print(i+1)\n break\n\nif __name__=='__main__':\n main()\n", "def main():\n input_number = list(map(int, input().split()))\n for i in input_number:\n if i==0:\n print(i)\n break\n\nif __name__=='__main__':\n main()\n", "X,Y = map(int, input().split())\nif Y%2==1:\n print('No')\nelse:\n kame=Y//4\n Y=Y-(kame*4)\n turu=Y//2\n if (turu+kame)==X:\n print('Yes')\n else:\n print('No')\n", "def main():\n input_number = list(map(int, input().split()))\n for i in range(5):\n if input_number[i]==0:\n print(i)\n break\n\nif __name__=='__main__':\n main()\n", 'X,Y = map(int, input().split())\nif Y%2==1:\n print("No")\nelse:\n kame=Y//4\n Y=Y-(kame*4)\n turu=Y//2\n if (turu+kame)==X:\n print("Yes")\n else:\n print(\'No\')\n', "def main():\n input_number = list(map(int, input().split()))\n for i in range(5):\n if input_number[i]==0:\n print(i+1)\n exit()\n\nif __name__=='__main__':\n main()\n"]
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s158946380', 's218134340', 's579290880', 's605406712', 's657250369', 's797192927', 's958633731', 's835721013']
[9104.0, 8936.0, 8892.0, 8960.0, 9040.0, 9140.0, 8996.0, 9012.0]
[24.0, 21.0, 24.0, 31.0, 23.0, 23.0, 28.0, 25.0]
[271, 151, 202, 161, 184, 171, 184, 174]
p02639
u383709898
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\na = list(map(lambda x:int(x), input().split()))\n\nfor i in range(len(a)):\n if(a[i] == 0):\n print(i)\n break', '# coding:utf-8\n\na = list(map(lambda x:int(x), input().split()))\n\nfor i in range(len(a)):\n if(a[i] == 0):\n print(i+1)\n break']
['Wrong Answer', 'Accepted']
['s576724595', 's330217438']
[9028.0, 9160.0]
[24.0, 18.0]
[128, 130]
p02639
u389188163
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\nl = [x1, x2, x3, x4, x5]\nls = [str(n) for n in l]\ns = ''.join(ls).find('0')\nprint(s)", "x1, x2, x3, x4, x5 = map(int, input().split())\n\nl = [x1, x2, x3, x4, x5]\nls = [str(n) for n in l]\ns = ''.join(ls).find('0')\ns", "x1, x2, x3, x4, x5 = map(int, input().split())\n\nl = [x1, x2, x3, x4, x5]\nls = [str(n) for n in l]\ns = ''.join(ls).find('0')\nprint(s+1)"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s408380405', 's516175089', 's529852030']
[8820.0, 9100.0, 8872.0]
[27.0, 29.0, 32.0]
[132, 125, 134]
p02639
u394526356
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = list(map(int, input().split()))\nif not n:\n print(x) \nelse:\n l = list(map(int, input().split()))\n dic = {} \n for ll in l: dic[ll] = 1\n i = 1\n while true:\n if not dic.get(x-i,0):\n print(x-i)\n break\n elif not dic.get(x+i, 0):\n print(x+i) \n break\n i+=1', 'l = list(map(int, input().split()))\nprint(l.index(0) + 1)']
['Runtime Error', 'Accepted']
['s610619717', 's653348407']
[9188.0, 9092.0]
[23.0, 26.0]
[290, 57]
p02639
u396205291
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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, len(x)):\n if x[i] == 0:\n print(i + 1)\n return\n', 'x = list(map(int, input().split()))\nfor i in range(0, len(x)):\n if x[i] == 0:\n print(i + 1)\n break\n']
['Runtime Error', 'Accepted']
['s829035006', 's524028554']
[8964.0, 9028.0]
[20.0, 19.0]
[107, 106]
p02639
u401086905
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['data = list(map(int, input()))\n\n_sum = sum(data)\n\nprint( 15-_sum )', 'data = list(map(int, input().split()))\n\n_sum = sum(data)\n\nprint( 15-_sum )']
['Runtime Error', 'Accepted']
['s331265494', 's664409012']
[9148.0, 9160.0]
[20.0, 20.0]
[66, 74]
p02639
u404092236
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['x, n = map(int, input().split())\nif n > 1:\n p = list(map(int, input().split()))\nelse:\n print(x)\n exit(0)\n \nfor i in range(n+1):\n if (x-i) not in p:\n print(x-i)\n break\n if (x+i) not in p:\n print(x+i)\n break', "x = input().split()\nprint(x.index('0') + 1)"]
['Runtime Error', 'Accepted']
['s518448433', 's918405224']
[9188.0, 9024.0]
[22.0, 19.0]
[224, 43]
p02639
u407415713
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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,inpt().split()))\nfor i in range(5):\n if x[i] ==0:\n ans = i\n \nprint(ans)', 'x = list(map(int,input().split()))\nfor i in range(5):\n if x[i] ==0:\n ans = i+1\n \nprint(ans)']
['Runtime Error', 'Accepted']
['s719728778', 's848925368']
[8892.0, 9048.0]
[22.0, 24.0]
[95, 104]
p02639
u407841476
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = input().spilt()\narr = int(arr)\nprint(15-sum(arr))', 'arr = list(map(int, input().split()))\nprint(15-sum(arr))']
['Runtime Error', 'Accepted']
['s610861775', 's985414375']
[8900.0, 9024.0]
[24.0, 22.0]
[55, 56]
p02639
u411858517
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['package main \n\nimport "fmt"\n\nfunc main() {\n\tvar x [5]int\n\n\tfor i := 0; i < 5; i++ {\n\t\tfmt.Scan(&x[i])\n\t}\n\n\tfor i := 0; i < 5; i++ {\n\t\tif x[i] == 0 {\n\t\t\tfmt.Println(i + 1)\n\t\t}\n\t}\n}', 'X = list(map(int, input().split()))\n\nfor i in range(5):\n if X[i] == 0:\n ans = i + 1\n\nprint(ans)']
['Runtime Error', 'Accepted']
['s940734513', 's145645744']
[8844.0, 9100.0]
[23.0, 24.0]
[179, 105]
p02639
u411923565
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['#D - Not Divisible\nimport collections\nN = int(input())\na = list(map(int,input().split()))\na = sorted(a,reverse = False)\n\n\ncnt = collections.Counter(a)\nm = max(a)+1\nfor i in a:\n if cnt[i] >= 2:\n del cnt[i]\n for j in range(i*2,m,i):\n del cnt[j]\nprint(len(cnt.keys()))', 'a = list(map(int,input().split()))\n\nprint(a.index(0) + 1)']
['Runtime Error', 'Accepted']
['s762927144', 's794261636']
[9280.0, 9080.0]
[24.0, 26.0]
[354, 57]
p02639
u414376763
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 x[i] == 0:\n \tprint(i+1)\n ELSE:\n \tpass', 'x = list(map(int,input().split()))\n \nfor i in range(len(x)):\n\tIF x[i] == 0:\n \tprint(i+1)\n \tbreak\n', 'x = list(map(int,input().split()))\n \nfor i in range(len(x)):\n\tIF x[i] == 0:\n \tprint(i+1)\n ELSE:\n \tpass', 'x = list(map(int,input().split()))\n \nfor i in range(len(x)):\n\tif x[i] == 0:\n \tprint(i+1)\n \tbreak\n', 'x = list(map(int,input().split()))\n\nfor i in x:\n\tIF x[i] == 0:\n \ti\n ELSE:\n \tpass', 'x = list(map(int,input().split()))\n\nfor i in range(len(x)):\n if x[i] == 0:\n print(i+1)\n break']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s205016377', 's241795923', 's356970969', 's707706784', 's779251542', 's131804145']
[8900.0, 8744.0, 8928.0, 8888.0, 8928.0, 8844.0]
[19.0, 27.0, 23.0, 26.0, 18.0, 31.0]
[98, 103, 111, 103, 89, 100]
p02639
u414920281
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 exit()', 'a = list(map(int, input().split()))\nfor i in range(len(a)):\n if a[i]==0:\n print(i+1)\n exit()']
['Wrong Answer', 'Accepted']
['s731804338', 's519417323']
[9064.0, 9160.0]
[20.0, 20.0]
[107, 109]
p02639
u416318434
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 -*-\nimport math\n \ndef is_prime(n):\n if n == 1: return False\n \n for k in range(2, int(math.sqrt(n)) + 1):\n if n % k == 0:\n return False\n \n return True\n \nN= int(input())\nA = input().split()\nANS = 0\nfor i in range(N):\n C = A[i]\n if A.count(C) == 1:\n if is_prime(i) == True:\n ANS += 1\nprint(ANS)', '# -*- coding: utf-8 -*-\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)']
['Runtime Error', 'Accepted']
['s843042648', 's191710178']
[9200.0, 9172.0]
[25.0, 24.0]
[349, 195]
p02639
u417370385
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\nprint(sys.split().index("0") + 1)', 'print( sys.stdin.split().indx("0"))\n', 'import sys\nprint( sys.stdin.split().indx("0"))', 'print(input().split().index("0") + 1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s108122844', 's821946034', 's845968425', 's707814412']
[9024.0, 8876.0, 8896.0, 8912.0]
[19.0, 24.0, 22.0, 24.0]
[44, 36, 46, 37]
p02639
u419524892
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['import numpy as np\nx_np = np.array(list(map(int, input().split())))\ntarget = np.where(x_np == 0)[0] + 1\nprint(f"{target}")', 'import numpy as np\nx_np = np.array(list(map(int, input().split())))\ntarget = int(np.where(x_np == 0)[0] + 1)\nprint(target)']
['Wrong Answer', 'Accepted']
['s220429073', 's012677660']
[27100.0, 27272.0]
[97.0, 101.0]
[122, 122]
p02639
u425317134
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(5):\n if (i + 1) == int(a[i]):\n continue\n else:\n print(a[i])\n', 'a = input().split()\nfor i in range(5):\n if i == int(a[i])-1:\n continue\n else:\n print(i+1)']
['Wrong Answer', 'Accepted']
['s919521193', 's616193422']
[9004.0, 9040.0]
[25.0, 27.0]
[103, 97]
p02639
u432356156
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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(x) for x in input().split()]\n\nfor i in range(len(x)):\n if(x[i]==0):\n print(i)\n', 'x = [int(x) for x in input().split()]\n\nfor i in range(len(x)):\n if(x[i]==0):\n print(i+1)\n']
['Wrong Answer', 'Accepted']
['s572770956', 's852474153']
[9156.0, 9032.0]
[23.0, 21.0]
[97, 99]
p02639
u433375322
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['a,b =map(int,input().split())\nc = 1\nfor i in range(a-1):\n if (b-2*i)%4==0:\n c = 0\n break\nif c ==1:\n print("No")\nelse:\n print("Yes")\n', 'a,b =map(int,input().split())\nc = 1\nfor i in range(a-1):\n if (b-2*i)%4==0:\n c = 0\n break\nif c ==1:\n print("No")\nelse:\n print("Yes")', 'a,b =map(int,input().split())\nc = 1\nfor i in range(0,a+1):\n if 2*i+4*(a-i) ==b:\n c = 0\n break\nif c ==0:\n print("Yes")\nelse:\n print("No")', 'a,b =map(int,input().split())\nc = 1\nfor i in range(a):\n if (b-2*i)%4==0:\n c = 0\n break\nif c ==1:\n print("No")\nelse:\n print("Yes")\n', 'a=list(map(int,input().split()))\nfor i in range(len(a)):\n if a[i]==0:\n print(i+1)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s435044336', 's723554377', 's747895036', 's825332826', 's788803791']
[9100.0, 9040.0, 9116.0, 9096.0, 9076.0]
[20.0, 19.0, 24.0, 18.0, 27.0]
[141, 140, 151, 139, 91]
p02639
u434609232
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
["s = input().split()\nprint(s.index['0'])", "s = input().split()\nprint(s.index('0'))", 'a = list(map(int, input().split()))\nprint(a.index(0)+1)']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s212737433', 's567009873', 's641858084']
[9024.0, 9020.0, 8872.0]
[24.0, 21.0, 31.0]
[39, 39, 55]
p02639
u435569602
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['N = int(input())\nA_ = [int(i) for i in input().split()]\nA=set(A_)\nif len(_A)>len(A) and len(A)=0:\n print(0)\nelse:\n A.sort()\n A.reverse()\n times = 0\n for n,i in enumerate(A):\n flag = 0\n for j in list(range(n-1,n))+list(range(n+1,len(A))):\n if A[j]<=i:\n if i%A[j]==0:\n flag = 1\n break\n if flag == 0: \n times+=1 \n \n print(times) ', 'number = input().split()\nfor i in range(len(number)):\n if number[i]=="0":\n print(i+1)']
['Runtime Error', 'Accepted']
['s468182151', 's019301581']
[8900.0, 8964.0]
[25.0, 20.0]
[467, 95]
p02639
u436519884
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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()))\nans=-1\nfor x in range(5):\n if(List[x]==0):\n ans=x+1\n \tbreak\nprint(ans)', 'List=list(map(int,input().split()))\nans=-1\nfor x in range(5):\n if(List[x]==0):\n ans=x+1\n break\nprint(ans)']
['Runtime Error', 'Accepted']
['s831206983', 's020487031']
[8872.0, 9080.0]
[21.0, 29.0]
[111, 112]
p02639
u437215432
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['# ABC169A\n\nx = map(int, input().split())\nprint(x.index(0)+1)\n', '# ABC169A\n\nx = list(map(int, input().split()))\nprint(x.index(0)+1)\n']
['Runtime Error', 'Accepted']
['s449750010', 's536257034']
[8896.0, 8904.0]
[21.0, 25.0]
[61, 67]
p02639
u438189153
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['a,b=map(int,input().split())\nprint(a*b)\n', 'S=list(map(int,input().split()))\nfor i in range(5):\n if S[i]==0:\n print(i+1)\n']
['Runtime Error', 'Accepted']
['s447634522', 's846294406']
[8960.0, 9088.0]
[19.0, 23.0]
[40, 87]
p02639
u439757045
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\n ', 'a=list(map(int,input().split()))\nfor i in range(len(a)):\n if a[i]==0:\n print(i+1)\n break']
['Wrong Answer', 'Accepted']
['s473395229', 's021080224']
[9064.0, 9168.0]
[20.0, 20.0]
[96, 105]
p02639
u440613652
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\nsett=list(map(int,input().split()))\narr=[i for i in range(-1,102) if i not in sett]\n\nmin_=100000\nnum=0\nfor i in arr:\n\tif abs(x-i)<min_:\n\t\tmin_=abs(x-i)\n\t\tnum=i\n\n\n\nprint(num)\n', 'x,y=map(int,input().split())\n \nfor i in range(x+1):\n if i*4+(x-i)*2==y:\n print("Yes")\n \nelse:\n print("No")', 'import sys\n\nI=sys.stdin.readline\n\narr=list(map(int,I().split()))\n\nprint(arr.index(0))', 'x,y=map(int,input().split())\n \nfor i in range(x+1):\n if i*4+(x-i)*2==y:\n print("Yes")\n break \nelse:\n print("No")', 'arr=list(map(int,input().split()))\n\nprint(arr.index(0)+1)']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s228217937', 's349280018', 's521047642', 's562809557', 's187794389']
[9188.0, 9164.0, 9152.0, 9080.0, 9020.0]
[18.0, 23.0, 21.0, 20.0, 22.0]
[204, 114, 85, 122, 57]
p02639
u441902623
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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 = int(input().split())\nfor i in range(6):\n if num[i] == 0:\n print(int(str(i)))', 'num = list(input().split())\nfor i in range(5):\n if num[i] == "0":\n print(int(str(i + 1)))\n']
['Runtime Error', 'Accepted']
['s208948753', 's959314996']
[8916.0, 9060.0]
[29.0, 27.0]
[86, 94]
p02639
u442836562
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\nans = "No"\n\nfor a in range(x + 1):\n b = x - a\n if (2 * a + 4 * b ) == y:\n ans = "Yes"\n break\n\nprint (ans)', 'x, y = map(int, input().split())\n\na = y / 2\nb = 0\nwhile (a + b) != x:\n a -= 2\n b += 1\n if a < 0: break\n\ns = 2 * a + 4 * b\nif s == y and a >= 0:\n print("Yes")\nelse:\n print("No")', 'X = [int(i) for i in input().split()]\n\nfor i in range(len(X)):\n if X[i] == 0:\n print (i)', 'X = [int(i) for i in input().split()]\n\nfor i in range(len(X)):\n if X[i] == 0:\n print (i+1)']
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s339471010', 's652452109', 's802529534', 's876576381']
[9096.0, 9120.0, 9088.0, 9100.0]
[26.0, 27.0, 26.0, 27.0]
[147, 181, 92, 94]
p02639
u452913314
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['x = list(map(int, input().split()))\n\nprint(x)\nfor i in range(len(x)):\n if(x[i] == 0):\n print(i+1)\n exit()\n', 'x = list(map(int, input().split()))\n\nfor i in range(len(x)):\n if(x[i] == 0):\n print(i+1)\n exit()']
['Wrong Answer', 'Accepted']
['s175876043', 's111167807']
[8972.0, 9104.0]
[23.0, 20.0]
[123, 113]
p02639
u454329159
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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())\nif(a==0):\n print(1)\nelif(b==0):\n print(2)\nelif(c==0):\n print(3)\nelif(d==0):\n print(4)\nelse:\n print(5)', 'a,b,c,d,e=list(map(int,input().split()))\nif(a==0):\n print(1)\nelif(b==0):\n print(2)\nelif(c==0):\n print(3)\nelif(d==0):\n print(4)\nelse:\n print(5)']
['Runtime Error', 'Accepted']
['s861802379', 's720518583']
[9140.0, 9188.0]
[21.0, 21.0]
[137, 147]
p02639
u458023139
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['n = input().split() \nprint(min(n))', 'print(15 - sum(list(map(int, input().split()))))']
['Wrong Answer', 'Accepted']
['s967178652', 's981201790']
[8936.0, 9156.0]
[26.0, 25.0]
[34, 48]
p02639
u460399356
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these 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\nX,N = map(int,input().split())\n\np_list = [int(n) for n in input().split()]\n\nX_near = np.array(list(range(int(np.ceil(X - N/2)), int(np.floor(X + N/2)) + 1)))\n\nremain_list = []\n\nfor i in X_near:\n if i not in p_list:\n remain_list.append(i)\n \nremain_array = np.array(remain_list)\nmin_bool = np.abs(X - remain_array).min() == np.abs(X - remain_array)\nprint(remain_array[min_bool].min())', "n_list = input().split()\n\nprint(n_list.index('0') + 1)\n"]
['Runtime Error', 'Accepted']
['s558914124', 's357517168']
[27072.0, 9100.0]
[105.0, 19.0]
[419, 55]
p02639
u461463382
2,000
1,048,576
We have five variables x_1, x_2, x_3, x_4, and x_5. The variable x_i was initially assigned a value of i. Snuke chose one of these variables and assigned it 0. You are given the values of the five variables after this assignment. Find out which variable Snuke assigned 0.
['#import numpy as np\n\nN = int(input())\nA = list(map(int, input().split()))\nA.sort()\n\nkouho = sorted([x for x in set(A) if A.count(x) == 1])\n#maxA = 10**5\n\n\nmaxA = A[-1]\nwork=[0]*(A[-1]+1)\n\nfor i in range(len(A)):\n maxN = int(maxA/A[i])\n for n in range(1,maxN+1):\n buf = A[i]*n\n \n work[buf]+=1\n #print(A[i]*n)\n\n\n\nsm=0\nfor s in A:\n if work[s]==1: sm+=1\nprint(sm)\n\n', '#import numpy as np\n\nN = int(input())\nA = list(map(int, input().split()))\n\n\n\n\n#K = int(input())\n#S = input()\n\n\n#a=[0]*5\n\n\n\n#A = list(set(A))\nA = sorted(A)\n\nkouho = [x for x in set(A) if A.count(x) == 1]\ntarget = list(kouho.copy())\n \nfor i in range(len(A)):\n if target == []:\n break\n maxN = int(max(target)/A[i])\n for n in range(2,maxN+1):\n if A[i]*n in kouho:\n kouho.remove(A[i]*n)\n #print(A[i]*n)\ntarget = list(kouho.copy())\n \nprint(len(target))', 'X = list(map(int, input().split()))\n\n\n\n\n#K = int(input())\n#S = input()\n\n\n#a=[0]*5\n\n\n\n\nfor i in range(len(X)):\n if X[i] == 0:\n break\n \n\nprint(i+1)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s466671719', 's663033373', 's447163172']
[9216.0, 9216.0, 9028.0]
[25.0, 20.0, 21.0]
[537, 1041, 671]