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):
if __name__ == '__main__':
    x = map(int, input().strip().split())
    for num, i in enumerate(x):
        if i == 0:
            print(num)
            break


if __name__ == '__main__':
    x = map(int, input().strip().split())
    for num, i in enumerate(x):
        if i == 0:
            print(num + 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):
l=list(map(int,input.split(" ")))
print(l.index("0")+1)

l=list(map(int,input().split(" ")))
#print(l)
print(l.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())) 

lst = N

def func1(lst, value):
    return [i for i, x in enumerate(lst) if x == value]


  
print(func1(lst, 0))



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

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

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):
x = list(map(int,input().split())
         
for i in range(5):
	if x[i] == 0:
    	print(i+1)
  

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

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

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

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

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):
arr = list(map(int, input().split()))


i=1
for num in arr:
    if(num==0):
        print(i)
    else:
        i++;


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


i=1
for num in arr:
    if(num==0):
        print(i)
    else:
        i = 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):
_,*p=map(int,open(0).read().split())
i=0
p.sort()
while(len(p)!=0):
  t=p[0]
  p=[m if m!=t else 0 for m in p[1:] if m%t!=0 or m==t ]
  if 0 in p:p=[i for i in p if i!=0]
  else:i+=1
print(i)

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

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()))
for i in range(len(n)):
 if n[i]==0:
  print(i)
  break

n=list(map(int,input().split()))
for i in range(len(n)):
 if n[i]==0:
  print(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 = list(map(int, input().split()))
d = max(x[2] - x[1], x[1] - x[0])
if x[0] == 0:
    print(x[1] - d)
elif x[1] == 0:
    print(x[2] - d)
elif x[2] == 0:
    print(x[3] - d)
elif x[3] == 0:
    print(x[4] - d)
elif x[4] == 0:
    print(x[3] + d)

x = list(map(int, input().split()))
if x.count(1) == 0:
    print(1)
elif x.count(2) == 0:
    print(2)
elif x.count(3) == 0:
    print(3)
elif x.count(4) == 0:
    print(4)
elif x.count(5) == 0:
    print(5)

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())
A = list(map(int,input().split()))

chofuku_dict = {}
chofuku = []

for a in A:
    if a not in chofuku_dict:
        chofuku_dict[a] = 1
    else:
        chofuku.append(a)
        
chofuku = set(chofuku)

A = list(set(A))
A.sort()

bl = np.array([0] + [1]*A[-1])

ans = 0
for a in A:
    if bl[a] == 0:
        continue
    if a in chofuku:
        continue
    bl[a] = 0
    ans += 1
    bl[2*a::a] = 0
print(ans)

import numpy as np
N = int(input())
A = list(map(int,input().split()))

chofuku_dict = {}
chofuku = []

for a in A:
    if a not in chofuku_dict:
        chofuku_dict[a] = 1
    else:
        chofuku.append(a)
        
chofuku = set(chofuku)

A = list(set(A))
A.sort()

bl = np.array([0] + [1]*A[-1])
ans = 0
for a in A:
    if a in chofuku:
        continue
    if bl[a] == 1:
        bl[a] = 0
        ans += 1
        bl[2*a::a] = 0
print(ans)

x = list(map(int,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):
a,b,c,d,e=int(input().split())
0 2 3 4 5
print(15-a-b-c-d-e)

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

print(15-a-b-c-d-e)

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):
books1= list(map(int, input().split()))
i=0
while(i<len(books)):
  if(books[i]==0):
    print(i)
    break
    i+=1

books1= list(map(int, input().split()))
i=0
while(i<len(books)):
  if(books[i]==0):
    print(i+1)
    break
    i+=1

books1= list(map(int, input().split()))
i=0
while(i<len(books)):
  if(books1[i]==0):
    print(i+1)
    break
    i+=1

books1= list(map(int, input().split()))
i=0
while(i<len(books1)):
  if(books1[i]==0):
    break
  i+=1
print(i+1)


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(reverse=True)
count = 1
for i in range(N-1):
  flag = 1
  for j in range(N-1, i, -1):
    if A[i] % A[j] == 0:
      flag = 0
      break
  if flag:
      count += 1
