Problem:


Score : 200 points

Problem Statement

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.

Constraints

1 \leq X \leq 100

1 \leq Y \leq 100

All values in input are integers.

Input

Input is given from Standard Input in the following format:

X Y

Output

If there is a combination of numbers of cranes and turtles in which the statement is correct, print Yes; otherwise, print No.

Sample Input 1

3 8

Sample Output 1

Yes

The statement "there are 3 animals in total in the garden, and they have 8 legs in total" is correct if there are two cranes and one turtle. Thus, there is a combination of numbers of cranes and turtles in which the statement is correct.

Sample Input 2

2 100

Sample Output 2

No

There is no combination of numbers of cranes and turtles in which this statement is correct.

Sample Input 3

1 2

Sample Output 3

Yes

We also consider the case in which there are only cranes or only turtles.



Sample input:
3 8


Sample output:
Yes

Submission status: Wrong Answer

Solution code:
from __future__ import division, print_function
import os
import sys
from __builtin__ import xrange as range
from cStringIO import StringIO
from future_builtins import ascii, filter, hex, map, oct, zip
from io import IOBase
import __pypy__

# region fastio
BUFSIZE = 8192
class FastI(IOBase):
    def __init__(self, file):
        self._fd = file.fileno()
        self._buffer = StringIO()
        self.newlines = 0

    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count("\n") + (not b)
            ptr = self._buffer.tell()
            self._buffer.seek(0, 2), self._buffer.write(b), self._buffer.seek(ptr)
        self.newlines -= 1
        return self._buffer.readline()
class FastO(IOBase):
    def __init__(self, file):
        self._fd = file.fileno()
        self._buffer = __pypy__.builders.StringBuilder()
        self.write = lambda s: self._buffer.append(s)
    def flush(self):
        os.write(self._fd, self._buffer.build())
        self._buffer = __pypy__.builders.StringBuilder()
def print(*args, **kwargs):
    sep, file = kwargs.pop("sep", " "), kwargs.pop("file", sys.stdout)
    at_start = True
    for x in args:
        if not at_start:
            file.write(sep)
        file.write(str(x))
        at_start = False
    file.write(kwargs.pop("end", "\n"))
    if kwargs.pop("flush", False):
        file.flush()
