TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
a = []
a = list(map(int, input().split()))
print(a)

for i in range(len(a)):
    try:
        a.remove(i+1)
    except:
        print(i)
        break


import copy

a = []
a = list(map(int, input().split()))

ctn = 0
for i in a:
    if (i == 0):
        print(ctn+1)
    ctn += 1


Verdicts: Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x = list(int(input()))

num = 0

for i in x:
	num += i
    if x[i]==0:
    	break
print(num)



x = list(map(int,input().split()))

num = 0

for i in range(len(x)):
	num += 1
    if x[i] == 0:
      print(num)
      break


x = map(int,input().split())

num = 0

for i in range(5):
	num += 1
    if x[i] == 0:
      break

print(num)

x = list(map(int,input().split()))

num = 0

for i in range(5):
	num += 1
	if x[i] == 0:
		break
        
print(num)


Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
from numba import jit

@jit
def resolve():
    n = int(input())
    A = list(map(int, input().split()))
    if len(set(A)) == 1:
        print(0)
        return
    A.sort()

    ans = 0
    while len(A) > 0:
        a = A.pop(0)
        ans += 1
        A = [i for i in A if i % a != 0]

    print(ans)

resolve()

import numpy as np

def resolve():
    x, n = map(int, input().split())
    if n == 0:
        print(x)
        return
    P = set(map(int, input().split()))
    if x not in P:
        print(x)
        return

    P_not = np.array(list(set(list(range(1, 101))) - P))
    diff = np.abs(P_not - x)
    print(P_not[diff.argmin()])

resolve()


def resolve():
    A = list(map(int, input().split()))
    print(A.index(0) + 1)

resolve()

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
a = input()
b = a.split(" ")
for i in len(b):
  if b[i] == "0":
    print(i+1)
    break


a = input()
b = a.split(" ")
for i in range(len(b)):
    if b[i] == "0":
        print(i + 1)
        break


Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x,n = map(int,input().split())
p = list(map(int,input().split()))
ans = float('inf')
for i in range(101):
    if i not in p:
        if abs(i-x) < abs(ans-x):
            ans = i
        elif abs(i-x) == abs(ans -x):
            ans = min(ans,i)
print(ans)

a = list(map(int,input().split()))
print(a.index(0)+1)

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
n = list(map(int, input().split()))
if(n[1] == 0):
  print(n[0])
  exit()
x = list(map(int, input().split()))
print(n)
print(type(x))
  
for i in range(1,100):
  if(('n[0] - i' in x) == False):
    print(n[0] - i)
    exit()
  elif(('n[0] + i' in x) == False):
    print(n[0] + i)
    exit()

n = list(map(int, input().split()))
if(n[1] == 0):
  print(n[0])
  exit()
x = list(map(int, input().split()))

for i in range(1,102):
  if n[0] - i not in x:
    print(n[0] - i)
    break
  elif n[0] + i not in x:
    print(n[0] + i)
    break


n = list(map(int, input().split()))

for i in range(5):
  if(n[i] != i+1):
    print(i+1)
    exit()

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
five_numbers = list(map(int, input().split()))

for x, order  in enumerate(five_numbers):
    print(order,x)
    if x == 0:
        print(order + 1)

five_numbers = list(map(int, input().split()))

for order, number in enumerate(five_numbers):
    if number == 0:
        if order == 0:
            print(five_numbers[order+1]-1)
            break
        print(five_numbers[order-1]+1)

Verdicts: Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
lst = list(map(int, input().split()))

for i in lst:
  i == 0:
    print(i)
    exit()

lst = list(map(int, input().split()))
for i in lst:
    if i == 0:
        print(i)
        exit()

