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

ans = x.index("0")
print(ans)

x = input().split()

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

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):
def main():
  for i,n in enumerate(list(map(int,input().split()))):
  	if n == 0:
    	return i + 1

if __name__ == '__main__':
  main()

def main():
  for i,n in enumerate(list(map(int,input().split()))):
    if n == 0:
      return i + 1

if __name__ == '__main__':
  main()

def main():
  for i,n in enumerate(map(int,input().split())):
  	if n == 0:
    	return i

if __name__ == '__main__':
  main()

def main():
  nums = list(map(int,input().split()))
  for i,n in enumerate(nums):
    if n == 0:
      return i + 1

if __name__ == '__main__':
  print(main())

Verdicts: 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):
a = list(map(int, input().split()))
cnt = 1
for i in a:
  if a == 0:
    print(cnt)
    cnt += 1

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

l=list().split()
print(1+l.index("0"))


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


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()]
c=1
for i in arr:
 if i==0:
  print(c)
 else:
  c+=1

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

for i,j in enumerate(len(arr)):
    if j==0:
        print(i)



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

if arr[0]==0:
  print(1)
elif arr[1]==0:
  print(2)
elif arr[2]==0:
  print(3)
elif arr[3]==0:
  print(4)
else:
  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):

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

if a==0:
    print(1)
elif b==0:
    print(2)
elif c==0:
    print(3)
elif d==0:
    print(4)
else:
    print(3)



a,b,c,d,e=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: 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):
l = int(input())
n = [int(i) for i in input().split()]
u = n.copy()
n.sort()
u.sort(reverse=True)

counter = 0

for j in range(l):
  for i in range(l):
    if n[i] == u[j]:
      pass
    elif u[j] % n[i] == 0:
      counter += 1
      break
    else:
      pass

print(l - counter)

l = input().split()

for i in range(5):
  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):
z = 1
x = []
while z != 5:
  x.append[input()]
  z+=
y = 0
while y!= 5:
  if x[y] == 0:
    print(y+1)
  else:
    y+=1
    continue

x = [0,2,3,4,5]
y = 0
for i in x:
	if x[y] == "0":
		print(y+1)
	else:
		print("1")
	y +=1


x = []
z = 1
while z != 6:
	print("Enter number"+z,":")
	x.append(input())
	z+=1
y = 0
for i in x:
	if x[y] == "0":
		print(y+1)
	else:
		print("1")
	y +=1


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

Verdicts: 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):
a = input().split()
for i in range(4):
  if a[i] = 0:
    print(i)

a = input().split()
for i in range(4):
  if i = 0:
    print(i)

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

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

ins = list(map(int, input().split()))
if ins[0] == 0:
	print(1)
elif ins[1] == 0:
	print(2)
elif ins[2] == 0:
	print(3)
elif ins[3] == 0:
	print(4)
elif ins[4] == 0:
	print(5)
else :
  print("something wrong.")

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

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

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

count=0
for i in l:
  for j in l:
    if i%j==0:
      if i!=j:
        count+=1
        break
      
print(n-count)

lis=list(map(int,input(),split()))

print(lis.index(0)+1)

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

print(lis.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):
x = list(map(int, input.split()))
print(15 - sum(x))

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


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

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

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


Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
x,y=map(int,input().split())
if 2x<=y<=4x and y%2==0:
  print("Yes")
else:
  print("No")

x,y=map(int,input().split())
if 2*x<=y<=4*x and y%2==0:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

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

if X % 2 == 0 and 2 * X < Y < 4 * X:
    print("Yes")
else:
    print("No")


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

if Y % 2 == 0 and 2 * X <= Y <= 4 * X:
    print("Yes")
else:
    print("No")



Verdicts: Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
x,y = map(int,input().split(" "))
flag=0
for i in range(x+1):
    j=x-i
    if 4*i+2*j==y:
        flag=1

if flag==0:
    print("no")
else:
    print("yes")

x,y = map(int,input().split(" "))
flag=0
for i in range(x+1):
    j=x-i
    if 4*i+2*j==y:
        flag=1

if flag==0:
    print("No")
else:
    print("Yes")

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

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

if X*2>Y or Y>X*4:
  print('No')