sys.stdin, sys.stdout = FastI(sys.stdin), FastO(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")

Ri = lambda : [int(x) for x in sys.stdin.readline().split()]
ri = lambda : sys.stdin.readline().strip()

# from types import GeneratorType
# def bootstrap(func, stack=[]):
#     def wrapped_function(*args, **kwargs):
#         if stack:
#             return func(*args, **kwargs)
#         else:
#             call = func(*args, **kwargs)
#             while True:
#                 if type(call) is GeneratorType:
#                     stack.append(call)
#                     call = next(call)
#                 else:
#                     stack.pop()
#                     if not stack:
#                         break
#                     call = stack[-1].send(call)
#             return call
#     return wrapped_function

def list2d(a, b, c): return [[c] * b for i in range(a)]
def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)]
def list4d(a, b, c, d, e): return [[[[e] * d for j in range(c)] for j in range(b)] for i in range(a)]
def ceil(x, y=1): return int(-(-x // y))
def Yes(): print('Yes')
def No(): print('No')
def YES(): print('YES')
def NO(): print('NO')
INF = 10 ** 18
MOD = 10**9+7


x,y = Ri()
if 4*x >= y >= 2*x:
    Yes()
else:
    No()

Submission status: Wrong Answer

Solution code:
import sys
INF = 1 << 60
MOD = 10**9 + 7 # 998244353
sys.setrecursionlimit(2147483647)
input = lambda:sys.stdin.readline().rstrip()
def resolve():
    x, y = map(int, input().split())
    if y & 1:
        print("No")
    print("Yes" if 2 * x <= y <= 4 * x else "No")
resolve()

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())

for i in range(X+1):
    for j in range(X+1):
        if(Y == 4*i+2*j):
            print("Yes")
            exit()

print("No")

Submission status: Wrong Answer

Solution code:
from __future__ import division, print_function
import os
import sys
from __builtin__ import xrange as range
from cStringIO import StringIO
from future_builtins import ascii, filter, hex, map, oct, zip
from io import IOBase
import __pypy__

# region fastio
BUFSIZE = 8192
class FastI(IOBase):
    def __init__(self, file):
        self._fd = file.fileno()
        self._buffer = StringIO()
        self.newlines = 0

    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count("\n") + (not b)
            ptr = self._buffer.tell()
            self._buffer.seek(0, 2), self._buffer.write(b), self._buffer.seek(ptr)
        self.newlines -= 1
        return self._buffer.readline()
class FastO(IOBase):
    def __init__(self, file):
        self._fd = file.fileno()
        self._buffer = __pypy__.builders.StringBuilder()
        self.write = lambda s: self._buffer.append(s)
    def flush(self):
        os.write(self._fd, self._buffer.build())
        self._buffer = __pypy__.builders.StringBuilder()
def print(*args, **kwargs):
    sep, file = kwargs.pop("sep", " "), kwargs.pop("file", sys.stdout)
    at_start = True
    for x in args:
        if not at_start:
            file.write(sep)
        file.write(str(x))
        at_start = False
    file.write(kwargs.pop("end", "\n"))
    if kwargs.pop("flush", False):
        file.flush()
sys.stdin, sys.stdout = FastI(sys.stdin), FastO(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")

Ri = lambda : [int(x) for x in sys.stdin.readline().split()]
ri = lambda : sys.stdin.readline().strip()

# from types import GeneratorType
# def bootstrap(func, stack=[]):
#     def wrapped_function(*args, **kwargs):
#         if stack:
#             return func(*args, **kwargs)
#         else:
#             call = func(*args, **kwargs)
#             while True:
#                 if type(call) is GeneratorType:
#                     stack.append(call)
#                     call = next(call)
#                 else:
#                     stack.pop()
#                     if not stack:
#                         break
#                     call = stack[-1].send(call)
#             return call
#     return wrapped_function

def list2d(a, b, c): return [[c] * b for i in range(a)]
def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)]
def list4d(a, b, c, d, e): return [[[[e] * d for j in range(c)] for j in range(b)] for i in range(a)]
def ceil(x, y=1): return int(-(-x // y))
def Yes(): print('Yes')
def No(): print('No')
def YES(): print('YES')
def NO(): print('NO')
INF = 10 ** 18
MOD = 10**9+7


x,y = Ri()

t = y//4
c = y//2

if y %2 == 1:
    No()
else:
    if y %4 == 0:
        if x < t : 
            No()
        elif x > c:
            No()
        else:
            Yes()
    else:
        c = 1
        y-=2
        t = y//4
        c += y//2
        
        if x-1 < t : 
            No()
        elif x-1 > c:
            No()
        else:
            Yes()

Submission status: Wrong Answer

Solution code:
from __future__ import division, print_function
import os
import sys
from __builtin__ import xrange as range
from cStringIO import StringIO
from future_builtins import ascii, filter, hex, map, oct, zip
from io import IOBase
import __pypy__

# region fastio
BUFSIZE = 8192
class FastI(IOBase):
    def __init__(self, file):
        self._fd = file.fileno()
        self._buffer = StringIO()
        self.newlines = 0

    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count("\n") + (not b)
            ptr = self._buffer.tell()
            self._buffer.seek(0, 2), self._buffer.write(b), self._buffer.seek(ptr)
        self.newlines -= 1
        return self._buffer.readline()
class FastO(IOBase):
    def __init__(self, file):
        self._fd = file.fileno()
        self._buffer = __pypy__.builders.StringBuilder()
        self.write = lambda s: self._buffer.append(s)
    def flush(self):
        os.write(self._fd, self._buffer.build())
        self._buffer = __pypy__.builders.StringBuilder()
def print(*args, **kwargs):
    sep, file = kwargs.pop("sep", " "), kwargs.pop("file", sys.stdout)
    at_start = True
    for x in args:
        if not at_start:
            file.write(sep)
        file.write(str(x))
        at_start = False
    file.write(kwargs.pop("end", "\n"))
    if kwargs.pop("flush", False):
        file.flush()
sys.stdin, sys.stdout = FastI(sys.stdin), FastO(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")

Ri = lambda : [int(x) for x in sys.stdin.readline().split()]
ri = lambda : sys.stdin.readline().strip()

# from types import GeneratorType
# def bootstrap(func, stack=[]):
#     def wrapped_function(*args, **kwargs):
#         if stack:
#             return func(*args, **kwargs)
#         else:
#             call = func(*args, **kwargs)
#             while True:
#                 if type(call) is GeneratorType:
#                     stack.append(call)
#                     call = next(call)
#                 else:
#                     stack.pop()
#                     if not stack:
#                         break
#                     call = stack[-1].send(call)
#             return call
#     return wrapped_function

def list2d(a, b, c): return [[c] * b for i in range(a)]
def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)]
def list4d(a, b, c, d, e): return [[[[e] * d for j in range(c)] for j in range(b)] for i in range(a)]
def ceil(x, y=1): return int(-(-x // y))
def Yes(): print('Yes')
def No(): print('No')
def YES(): print('YES')
def NO(): print('NO')
INF = 10 ** 18
MOD = 10**9+7


x,y = Ri()

t = y//4
c = y//2

if y %2 == 1:
    No()
else:
    if y %4 == 0:
        if x < t : 
            No()
        elif x > c:
            No()
        else:
            Yes()
    else:
        c = 1
        y-=2
        t = y//4
        c += y//2
        
        if x < t : 
            No()
        elif x > c:
            No()
        else:
            Yes()

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())
if 2*X < Y < 4*X:
    if Y % 2 != 0:
        print('No')
    else:
        print('Yes')

else:
    print('No')

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split());
large = x*4;
small = x*2;
flag = False;
for i in range(small,large,2):
    if(i==y):
        flag = True;
        break;
if flag :
    print("Yes");
else:
    print("No");

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())