lst = list(map(int, input().split()))
for i in range(5):
    if lst[i] == 0:
        print(i + 1)
        exit()

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
a = list(map(int,input().split())
i=0         
for i in range(a):
         if a[i] == 0:
         print(i-1)

a = list(map(int,input().split())
i=0         
for i in len(a):
         if a[i] == 0:
         print(i+1)


line = list(map(int, input().split()))
for i in range(5):
  if line[i] == 0:
    print(i+1)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
import numpy as np

N = int(input())
A = list(map(int, input().split()))

A.sort()
e = np.zeros(10**6 + 1)
ans = 0
for i in range(N):
    if e[A[i]] == 0:
        e[::A[i]] = 1 
        
        if A[i] != A[i+1]:
            ans += 1
print(ans)

x = list(map(int, input().split()))
for i in range(len(x)):
    if x[i] == 0:
        print(i+1)

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
X, Y= map(int,input().split())

a=2*X
b=(Y-a)/2
c=X-b

if(2*c+4*b==Y and (Y-a)%2==0 and c>=0):
    print("Yes")
else:
    print("No")
    

N=list( map(int,input().split()))

print(N.index(0)+1)


Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
A = list[map(int, input().split())]

print(A.index(0) + 1)

A = list(map(int, input().split()))

print(A.index(0) + 1)


Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
n=input().split()
x = n.find('0')

print(int(x)+1)

n=input()
nn=n.replace(' ','')
x = nn.find('0')

print(int(x)+1)

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
a = list(map(int,input("").split()))
for i in a :
    if i == 0 :
        print(a.index(i))
        break


a = list(map(int,input("").split()))
for i in a :
    if i == 0 :
        print(a.index(i) +1)
        break



Verdicts: Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
X,Y = map(int,input().split())
if 2*X == Y or 4*X == Y or 3*X == Y or Y%X ==1 or Y%X == 2:
  print('Yes')
else:
  print('No')

a,b,c,d,e = map(int,input().split())
if a == 0 :
  print('1')
elif b == 0 :
  print('2')
elif c == 0 :
  print('3')
elif d == 0 :
  print('4')  
else:
  print('5')

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x = list(input().split())
print(15-sum(x))

x = list(map(int,input().split()))
print(15-sum(x))

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
X, Y = map(int, input().split())
if (4*X - Y) < 0:
    print("No")
elif 6*X > Y:
    print("No")
elif (4*X - Y)%2 != 0:
    print("No")
else:
    print("Yes")

X, Y = map(int, input().split())
if ((4*X - Y) < 0) or (6*X > Y) or ((4*X - Y)%2 != 0):
    print("No")
else:
    print("Yes")

A = [int(x) for x in input().split()]
num = 1
for i in A:
    if i == num:
        num += 1
    else:
        print(num)
        break

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
arr = [int(x) for x in input().split()]
for i, a in enumerate(arr, 1):
    if a == 0:
        return i

arr = [int(x) for x in input().split()]
for i, a in enumerate(arr, 1):
    if a == 0:
        print(i)

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
N = int(input())
A = list(map(int, input().split()))
ans = 0

A.sort(reverse=True)

for i in range(len(A)-1):
    flg = True
    for j in range(i+1, len(A)):
        if A[i] % A[j] == 0:
            flg = False
            break
    if flg == True:
        print(i)
        ans += 1

print(ans)


X = list(map(int, input().split()))

for i in range(5):
    if X[i] == 0:
        ans = i + 1
        print(ans)


Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x, y = map(int,input().split())
z=-2
if x %2 == 0:
    for i in range(x):
        if i % 2 == 0:
            z +=4
        else:
            z +=2
    if z == y :
            print("Yes")
    elif z!=y :
            print("No")
elif x%2 != 0:
    for i in range(x):
        if i % 2 == 0:
            z +=4
        else:
            z +=2
    if z == y or z == (y-2):
            print("Yes")
    elif z!=y :
            print("No")

x, y = map(int,input().split())
z=-2
if x %2 == 0:
    for i in range(x):
        if i % 2 == 0:
            z +=4
        else:
            z +=2
    if z == y :
            print("Yes")
    elif z!=y :
            print("No")
elif x%2 != 0
    for i in range(x):
        if i % 2 == 0:
            z +=4
        else:
            z +=2
    if z == y or z == (y-2):
            print("Yes")
    elif z!=y :
            print("No")

x, y = map(int,input().split())
z=-2
if x %2 == 0:
    for i in range(x):
        if i % 2 == 0:
            z +=4
        else:
            z +=2
    if z == y :
            print("Yes")
    elif z!=y :
            print("No")
elif x%2 != 0:
    for i in range(x):
        if i % 2 == 0:
            z +=4
        else:
            z +=2
    if z == y or z == (y-2):
            print("Yes")
    elif z!=y :
            print("No")

x, y = map(int,input().split())
z=-2
if x %2 == 0:
    for i in range(x):
        if i % 2 == 0:
            z +=4
        else:
            z +=2
    if z == y :
            print("Yes")
    elif z!=y :
            print("No")
else:
    for i in range(x):
        if i % 2 == 0:
            z +=4
        else:
            z +=2
    if z == y or z == (y-2):
            print("Yes")
    elif z!=y :
            print("No")

x1,x2,x3,x4,x5,=map(int,input().split())
if 0 == x1:
    print("1")
elif 0 == x2:
    print("2")
elif 0 ==x3:
    print("3")
elif 0 == x4:
    print("4")
else:
    print("5")

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x  = list(map(int, input().split()))
print(x.index(0)) 

x  = list(map(int, input().split()))
print(x.index(0) + 1)

Verdicts: Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
l = list(map(int, input().split()))

for i in l:
  if i == 0:
    print(l.index(i))
    break


l = list(map(int, input().split()))

print(l.index(0)+1)

Verdicts: Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
import numpy as np
n = int(input())
if n != 1:
  arr = np.asarray([[int(x) for x in input().split()]])
  arrT = arr.T
  eye = np.eye(n)
  ans = np.count_nonzero(arrT % arr + eye == 0, axis=1)
  ans = np.count_nonzero(ans == 0)
  print(ans)
else:
  print(input())

l = input().split()
ans = l.index('0') + 1
print(ans)

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
num = list(map(int, input().split()))
count = 0
for i in num:
  if i = 0:
    count += 1
    print(count)
  else:
    count += 1

num = list(map(int, input().split()))
count = 0
for i in num:
  if i == 0:
    count += 1
    print(count)
  else:
    count += 1


Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
xn = input().split()
data = input().split()

data_2 = []

x = int(xn[0]) 
data.sort() 



a = x-1
while True:
    #check
    for i in range(len(data)):
        if int(data[i]) == a:
            a = a - 1
            break
        else:
            data_2.append(a)
            break
    if a == int(data_2[0]):
        break


b = x + 1
while True:
    #check
    for i in range(len(data)):
        if int(data[i]) == b:
            b = b + 1
            break
        else:
            data_2.append(b)
            break
    if b == int(data_2[1]):
        break


if a < b:
    print(a)
else:
    print(b)

listt = input().split()

doubutsu = int(listt[0])
ashi = int(listt[1])

kame = (ashi-2*doubutsu)/2
kamea = (ashi-2*doubutsu)%2
tsuru = doubutsu - kame

if kame == 0 and tsuru ==0:
    print("No")

elif kamea == 0 and tsuru >= 0:
    print('Yes')
else:
    print("No")

list_sunuke = []
list_m = []

for i in range(5):
    list_sunuke.append(input())

for i in range(5):
    list_m.append(i+1)

for i in range(5):
    if list_sunuke[i] != list_m[i]:
        print(list_m[i])
        break

list_sunuke = input().split()
list_m = []

for i in range(5):
    list_m.append(i+1)

for i in range(5):
    if list_sunuke[i] != list_m[i]:
        print(list_m[i])

list_sunuke = []
list_m = []

for i in range(5):
    list_sunuke.append(input())

for i in range(5):
    list_m.append(i+1)

for i in range(5):
    if list_sunuke[i] != list_m[i]:
        print(list_m[0])
        break




list_sunuke = input().split()
list_m = []

for i in range(5):
    list_m.append(i+1)

for i in range(5):
    if int(list_sunuke[i]) != list_m[i]:
        print(list_m[i])

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
li = list(map(int, input().split())) 
for i in range(len(li)):
    if li[i] == 0:
        print(i)


li = list(map(int, input().split())) 
for i in range(len(li)):
    if li[i] == 0:
        print(i+1)

Verdicts: Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x = map(int, input().split(' '))
for i in range(0, len(x)):
  if x[i] == 0:
    print(i+1)
    break

x = [x for x in map(int, input().split(' '))]
for i in range(0, len(x)):
  if x[i] == 0:
    print(i+1)
    break

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
L1=list(map(int,input().split()))
for i in range(len(l1)):
  if l1[i]==0:
    print(i+1)
    break

l1=list(map(int,input().split()))
for i in range(len(l1)):
  if l1[i]==0:
    print(i+1)
    break

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
a = list(map(int,input()))
for i in range(5):
  if a[i]==0:
    print(i+1)

a = list(map(int,input().split()))
for i in range(5):
  if a[i]==0:
    print(i+1)


Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
import sys

X,N = list(map(int,input().split()))
P = list(map(int,input().split()))

P_n = [i for i in range(1,101,1) if i not in P]
abs_value = [abs(X-P_n[j]) for j in range(len(P_n))]
min_abs = min(abs_value)

for k in range(len(P_n)):
    if abs_value[k] == min_abs:
        print(P_n[k])
        sys.exit()

X,N = map(int,input().split())
P = list(map(int,input().split()))


P_n = [i for i in range(0,102,1) if i not in P]
abs_value = [abs(X-P_n[j]) for j in range(len(P_n))]


min_abs = min(abs_value)
for k in range(len(abs_value)):
    if abs_value[k] == min_abs:
        print(P_n[k])
        break

X = [int(x) for x in input().split()]

print(X.index(0)+1)

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):

N = int(input())
A = list(map(int,input().split()))



import numpy as np

A.sort()
MAX=10**6+1
L = [0]*MAX
used = set()
first = True
for a in A:
    if L[a] ==2:
        continue
    if a in used and first:
        first = False
        for i in range(0,MAX,a):
            L[i] = 2
        
        continue
    used.add(a)
    
    L[a] = 1
    for i in range(2*a,MAX,a):
        L[i] = 2
    #L[::a] += 1
count = 0
for a in A:
    if L[a] == 1:
        count += 1
print(count)







X = map(int,input().split())

for i,x in enumerate(X):
    if x == 0:
        print(i+1)



Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
from sys import stdin
data = stdin.readlines()

n = int(data[0].split()[0])
a = [int(s) for s in data[1].split()]
a = sorted(a)

max = a[-1]

l = [0]*(max+1)

for i in a:
    l[i] += 1
    if l[i] == 1:
        for j in range(i*2,max+1,i):
            l[j] = 2
print(l.count(1))

from sys import stdin
data = stdin.readline().rstrip()


b = [int(s) for s in data.split()]
print(b.index(0)+1)


Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x = list(map(int,input().split()))

print(x.index("0")+1)

x = list(map(int,input().split()))
 
print(x.index(0)+1)

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
l=list(map(int,input().split())
for i in range(len(l)):
	if l[i]==0:
        print(i+1)
        break

l=list(map(int,input().split()))
for i in range(len(l)):
	if l[i]==0:
		print(i+1)
		break

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
if __name__ == "__main__":
    n = int(input())
    l_a = list(map(int, input().split()))
    s_a = list(set(l_a))

    s_a.sort()

    dub_a = [0]*(max(s_a)+1)

    for i in l_a:
        dub_a[i] += 1

    dp = [1]*(max(s_a)+1)

    for i in s_a:
        if dp[i] == 0:
            pass
        else:
            for j in range(2*i, len(dp), i):
                dp[j] = 0


    count = 0
    for i in s_a:
        if dp[i]==1 and dub_a[i]==1:
            count += 1
    print(count)

if __name__ == "__main__":
    s = input().split()
    for i, num in enumerate(s):
        if num == "0":
            print(i+1)

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
a,b,c,d,e=map(int,input()split())
if a==0:
  print("1")
elif b==0:
  print("2")
elif c==0:
    print("3")
elif d==0:
  print("4")
else:
  print("5")

a,b,c,d,e=map(int,input().split())
if a==0:
  print("1")
elif b==0:
  print("2")
elif c==0:
    print("3")
elif d==0:
  print("4")
else:
  print("5")

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
a,b = map(int, input().split())
list = []
for y in range(a+1):
  list += [y*4 + (a-y)*2]
  
if b in list:
  print("Yes")
else:
  print("No")

s = input()
list = s.split(" ")
for i in range(5):
  if list[i] == 0:
    print(i)

s = input()
list = s.split(" ")
for i in range(5):
  if int(list[i]) == 0:
    print(i)

a,b,c,d,e = map(int, input().split())
list = [a,b,c,d,e]
for i in range(5):
  if list[i] == 0:
    print(i+1)

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x1, x2, x3, x4, x5 = map(int, input().split())
if x1 == 0:
  print(1)
if x2 == 0:
  print(2)
if x3 == 0:
  print(3)
if x4 == 0:
  print(4)
else:
  print(5)

x1, x2, x3, x4, x5 = input().split()

if x1 == 0:
  print(int(1))
if x2 == 0:
  print(int(2))
if x3 == 0:
  print(int(3))
if x4 == 0:
  print(int(4))
if x5 == 0:
  print(int(5))

x1, x2, x3, x4, x5 = input().split()
if x1 == 0:
  print(1)
if x2 == 0:
  print(2)
if x3 == 0:
  print(3)
if x4 == 0:
  print(4)
else:
  print(5)

a=[]
a=[int(x) for x in input().split()]

ans = list.index(0) + 1
print(ans)

a = list(map(int, input().split()))

ans = a.index(0) + 1
print(ans)

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
X,N = map(int, input().split())
if N ==0:
  print(X)
  exit() 
if N !=0:
  p = list(map(int, input().split()))
if p.count(X) == 0:
  print(X)
  exit()
for a in range(1000):
  if p.count(X-a) ==0:
    print(X-a)
    exit()
  elif p.count(X+a) ==0:
    print(X+a)
    exit()


s = list(map(int, input().split()))
for i in range(len(s)):
  if s[i]==0:
    print(i+1)


Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
l=list(map(int,input().split()))
print(l.index(0))

l=list(map(int,input().split()))
print(l.index(0)+1)

Verdicts: Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
lists = list(input().split())
counter = 0
for i in lists:
  if i == '0':
    break
  counter = counter + 1
print(str(counter))

lists = list(input.split())
counter = 0
for i in lists:
  if i == '0':
    break
  counter = counter + 1
print(str(counter))

lists = list(input().split())
counter = 1
for i in lists:
  if i == '0':
    break
  counter = counter + 1
print(str(counter))

Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
N = int(input())
A = list(map(int,input().split()))
A.sort()
cnt = 0
onaji = 0

for i in range(len(A)):
    if i >= len(A)-1:
        break
    for j in range(len(A)-1,i,-1):
        if A[i] == A[j]:
            onaji = 1
        if A[j] % A[i] == 0:
            del A[j]
            
    if onaji == 1:
        del A[i]
        onaji = 0

print(len(A))


a = list(map(int,input().split()))

for i in range(len(a)):
    if a[i] == 0:
        print(i+1)
        


Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x = list(map(int, input().split()))
for i in range(5):
    if x[i] == 0:
        ans = i

print(ans)


x = list(map(int, input().split()))
for i in range(5):
    if x[i] == 0:
        ans = i

print(ans)


x = list(map(int, input().split()))
for i in range(5):
    if x[i] == 0:
        ans = i+1

print(ans)


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):

n = []

n = input().split()

for i in range(5):
    n[i] = int(n[i])

print(n)
for i in range(5):
    if n[i] == 0:
        print(i+1)


n = []

n = input().split()

for i in range(5):
    n[i] = int(n[i])

for i in range(5):
    if n[i] == 0:
        print(i+1)

Verdicts: Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
var_list = map(int, input().split(" "))
var_list = list(var_list)
print(var_list)

for i, v in enumerate(var_list):
    print(v)
    if v == 0:
        arg = i

print(arg + 1)


var_list = map(int, input().split(" "))
var_list = list(var_list)
#print(var_list)

for i, v in enumerate(var_list):
    #print(v)
    if v == 0:
        arg = i

print(arg + 1)


Verdicts: Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x,n = map(int,input().split())
P = list(map(int,input().split()))
 
for i in range(101):
  xl = x - i
  xr = x + i
  if xl not in P:
    print(xl)
    break
  elif xr not in P:
    print(xr)
    break

x=list(map(int,input().split()))
print(x.index(0)+1)


Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
a,b = map(int,input().split())
if(b%2!=0):
    print("No")
else:
    z = b//2 
    y = b//4
    if(a>=y and a <=z):
        print('Yes')
    else:
        print('No')


lol= [int(n) for n in input().split()]
for i in range(5):
    if(lol[i] == 0):
        print(i+1)
        break
  	

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x,y=map(int,input().split())
a=0
s=0

for i in range(x+1):
    for k in range(x-i+1):
        a=4*i+2*k

        if a==y:
            s+=1

if s>=1:
    print("Yes")
else:
    print("No")


a=list(map(int,input().split()))

for i in range(len(a)):
    if a[i]==0:
        print(i+1)


Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
a = list(map(int, input()))
print(sum(range(1, 5 + 1)) - sum(a))

a = list(map(int, input().split()))
print(sum(range(1, 5 + 1)) - sum(a))


Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x,y=(int(x) for x in input().split())
a=[int(x) for x in input().split()]
1<=x<=100
0<=y<=100
while y>0:
    if y in a:
        z=y+1
    elif not y in a:
        print('y')
        break
    elif z in a:
        z+=1
    else:
        break
while y<100:
    if y in a:
        b=y-1
    elif b in a:
        b+=1
    else:
        break
c=z-y
d=b-y
if not y in a:
    pass
elif abs(c)<abs(d):
    print(c)
else:
    print(d)


x,y=(int(x) for x in input().split())
if y>x*4:
    print('No')
elif y<x*2:
    print('No')
elif y%2==1:
    print('No')
else:
    print('Yes')


a,b,c,d,e=(int(x) for x in input().split())
if a==0:
    print('1')
elif b==0:
    print('2')
elif c==0:
    print('3')
elif d==0:
    print('4')
elif e==0:
    print('5')


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x=list(map(int,input().split()))
for k in range(5)
    if x[k]=0:
        print(k)
    else:
        continue

x=list(map(int,input().split()))
for k in range(5)
    if x[k]==0:
        print(k+1)
    else:
        continue

x=list(map(int,input().split()))
for k in range(5)
    if x[k]==0:
        print(k)
        exit()
    else:
        continue

x=list(map(int,input().split()))
for k in range(5):
    if x[k]==0:
        print(k+1)
    else:
        continue

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x=list(map(int,input().split()))
for i in range(5):
    if x[i]==0:
        print(i)

x=list(map(int,input().split()))
for i in range(5):
    if x[i]==0:
        print(i+1)

Verdicts: Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
X=map(int,input().split())
for i in range(1,6):
    if X[i]==0:
        print(i)
        exit()

X=list(map(int,input().split()))
for i in range(0,5):
    if X[i]==0:
        print(i+1)
        break


Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
a,l=map(int,input().split())
s=0
if l/a==2 or l/a==4:
	print("YES")
else:
	f=a*4
	if f>l:
		while f>l:
			f=f-2
		if f==l:
			print("YES")			
		else:
			print("NO")
	else:
		print("NO") 

try:
  a=list(map(int,input().split()))
  for i in range(len(a)):
    if a[i]==0:
      print(i+1)
      break
except:
  pass

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x = [0]
for i in range(1,6):
	x.append(int(input("Please input:\n")))
for j in range(1,5):
	if x[j] == 0:
		print(j)

x = list(map(int,input().split()))
for j in range(0,5):
	if x[j] == 0:
		print(j+1)

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
n=list(map(input()))
p=sum(n)
ans=(15-p)
print(ans)

n=list(map(int,input()))
p=sum(n)
f=15
ans=(f-p)
print(ans)

n=list(map(int,input().split()))
p=sum(n)
f=15
ans=(f-p)
print(ans)


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x = list(int, input().split())
for i in range(5):
  if x[i] == 0:
    print(i)
    break

x = list(map(int, input().split()))
for i in range(5):
  if x[i] == 0:
    print(i)
    break

x = list(map(int, input().split()))
for i in range(5):
  if x[i] == 0:
    print(i+1)
    break

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
arr= list(map(int,input().split()))
indx=1
for i in arr:
  if i==0:
    indx+=1
print(indx)
    
    

arr= list(map(int,input().split()))
indx=1
for i in arr:
  if i==0:
    print(indx)
  indx+=1

Verdicts: Wrong Answer

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
L=[int(x) for x in input().split(" ")
print(L.index(0)+1)

L=[int(x) for x in input().split(" ")]
print(L.index(0)+1)
L.clear()

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
def run(x, n, num_array):
    '''
    '''
    if len(num_array) == 0:
        print(x)
        return
    
    i = 1
    while True:
        if x - i not in num_array:
            print(x - i)
            print('x-i: x={}, i={}'.format(x, i))
            return
        if x + i not in num_array:
            print(x + i)
            return
        i += 1
        

if __name__ == '__main__':
    x, n = list(map(int, input().split()))
    num_array = list(map(int, input().split()))
    run(x, n, num_array)

def run(x, n, num_array):
    '''
    '''
    if len(num_array) == 0:
        print(x)
        return
    
    i = 1
    while True:
        if x - i not in num_array:
            print(x - i)
            return
        if x + i not in num_array:
            print(x + i)
            return
        i += 1
        

if __name__ == '__main__':
    x, n = list(map(int, input().split()))
    num_array = list(map(int, input().split()))
    run(x, n, num_array)

def run(x, n, num_array):
    '''
    '''
    if len(num_array) == 0:
        print(x)
        return
    
    i = 0
    while True:
        if x - i not in num_array:
            print(x - i)
            return
        elif x + i not in num_array:
            print(x + i)
            return
        i += 1
        

if __name__ == '__main__':
    x, n = list(map(int, input().split()))
    num_array = list(map(int, input().split()))
    run(x, n, num_array)

def run(x):
    '''
    '''
    for i,v in enumerate(x):
        if v == 0:
            print(i+1)


if __name__ == '__main__':
    x = list(map(int, input().split()))
    run(x)

Verdicts: Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
n = int(input())
a = list(map(int, input().split()))
a.sort()
print(max(a))

a,b,c,d,e = map(int,input().split())

if a == 0:
    print(1)
if b == 0:
    print(2)
if c == 0:
    print(3)
if d == 0:
    print(4)
if e == 0:
    print(5)

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
x = list(map(int, input().split()))
for i in range(x):
    if x[i] == 0:
        print(i)
        break


x = list(map(int, input().split()))
for i in range(x):
    if x[i] == 0:
        print(i+1)
        break


x = list(map(int, input().split()))
for i in range(len(x)):
    if x[i] == 0:
        print(i+1)
        break


Verdicts: Runtime Error

Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
n=int(input())
a=[int(x) for x in input().split()]
a.sort()
max=a[-1]
dp=[False for _ in range(max+1)]

x=[int(x) for x in input().split()]
print(x.index(0)+1)

Verdicts: Runtime Error

Accepted
Problem: We have five variables x_1, x_2, x_3, x_4, and x_5.  The variable x_i was initially assigned a value of i.  Snuke chose one of these variables and assigned it 0.  You are given the values of the five variables after this assignment.  Find out which variable Snuke assigned 0.

Submission attempts (in order):
import sys 
from collections import deque
sys.setrecursionlimit(10**6)
def S(): return sys.stdin.readline().rstrip()
def SL(): return map(str,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().split())
def LS(): return list(sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))

def main():
    x = LS()
    for i in len(x):
        if x[i] == '0':
            print(i)
            exit()
    return

if __name__=='__main__':
    main()

import sys 
from collections import deque
sys.setrecursionlimit(10**6)
def S(): return sys.stdin.readline().rstrip()
def SL(): return map(str,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().split())
def LS(): return list(sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))

def main():
    x = SL()
    ans = 0
    for i in len(x):
        if x[i] == '0':
            print(i)
            exit()
    return

if __name__=='__main__':
    main()

import sys 
from collections import deque
sys.setrecursionlimit(10**6)
def S(): return sys.stdin.readline().rstrip()
def SL(): return map(str,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def IL(): return map(int,sys.stdin.readline().rstrip().split())
def LS(): return list(sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))

def main():
    x = LI()
    for i in range(len(x)):
        if x[i] == 0:
            print(i+1)
            exit()
    return

if __name__=='__main__':
    main()

Verdicts: Runtime Error

Runtime Error

Accepted