if N == 1:
  print(0)
elif A[0] == A[1]:
  print(0)
else:
  print(count)

X = list(map(int, input().split()))
for i in range(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):
N, M = map(int,input().split())


for i in range(1, N+1,1):
    
    f = 2 * i + 4 * (N - i)
    if f == M:
        print('Yes')
        break
    elif N == M:
        print('No')
        break
    elif N >= M:
        print('No')
        break
else:
    print('No')


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

count = 0
for i in s:
    if i != 0:
        count+=1
    elif i == 0:
        count+=1
        print(count)


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()))
print(num.index(0))

num = list(map(int, input().split()))
print(num.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):
A = list(map(int, input().split()))
k = A.find(0)
print(k+1)

A = list(map(int, input().split()))
k = A.index(0)
print(k+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):

def main():
    x, n = map(int, input().split(" "))
    p =[]
    dif = 1e2
    ans = 0
    l_a = [i for i in range(101)]
    if n != 0:
        p = list(map(int, input().split(" ")))
    for ele in l_a[::-1]:
        if abs(x - ele) <= dif and ele not in p:
            ans = ele
            dif = abs(x - ele)
    print(ans)
if __name__ == "__main__":
    main()


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

if __name__ == "__main__":
    main()

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 = map(int, input().split())

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


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

for i in range(5):
    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=input().split()
for i in range(5):
  if x[i]=="0":
    print(i)
    exit()

x=input().split()
for i in range(5):
  if x[i]=="0":
    print(i+1)
    exit()

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 = input().split()

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


X = 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):
i = list(map(int, input().split()))
print(i.index(0))

i = list(map(int, input().split()))
print(i.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):
a = list(map(int, input().split()))
print(a.index(0))

a = list(map(int, input().split()))
print(a.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):
a=input().split(' ')
m=len()
b=0
while b<m:
    if a[b]=='0':
        print(b)
    m=m+1

a=input().split(' ')
m=len(a)
b=0
while b<m:
    if a[b]=='0':
        print(b)
    b=b+1

a=input().split(' ')
m=len(a)
b=0
while b<m:
    if a[b]=='0':
        print(b)
    m=m+1

a=input().split(' ')
m=len(a)
b=0
while b<m:
    if a[b]=='0':
        print(b+1)
    b=b+1

Verdicts: Runtime Error

Wrong Answer

Time Limit Exceeded

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):
array = list(map(int, input().split()))
target = 0
print(array.index(target))


array = list(map(int, input().split()))
target = 0
print(array.index(target)+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):
lis=list(input().split( ))
 
for i,x in enumerate(lis):
  if x == 0:
    a = i
print a

lis=list(input())

for i,x in enumerate(lis):
  if x == 0:
    a = i
print a
  
  


lis=list(map(int,input().split()))
for i, x in enumerate(lis):
  if x == 0:
    a = i+1
print (a)

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):
# coding: utf-8



x, y = map(int, input().split())
if y > 4*x or  2*x >y:
        print("No")
elif (4*x - y) % 2 == 0:
        print("Yes")
else:
        print("No")

# coding: utf-8


num_list = []
num_list = input().split()

ans = int(num_list.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):
input = input()

nums = input.split(" ")

for index, num in enumerate(nums):
    if int(num)==0:
        print(index)

input = input()
nums = input.split(" ")
for index, num in enumerate(nums):
    if int(num)==0:
        print(index)

input = input()
nums = input.split(" ")
for index, num in enumerate(nums):
    if int(num)==0:
        print(index+1)

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):
X = list(map(int, input().split()))
for i in range(len(X)):
  if X[i-1] = 0:
    print(i)

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):
abcde=input().split()
for i in range(5):
    if int(abcde[i]) == 0:
        c=i
print(c)
        

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

data=input().split()
c=0
for i in range(5):
    if int(data[i]) == 0:
        c=i
print(c)

data=input().split()
for i in range(5):
    if int(data[i]) == 0:
        c=i
print(c)

data=input().split()
x=int(data[0])
y=int(data[1])
if y%2 != 0:
    print("No")