if y % 2 == 1 or x * 4 < y:
    print('No')
    exit()

print('Yes')

Submission status: Wrong Answer

Solution code:
(x,y) = input().split(" ")
x = int(x)
y = int(y)
if y % 2 == 1 or y > x * 4:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
def check_kame(quantity, number_of_legs):
  number_of_kame = int(number_of_legs/4)
  if(number_of_kame <= quantity):
    j = 1;
    if ((number_of_legs - number_of_kame*4)%2 == 0):
      j = 1;
  else:
    j = 0;
  return j;  
    
def check_tsuru(quantity, number_of_legs):
  number_of_turu = int(number_of_legs/2)
  if(number_of_turu <= quantity):
    j = 1;
    if ((number_of_legs - number_of_turu*2)%4 == 0):
      j = 1;
  else:
    j = 0;
  return j; 

A = list(map(int, input().split())) 
quantity = A[0]
number_of_legs = A[1]
j1 = check_kame(quantity, number_of_legs);
j2 = check_tsuru(quantity, number_of_legs);
if (j1 == 1 or j2== 1):
  print("Yes")
else: 
  print("No")

Submission status: Wrong Answer

Solution code:
def check_kame(quantity, number_of_legs):
  number_of_kame = int(number_of_legs/4)
  if(number_of_kame <= quantity):
    j = 1;
  if ((number_of_legs - number_of_kame*4)%2 == 0):
    j = 1;
  else:
    j = 0;
  return j;  
    
def check_tsuru(quantity, number_of_legs):
  number_of_turu = int(number_of_legs/2)
  if(number_of_turu <= quantity):
    j = 1;
  if ((number_of_legs - number_of_turu*2)%4 == 0):
    j = 1;
  else:
    j = 0;
  return j; 

A = list(map(int, input().split())) 
quantity = A[0]
number_of_legs = A[1]
j1 = check_kame(quantity, number_of_legs);
j2 = check_tsuru(quantity, number_of_legs);
if (j1 == 1 or j2== 1):
  print("Yes")
else: 
  print("No")

Submission status: Wrong Answer

Solution code:
import sys


def input():
    return sys.stdin.readline().strip()


sys.setrecursionlimit(20000000)

MOD = 10 ** 9 + 7
INF = float("inf")


def main():
    X, Y = map(int, input().split())
    kame = (Y - 2 * X) // 2
    if 0 <= kame <= X:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
x, y = map(int,input().split())
y = y / 2
if x <= y <= x*2:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
head,leg=list(map(int,input().split()))
def equa(h,l):
    cleg=2
    tleg=4
    #x+y=h
    #cleg*x+tleg*y=l
    ans1=cleg*h
    anst=(l-ans1)/(tleg-cleg)
    ansc=h-anst
    return ansc,anst