elif not Y%2==0:
  print('No')
elif 50 < X:
  print('No')
elif Y%6==0:
  if Y == X*6:
    print('Yes')
  else:
    print('No')
elif Y%3==0:
  if Y == X*3:
    print('Yes')
  else:
    print('No')
elif Y%2==0:
  if Y == X*2:
    print('Yes')
  else:
    print('No')

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

if X*2>Y or Y>X*4:
  print('No')
elif not Y%2==0:
  print('No')
elif 50 < X:
  print('No')
a = X
b = 0
for i in range(X+1):
  if Y == a*2 + b*4:
    print('Yes')
    break
  else:
    a -= 1
    b += 1

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
x,y = map(int,input().split())
if 2*x <= y <= 4x and y %2 =0:
  print("Yes")
else:
  print("No")

x,y = map(int,input().split())
if 2*x <= y <= 4x and y %2 =0:
  print("Yes")
else:
  print("No")

x,y = map(int,input().split())
if 2*x <= y <= 4*x and y %2 == 0:
  print("Yes")
else:
  print("No")

Verdicts: Runtime Error

Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
x,y = map(int,input().split())
if y % 2 != 0:
    print("NO")
elif y % 2 == 0:
    s  = "A"
    for i in range(0,101):
        for j in range(0,101):
            if 2*i + 4*j == y and i + j == x:
                print("YES")
                exit()
            else:
                s = "NO"
    print(s)

x,y = map(int,input().split())
if y % 2 != 0:
    print("No")
elif y % 2 == 0:
    s  = "A"
    for i in range(0,101):
        for j in range(0,101):
            if 2*i + 4*j == y and i + j == x:
                print("Yes")
                exit()
            else:
                s = "No"
    print(s)

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
L, R = map(int,input().split())
for a in range(L):
    L1=L-a
    if R==L*2+L1*4:
        han="Yes"
    else:
        han="No"
print(han)

L, R = map(int,input().split())
for a in range(L+1):
    L1=L-a
    if R==a*2+L1*4:
        han="Yes"
        break
    else:
        han="No"
print(han)

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
line = input()
line = line.rstrip().split(' ')

total = int(line[0])
total_leg = int(line[1])

kame = (total_leg - total * 2) / 2
tsuru = total - kame

print(tsuru, kame)

if total_leg % 2 == 1:
    print('No')
elif (0 <= kame and kame <= total) and (0 <= tsuru and tsuru <= total):
    print('Yes')
else:
    print('No')


line = input()
line = line.rstrip().split(' ')

total = int(line[0])
total_leg = int(line[1])

kame = (total_leg - total * 2) / 2
tsuru = total - kame

if total_leg % 2 == 1:
    print('No')
elif (0 <= kame and kame <= total) and (0 <= tsuru and tsuru <= total):
    print('Yes')
else:
    print('No')


Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
x,y=map(int,input().split())
if 2*x<=y and y<=4*x and y%2==0 and x%2==0:
  print("Yes")
else:
  print("No")

x,y=map(int,input().split())
if 2*x<=y and y<=4*x and y%2==0:
  print("Yes")
else:
  print("No")

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

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

Verdicts: Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
import sys
x,y = map(int,input().split())if y % x != 0:
    print('No')
    sys.exit()
if 2**x >= y:
    print('Yes')
else:
    print('No')

import sys
x,y = map(int,input().split())
if y % x != 0:
    print('No')
    sys.exit()
if 2**x >= y:
    print('Yes')
else:
    print('No')

import sys

x,y = map(int,input().split())
if y % 2 != 0:
    print('No')
    sys.exit()

if 4 * x < y:
    print('No')
    sys.exit()

if 4 * x >= y:
    if 2 * x <= y:
        print('Yes')
    else:
        print('No')

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
a=34

if a==int
print(6)

from fractions import Fraction

a=input()
a=a.split()

X=int(a[0])
Y=int(a[1])

x=Fraction(4*X-Y,2)
y=Fraction(Y-2*X,2)

if x-round(x)==0 and x >= 0:
  if y-round(y)==0 and y >= 0:
    print("Yes")
  else :
    print("No")
else:
  print("No")