else:
    if y-2*x > 0:
        if (y-2*x)/2 >= 0 and (y-2*x)/2 <=x:
            print("Yes")
        else:
            print("No")
    else:
        print("No")

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: Wrong Answer

Wrong Answer

Wrong Answer

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):
a=map(int,input().split())
for i in range(len(a)):
  if a[i]!=i:
    print(a[i])

a=list(map(int,input().split()))
for i in range(5):
  if a[i]!=i+1:
    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):
def check(a):
  for i in a:
    if i==0:
      print(a.index(i))

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

def check(a):
    for i in a:
        if i==0:
            ans = a.index(i)+1
            return ans

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

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()))

cnt = 0
for i,s in enumerate(l):
  
  if s == 0:
    print(i)
    exit()
  else:
    pass


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

cnt = 0
for i,s in enumerate(l):
  
  if s == 0:
    print(i+1)
    exit()
  else:
    pass



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 sys
a = map(int, sys.stdin.readline().rstrip().split(' '))

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

import sys
a = list(map(int, sys.stdin.readline().rstrip().split(' ')))
 
for i in range(len(a)):
  if a[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):
def binary_search(list, item):
  
  low = 0
  high = len(list) - 1
  
  while low <= high:
    # ... check the middle element
    mid = (low + high) // 2
    guess = list[mid]
    if guess == item:
      return mid
    if guess > item:
      high = mid - 1
    else:
      low = mid + 1
  return None

my_list = [1,2,0,4,5]
print(binary_search(my_list,5)) # => 1

#

S = input()
n = 0
nums = S.split(" ")
for index, num in enumerate(nums):
    if int(num) == 0:
        n = index + 1
 
 
 
print(n)

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):
x1, x2, x3, x4, x5 = int(input().split())
x = list()
x.append(x1)
x.append(x2)
x.append(x3)
x.append(x4)
x.append(x5)
ans = 0
for i, j in enumerate(x):
  if i+1 != j:
  	ans = j
print(j)

x1, x2, x3, x4, x5 = input().split()
x = list()
x.append(x1)
x.append(x2)
x.append(x3)
x.append(x4)
x.append(x5)
ans = 0
for i, j in enumerate(x):
  if int(j) == 0:
  	ans = j
print(int(ans))

x1, x2, x3, x4, x5 = int(input().split())
x = list()
x.append(x1)
x.append(x2)
x.append(x3)
x.append(x4)
x.append(x5)
ans = 0
for i, j in enumerate(x):
  if i+1 != j
  ans = j
print(j)


x1, x2, x3, x4, x5 = int(input().split())
x = list()
x.append(x1)
x.append(x2)
x.append(x3)
x.append(x4)
x.append(x5)
ans = 0
for i, j in enumerate(x):
  if i+1 != j:
  	ans = j
print(type(0 2 3 4 5),j)

x1, x2, x3, x4, x5 = int(input().split( ))
x = []
x.append(x1)
x.append(x2)
x.append(x3)
x.append(x4)
x.append(x5)
ans = 0
for i, j in enumerate(x):
  if i+1 != j:
  	ans = j
print(type(0 2 3 4 5),j)

x1, x2, x3, x4, x5 = input().split()
x = list()
x.append(x1)
x.append(x2)
x.append(x3)
x.append(x4)
x.append(x5)
ans = 0
for i, j in enumerate(x):
  if int(j) == 0:
  	ans = i+1
print(int(ans))


Verdicts: Runtime Error

Wrong Answer

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):
li = list(map(int,input().split()))
for i in range(5):
  if li[i]:
    print(i+1)

li = list(map(int,input().split()))
for i in range(5):
  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):
p = list(map(int,input().split()))

for i in range(5):
  if p[i] == 0:
    x = i
    
 print(x)

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

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

for i in range(101):
  if i not in p:
    s.append(i)

    
if s == [0]:
  print(0)

else:
  

  k = abs(x-s[0])
  del s[0]
  for j in range(100-n):
    if abs(x-s[j]) < k:
      k = abs(x-s[j])
    else:
      answer = s[j-1]
      break
  else:
    answer = s[100-n-1]
  print(answer)




    

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

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


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):
l=map(int,input().split())
print(l.index(0))

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

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

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):
x,y = map(int, input().split())