search=equa(head,leg)
if search[0]>=0 and search[1]>=0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
x,y = map(int, input().split())

if y % 2 != 0:
  print("No")
  exit()
else:
  if 0 <= y//2 <= 2*x:
    print("Yes")
    exit()
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
import sys
x,y=map(int,input().split())

for a in range(x+1):
	for b in range(x-a+1):
		if 2*a + 4*b == y:
			
			print("Yes")
			break
	else:
		continue
	break

            
print("No")

Submission status: Wrong Answer

Solution code:
import sys
x,y=map(int,input().split())

for a in range(x+1):
	for b in range(x-a+1):
		if 2*a + 4*b == y:
			
			print("Yes")
			break

            
print("No")

Submission status: Wrong Answer

Solution code:
import sys
x,y=map(int,input().split())

for a in range(x+1):
	for b in range(x-a+1):
		if 2*a + 4*b == y:
			
			print("Yes")
			exit()
            
print("No")

Submission status: Wrong Answer

Solution code:
import sys
x,y=map(int,input().split())

for a in range(x+1):
	for b in range(x-a+1):
		if 2*a + 4*b == y:
			
			print("Yes")
			sys.exit()
            
print("No")

Submission status: Wrong Answer

Solution code:
import sys
x,y=map(int,input().split())
z=0
for a in range(x+1):
	for b in range(x-a+1):
		if 2*a + 4*b == y:
			print("Yes")
			sys.exit()
            
print("No")

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
z=0
for a in range(x+1):
	for b in range(x-a+1):
		if 2*a + 4*b == y:
			z+=1
if z == 0:
	print("No")
else:
	print("Yes")

Submission status: Wrong Answer

Solution code:
import sys
a,b = map(int, input().split())
c = 0
while True:
    if a*2+c*4 == b or a*4+c*2 == b:
        print('Yes')
        sys.exit()
    c+=1
    a-=1
print('No')

Submission status: Wrong Answer

Solution code:
import sys
a,b = map(int, input().split())
c = 0
while True:
    if a*4<b:
        print('No')
        sys.exit()
    if a*2+c*4 == b or a*4+c*2 == b:
        print('Yes')
        sys.exit()
    c+=1
    a-=1
print('No')

Submission status: Wrong Answer

Solution code:
import sys
a,b = map(int, input().split())
c = 0
while True:
    if a*4<b:
        print('No')
        sys.exit()
    if a*2+c*4 == b:
        print('Yes')
        sys.exit()
    c+=1
    a-=1
print('No')

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
z=0
for a in range(x+1):
	for b in range(x-a+1):
		if 2*a + 4*b == y:
			z+=1
if z > 0:
	print("Yes")
else:
	print("No")

Submission status: Wrong Answer

Solution code:
x, y =map(int, input().split())

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

print("No")

Submission status: Wrong Answer

Solution code:
X,Y=[int(x) for x in input().rstrip().split()]
y=(Y-2*X)/2
x=X-y

if y.is_integer() and x.is_integer():
  if 0<=y and 0<=x:
    print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:

a,b=map(int,input().split())
if round(b/4)<=a and b//2>=a and b%2==0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if round(b/4)<=a and b//2>=a:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:

a,b=map(int,input().split())
if b//4<a and b//2>=a:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if b//4<=a and b//2>=a:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
import sys

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

for crane in range(1, 101):
  if 2*crane + 4*(x - crane) == y and x - crane >= 0:
    print('Yes')
    sys.exit()
    
print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a*2<=b and a*4>=b:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
n, x  = [int(x) for x in input().strip().split(' ')]
ans = 'No'
for a in range(n+1):
  b = x - a
  if 2 * a + 4 * b == x:
    ans = 'Yes' 
print(ans)

Submission status: Wrong Answer

Solution code:
X,Y = map(int,input().split())
lst = []

for i in range(X+1):
    lst.append(2*i + 4*(X-i))
    lst.append(2*(X-i) + 4*i)

try:
    if lst.index(Y):
        print('Yes')
except:
    print('No')

Submission status: Wrong Answer