Verdicts: Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
X, Y = [int(v) for v in input().rstrip().split()]

r = 'No'
if Y % 2 == 0:
	cranenum = 2 * X
	if cranenum >= Y:
		r = 'Yes'

print(r)


X, Y = [int(v) for v in input().rstrip().split()]

r = 'No'
if Y % 2 == 0:
	for n in range(X + 1):
		cn = n
		tn = X - cn
		if cn * 2 + tn * 4 == Y:
			r = 'Yes'
			break

print(r)


Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
X,Y=map(int, input().split())
if(Y%2==1):
  print("NO")
  exit()
if(2*X-Y//2<0):
  print("NO")
if(Y//2-X<0):
  print("NO")

X,Y=map(int, input().split())
if(Y%2==1):
  print("No")
  exit()
if(2*X-Y//2<0):
  print("No")
  exit()
if(Y//2-X<0):
  print("No")
  exit()
print("Yes")  

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
X = input()
Y = input()
T = false
for i in range(1,X+1):
  p = X-i
  J= 2*i + 4*p
  if J =Y:
    T = true
if T == true:
  print("Yes")
  else print("No")

X,Y = map(int,input().split())
T = False
for i in range(0,X+1):
  p = X-i
  J= 2*i + 4*p
  if J ==Y:
    T = True
if T == True:
  print("Yes")
else: print("No")


Verdicts: Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

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

if y % 2 == 0 and y >= x*2 and y <= x*4:
    print('Yes')
else:
    print('No')


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

if y % 2 == 0 and y >= x*2 and y <= x*4:
    print('Yes')
else:
    print('No')


Verdicts: Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

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

if Y%2 == 1:
    print('No')
    exit()
else:
    if 0 > (Y-2*X)/2 or  (Y-2*X)/2 < X:
        print('No')
    else:
        print('Yes')


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

if Y%2 == 1:
    print('No')
    exit()
else:
    if 2X <= Y <= 4*X:
        print('Yes')
    else:
        print('No')


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

if Y%2 == 1:
    print('No')
    exit()
else:
    if 2*X <= Y <= 4*X:
        print('Yes')
    else:
        print('No')


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
def main():
    sum, leg = map(int, input().split())
    
    if leg // sum == 2 and leg % sum == 0:
        print('Yes')
        return
    elif leg / sum == 4 and leg % sum == 0:
        print('Yes')
        return

    for i in range(sum):
        if i == 0:
            i = i + 1
        for x in range(sum - i):
            crane = i * 2
            turtle = x * 4
            total = crane + turtle
            if total == leg:
                print('Yes')
                return
    print('No')
    
main()

def main():
    sum, leg = map(int, input().split())
    
    if leg / sum == 2:
        print('Yes')
        return
    elif leg / sum == 4:
        print('Yes')
        return

    for i in range(sum + 1):

        x = sum - i

        crane = i * 2
        turtle = x * 4
        total = crane + turtle
        if total == leg:
            print('Yes')
            return
    print('No')
    
main()

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
X, Y = map(int, input().split())
for i in range(X+1):
  if (Y - 4*(i))/2 == X - i:
    print("Yes")
else:
  print("No")

X, Y = map(int, input().split())
for i in range(X):
  if (Y - 4*(i+1))/2 == X - (i + 1):
    print("Yes")
else:
  print("No")

import sys
X, Y = map(int, input().split())
for i in range(X+1):
  if (Y - 4*(i))/2 == X - i:
    print("Yes")
    sys.exit()
    
print("No")

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
x, y = map(lambda x: int(x), input().split(' '))

if(x * 2 <= y and x * 4 >= y and y % 2 == 0):
    print("YES")
else:
    print("NO")

x, y = map(lambda x: int(x), input().split(' '))

if(y % 2 == 1):
    print("No")
    exit(0)

if(y < 2*x):
    print("No")
    exit(0)

if(y > x * 4):
    print("No")
    exit(0)

print("Yes")

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
a,b = [int(tmp) for tmp in input().split()]
a = a*2
y = (b-a)//2
x = (a-2*y)//2
if x<0 or y<0 or y%2==1 :
	print("No")
else :
	print("Yes")


a,b = [int(tmp) for tmp in input().split()]
a = a*2
y = (b-a)//2
x = (a-2*y)//2
if x<0 or y<0 or b%2==1 :
	print("No")
else :
	print("Yes")


Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
X, Y = map(int,input().split())
y = Y/2
if X-y > 0:
    if ((X-y)*4+y*2) == Y:
        print('Yes')
elif X*2 == Y or X*4 == Y:
    print('Yes')
else:
    print('No')



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

add = 0
flag =0

for i in range(X+1):
    add = i*4 + (X-i)*2
    if add == Y:
        print('Yes')
        flag = 1
        break

if flag == 0:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
a = list(map(int,input().split()))
ans = False
for i in range(a[0]):
  if (a[1] - i * 4 ) //2 == a[0]:
    ans = True
    break
if ans:
  print('Yes')
else:
  print('No')

a = list(map(int,input().split()))
ans = False
if (a[1] % 6 % 2 == 0) and (a[1] // 6 *2 + a[1] % 6 //2 == a[0]):
  ans = True
elif (a[1] % 2 == 0) and (a[1] //2 == a[0]):
  ans = True
elif (a[1] % 4 == 0) and (a[1] //4 == a[0]):
  ans = True
else:
  for i in range(a[0]):
    if ((a[1] - i * 4) %2 == 0) and((a[1] - i * 4) //2 + i) == a[0]:
      ans = True
    elif((a[1] - i * 4) %4 == 0) and ((a[1] - i * 2) //4 + i) == a[0]:
      ans = True
if ans:
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
import sys

if __name__ == "__main__":
  for line in sys.stdin:
    anis, legs = line.split(' ')
    if legs % 2 == 1 or legs > anis * 4 or legs < anis * 2:
      print("No")
    else:
      print("Yes")
      
          

import sys

if __name__ == "__main__":
    for line in sys.stdin:
        anis, legs = map(int, line.split(' '))
        if legs % 2 == 1 or legs > anis * 4 or legs < anis * 2:
            print("No")
        else:
            print("Yes")

Verdicts: Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

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

if 2 <= y <= 4 and (x*y) %2 == 0:
    print('Yes')
else:
    print('No')

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

if x*2 <= y <= x*4 and y%2 == 0:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
num, legs = map(int, input().split())
BIRD = 2
TURTLE = 4

bird_lst = [BIRD * n for n in range(num)]
print(bird_lst)
turtle_lst = [TURTLE * n for n in range(num)]
turtle_lst.sort(reverse=True)
print(turtle_lst)

legs_lst = [b + t for b, t in zip(bird_lst, turtle_lst)]
print(legs_lst)

if legs in legs_lst:
  print("Yes")
else:
  print("No")

num, legs = map(int, input().split())
BIRD = 2
TURTLE = 4

if legs % 2:
  print("No")
  exit(0)

bird_lst = [BIRD * n for n in range(num+1)]
turtle_lst = [TURTLE * n for n in range(num+1)]
turtle_lst.sort(reverse=True)

legs_lst = [b + t for b, t in zip(bird_lst, turtle_lst)]

if legs in legs_lst:
  print("Yes")
else:
  print("No")


Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
x,y = map(int,input().split())
for i in range(x+1):
  z = x - i
if(i*2+z*4 == y):
  print('Yes')
  exit()
print('No')


x,y = map(int,input().split())
if((x == 1 and y == 2) or (x == 1 and y == 4)):
  print('Yes')
elif (x>3):
    for i in range(0,y):
        if(x*2+i == y):
            print('Yes')
            break
        else :
            print()          
else :
    print('No')

x,y = map(int,input().split())
if((x == 1 and y == 2) or (x == 1 and y == 4)):
  print('Yes')
elif(x>0):
  for i in range(0,101):
    z = 2
    if(x*2+i*z == y):
      print('Yes')
    else:
      print('No')
      break            
else :
  print('No')


x,y = map(int,input().split())
for i in range(x+1):
  z = x - i
  if(i*2+z*4 == y):
    print('Yes')
    exit()
print('No')


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
import sys

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

for t in range(51):
    if Y - t*2 -(X-t)*4 == 0:
        print("yes")
        sys.exit()
print("no")

import sys

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

for t in range(51):
    if Y - t*2 -(X-t)*4 == 0:
        print("Yes")
        sys.exit()
print("No")

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
def main():
    n, legs = [int(x) for x in input().split(" ")]

    if n % 2 != 0:
        print("No")
        exit(0)

    max = n / 2
    min = int(n / 4) + (n % 4) / 2

    print("Yes" if legs >= min and legs <= max else "No")

main()


def main():
    n, legs = [int(x) for x in input().split(" ")]

    if n % 2 != 0:
        print("No")
        exit(0)

    max = n / 2
    min = int(n / 4) + n % 4

    print("Yes" if legs >= min and legs <= max else "No")

main()

def main():
    n, legs = [int(x) for x in input().split(" ")]

    if legs % 2 != 0:
        print("No")
        exit(0)

    max = legs / 2
    min = int(legs / 4) + (legs % 4) / 2

    print("Yes" if n >= min and n <= max else "No")

main()


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
    x, y = map(int,input().split())
     
    for i in range(x+1):
        if 4 * i + 2*(x - i) == y:
            print('Yes')
            exit()
     
    print('No')

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

for i in range(x+1):
    print(i)
    if 4 * i + 2*(x - i) == y:
        print('Yes')
        exit()

print('No')

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

if 2*x >= y and (4*x - y) % 2 == 0:
    print('Yes')
else:
    print('No')

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

for i in range(x + 1):
    if 4 * i + 2 * (x - i) == y:
        print('Yes')
        exit()

print('No')

Verdicts: Runtime Error

Wrong Answer

Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

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

Verdicts: Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
x,y = input().split()

if x*4<y and y%2 ==0:
  print("Yes")
else:
  print"No")

x,y = input().split()

x=int(x)
y=int(y)
 
if x*4>y and y<x*2 and y%2 == 0:
  print("Yes")
else:
  print("No")

x,y = input().split()

if x*4<y and y%2 ==0:
  print("Yes")
else:
  print("No")

x,y = input().split()

if x*4>y and y<x*2 and y%2 == 0:
  print("Yes")
else:
  print("No")

x,y = input().split()

if x*4>y and y%2 ==0:
  print("Yes")
else:
  print("No")

x,y = int(input().split())
 
if x*4>y and y<x*2 and y%2 == 0:
  print("Yes")
else:
  print("No")

x,y = input().split()

if x*4>y and y%2 == 0:
  print("Yes")
else:
  print("No")

x,y = input().split()
 
x=int(x)
y=int(y)
count = 0
for i in range(x+1):
  if 2*i+4*(x-i) == y:
    print("Yes")
    count = 1

if count == 0:
	print("No")

Verdicts: Runtime Error

Wrong Answer

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
def nums (X,Y):
   B = (X*4-Y)/(4-2)
    D = X-B
    if B + D == X and Y == (B*2 + D*4):
          print("True")
    else:
           print("False")


def nums (X,Y):
   B = (X*4-Y)/(4-2)
   D = X-B
   if B + D == X and Y == (B*2 + D*4):
          print("True")
   else:
           print("False")


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

a = (4*x - y)/2
b = (y-2*x)/2
if y % 2 == 0 and a >= 0 and b >= 0:
    print("Yes")
else:
    print("No")
    

Verdicts: Runtime Error

Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

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

if y % 2 == 1:
  print("NO")
elif x * 2 >= y and x * 4 <= y:
  print("YES")
else:
  print("NO")
    

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

if y % 2 == 1:
  print("NO")
elif x == 0 and y != 0:
  print("NO")
elif x != 0 and y == 0:
  print("NO")
elif x * 2 >= y and x * 4 <= y:
  print("YES")
else:
  print("NO")

  

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

if y % 2 == 1:
  print("No")
elif x * 2 >= y and x * 4 <= y:
  print("Yes")
else:
  print("No")
    

x, y = map(int, input().split())
#print(x,y)
if y % 2 == 1:
  print("No")
elif x == 0 and y != 0:
  print("No")
elif x != 0 and y == 0:
  print("N0")
elif x * 2 <= y and x * 4 >= y:
  print("Yes")
else:
  print("No")

  

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
def iput(): return int(input())
def mput(): return map(int, input().split())
def lput(): return list(map(int, input().split()))

def solve():
    x, y = mput()
    hoge = (x * 4 - y) / 2
    if hoge % 1 == 0 and hoge >= 0:
        if (x-hoge) % 1 == 0:
            print("Yes")
    else:
        print("No")
    print(hoge)
    return 0

if __name__ == "__main__":
    solve()


def iput(): return int(input())
def mput(): return map(int, input().split())
def lput(): return list(map(int, input().split()))

def solve():
    x, y = mput()
    hoge = (x * 4 - y) / 2
    if hoge % 1 == 0 and hoge >= 0:
        if (y-hoge) % 1 == 0:
            print("Yes")
    else:
        print("No")
    print(hoge)
    return 0

if __name__ == "__main__":
    solve()


def iput(): return int(input())
def mput(): return map(int, input().split())
def lput(): return list(map(int, input().split()))

def solve():
    x, y = mput()
    hoge = (x * 4 - y) / 2
    if hoge % 1 == 0 and x >= hoge >= 0:
        print("Yes")
    else:
        print("No")
    return 0

if __name__ == "__main__":
    solve()


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
X,Y = map(int,input().split())
ans = 'no'
for a in range(X+1):
    for b in range(X+1):
        if a + b == X and 2*a + 4*b == Y:
            ans = 'yes'
            break
print(ans)

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

if(Y<=4*X and Y%2 == 0 and 2*X <= Y):
    ans = 1
else :
    ans = 0
    
if(ans == 0):
    print('No')
elif(ans == 1):
    print('Yes')

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
list= input().split(" ")
X=int(list[0])
Y=int(list[1])

for w in range(X+1):
    print(w)
    z = X-w#crane_num
    w_leg_num = int(w)*2#turtle_leg_num
    z_leg_num = int(z)*4
    total_leg_num =w_leg_num+z_leg_num
    if total_leg_num == Y:
        print("Yes")
        break
    elif w==X:
        print("No")



list= input().split(" ")
X=int(list[0])
Y=int(list[1])

for w in range(X+1):
    z = X-w#crane_num
    w_leg_num = int(w)*2#turtle_leg_num
    z_leg_num = int(z)*4
    total_leg_num =w_leg_num+z_leg_num
    if total_leg_num == Y:
        print("Yes")
        break
    elif w==X:
        print("No")

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
a,b=(int(x) for x in input().split())
lista=[]
listb=[]
for numa in range(a+1):
  lista.append(numa*2)
for numb in range(a+1):
  listb.append(numb*4)
listb.reverse()
count=0
combined1 = [x*y for (x, y) in (lista, listb)]
for num in combined1:
  if num==b:
    count+=1
if count>0:
  print("Yes")
else: 
  print("No")

a,b=(int(x) for x in input().split())
lista=[]
listb=[]
for numa in range(a+1):
  lista.append(numa*2)
for numb in range(a+1):
  listb.append(numb*4)
listb.reverse()
count=0
combined1 = [x+y for (x, y) in (lista, listb)]
for num in combined1:
  if num==b:
    count+=1
if count>0:
  print("Yes")
else: 
  print("No")

a,b=(int(x) for x in input().split())
lista=[]
listb=[]
for numa in range(a+1):
  lista.append(numa*2)
for numb in range(a+1):
  listb.append(numb*4)
listb.reverse
count=0
combined1 = [x*y for (x, y) in (lista, listb)]
for num in combined1:
  if num==b:
    count+=1
if count>0:
  print("Yes")
else: 
  print("No")

a,b=(int(x) for x in input().split())
lista=[]
for numa in range(a+1):
  lista.append(numa*2)
for numb in range(a+1).reverse():
  listb.append(numb*4)
count=0
combined1 = [x*y for (x, y) in (lista, listb)]
for num in combined1:
  if num==b:
    count+=1
if count>0:
  print("Yes")
else: 
  print("No")

a,b=(int(x) for x in input().split())
lista=[]
listb=[]
for numa in range(a+1):
  lista.append(numa*2)
for numb in range(a+1)
  listb.append(numb*4)
listb.reverse()
count=0
combined1 = [x*y for (x, y) in (lista, listb)]
for num in combined1:
  if num==b:
    count+=1
if count>0:
  print("Yes")
else: 
  print("No")

a,b=(int(x) for x in input().split())
lista=[range(1,a)]
listb=lista.reverse()
count=0
combined1 = [(2*x) * (4*y) for (x, y) in (lista, listb)]
for num in combined1:
  if num==b:
    count+=1
if count>0:
  print("Yes")
else: 
  print("No")
  
  

a,b=(int(x) for x in input().split())
lista=[]
listb=[]
for numa in range(a+1):
  lista.append(numa*2)
for numb in range(a+1):
  listb.append(numb*4)
listb.reverse()
count=0
combined1 = [x+y for (x, y) in zip(lista, listb)]
for num in combined1:
  if num==b:
    count+=1
if count>0:
  print("Yes")
else: 
  print("No")


Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
x, y = map(int, input().split())
ans = 0
for i in range(x + 1):
    print(i)
    num = i * 4 + (x - i) * 2
    if(y == num):
        ans = 1
        break
if(ans == 1):
    print("Yes")
else:
    print("No")

x, y = map(int, input().split())
ans = 0
for i in range(x + 1):
    num = i * 4 + (x - i) * 2
    if(y == num):
        ans = 1
        break
if(ans == 1):
    print("Yes")
else:
    print("No")    

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
x, y = input().split(" ")
x = int(x)
 y = int(y)
print("Yes" if 2*x <= y and y <= 4*x and y%2 == 0 else "No")

x, y = input().split(" ")
x = int(x)
y = int(y)
print("Yes" if 2*x <= y and y <= 4*x and y%2 == 0 else "No")


Verdicts: Runtime Error

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
a,b=map(int,input().split())
c=0
for i in range (a):
  for j in range (a - i):
    if (i+j)==a and (i*2 + j *4) ++ b:
      c+=1
print(c)

a,b=map(int,input().split())
c=0
for i in range (a):
  for j in range (a - i):
    if (i+j)==a and (i*2 + j *4) ++ b:
      c+=1
if c== 0:
  print('No')
else:
  print('Yes')

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

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
import sys

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

for n in range(x+1):
    kame = x - n

    tsuru_leg = n*2
    kame_leg = kame*4

    if y == tsuru_leg + kame_leg:
        print('yes')
        sys.exit()

print('no')

import sys

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

tsuru = 0

for n in range(x+1):
    kame = x - tsuru

    tsuru_leg = tsuru*2
    kame_leg = kame*4

    if y == tsuru_leg + kame_leg:
        print('yes')
        sys.exit()
    tsuru = tsuru + 1

print('no')

import sys
 
x,y = map(int,input().split())
 
for n in range(x+1):
    kame = x - n
 
    tsuru_leg = n*2
    kame_leg = kame*4
 
    if y == tsuru_leg + kame_leg:
        print('Yes')
        sys.exit()
 
print('No')

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
X,Y=map(int,input().split())
for i in range(X+1):
  if 2*i+4*(X-i)==Y:
    print("Yes")
    break
print("No")
  

X,Y=map(int,input().split())
ans="No"
for i in range(X+1):
  if 2*i+4*(X-i)==Y:
    ans="Yes"
print(ans)
    
  

Verdicts: Wrong Answer

Accepted
Problem: There are some animals in a garden. Each of them is a crane with two legs or a turtle with four legs.  Takahashi says: "there are X animals in total in the garden, and they have Y legs in total." Determine whether there is a combination of numbers of cranes and turtles in which this statement is correct.

Submission attempts (in order):
vals1,vals2 = input().split(" ") #ask input in one line

vals1 = int(vals1) #animals
vals2 = int(vals2) #actual legs

possible= vals1*4 #highest possible legs


if possible<vals2 : 
    print("no")

else:
    print("yes")

animals_and_legs=input()
list=animals_and_legs.split()
animals=int(list[0])
legs=int(list[1])
j=animals
i=0
something=True
while i<=animals:
    if i*4+j*2==legs:
        print("Yes")
        something=False
        break
    i=i+1
    j=j-1
if something is True:
    print("No")



Verdicts: Wrong Answer

Accepted