for i in range(x + 1):
  legs = 2 * i + 4 * (x - i)
  
  if legs == y:
    print("Yes")
    break
    
  else:
    print("No")


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)
  
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):
numlist = input().split()
index = 0
for num in numlist:
    if int(num) == 0:
        print(index)
        break
    index += 1

numlist = input().split()
index = 1
for num in numlist:
    if int(num) == 0:
        print(index)
        break
    index += 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):
from numba import jit

@jit(cache = True)
def solve(i,j,a):
    k=False
    sc=0
    for c in a:
        if c>j:
            break
        elif c>j//2 and c<j:
            continue
        elif c==j:
            sc+=1
            if sc>=2:
                k=True
                break
        else:
            if j%c==0:
                k=True
                break
    return k

n=int(input())
a=sorted(list(map(int,input().split())))
ans=0
for i,j in enumerate(a):
    if solve(i,j,a):
        continue
    else:
        ans+=1
print(ans)

x=list(map(int,input().split()))
for i,j in enumerate(x):
	if j==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):
print(list(map(int,input().split()).index(0) + 1)


print(list(map(int,input().split()).index(0))


print(list(map(int,input().split())).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):
from heapq import heapify,heappush,heappop
import sys

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

S = []
PQs = [[] for _ in range(200000)]
T = [0]*200000 
M = []
for n in range(N):
  a, b = map(int,input().split())
  S.append([a,b-1])
  #print(PQs[0:10])
  PQs[b-1]=PQs[b-1]+[(-a,n)]
  #print(PQs[0:10])

for b in range(200000):
  if len(PQs[b])>0:
    heapify(PQs[b])
    M.append((-PQs[b][0][0],b,0))
heapify(M)
          
for q in range(1,Q+1):
  c, d = map(int,input().split())
  d = d-1
  d_prv = S[c-1][1]
  S[c-1][1] = d 
  #print(S)
 
  #print(d_prv)
  #print(d)
  
  
  heappush(PQs[d],(-S[c-1][0],c-1))
  #print(S[P[d][0][1]][1])
  #print(d)
  #print(PQs[0:4]) 
  while d != S[PQs[d][0][1]][1]:
    heappop(PQs[d])
  heappush(M,(-PQs[d][0][0],d,q))
  T[d] = q 
  #print(PQs[0:4])
  
  
  if len(PQs[d_prv])>0:
    while d_prv != S[PQs[d_prv][0][1]][1]:
      #print(S[PQs[d_prv][0][1]])
      heappop(PQs[d_prv])
      if len(PQs[d_prv]) == 0:
        break
        
    if len(PQs[d_prv]) > 0:  
      heappush(M,(-PQs[d_prv][0][0],d_prv,q))
    T[d_prv] = q 

  #print(M)   	
  
  while M[0][2] != T[M[0][1]]:
    heappop(M)
    #print(M)
  
  
  print(M[0][0]) 
  #print(M)

x = list(map(int, input().split()))
ans = 0
for xi in x:
  ans += 1
  if xi == 0:
    print(ans)
    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):
l=list(map(int,input()))
print(l.index(0))

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

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

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):
n = list(map(int,input().split()))
for i in range(n):
  if n[i] == 0:
    print(i)
    break

n = [int(x) for x in input().split()]
for i in range(len(n)):
  if n[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):
from sys import stdin

X = stdin.readline().strip().split(" ")

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

from sys import stdin
 
X = stdin.readline().strip().split(" ")
 
n = 0
for i in range(len(X)):
  if X[i] == "0":
    n = i+1
    break
print n

from sys import stdin
 
X = stdin.readline().strip().split(" ")
 
n = 0
for i in range(len(X)):
  if X[i] == "0":
    n = i+1
    break
print(n)

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 = list(map(int,input().split()))


def index(a, x):
    if x in a:
        return a.index(x)

print(index(a, 0))

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


def index(a, x):
    if x in a:
        return a.index(x)

aa = index(a, 0)
print(aa + 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):
print(input().split().find('0')+1)