Solution code:
X,Y = map(int,input().split())
lst = []

for i in range(X//2+1):
    lst.append(2*i + 4*(X-i))
    lst.append(2*(X-i) + 4*i)

try:
    if lst.index(Y):
        print('Yes')
except:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X,Y = map(int,input().split())
if Y % 2 != 0:
  print("No")
elif Y // 4 > X:
  print("No")
elif Y // 2 < X:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
X,Y = map(int,input().split())
if Y % 2 != 0:
  print("NO")
elif Y // 4 > X:
  print("NO")
elif Y // 2 < X:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
X,Y = map(int,input().split())
if Y % 2 != 0:
  print("NO")
elif Y / 4 > X:
  print("NO")
elif Y / 2 < X:
  print("NO")
else:
  print("YES")

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
if y > x*4 or y < x*2 or y&2 == 1:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
k = "NO"
for i in range(x+1):
  b=x-i
  if (b*4)+(i*2)==y:
    k="YES"
print(k)

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
k = "NO"
for i in range(x+1):
  b=x-i
  if i*4+b*2==y:
    k="YES"
print(k)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())
if Y % 2 != 0:
    print('No')
for a in range(X + 1):
    b = X - a
    if 2 * a + 4 * b == Y:
        print('Yes')

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())

b = (y - 2*x)//2
a = x-b

if a < 0 or b < 0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# モジュールのインポート
import math


def get_input() -> tuple:
    """
    標準入力を取得する.

    Returns:\n
        tuple: 標準入力
    """
    X, Y = list(map(int, input().split()))
    return X, Y


def main(X: int, Y: int) -> None:
    """
    求解処理を行う.

    Args:
        X (int): 庭の動物の総数
        Y (int): 庭の動物の足の総数
    """
    # 求解処理
    ans = "No"
    for crane in range(101):
        turtle = X - crane
        # if math.isclose(2 * crane + 4 * turtle, Y):
        if 2 * crane + 4 * turtle == Y:
            ans = "Yes"
            break

    # 結果出力
    print(ans)


if __name__ == "__main__":
    X, Y = get_input()
    main(X, Y)

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
if y % 2 == 0:
  k = (y - 2*x) // 2
  if k <= x:
    print('Yes')
  else:
    print('No')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())

t = 1/2 * Y - X
c = X - t

float(t).is_integer()
if t > 0 and float(t).is_integer() and c > 0 and float(c).is_integer():
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())

t = 1/2 * Y - X
c = X - t

float(t).is_integer()
if t > 0 and float(t).is_integer() and c > 0 and float(c).is_integer():
  print('yes')
else:
  print('no')

Submission status: Wrong Answer

Solution code:
x,y = map(int, input().split())
ans = 'No'
for a in range(x + 1):
    if 2*a + 4 * (x-a) == y:
        ans = "Yes"
        print(ans)

Submission status: Wrong Answer

Solution code:
import sys

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

Submission status: Wrong Answer

Solution code:
import sys

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, y = input().split()
x = int(x)
y = int(y)

f = 0

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

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

Submission status: Wrong Answer

Solution code:
import sys
# from collections import deque
# from collections import Counter
# from math import sqrt
# from math import log
# from math import ceil

# def gcd(a, b):
# 	if(a==0):
# 		return b 
# 	return gcd(b%a,a)

# def sieve(n): 
# 	prime=[True for i in range(n+1)]
# 	p=2
# 	while(p*p<=n): 
# 		if (prime[p]==True): 
# 			for i in range(p*p,n+1,p): 
# 				prime[i]=False
# 		p+=1
# 	prime[0]=False
# 	prime[1]=False
# 	s=set()
# 	for i in range(len(prime)):
# 		if(prime[i]):
# 		s.add(i)
# 	return s 

# alpha=['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
# mod=10**9+7

fast_reader=sys.stdin.readline
fast_writer=sys.stdout.write

def input():
	return fast_reader().strip()

def print(*argv):
	fast_writer(' '.join((str(i)) for i in argv))
	fast_writer('\n')

def list_input():
	return list(map(int, input().split()))

def sep_input():
	return map(int, input().split())

#_______________________________________________________________________________________________________________________________________

x,y=sep_input()
l=[]
for i in range(x+1):
	l.append(2*i + 4*(x-i))
	l.append(4*i + 2*(x-i))
s=set(l)
if(y in s):
	print('YES')
else:
	print('NO')

Submission status: Wrong Answer

Solution code:
import sys
# from collections import deque
# from collections import Counter
# from math import sqrt
# from math import log
# from math import ceil

# def gcd(a, b):
# 	if(a==0):
# 		return b 
# 	return gcd(b%a,a)

# def sieve(n): 
# 	prime=[True for i in range(n+1)]
# 	p=2
# 	while(p*p<=n): 
# 		if (prime[p]==True): 
# 			for i in range(p*p,n+1,p): 
# 				prime[i]=False
# 		p+=1
# 	prime[0]=False
# 	prime[1]=False
# 	s=set()
# 	for i in range(len(prime)):
# 		if(prime[i]):
# 		s.add(i)
# 	return s 

# alpha=['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
# mod=10**9+7

fast_reader=sys.stdin.readline
fast_writer=sys.stdout.write

def input():
	return fast_reader().strip()

def print(*argv):
	fast_writer(' '.join((str(i)) for i in argv))
	fast_writer('\n')

def list_input():
	return list(map(int, input().split()))

def sep_input():
	return map(int, input().split())

#_______________________________________________________________________________________________________________________________________

x,y=sep_input()
l=[]
for i in range(x):
	l.append(2*i + 4*(x-i))
	l.append(4*i + 2*(x-i))
s=set(l)
if(y in s):
	print('YES')
else:
	print('NO')

Submission status: Wrong Answer

Solution code:
print("Yes" if (lambda x: x[0] * 2 <= x[1] <= x[0] * 4)(list(map(int,input().split()))) else "No")

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
def main():
    x, y = map(int, input().split())
    y2 = y
    ans = 'No'

    for i in range(1, x + 1):
        x2 = x - i 
        if 4 * i + 2 * x2 == y:
            ans = 'Yes'
            break

    print(f'{ans}')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    x, y = map(int, input().split())
    y2 = y
    ans = 'No'
    
    for i in range(1, x + 1):
        y2 = y - 4 * i 
        if y2 % 2 == 0 and y2 / 2 + i == x:
            ans = 'Yes'
            break

    print(f'{ans}')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def main():
    x, y = map(int, input().split())
    y2 = y
    ans = 'No'
    for i in range(1, x + 1):
        
        y2 = y - 4 * i 
        if y2 / 2 + i == x:
            ans = 'Yes'
            break
    print(f'{ans}')


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
X, Y = map(int, input().split())

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

print('No')

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
tur = (y - 2 * x) / 2
cra = x - tur
if tur >= 0 and cra >= 0:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
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")

Submission status: Wrong Answer

Solution code:
# 2*x + 4*x - 4*z = y
# 4*x - y = 2*z

# 2*x - 2*z + 4*z = y
# 2*z = y - 2*x

from math import floor
x,y = map(int,input().split())
z = y/2 - x
if (z - floor(z) == 0):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
x , y = map(int,input().split())

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

Submission status: Wrong Answer

Solution code:
from math import floor
x,y = map(int,input().split())
z = 2*x + y/2
if (z - floor(z) == 0):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
import math
x, y = map(int, input().split())
a = (4 * x - y) / 2
if a >= 1 and a == math.ceil(a):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
x , y = map(int,input().split())

if 2**x == y or 4 * x == y or 2*x == y:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
x , y = map(int,input().split())

if 2**x == y:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
if(x==1):
  print("Yes")
else:
  if(y%x!=0):
      if(y<=(x*6)):print("Yes")
      else:print("No")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
X, Y = map(int,input().split())

if Y > 2 * X and Y > 4 * X:
    print("No")
elif X == 1 :
    if Y == 2 or Y == 4 :
        print("Yes")
    else:
        print("No")
else:
    if Y == 0 or X == 0:
        print("No")
    elif Y % 2 == 0:
            print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
if (y - 2 * x) / 2 >= 0:
  if (y - 2 * x) % 2 == 0:
    print("Yes")
    quit()
    
print("No")

Submission status: Wrong Answer

Solution code:
x,y = list(map(int,input().split(" ")))

if ((y/2)-x).is_integer() :
  print("Yes")
else:
  print("No")