print(input().split().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(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):
arr = map(int, input().split())
for i in range(len(arr)):
  if (arr[i] == 0):
    print(i+1)

arr = list(map(int, input().split()))
for i in range(len(arr)):
  if (arr[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):
rint(15 - sum(list(map(int, input().split()))))

x = list(map(int, input().split()))
if x[0] == 0: print(1)
if x[1] == 0: print(2)
if x[2] == 0: print(3)
if x[3] == 0: print(4)
if x[4]: print(5)

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

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):
x, n = map(int, input().split())
p = list(map(int, input().split()))
a = 0
ans = ''
p.sort()
print(p)
while ans == '':
  if len(p) == 0:
    ans = x
  elif x - a not in p:
    ans = x - a
  elif x + a not in p:
    ans = x + a
  else:
    a += 1
print(ans)

l = list(map(int, input().split()))
print(l.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=input()
list = A.split()
answer = 0
for i in range (5):
  list[i] = int(list[i])
  if list[i] == 0:
    answer = i+1
print(answer)
print(list)

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



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(map(int, input().split()))
for i in range(len(x)):
  if x[i] == 0:
    print(x + 1)

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 = {xn: idx for idx, xn in enumerate(map(int,input().split()))}
print(x[0])

for idx, xn in enumerate(map(int,input().split())):
  if xn == 0:
    print(idx+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):
a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
   print(str(i))
 else:
   pass

a,b=map(int,input().split())
for i in range(a):
  for j in range(b):
   if i+j=a and i*2+4*j=b:
    print("Yes")
     break
   else:
     print("No")

a=[]
a=input().split()
for i in range(0,4):
 if a[i]==0:
  print(i)
 else:
  pass

a=[]
a=map(int, input().split())
for i in a:
 if a[i]==0:
   print(i)
 else:
  pass

a=[]
a=input().split()
for i in range(5):
 if a[i]=='0':
  print(str(int(i)))
 else:
  pass


a,b=map(int,input().split())
for i in range(a):
  for j in range(b):
   if i+j==a and i*2+4*j==b:
    print("Yes")
    break
   else:
     print("No")

s=[]
x,n=map(int,input().split())
if n==0:
  print(x)
  exit()
  
s=list(map(int,input().split()))
slist=sorted(s)
out=0
for i in range(0,1000):
  out=0
  for j in range(n):
    if slist[j]==x-i:
      out=1
  if out !=1:
   print(x-i)
   exit()
  out=0
  for k in range(n):
    if slist[k]==x+i:
      out=1
  if out !=1:
    print(x+i)
    exit()

a=int(input().split())
for i in range(4):
 if a[i]==0:
  print(i)
 else:
  pass

a=[]
a=input().split()
print(a)
for i in range(0,4):
 if a[i]=='0':
  print(i)
 else:
  pass


a=[]
a=int(input().split())
for i in range(4):
 if a[i]==0:
  print(i)
 else:
  pass



s=[]
x,n=map(int,input().split())
s=list(map(int,input().split()))
slist=sorted(s)

if n==0:
  print(x)
  exit()
for i in range(0,101):
  for j in range(n):
    if slist[j]==x-i:
        flag=1
    if slist[j]==x+i:
        flag=2
            
  if flag==2:
    flag=0
  elif flag==0:
    print(x-i)
    exit()
  elif flag==1:
    print(x+i)
    exit()


a=[]
a=input().split()
for i in range(0,4):
 if a[i]=='0':
  print(i)
 else:
  pass


a=[]
a=int(input().split())
for i in a:
 if a[i]==0:
   print(i+1)
 else:
  pass

a=int(input().split())
for i in range(4):
 if a[i]==0:
  print(i)
 else
  pass

a=[]
a=map(int, input().stlip())
for i in a:
 if a[i]==0:
   print(i)
 else:
  pass

s=list(map(int,input().stlip())
for i in s:
  if i==0:
     print(i+1)
     exit()
  else:
     pass

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

a=[]
a=input().split()
print(a)
for i in range(0,4):
 if a[i]=='0':
  print(i+1)
 else:
  pass


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

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Wrong Answer

Accepted
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 Y % 2 == 0 and Y <= 4*X and Y >= 2*X:
    print('Yes')
else:
    print('No')

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,n=map(int,input().split())
try:
    p=list(map(int,input().split()))
    p.sort()
    min=abs(p[0])
    for i in range(p[0],p[n-1]):
        if i not in p:
            if min>abs(i-x):
                min=abs(i-x)
                ans=i
except:
    ans=x
print(ans)

x,n=map(int,input().split())
try:
    p=list(map(int,input().split()))
    mina=100
    for i in range(min(p),max(p)):
        if i not in p:
            if mina>abs(i-x):
                mina=abs(i-x)
                ans=i
                if ans>x and (x-mina) not in p:
                    ans=x-mina
except:
    ans=x

print(ans)

x=list(map(int,input().split()))
count=0
for i in x:
    count+=1
    if i==0:
        print(count)
        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):
rt=list(map(in(t,input().split()))
for i in range(0,4):
        if(rt[i]==0):
        	print(i+1)
        	break
        

rt=list(map(int,input().split()))
for i in range(5):
        if(rt[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,b,c,d,e = map(int,input(). split ())
x = [a,b,c,d,e]
for i in x:
    if i * 1 == 0:
        print(i)

a,b,c,d,e = map(int,input(). split ())
x = [a,b,c,d,e]
for i in x:
    if i * 1 == 0:
        print(x.index(i))

a,b,c,d,e = map(int,input(). split ())
for i in 5:
    if i * 1 == 0:
        print(i)

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

Verdicts: 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):

def main():
  a = map(int,input().split())
  ans = 0
  for i in range(5):
      ans += a[i]
  print(15 - ans)
main()

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

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


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

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

a = map.int(input().split())
print(15 - sum(a))


def main():
  a = list(map(int,input().split()))
  ans = 0
  for i in range(5):
      ans += a[i]
  print(15 - ans)
main()

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):
x1,x2,x3,x4,x5 = map(int, input().split())

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


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

if x1 == 0:
    print(1)
elif x2 == 0:
    print(2)
elif x3 == 0:
    print(3)
elif x4 == 0:
    print(4)
elif x5 == 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().stlip()))
for i in range(5):
  if x[i] == 0:
    print(i+1)


x = list(map(int,input().split()))
for i in range(5):
  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())
ans = 'No'
for a in range(X + 1):
    b = X - a
    if 2 * a + 4 * b == Y:
        ans = 'Yes'
        print(ans)


X = list(map(int, input().split()))
if X[0] == 0:
    print(1)
elif X[1] == 0:
    print(2)
elif X[2] == 0:
    print(3)
elif X[3] == 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):
lst=[]
str = input()
lst = str.split(' ')
i = lst.index(0)
print(i+1)

lst=[]
str = input()
lst = str.split(' ')
for i in lst:
  if i==0:
    print(i+1)

lst=[]
str = input()
lst = str.split(' ')
i = lst.index('0')
print(i+1)


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):
import numpy as np

def main():

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

        return var.index(0)+1

def main():

        var = list(map(int, input().split()))
        if 1 not in var:
                ans = 1
        elif 2 not in var:
                ans = 2
        elif 3 not in var:
                ans = 3
        elif 4 not in var:
                ans = 4
        else:
                ans = 5

        return ans

def main():

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

        if 1 not in var:
                ans = 1
        elif 2 not in var:
                ans = 2
        elif 3 not in var:
                ans = 3
        elif 4 not in var:
                ans = 4
        else:
                ans = 5

        return ans

if __name__=="__main__":
        ans = main()
        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):
x = list(map(int, input().split()))
print(10 - sum(x))


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

for i in range(1, X+1):
    for j in range(1, X-i):
        if 2*i + 4*j == Y:
            print('Yes')
            exit(0)
print('No')


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


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):
import sys
line = sys.stdin.readlines()[0].rstrip("\n")
print(line.split(" ").index("0", 1))


import sys
line = sys.stdin.readlines()[0].rstrip("\n")
nums = line.split(" ")
print(nums.index("0") + 1)


Verdicts: Runtime Error

Accepted