problem_id
stringlengths
6
6
user_id
stringlengths
10
10
time_limit
float64
1k
8k
memory_limit
float64
262k
1.05M
problem_description
stringlengths
48
1.55k
codes
stringlengths
35
98.9k
status
stringlengths
28
1.7k
submission_ids
stringlengths
28
1.41k
memories
stringlengths
13
808
cpu_times
stringlengths
11
610
code_sizes
stringlengths
7
505
p02640
u047485390
2,000
1,048,576
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.
['a,b = [int(tmp) for tmp in input().split()]\na = a*2\ny = (b-a)//2\nx = (a-2*y)//2\nif x<0 or y<0 or y%2==1 :\n\tprint("No")\nelse :\n\tprint("Yes")\n', 'a,b = [int(tmp) for tmp in input().split()]\na = a*2\ny = (b-a)//2\nx = (a-2*y)//2\nif x<0 or y<0 or b%2==1 :\n\tprint("No")\nelse :\n\tprint("Yes")\n']
['Wrong Answer', 'Accepted']
['s250412047', 's943089951']
[9168.0, 9168.0]
[22.0, 24.0]
[140, 140]
p02640
u048013400
2,000
1,048,576
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.
["X, Y = map(int,input().split())\ny = Y/2\nif X-y > 0:\n if ((X-y)*4+y*2) == Y:\n print('Yes')\nelif X*2 == Y or X*4 == Y:\n print('Yes')\nelse:\n print('No')\n\n", "X, Y = map(int, input().split())\n\nadd = 0\nflag =0\n\nfor i in range(X+1):\n add = i*4 + (X-i)*2\n if add == Y:\n print('Yes')\n flag = 1\n break\n\nif flag == 0:\n print('No')"]
['Wrong Answer', 'Accepted']
['s499204293', 's779632048']
[9172.0, 9180.0]
[24.0, 22.0]
[167, 195]
p02640
u049182844
2,000
1,048,576
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.
["a = list(map(int,input().split()))\nans = False\nfor i in range(a[0]):\n if (a[1] - i * 4 ) //2 == a[0]:\n ans = True\n break\nif ans:\n print('Yes')\nelse:\n print('No')", "a = list(map(int,input().split()))\nans = False\nif (a[1] % 6 % 2 == 0) and (a[1] // 6 *2 + a[1] % 6 //2 == a[0]):\n ans = True\nelif (a[1] % 2 == 0) and (a[1] //2 == a[0]):\n ans = True\nelif (a[1] % 4 == 0) and (a[1] //4 == a[0]):\n ans = True\nelse:\n for i in range(a[0]):\n if ((a[1] - i * 4) %2 == 0) and((a[1] - i * 4) //2 + i) == a[0]:\n ans = True\n elif((a[1] - i * 4) %4 == 0) and ((a[1] - i * 2) //4 + i) == a[0]:\n ans = True\nif ans:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s544706198', 's902176884']
[9184.0, 9248.0]
[22.0, 24.0]
[170, 488]
p02640
u051239215
2,000
1,048,576
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.
['import sys\n\nif __name__ == "__main__":\n for line in sys.stdin:\n anis, legs = line.split(\' \')\n if legs % 2 == 1 or legs > anis * 4 or legs < anis * 2:\n print("No")\n else:\n print("Yes")\n \n ', 'import sys\n\nif __name__ == "__main__":\n for line in sys.stdin:\n anis, legs = map(int, line.split(\' \'))\n if legs % 2 == 1 or legs > anis * 4 or legs < anis * 2:\n print("No")\n else:\n print("Yes")']
['Runtime Error', 'Accepted']
['s647010789', 's475660474']
[9048.0, 9068.0]
[24.0, 20.0]
[221, 239]
p02640
u055641210
2,000
1,048,576
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.
["x,y = map(int,input().split())\n\nif 2 <= y <= 4 and (x*y) %2 == 0:\n print('Yes')\nelse:\n print('No')", "x,y = map(int,input().split())\n\nif x*2 <= y <= x*4 and y%2 == 0:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s888481605', 's448522775']
[9104.0, 9080.0]
[27.0, 28.0]
[104, 103]
p02640
u055668401
2,000
1,048,576
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.
['num, legs = map(int, input().split())\nBIRD = 2\nTURTLE = 4\n\nbird_lst = [BIRD * n for n in range(num)]\nprint(bird_lst)\nturtle_lst = [TURTLE * n for n in range(num)]\nturtle_lst.sort(reverse=True)\nprint(turtle_lst)\n\nlegs_lst = [b + t for b, t in zip(bird_lst, turtle_lst)]\nprint(legs_lst)\n\nif legs in legs_lst:\n print("Yes")\nelse:\n print("No")', 'num, legs = map(int, input().split())\nBIRD = 2\nTURTLE = 4\n\nif legs % 2:\n print("No")\n exit(0)\n\nbird_lst = [BIRD * n for n in range(num+1)]\nturtle_lst = [TURTLE * n for n in range(num+1)]\nturtle_lst.sort(reverse=True)\n\nlegs_lst = [b + t for b, t in zip(bird_lst, turtle_lst)]\n\nif legs in legs_lst:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s286540300', 's835270677']
[9196.0, 9200.0]
[24.0, 19.0]
[341, 334]
p02640
u060012100
2,000
1,048,576
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.
["x,y = map(int,input().split())\nfor i in range(x+1):\n z = x - i\nif(i*2+z*4 == y):\n print('Yes')\n exit()\nprint('No')\n", "x,y = map(int,input().split())\nif((x == 1 and y == 2) or (x == 1 and y == 4)):\n print('Yes')\nelif (x>3):\n for i in range(0,y):\n if(x*2+i == y):\n print('Yes')\n break\n else :\n print() \nelse :\n print('No')", "x,y = map(int,input().split())\nif((x == 1 and y == 2) or (x == 1 and y == 4)):\n print('Yes')\nelif(x>0):\n for i in range(0,101):\n z = 2\n if(x*2+i*z == y):\n print('Yes')\n else:\n print('No')\n break \nelse :\n print('No')\n", "x,y = map(int,input().split())\nfor i in range(x+1):\n z = x - i\n if(i*2+z*4 == y):\n print('Yes')\n exit()\nprint('No')\n"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s241462194', 's495866356', 's899995184', 's637197383']
[9060.0, 9176.0, 9112.0, 9044.0]
[31.0, 28.0, 28.0, 30.0]
[118, 265, 254, 124]
p02640
u064383240
2,000
1,048,576
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.
['import sys\n\nX, Y = map(int, input().split())\n\nfor t in range(51):\n if Y - t*2 -(X-t)*4 == 0:\n print("yes")\n sys.exit()\nprint("no")', 'import sys\n\nX, Y = map(int, input().split())\n\nfor t in range(51):\n if Y - t*2 -(X-t)*4 == 0:\n print("Yes")\n sys.exit()\nprint("No")']
['Wrong Answer', 'Accepted']
['s186241893', 's325964666']
[9168.0, 9168.0]
[20.0, 21.0]
[147, 147]
p02640
u065052748
2,000
1,048,576
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.
['def main():\n n, legs = [int(x) for x in input().split(" ")]\n\n if n % 2 != 0:\n print("No")\n exit(0)\n\n max = n / 2\n min = int(n / 4) + (n % 4) / 2\n\n print("Yes" if legs >= min and legs <= max else "No")\n\nmain()\n', 'def main():\n n, legs = [int(x) for x in input().split(" ")]\n\n if n % 2 != 0:\n print("No")\n exit(0)\n\n max = n / 2\n min = int(n / 4) + n % 4\n\n print("Yes" if legs >= min and legs <= max else "No")\n\nmain()', 'def main():\n n, legs = [int(x) for x in input().split(" ")]\n\n if legs % 2 != 0:\n print("No")\n exit(0)\n\n max = legs / 2\n min = int(legs / 4) + (legs % 4) / 2\n\n print("Yes" if n >= min and n <= max else "No")\n\nmain()\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s216314779', 's233976392', 's579297281']
[9080.0, 9044.0, 9076.0]
[30.0, 26.0, 28.0]
[238, 231, 244]
p02640
u066551652
2,000
1,048,576
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.
[" x, y = map(int,input().split())\n \n for i in range(x+1):\n if 4 * i + 2*(x - i) == y:\n print('Yes')\n exit()\n \n print('No')", "x, y = map(int,input().split())\n\nfor i in range(x+1):\n print(i)\n if 4 * i + 2*(x - i) == y:\n print('Yes')\n exit()\n\nprint('No')", "x, y = map(int,input().split())\n\nif 2*x >= y and (4*x - y) % 2 == 0:\n print('Yes')\nelse:\n print('No')", "x, y = map(int, input().split())\n\nfor i in range(x + 1):\n if 4 * i + 2 * (x - i) == y:\n print('Yes')\n exit()\n\nprint('No')"]
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s025918709', 's173544670', 's605418076', 's472547866']
[9004.0, 9164.0, 9160.0, 9164.0]
[22.0, 21.0, 21.0, 21.0]
[167, 146, 107, 138]
p02640
u068322747
2,000
1,048,576
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.
["z=[]\nx, y= map(int,input().split())\nfor i in range(x+1):\n if (2*i)+(4*(x-i))==y:\n z.append('1')\n if (4*i)+(2*(x-i))==y:\n z.append('1')\n \n\n \n\nif len(z)>0:\n print('YES')\n\nif len(z)<=0:\n print('NO')", "z=[]\na=[]\nb=[]\nx, y= map(int,input().split())\nfor i in range(x):\n a.append(i)\n\n\nfor i in a:\n b.append(i+1)\n\nprint(b)\n \n\nfor i in b:\n if (2*(i+1))+(4*(x-i+1))==y:\n z.append('1')\n if (4*i)+(2*(x-i))==y:\n z.append('1')\n \n\n \nif len(z)>0:\n print('YES')\n\nif len(z)<=0:\n print('NO')", "z=[]\nx, y= map(int,input().split())\nfor i in range(x+1):\n if (2*(i+1))+(4*(x-i+1))==y:\n z.append('1')\n if (4*i)+(2*(x-i))==y:\n z.append('1')\n \n\n \nif len(z)>0:\n print('YES')\n\nif len(z)<=0:\n print('NO')", "z=[]\na=[]\nb=[]\nx, y= map(int,input().split())\nfor i in range(x):\n a.append(i)\n\n\nfor i in a:\n b.append(i+1)\n \nb.append(0)\n \nfor i in b:\n print(i)\n\nfor i in b:\n if (4*x)-(2*i)==y:\n z.append('1')\nfor i in b:\n print((4*x)-(2*i))\n \n \nif len(z)>0:\n print('YES')\n\nif len(z)<=0:\n print('NO')", "z=[]\na=[]\nb=[]\nx, y= map(int,input().split())\nfor i in range(x):\n a.append(i)\n\n\nfor i in a:\n b.append(i+1)\n \n\n\nfor i in b:\n if (4*x)-(2*i)==y:\n z.append('1')\n \n \nif len(z)>0:\n print('YES')\n\nif len(z)<=0:\n print('NO')", "z=[]\na=[]\nb=[]\nx, y= map(int,input().split())\nfor i in range(x):\n a.append(i)\n\n\nfor i in a:\n b.append(i+1)\n\nprint(b)\n \n\nfor i in a:\n if (2*(i+1))+(4*(x-i+1))==y:\n z.append('1')\n if (4*i)+(2*(x-i))==y:\n z.append('1')\n \n\n \nif len(z)>0:\n print('YES')\n\nif len(z)<=0:\n print('NO')", "z=[]\nx, y= map(int,input().split())\nfor i in range(x):\n if (2*i)+(4*(x-i))==y:\n z.append('1')\n if (4*i)+(2*(x-i))==y:\n z.append('1')\n \n\nif len(z)>0:\n print('YES')\n\nif len(z)<=0:\n print('NO')", "z=[]\nx, y= map(int,input().split())\nfor i in range(x):\n if (4*i)+(2*(x-i))==y:\n z.append('1')\n \n\nif len(z)>0:\n print('YES')\n\nif len(z)<=0:\n print('NO')", "z=[]\na=[]\nb=[]\nx, y= map(int,input().split())\nfor i in range(x):\n a.append(i)\n\n\nfor i in a:\n b.append(i+1)\n \nb.append(0)\n \nfor i in b:\n print(i)\n\nfor i in b:\n if (4*x)-(2*i)==y:\n z.append('1')\nfor i in b:\n print((4*x)-(2*i))\n \n \nif len(z)>0:\n print('Yes')\n\nif len(z)<=0:\n print('No')", "z=[]\na=[]\nb=[]\nx, y= map(int,input().split())\nfor i in range(x):\n a.append(i)\n\n\nfor i in a:\n b.append(i+1)\n\n\nfor i in b:\n if (2*i)+(4*(x-i))==y:\n z.append('1')\n \n \nif len(z)>0:\n print('YES')\n\nif len(z)<=0:\n print('NO')", "z=[]\na=[]\nb=[]\nx, y= map(int,input().split())\nfor i in range(x):\n a.append(i)\n\n\nfor i in a:\n b.append(i+1)\n \nb.append(0)\n\n\nfor i in b:\n if (4*x)-(2*i)==y:\n z.append('1')\n\n \n \nif len(z)>0:\n print('Yes')\n\nif len(z)<=0:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s042556005', 's128592950', 's135280615', 's281288284', 's506344402', 's517623955', 's540209556', 's862779554', 's914842462', 's955938289', 's755615195']
[9192.0, 9212.0, 9196.0, 9204.0, 9140.0, 9212.0, 9196.0, 9184.0, 9196.0, 9232.0, 9200.0]
[22.0, 24.0, 20.0, 25.0, 21.0, 22.0, 27.0, 23.0, 19.0, 26.0, 21.0]
[235, 324, 240, 327, 251, 324, 223, 174, 327, 250, 264]
p02640
u068467565
2,000
1,048,576
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.
["X, Y = map(int, input().split())\nans = 'No'\nfor a in range(X + 1):\n\tb = X - a\n if 2 * a + 4 * b == Y:\n\t\tans = 'Yes'\nprint(ans)", "X, Y = map(int, input().split())\nans = 'No'\nfor a in range(X + 1):\n b = X - a\n if 2 * a + 4 * b == Y:\n ans = 'Yes'\nprint(ans)"]
['Runtime Error', 'Accepted']
['s668734507', 's654610647']
[9020.0, 9152.0]
[22.0, 24.0]
[129, 138]
p02640
u068538925
2,000
1,048,576
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.
['x,y = input().split()\n\nif x*4<y and y%2 ==0:\n print("Yes")\nelse:\n print"No")', 'x,y = input().split()\n\nx=int(x)\ny=int(y)\n \nif x*4>y and y<x*2 and y%2 == 0:\n print("Yes")\nelse:\n print("No")', 'x,y = input().split()\n\nif x*4<y and y%2 ==0:\n print("Yes")\nelse:\n print("No")', 'x,y = input().split()\n\nif x*4>y and y<x*2 and y%2 == 0:\n print("Yes")\nelse:\n print("No")', 'x,y = input().split()\n\nif x*4>y and y%2 ==0:\n print("Yes")\nelse:\n print("No")', 'x,y = int(input().split())\n \nif x*4>y and y<x*2 and y%2 == 0:\n print("Yes")\nelse:\n print("No")', 'x,y = input().split()\n\nif x*4>y and y%2 == 0:\n print("Yes")\nelse:\n print("No")', 'x,y = input().split()\n \nx=int(x)\ny=int(y)\ncount = 0\nfor i in range(x+1):\n if 2*i+4*(x-i) == y:\n print("Yes")\n count = 1\n\nif count == 0:\n\tprint("No")']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s049941279', 's276485289', 's279448892', 's317520337', 's337074863', 's422421562', 's441336445', 's228880120']
[8948.0, 9080.0, 9028.0, 8884.0, 9040.0, 9016.0, 8964.0, 9116.0]
[31.0, 26.0, 25.0, 28.0, 26.0, 24.0, 30.0, 29.0]
[78, 110, 79, 90, 79, 96, 80, 155]
p02640
u068773059
2,000
1,048,576
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.
['def nums (X,Y):\n B = (X*4-Y)/(4-2)\n D = X-B\n if B + D == X and Y == (B*2 + D*4):\n print("True")\n else:\n print("False")\n', 'def nums (X,Y):\n B = (X*4-Y)/(4-2)\n D = X-B\n if B + D == X and Y == (B*2 + D*4):\n print("True")\n else:\n print("False")\n', 'x,y = map (int, input ().split())\n\na = (4*x - y)/2\nb = (y-2*x)/2\nif y % 2 == 0 and a >= 0 and b >= 0:\n print("Yes")\nelse:\n print("No")\n ']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s139521559', 's624263291', 's586358513']
[8948.0, 9032.0, 9164.0]
[24.0, 23.0, 30.0]
[149, 146, 145]
p02640
u069522822
2,000
1,048,576
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.
['x, y = map(int, input().split())\n\nif y % 2 == 1:\n print("NO")\nelif x * 2 >= y and x * 4 <= y:\n print("YES")\nelse:\n print("NO")\n ', 'x, y = map(int, input().split())\n\nif y % 2 == 1:\n print("NO")\nelif x == 0 and y != 0:\n print("NO")\nelif x != 0 and y == 0:\n print("NO")\nelif x * 2 >= y and x * 4 <= y:\n print("YES")\nelse:\n print("NO")\n\n ', 'x, y = map(int, input().split())\n\nif y % 2 == 1:\n print("No")\nelif x * 2 >= y and x * 4 <= y:\n print("Yes")\nelse:\n print("No")\n ', 'x, y = map(int, input().split())\n#print(x,y)\nif y % 2 == 1:\n print("No")\nelif x == 0 and y != 0:\n print("No")\nelif x != 0 and y == 0:\n print("N0")\nelif x * 2 <= y and x * 4 >= y:\n print("Yes")\nelse:\n print("No")\n\n ']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s058831372', 's770441452', 's871544552', 's447102105']
[9096.0, 9176.0, 9164.0, 9156.0]
[23.0, 22.0, 20.0, 21.0]
[134, 209, 134, 220]
p02640
u070630744
2,000
1,048,576
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.
['def iput(): return int(input())\ndef mput(): return map(int, input().split())\ndef lput(): return list(map(int, input().split()))\n\ndef solve():\n x, y = mput()\n hoge = (x * 4 - y) / 2\n if hoge % 1 == 0 and hoge >= 0:\n if (x-hoge) % 1 == 0:\n print("Yes")\n else:\n print("No")\n print(hoge)\n return 0\n\nif __name__ == "__main__":\n solve()\n', 'def iput(): return int(input())\ndef mput(): return map(int, input().split())\ndef lput(): return list(map(int, input().split()))\n\ndef solve():\n x, y = mput()\n hoge = (x * 4 - y) / 2\n if hoge % 1 == 0 and hoge >= 0:\n if (y-hoge) % 1 == 0:\n print("Yes")\n else:\n print("No")\n print(hoge)\n return 0\n\nif __name__ == "__main__":\n solve()\n', 'def iput(): return int(input())\ndef mput(): return map(int, input().split())\ndef lput(): return list(map(int, input().split()))\n\ndef solve():\n x, y = mput()\n hoge = (x * 4 - y) / 2\n if hoge % 1 == 0 and x >= hoge >= 0:\n print("Yes")\n else:\n print("No")\n return 0\n\nif __name__ == "__main__":\n solve()\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s505384812', 's711068916', 's986915242']
[9192.0, 9256.0, 9244.0]
[22.0, 19.0, 22.0]
[377, 377, 332]
p02640
u079656139
2,000
1,048,576
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.
["X,Y = map(int,input().split())\nans = 'no'\nfor a in range(X+1):\n for b in range(X+1):\n if a + b == X and 2*a + 4*b == Y:\n ans = 'yes'\n break\nprint(ans)", "X,Y = map(int, input().split())\nans = 0\n\nif(Y<=4*X and Y%2 == 0 and 2*X <= Y):\n ans = 1\nelse :\n ans = 0\n \nif(ans == 0):\n print('No')\nelif(ans == 1):\n print('Yes')"]
['Wrong Answer', 'Accepted']
['s480303963', 's029675499']
[9172.0, 9140.0]
[19.0, 32.0]
[182, 177]
p02640
u080419397
2,000
1,048,576
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.
['list= input().split(" ")\nX=int(list[0])\nY=int(list[1])\n\nfor w in range(X+1):\n print(w)\n z = X-w#crane_num\n w_leg_num = int(w)*2#turtle_leg_num\n z_leg_num = int(z)*4\n total_leg_num =w_leg_num+z_leg_num\n if total_leg_num == Y:\n print("Yes")\n break\n elif w==X:\n print("No")\n\n', 'list= input().split(" ")\nX=int(list[0])\nY=int(list[1])\n\nfor w in range(X+1):\n z = X-w#crane_num\n w_leg_num = int(w)*2#turtle_leg_num\n z_leg_num = int(z)*4\n total_leg_num =w_leg_num+z_leg_num\n if total_leg_num == Y:\n print("Yes")\n break\n elif w==X:\n print("No")']
['Wrong Answer', 'Accepted']
['s672174308', 's505750742']
[9128.0, 9128.0]
[23.0, 21.0]
[314, 299]
p02640
u081948001
2,000
1,048,576
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.
['a,b=(int(x) for x in input().split())\nlista=[]\nlistb=[]\nfor numa in range(a+1):\n lista.append(numa*2)\nfor numb in range(a+1):\n listb.append(numb*4)\nlistb.reverse()\ncount=0\ncombined1 = [x*y for (x, y) in (lista, listb)]\nfor num in combined1:\n if num==b:\n count+=1\nif count>0:\n print("Yes")\nelse: \n print("No")', 'a,b=(int(x) for x in input().split())\nlista=[]\nlistb=[]\nfor numa in range(a+1):\n lista.append(numa*2)\nfor numb in range(a+1):\n listb.append(numb*4)\nlistb.reverse()\ncount=0\ncombined1 = [x+y for (x, y) in (lista, listb)]\nfor num in combined1:\n if num==b:\n count+=1\nif count>0:\n print("Yes")\nelse: \n print("No")', 'a,b=(int(x) for x in input().split())\nlista=[]\nlistb=[]\nfor numa in range(a+1):\n lista.append(numa*2)\nfor numb in range(a+1):\n listb.append(numb*4)\nlistb.reverse\ncount=0\ncombined1 = [x*y for (x, y) in (lista, listb)]\nfor num in combined1:\n if num==b:\n count+=1\nif count>0:\n print("Yes")\nelse: \n print("No")', 'a,b=(int(x) for x in input().split())\nlista=[]\nfor numa in range(a+1):\n lista.append(numa*2)\nfor numb in range(a+1).reverse():\n listb.append(numb*4)\ncount=0\ncombined1 = [x*y for (x, y) in (lista, listb)]\nfor num in combined1:\n if num==b:\n count+=1\nif count>0:\n print("Yes")\nelse: \n print("No")', 'a,b=(int(x) for x in input().split())\nlista=[]\nlistb=[]\nfor numa in range(a+1):\n lista.append(numa*2)\nfor numb in range(a+1)\n listb.append(numb*4)\nlistb.reverse()\ncount=0\ncombined1 = [x*y for (x, y) in (lista, listb)]\nfor num in combined1:\n if num==b:\n count+=1\nif count>0:\n print("Yes")\nelse: \n print("No")', 'a,b=(int(x) for x in input().split())\nlista=[range(1,a)]\nlistb=lista.reverse()\ncount=0\ncombined1 = [(2*x) * (4*y) for (x, y) in (lista, listb)]\nfor num in combined1:\n if num==b:\n count+=1\nif count>0:\n print("Yes")\nelse: \n print("No")\n \n ', 'a,b=(int(x) for x in input().split())\nlista=[]\nlistb=[]\nfor numa in range(a+1):\n lista.append(numa*2)\nfor numb in range(a+1):\n listb.append(numb*4)\nlistb.reverse()\ncount=0\ncombined1 = [x+y for (x, y) in zip(lista, listb)]\nfor num in combined1:\n if num==b:\n count+=1\nif count>0:\n print("Yes")\nelse: \n print("No")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s049903195', 's163126022', 's513360789', 's516980232', 's837613908', 's965024545', 's634011655']
[9200.0, 9232.0, 9204.0, 9196.0, 8968.0, 9196.0, 9224.0]
[23.0, 21.0, 23.0, 26.0, 21.0, 23.0, 25.0]
[316, 316, 314, 301, 315, 245, 320]
p02640
u084366492
2,000
1,048,576
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.
['x, y = map(int, input().split())\nans = 0\nfor i in range(x + 1):\n print(i)\n num = i * 4 + (x - i) * 2\n if(y == num):\n ans = 1\n break\nif(ans == 1):\n print("Yes")\nelse:\n print("No")', 'x, y = map(int, input().split())\nans = 0\nfor i in range(x + 1):\n num = i * 4 + (x - i) * 2\n if(y == num):\n ans = 1\n break\nif(ans == 1):\n print("Yes")\nelse:\n print("No") ']
['Wrong Answer', 'Accepted']
['s548317590', 's001348913']
[9188.0, 9180.0]
[24.0, 25.0]
[207, 198]
p02640
u084411645
2,000
1,048,576
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.
['x, y = input().split(" ")\nx = int(x)\n y = int(y)\nprint("Yes" if 2*x <= y and y <= 4*x and y%2 == 0 else "No")', 'x, y = input().split(" ")\nx = int(x)\ny = int(y)\nprint("Yes" if 2*x <= y and y <= 4*x and y%2 == 0 else "No")\n']
['Runtime Error', 'Accepted']
['s337404715', 's381583687']
[8876.0, 9160.0]
[22.0, 26.0]
[109, 109]
p02640
u087118202
2,000
1,048,576
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.
['a,b=map(int,input().split())\nc=0\nfor i in range (a):\n for j in range (a - i):\n if (i+j)==a and (i*2 + j *4) ++ b:\n c+=1\nprint(c)', "a,b=map(int,input().split())\nc=0\nfor i in range (a):\n for j in range (a - i):\n if (i+j)==a and (i*2 + j *4) ++ b:\n c+=1\nif c== 0:\n print('No')\nelse:\n print('Yes')", "a,b=map(int,input().split())\nc=0\nfor i in range (0,a+1):\n for j in range (0,a+1):\n if (i+j)==a and (i*2 + j *4) == b:\n c+=1\nif c== 0:\n print('No')\nelse:\n print('Yes')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s031013840', 's921085232', 's076183213']
[9044.0, 9108.0, 9164.0]
[29.0, 32.0, 29.0]
[137, 173, 177]
p02640
u087844555
2,000
1,048,576
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.
["import sys\n\nx,y = map(int,input().split())\n\nfor n in range(x+1):\n kame = x - n\n\n tsuru_leg = n*2\n kame_leg = kame*4\n\n if y == tsuru_leg + kame_leg:\n print('yes')\n sys.exit()\n\nprint('no')", "import sys\n\nx,y = map(int,input().split())\n\ntsuru = 0\n\nfor n in range(x+1):\n kame = x - tsuru\n\n tsuru_leg = tsuru*2\n kame_leg = kame*4\n\n if y == tsuru_leg + kame_leg:\n print('yes')\n sys.exit()\n tsuru = tsuru + 1\n\nprint('no')", "import sys\n \nx,y = map(int,input().split())\n \nfor n in range(x+1):\n kame = x - n\n \n tsuru_leg = n*2\n kame_leg = kame*4\n \n if y == tsuru_leg + kame_leg:\n print('Yes')\n sys.exit()\n \nprint('No')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s487554517', 's932332714', 's463530728']
[9164.0, 9168.0, 9176.0]
[28.0, 26.0, 29.0]
[212, 253, 217]
p02640
u088475928
2,000
1,048,576
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.
['X,Y=map(int,input().split())\nfor i in range(X+1):\n if 2*i+4*(X-i)==Y:\n print("Yes")\n break\nprint("No")\n ', 'X,Y=map(int,input().split())\nans="No"\nfor i in range(X+1):\n if 2*i+4*(X-i)==Y:\n ans="Yes"\nprint(ans)\n \n ']
['Wrong Answer', 'Accepted']
['s527998972', 's248857979']
[9156.0, 9164.0]
[25.0, 23.0]
[112, 112]
p02640
u089230684
2,000
1,048,576
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.
['vals1,vals2 = input().split(" ") #ask input in one line\n\nvals1 = int(vals1) #animals\nvals2 = int(vals2) #actual legs\n\npossible= vals1*4 #highest possible legs\n\n\nif possible<vals2 : \n print("no")\n\nelse:\n print("yes")', 'animals_and_legs=input()\nlist=animals_and_legs.split()\nanimals=int(list[0])\nlegs=int(list[1])\nj=animals\ni=0\nsomething=True\nwhile i<=animals:\n if i*4+j*2==legs:\n print("Yes")\n something=False\n break\n i=i+1\n j=j-1\nif something is True:\n print("No")\n\n']
['Wrong Answer', 'Accepted']
['s130516279', 's933749348']
[8968.0, 9144.0]
[28.0, 28.0]
[221, 281]
p02640
u090649502
2,000
1,048,576
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.
['x, y = map(int, input().split())\nprint("Yes" if x*2 <= y <= x*4 and x%2 = 0 else "No")', 'x, y = map(int, input().split())\nprint("YES" if x*2 <= y <= x*4 else "NO")', 'x, y = map(int, input().split())\nprint("Yes" if x*2 <= y <= x*4 and y%2 == 0 else "No")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s691525312', 's818940352', 's866593357']
[9028.0, 9156.0, 9160.0]
[23.0, 22.0, 23.0]
[86, 74, 87]
p02640
u091307273
2,000
1,048,576
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.
["def main():\n na, nl = (int(i) for i in input().split())\n nc = (4*na - nl) / 2\n\n pos = nc == int(nc) and nc >= 0 and nc <= x\n\n if pos:\n print('Yes')\n else:\n print('No')\n \nmain()\n", "x, y = (int(i) for in in input().split())\n\npos = (4*x - y) // 2 >= 0\n\nif pos:\n print('Yes')\nelse:\n print('No')\n ", "def main():\n na, nl = (int(i) for i in input().split())\n nc = (4*na - nl) / 2\n\n pos = nc == int(nc) and nc >= 0 and nc <= na\n\n if pos:\n print('Yes')\n else:\n print('No')\n \n", "def main():\n na, nl = (int(i) for i in input().split())\n nc = (4*na - nl) / 2\n\n pos = (nc == int(nc) and nc >= 0 and nc <= na)\n\n if pos:\n print('Yes')\n else:\n print('No')\n \nmain()\n"]
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s131539744', 's212383074', 's255088831', 's884434289']
[9136.0, 8916.0, 9016.0, 8916.0]
[23.0, 27.0, 25.0, 31.0]
[211, 115, 205, 214]
p02640
u095094246
2,000
1,048,576
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.
["x,y=map(int,input().split())\nif y-2*x< 0 or y-2*x %2:\n print('No')\nelif 4*x-y<0 or 4*x-y%2:\n print('No')\nelse:\n print('Yes')", "import sys\nx,y=map(int,input().split())\nif y%2:\n print('No')\n sys.exit()\na2=4*x-y\nb2=y-2*x\nif a2==0 and b2==0:\n print('No')\nelif a2 < 0:\n print('No')\nelif b2 < 0:\n print('No')\nelse:\n print('Yes')\n"]
['Wrong Answer', 'Accepted']
['s356619858', 's365062161']
[9172.0, 9184.0]
[21.0, 24.0]
[127, 202]
p02640
u096025032
2,000
1,048,576
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.
['n, m = map(int, input().split())\n\nif m % 2 == 0 or m % 4 == 0:\n if (n * 4) >= m:\n print("YES")\n else:\n print("NO")\nelse:\n print("NO")', 'n, m = map(int, input().split())\n\nif m % 2 == 0 or m % 4 == 0:\n if (n * 4) >= m:\n if (n*2) <= m:\n print("Yes")\n else:\n print("No")\n else:\n print("No")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s463379727', 's926969831']
[9160.0, 9176.0]
[19.0, 24.0]
[142, 191]
p02640
u099300051
2,000
1,048,576
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.
["a,b=map(int,input().split())\nif (b-2*a) %2==0 and b-2*a >=0 :\n print('YES')\n ", "a,b=map(int,input().split())\n\nif b%2==0:\n x=b/2-a\n y=2*a-b/2\n if x >=0 and y>=0:\n print('YES')\n else:\n print('NO')\nelse:\n print('NO')", "a,b=map(int,input().split())\n\nif b%2==0:\n x=b/2-a\n y=2*a-b/2\n if x >=0 and y>=0:\n print('YES')\n else:\n print('NO')\nelse:\n print('NO')", "a,b=map(int,input().split())\n\nif b%2==0:\n x=b/2-a\n y=2*a-b/2\n if x >=0 and y>=0:\n print('Yes')\n else:\n print('No')\nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s109451269', 's492272680', 's815457706', 's017670227']
[9016.0, 9160.0, 9172.0, 9176.0]
[24.0, 19.0, 21.0, 26.0]
[79, 144, 144, 144]
p02640
u101232733
2,000
1,048,576
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.
["x, y= map(int, input().split(' '))\n\nif y> 4*x or y< 2*x:\n\tprint('Yes')\nelse:\n\tprint('No')", "l= input().split(' ')\nx= int(l[0])\ny= int(l[1])\n\ndef f(x,y):\n\tif y%2==1:\n\t\treturn 'No'\n\tfor i in range(2*x, 4*x+1):\n\t\tif i==y:\n\t\t\treturn 'Yes'\n\treturn 'No'\n\n\nprint(f(x,y))"]
['Wrong Answer', 'Accepted']
['s982650155', 's334732725']
[9168.0, 9188.0]
[21.0, 22.0]
[89, 171]
p02640
u101350975
2,000
1,048,576
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.
['2 100', "X, Y = map(int, input().split())\nfor i in range(X+1):\n if 2 * i + 4 * (X - i) == Y:\n print('Yes')\n exit()\nprint('No')\n"]
['Runtime Error', 'Accepted']
['s348521196', 's317777453']
[9080.0, 9160.0]
[25.0, 24.0]
[5, 135]
p02640
u103520789
2,000
1,048,576
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.
['ans = "No"\nfoots = 2*X\nfor tsuru in range(X+1):\n if foots == Y:\n ans = "Yes"\n foots += 2\n \n \nprint(ans)', 'X,Y = map(int, input().split())\nans = "No"\nfoots = 2*X\nfor tsuru in range(X+1):\n if foots == Y:\n ans = "Yes"\n foots += 2\n \n \nprint(ans)']
['Runtime Error', 'Accepted']
['s467936723', 's544104447']
[9032.0, 9192.0]
[20.0, 24.0]
[122, 154]
p02640
u104545083
2,000
1,048,576
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.
['x,y = input().split()\na = (2 * int(x)) - (int(y)/2)\nb = (int(y)/2) - int(x)\n\nif (a + b == int(x)) and ((2*a) + (4*b) == int(y)) and a>=0 and b>=0:\n print("yes") \nelse:\n print("no")', 'x,y = input().split()\na = (2 * int(x)) - (int(y)/2)\nb = (int(y)/2) - int(x)\n\nprint(f"turu = {a}")\nprint(f"kame = {b}")\nif (a + b == int(x)) and ((2*a) + (4*b) == int(y)) and a>=0 and b>=0:\n print("yes") \nelse:\n print("no")', 'x,y = input().split()\nimport math\na = math.floor((2 * int(x)) - (int(y)/2))\nb = math.floor((int(y)/2) - int(x))\n\nif (a + b) == int(x) and ((2*a) + (4*b) == int(y)) and a>=0 and b>=0:\n print("Yes") \nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s185920957', 's300252941', 's001610160']
[9148.0, 9192.0, 9112.0]
[28.0, 29.0, 24.0]
[186, 228, 222]
p02640
u107494228
2,000
1,048,576
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.
["a,b=map(int,input().split())\nif(b%4!=0 and b%2==0):\n print('Yes')\nelse:\n print('No')", "a,b=map(int,input().split())\nif(b%4!=0 and b%2==0 and b>=2*a and b<=4*a):\n print('Yes')\nelse:\n print('No')", "a,b=map(int,input().split()))\nif(b%(2*a)==0 or b%(4*a)==0):\n print('No')\nelse:\n print('Yes')", "a,b=map(int,input().split())\nif(b%2*a==0 or b%4*a==0):\n print('No')\nelse:\n print('Yes')", "a,b=map(int,input().split())\nk=[]\nj=a\nfor i in range(a+1):\n k.append(2*j)\n j=j+1\n#print(k)\nif(b in k):\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s473293743', 's565310940', 's872179907', 's919279542', 's240833355']
[8948.0, 9028.0, 8932.0, 9084.0, 9052.0]
[28.0, 26.0, 25.0, 25.0, 29.0]
[90, 112, 98, 93, 147]
p02640
u107799502
2,000
1,048,576
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.
['import numpy as np\nnum_list = []\n\ndef leg_num(c, t):\n return 2*c+4*t\n\nfor i in range(1, 101):\n leg_num_list = []\n for j in range(i):\n if leg_num(j, i-j) <= 100:\n leg_num_list.append(leg_num(j, i-j))\n if leg_num(i-j, j) <= 100:\n leg_num_list.append(leg_num(i-j, j))\n num_list.append(leg_num_list)\n\nx, y = map(int, input().split(" "))\n if y in num_list[x]:\n print("Yes")\n else:\n print("No")', 'import numpy as np\nnum_list = []\n\ndef leg_num(c, t):\n return 2*c+4*t\n\nfor i in range(1, 101):\n leg_num_list = []\n for j in range(i):\n if leg_num(j, i-j) <= 100:\n leg_num_list.append(leg_num(j, i-j))\n if leg_num(i-j, j) <= 100:\n leg_num_list.append(leg_num(i-j, j))\n num_list.append(leg_num_list)\n\nx, y = map(int, input().split(" "))\nif y in num_list[x-1]:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s569025780', 's891407386']
[8920.0, 27152.0]
[25.0, 120.0]
[456, 442]
p02640
u113107956
2,000
1,048,576
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.
["x,y=map(int,input().solit())\nif 2*x<=y and y%2==0 and 4*x>=y:\n print('Yes')\nelse:\n print('No')\n", "x,y=map(int,input().split())\nif 2*x<=y and y%2==0 and 4*x>=y:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s684940729', 's919676104']
[9092.0, 9088.0]
[23.0, 22.0]
[101, 101]
p02640
u113444719
2,000
1,048,576
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.
['#!/usr/local/bin/python3\n# coding: utf-8\n\nha = input()\nkita = ha.split(" ")\nx = int(kita[0])\ny = int(kita[1])\nifAshi = False\n\nfor i in range(x):\n if(x = 1):\n if(y == 2 or y == 4):\n ifAshi = True\n if((y - 2*i)%4 == 0):\n if((x-i) == ((y - 2*i)/4)):\n ifAshi = True\n\nif(ifAshi):\n print("Yes")\nelse:\n print("No")', '#!/usr/local/bin/python3\n# coding: utf-8\n\nha = input()\nkita = ha.split(" ")\nx = int(kita[0])\ny = int(kita[1])\nifAshi = False\n\nif(x == 1):\n if(y == 2 or y == 4):\n ifAshi = True\nif(x*2 == y):\n ifAshi = True\nfor i in range(x):\n \n if((y - 2*i)%4 == 0):\n if((x-i) == ((y - 2*i)/4)):\n ifAshi = True\n\nif(ifAshi):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s363396446', 's057521809']
[8964.0, 9144.0]
[23.0, 22.0]
[355, 385]
p02640
u113569368
2,000
1,048,576
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.
["XY = list(map(int, input().split()))\n \nif 2 * XY[0] - XY[1] / 2 >= 0 and -XY[0] + XY[1] / 2 >= 0:\n print('YES')\nelse:\n print('NO')", "XY = list(map(int, input().split()))\n\nif 4*XY[0] - XY[1] >= 1 and -3*XY[0] + XY[1] >= 1:\n print('YES')\nelse:\n print('NO')", "y\nXY = list(map(int, input().split()))\n\nif 2 * XY[0] - XY[1] / 2 == 0 and -XY[0] + XY[1] / 2 == 0:\n print('NO')\n\nif 2 * XY[0] - XY[1] / 2 >= 0 and -XY[0] + XY[1] / 2 >= 0:\n print('YES')\nelse:\n print('NO')", "XY = list(map(int, input().split()))\n \nc = 2 * XY[0] - XY[1] / 2\nt = - XY[0] + XY[1] / 2\n \nif not (isinstance(c, int) and isinstance(t, int)):\n print('No')\nelif c == 0 and t == 0:\n print('No')\nelif c >= 0 and t >= 0:\n print('Yes')\nelse:\n print('No')", "XY = list(map(int, input().split()))\n \nif 2 * XY[0] - XY[1] / 2 == 0 and -XY[0] + XY[1] / 2 == 0:\n print('NO')\n \nif 2 * XY[0] - XY[1] / 2 >= 0 and -XY[0] + XY[1] / 2 >= 0:\n print('YES')\nelse:\n print('NO')", "XY = list(map(int, input().split()))\n \nc = 2 * XY[0] - XY[1] / 2\nt = - XY[0] + XY[1] / 2\n \nif not (isinstance(c, int) and isinstance(t, int)):\n print('No')\nelif c == 0 and t == 0:\n print('No')\nelif c >= 0 and t >= 0:\n print('Yes')\nelse:\n print('No')", "XY = list(map(int, input().split()))\n\nc = 2 * XY[0] - XY[1] / 2\nt = - XY[0] + XY[1] / 2\n\nif (not isinstance(c, int)) or (not isinstance(t, int)):\n print('NO')\nelif c == 0 and t == 0:\n print('NO')\nelif c >= 0 and t >= 0:\n print('YES')\nelse:\n print('NO')", "XY = list(map(int, input().split()))\n \nc = 2 * XY[0] - XY[1] / 2\nt = - XY[0] + XY[1] / 2\n \nif not isinstance(XY[1] / 2, int):\n print('No')\nelif c == 0 and t == 0:\n print('No')\nelif c >= 0 and t >= 0:\n print('Yes')\nelse:\n print('No')", "XY = list(map(int, input().split()))\n \nif 2 * XY[0] - XY[1] / 2 >= 1 and -XY[0] + XY[1] / 2 >= 1:\n print('YES')\nelse:\n print('NO')", "XY = list(map(int, input().split()))\n \nc = 2 * XY[0] - XY[1] / 2\nt = - XY[0] + XY[1] / 2\n \nif not (XY[1] / 2).is_integer():\n print('No')\nelif c == 0 and t == 0:\n print('No')\nelif c >= 0 and t >= 0:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s318853941', 's400208032', 's440002821', 's519711007', 's609676822', 's609828703', 's666078141', 's672077407', 's753325175', 's415194056']
[9104.0, 9168.0, 9048.0, 9196.0, 9212.0, 9196.0, 9196.0, 9208.0, 9168.0, 9188.0]
[22.0, 19.0, 22.0, 22.0, 23.0, 22.0, 22.0, 23.0, 24.0, 28.0]
[132, 123, 207, 253, 207, 253, 256, 236, 132, 234]
p02640
u113991073
2,000
1,048,576
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.
['x,y=list(map(int,input().split()))\nsum=0\nif x==1:\n if y==2 or y==4:\n print("Yes")\n else:\n print("No")\nelif y%2!=0:\n print("No")\nelse:\n for i in range(x):\n print(i)\n if sum%4==2 and sum!=y:\n sum+=2\n print(sum)\n elif sum%4==0 and sum!=y:\n sum+=4\n print(sum)\n if sum==y:\n print("Yes")\n else:\n print("No")', 'x,y=list(map(int,input().split()))\n\na=2*x-(1/2)*y\nb=(1/2)*y-x\nif (a>=0 and b>=0) and a.is_integer()==True and b.is_integer()==True:\n print("Yes")\nelse:\n print("No")\n ']
['Wrong Answer', 'Accepted']
['s891650175', 's330618480']
[9144.0, 9168.0]
[23.0, 22.0]
[412, 175]
p02640
u116939152
2,000
1,048,576
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.
['a = input()\na = a.split()\nx = int(a[0])\ny = int(a[1])\nif y >= x * 2 and y <= x * 4 and y % 2 == 0:\n print("yes")\nelse:\n print("no")', 'a = input()\na = a.split()\nx = int(a[0])\ny = int(a[1])\nif y >= x * 2 and y <= x * 4 and y % 2 == 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s620744528', 's372736011']
[8892.0, 9100.0]
[26.0, 29.0]
[133, 133]
p02640
u119982001
2,000
1,048,576
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.
["X, Y = map(int, input().split())\n\nfor i in range(X+1):\n print(i, i*4, (X-i)*2)\n if i*4 + (X-i)*2 == Y:\n print('Yes')\n exit()\nprint('No')", "X, Y = map(int, input().split())\n\nfor i in range(X+1):\n if i*4 + (X-i)*2 == Y:\n print('Yes')\n exit()\nprint('No')\n"]
['Wrong Answer', 'Accepted']
['s835650128', 's112750901']
[9176.0, 9164.0]
[21.0, 22.0]
[156, 130]
p02640
u124212130
2,000
1,048,576
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.
['import sys\n\nX, Y = map(int, input().split())\n\nfor i in range(X):\n for j in range(X,1,-1):\n if Y == 4*i + 2*j:\n print("YES")\n sys.exit()\n\nprint("NO")', 'import sys\n\nX, Y = map(int, input().split())\n\nfor i in range(X):\n if Y == 4*i + 2*(X-i):\n print("YES")\n sys.exit()\n\nif X == 1:\n if Y == 4 or Y == 2:\n print("YES")\n sys.exit()\n\nprint("NO")', 'import sys\n\nX, Y = map(int, input().split())\n\nfor i in range(X):\n for j in range(X,1,-1):\n print(i)\n print(j)\n if Y == 4*i + 2*j:\n print("YES")\n sys.exit()\n\nif X == 1:\n if Y == 4 or Y == 2:\n print("YES")\n sys.exit()\n\nprint("NO")', 'import sys\n\nX, Y = map(int, input().split())\n\nfor i in range(X):\n for j in range(X-i):\n if Y == 4*i + 2*j:\n print("YES")\n sys.exit()\n\nif X == 1:\n if Y == 4 or Y == 2:\n print("YES")\n sys.exit()\n\nprint("NO")', 'import sys\n\nX, Y = map(int, input().split())\n\nfor i in range(X):\n for j in range(X,1,-1):\n if Y == 4*i + 2*j:\n print("YES")\n sys.exit()\n\nif X == 1:\n if Y == 4 or Y == 2:\n print("YES")\n sys.exit()\n\nprint("NO")', 'import sys\n\nX, Y = map(int, input().split())\n\nfor i in range(X+1):\n if Y == 4*i + 2*(X-i):\n print("Yes")\n sys.exit()\n\nif X == 1:\n if Y == 4 or Y == 2:\n print("Yes")\n sys.exit()\n\nif Y < X:\n print("No")\n sys.exit()\n\nprint("No")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s208428828', 's219052346', 's295294888', 's836849547', 's972456518', 's795723672']
[9172.0, 9208.0, 9204.0, 9192.0, 9212.0, 9192.0]
[24.0, 21.0, 23.0, 23.0, 25.0, 23.0]
[180, 221, 291, 254, 257, 265]
p02640
u127025777
2,000
1,048,576
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.
['a = list(map(int,input().split()))\nif a[1] % 2 == 1 :\n print("NO")\nelse :\n if a[0] * 2 <= a[1] and a[0]*4 >= a[1] :\n print("YES")\n else :\n print("NO")', 'a = list(map(int,input().split()))\nif a[1] % 2 == 1 :\n print("No")\nelse :\n if a[0] * 2 <= a[1] and a[0]*4 >= a[1] :\n print("Yes")\n else :\n print("No")']
['Wrong Answer', 'Accepted']
['s441722589', 's844686580']
[9184.0, 9164.0]
[23.0, 24.0]
[159, 159]
p02640
u127126063
2,000
1,048,576
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.
["n=input()\nx,y=n.split()\nc=(4*int(x)-int(y))/2\nt=int(x)-c\nprint(z)\nif c.is_integer and 100>=c>=0 and 100>=t>=0:\n print('Yes')\nelse:\n print('No')", "n=input()\nx,y=n.split()\nc=(4*int(x)-int(y))/2\nprint(type(c))\nt=int(x)-c\nif c.is_integer is True and t.is_integer is True and 100>=c>=0 and 100>=t>=0:\n print('Yes')\nelse:\n print('No')", 'n=input()\nx,y=n.split()\nfor c in range(int(x)+1):\n cnt=0\n t=int(x)-c\n asi=2*c+4*t\n if asi==int(y):\n print("Yes")\n cnt=1\n break\nif cnt==0:\n print("No")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s210082017', 's955292129', 's733528244']
[9116.0, 9124.0, 9080.0]
[22.0, 23.0, 27.0]
[145, 184, 164]
p02640
u127981515
2,000
1,048,576
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.
['x,y=(map(int,input().split()))\ns=(4*x-y)/2.0\nif s > 0 and (s*10%10==0):\n print("YES")\nelse:\n print("NO")\n\n', 'x,y=(map(int,input().split()))\ns=(4*x-y)/2.0\nif s >= 0 and (s*10%10==0) and s <= x:\n print("Yes")\nelse:\n print("No")\n\n']
['Wrong Answer', 'Accepted']
['s783957872', 's322819991']
[9220.0, 9220.0]
[24.0, 20.0]
[112, 124]
p02640
u129749062
2,000
1,048,576
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.
['import sys\nX ,Y = map(int,input().split())\nfor i in range(0, X+1):\n print(i)\n print(X-i)\n if 2*i + 4*(X-i) == Y:\n print("Yes")\n sys.exit()\nprint("No")\n ', 'import sys\nx,y = map(int,input().split())\nfor i in range(0,x+1):\n if 2*i + 4*(x-i) == y:\n print("Yes")\n sys.exit()\nprint("No")\n \n ']
['Wrong Answer', 'Accepted']
['s456674390', 's382977438']
[9172.0, 8948.0]
[20.0, 27.0]
[162, 141]
p02640
u131453093
2,000
1,048,576
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.
['X, Y = map(int, input().split())\nans = "No"\n\nfor i in range(X+1):\n for j in range(X+1-i):\n if 2 * i + 4 * j == Y and i + j == 5:\n ans = "Yes"\n\nprint(ans)\n', 'X, Y = map(int, input().split())\nans = "No"\n\nfor i in range(X+1):\n for j in range(X+1-i):\n if 2 * i + 4 * j == Y and i + j == X:\n ans = "Yes"\n\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s111281277', 's749688953']
[9080.0, 9096.0]
[29.0, 26.0]
[175, 175]
p02640
u137962336
2,000
1,048,576
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.
['x, y = map(int, input().split())\nif x >= 2*x and y <= 4*y and y % 2 ==0 or y % 4 ==0:\n print(Yes)\nelse:\n print(No)', 'x, y = map(int, input().split())\nif y >= 2*x and y <= 4*x and y % 2 == 0 \n print("Yes")\nelse:\n print("No")\n', 'x, y = map(int, input().split())\nif y >= 2*x and y <= 4*x and y % 2 == 0:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s064866263', 's858816891', 's287641894']
[9160.0, 9020.0, 9032.0]
[21.0, 21.0, 21.0]
[116, 109, 109]
p02640
u142317811
2,000
1,048,576
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.
["X, Y = map(int, input().split())\nans = 'No'\nfor a in range(X + 1):\n b = X - a\n if 2 * a + 4 * b == Y:\n ans = 'Yes'\nprint(ans)", "X, Y = map(int, input().split())\nans = 'No'\nfor a in range(X + 1):\n b = X - a\n if 2 * a + 4 * b == Y:\n ans = 'Yes'\nprint(ans)"]
['Runtime Error', 'Accepted']
['s970894225', 's559167079']
[8904.0, 9112.0]
[21.0, 31.0]
[128, 130]
p02640
u144310740
2,000
1,048,576
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.
["x, y =map(int,input().split())\n\nfor i in range (0,x + 1):\n z = 2*i + 4 * (x-i)\n if z == y:\n print('YES')\n break\nelse:\n print('NO')\n ", "x, y =map(int,(input()).split())\n\nfor i in range (0,x + 1):\n z = 2*i + 4 * (x-1)\n if z == y:\n print('YES')\n break\nelse:\n print('NO')\n ", "x, y =map(int,input().split())\n\nfor i in range (0,x + 1):\n z = 2*i + 4 * (x-i)\n if z == y:\n print('YES')\n break\nelse:\n print('NO')\n ", "x, y =map(int,(input()).split())\n\nfor i in range (0,x + 1):\n z = 2*i + 4 * (x-i)\n if z == y:\n print('YES')\n break\nelse:\n print('NO')\n ", "x, y = map(int,input().split())\n\nfor i in range (0,x + 1):\n z = 2*i + 4 * (x-i)\n if z == y:\n print('Yes')\n break\nelse:\n print('No')\n "]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s139620736', 's551206436', 's574409237', 's976786045', 's065986423']
[9156.0, 9160.0, 9168.0, 9164.0, 9164.0]
[22.0, 24.0, 20.0, 24.0, 20.0]
[141, 143, 141, 143, 142]
p02640
u147601652
2,000
1,048,576
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.
['import sys\n\nargv = input().split()\n\nX = int(argv[0])\nY = int(argv[1])\nsuccess = 0\n\nfor i in range(X):\n if ((2 * i) + (4 * (X - i))) == Y:\n success = 1\n\nif success == 0:\n print ("no")\nelse:\n print ("yes")', 'import sys\n\nargv = input().split()\n\nX = int(argv[0])\nY = int(argv[1])\nsuccess = 0\n\nfor i in range(X+1):\n if ((2 * i) + (4 * (X - i))) == Y:\n success = 1\n\nif success == 0:\n print ("no")\nelse:\n print ("yes")', 'import sys\n\nargv = input().split()\n\nX = int(argv[0])\nY = int(argv[1])\nsuccess = 0\n\nfor i in range(X):\n if ((2 * (i+1)) + (4 * (X - (i+1)))) == Y:\n success = 1\n\nif success == 0:\n print ("no")\nelse:\n print ("yes")', 'import sys\n\nargv = input().split()\n\nX = int(argv[0])\nY = int(argv[1])\nsuccess = 0\n\nfor i in range(X+1):\n if ((2 * i) + (4 * (X - i))) == Y:\n success = 1\n\nif success == 0:\n print ("No")\nelse:\n print ("Yes")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s409892484', 's465261562', 's589658551', 's089729184']
[9204.0, 9184.0, 9072.0, 9088.0]
[26.0, 30.0, 29.0, 30.0]
[209, 211, 217, 211]
p02640
u149475724
2,000
1,048,576
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.
['x, y = input().split()\nx = int(x)\ny = int(y)\n\nif y % 2 != 0 or x >= y:\n print("No")\nelif y == x*2 or y == x*4:\n print("Yes")\nelif (y - (x*2))%4 == 0 and x*4 == (y - (x*2)):\n print(\'Yes\')\nelif (y - (x*4))%2 == 0 and x*2 == (y - (x*4)):\n print(\'Yes\')\nelse:\n print("No")', "x, y = input().split()\nx = int(x)\ny = int(y)\n\nif y % 2 == 0 and 2 * x <= y <= 4 * x:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s399880302', 's416397071']
[9080.0, 9048.0]
[28.0, 25.0]
[282, 123]
p02640
u152741807
2,000
1,048,576
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.
['x,y=(int(x) for x in input().split())\na = ((y-x*2)/2)\nif a%1==0 and a>=0 and a<=x:\n print("YES")\nelse:\n print("NO")', 'x,y=(int(x) for x in input().split())\na = ((y-x*2)/2)\nif a%1==0 and a>=0 and a<=x:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s219878912', 's538945558']
[9232.0, 9232.0]
[23.0, 24.0]
[121, 121]
p02640
u158126367
2,000
1,048,576
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.
["x,y = map(int,input().split())\nfor i in range(0, x+1):\n ans = 2*i+4*(x-i)\n if ans == y:\n print('Yes')\n else:\n print('No')", "x,y = map(int,input().split())\nflg = 0\nfor i in range(0, x+1):\n ans = 2*i+4*(x-i)\n if ans == y:\n flg = flg + 1\nif flg >= 1:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s426053623', 's968571560']
[9076.0, 9176.0]
[23.0, 19.0]
[144, 175]
p02640
u159369286
2,000
1,048,576
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.
['x,y = map(int,input().split())\nif y < x * 4 and y > x * 2 and y % 2 == 0:\n ans ="No"\nelse :\n ans ="Yes"\nprint(ans)', 'x,y = map(int,input().split())\nif y <= x * 4 and y >= x * 2 and y % 2 == 0:\n ans ="Yes"\nelse :\n ans ="No"\nprint(ans)']
['Wrong Answer', 'Accepted']
['s441125789', 's069817593']
[9096.0, 9128.0]
[27.0, 29.0]
[120, 122]
p02640
u161857931
2,000
1,048,576
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.
['X, Y = map(int,input().split())\n\nfor i in range(X) :\n if Y -(4*((i+1) == (X-(i+1))*2 :\n print("Yes")\n exit()\n else :\n if Y==2 or Y==4 :\n print("Yes")\n exit()\nprint("No")', 'X, Y = map(int,input().split())\n\nfor i in range(X) :\n ii = i+1\n print(ii)\n if Y -(4*ii) == (X-ii)*2 :\n print("Yes")\n exit()\n else :\n if Y==2 or Y==4 :\n print("Yes")\n exit()\nprint("No")', 'X, Y = map(int,input().split())\nXX = X +1\nfor i in range(XX) :\n if Y -(4*i) == (X-i)*2 :\n print("Yes")\n exit()\n\nprint("No")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s586996274', 's617802438', 's033205505']
[9048.0, 9208.0, 9168.0]
[25.0, 20.0, 23.0]
[218, 239, 140]
p02640
u162023460
2,000
1,048,576
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.
["nums = input().split()\n[X, Y] = list(map(int, nums))\n\nif Y <= 4 * X && Y >= 2 * X:\n print('Yes')\nelse:\n print('No')\n", "nums = input().split()\nX, Y = list(map(int, nums))\n\nif Y <= 4 * X and Y >= 2 * X and Y % 2 == 0:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s960401621', 's427176512']
[9000.0, 9136.0]
[19.0, 29.0]
[122, 136]
p02640
u163188822
2,000
1,048,576
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.
['X, Y = map(int, input().split())\n\nif Y - 2 * X >= 0 and 4 * X - Y >= 0 and (Y - 2 * X) % 2 == 0 and (4 * X - Y) % 2 == 0:\n print("YES")\nelse:\n print("NO")', 'X, Y = map(int, input().split())\n\nif Y - 2 * X >= 0 and 4 * X - Y >= 0 and Y % 2 == 0:\n print("YES")\nelse:\n print("NO")', 'X, Y = map(int, input().split())\n\nif Y - 2 * X >= 0 and 4 * X - Y >= 0 and Y % 2 == 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s167207130', 's915241584', 's319090726']
[9164.0, 9164.0, 9168.0]
[22.0, 22.0, 22.0]
[160, 125, 125]
p02640
u163353866
2,000
1,048,576
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.
['x,y = map(int,input().split())\n\nif (y - x*2)%2 == 0:\n a = (y-x*2)//2\n b = x - a\n if a < 0 or b < 0:\n print("NO")\n exit(0)\n elif y == b * 2 + a * 4:\n print("YES")\n else:\n print("NO")\nelse:\n print("NO")\n', 'x,y = map(int,input().split())\n\nif 4*x - y < 0:\n print("NO")\nelif (y - x*2)%2 == 0:\n print("YES")\nelse:\n print("NO")\n', 'x,y = map(int,input().split())\n\nif (y - x*2)%2 == 0:\n a = (y-x*2)//2\n b = x - a\n if b < 0:\n print("NO")\n exit(0)\n if y == b * 2 + a * 4:\n print("YES")\n exit(0)\n\n\nprint("NO")\n', 'x,y = map(int,input().split())\n\nif (y - x*2)%2 == 0:\n a = (y-x*2)//2\n b = x - a\n if b < 0:\n print("NO")\n exit(0)\n if y == b * 2 + a * 4:\n print("YES")\n\nelse:\n print("NO")\n', 'x,y = map(int,input().split())\n\nif (y - x*2)%2 == 0:\n a = (y-x*2)//2\n b = x - a\n if a < 0 or b < 0:\n print("No")\n exit(0)\n elif y == b * 2 + a * 4:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s005472257', 's145300512', 's151527744', 's444270081', 's383811707']
[9176.0, 9100.0, 9172.0, 9124.0, 9148.0]
[21.0, 19.0, 23.0, 23.0, 25.0]
[248, 127, 215, 208, 247]
p02640
u163971674
2,000
1,048,576
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.
['x,y=map(int,input().split(" "))\n\nif y%2==0:\n if y>=2*x and y<=4*x:\n print("YES")\n else:\n print("NO")\nelse:\n print("NO")', 'x,y=map(int,input().split(" "))\n\nif y%2==0:\n if y>=2*x and y<=4*x:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s808655764', 's356094232']
[9108.0, 9168.0]
[20.0, 21.0]
[130, 130]
p02640
u165318982
2,000
1,048,576
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.
["N, A = list(map(int, input().split()))\n\nfor i in range(N+1):\n count = i * 2 + (N - i) * 4\n if count == A:\n print('Yes')\nprint('No')", "N, A = list(map(int, input().split()))\n\nflag = False\nfor i in range(N+1):\n count = i * 2 + (N - i) * 4\n if count == A:\n flag = True\n\nif flag:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s800944216', 's940825625']
[9168.0, 9060.0]
[29.0, 27.0]
[136, 181]
p02640
u165429863
2,000
1,048,576
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.
['X, Y = map(int, input().split())\n\nif Y <= X * 4 and Y % 2 == 0:\n print("YES")\nelse:\n print("NO")\n', 'X, Y = map(int, input().split())\n\nif Y <= X * 4 and Y >= X * 2 and Y % 2 == 0:\n print("Yes")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s566217442', 's227837463']
[9096.0, 9048.0]
[24.0, 22.0]
[103, 118]
p02640
u167681994
2,000
1,048,576
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.
['XY = input()\nxy = list(map(int, XY.split()))\n\nx = xy[0]\ny = xy[1]\n\nfor i in range(x + 1):\n if 2 * i + 4 * (x - i) == y:\n print("Yes")\n else:\n print("No")\n \n', 'XY = input()\nX = int,(XY.split([0]))\nY = int,(XY.split([1]))\n\nfor i in range(X + 1):\n if 2 * i + 4 * (X - i) == Y:\n print("Yes")\n else:\n print("No")\n ', 'XY = input()\nxy = list(map(int, XY.split()))\n\nx = xy[0]\ny = xy[1]\n\nexist = False\nfor i in range(x + 1):\n if 2 * i + 4 * (x - i) == y:\n exist = True\n break\n \nif exist:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s078591301', 's603751161', 's750737714']
[9136.0, 9020.0, 8984.0]
[26.0, 27.0, 30.0]
[167, 161, 211]
p02640
u168030064
2,000
1,048,576
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.
['x, y = map(int, input().split())\nfoot = y - x * 2\n\nif foot % 2 == 0 and 0 <= foot and foot <= x * 2:\n print("YES")\nelse:\n print("NO")', 'x, y = map(int, input().split())\nfoot = y - x * 2\n\nif foot % 2 == 0 and 0 <= foot and foot <= x * 2:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s049242725', 's633052764']
[9188.0, 9160.0]
[24.0, 19.0]
[139, 139]
p02640
u173644182
2,000
1,048,576
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.
['def main():\n x, y = map(int, input().split())\n if x * 4 < y or x * 2 < y or y % 2!=0 or x*2 > 101:\n print(\'No\')\n else:\n print(\'Yes\')\n\n\nif __name__ == "__main__":\n main()\n', 'def main():\n x, y = map(int, input().split())\n if x * 4 < y or x * 2 > y or y % 2 != 0:\n print(\'No\')\n else:\n print(\'Yes\')\n\n\nif __name__ == "__main__":\n main()']
['Wrong Answer', 'Accepted']
['s595863363', 's145083192']
[9152.0, 9176.0]
[22.0, 21.0]
[196, 184]
p02640
u174831560
2,000
1,048,576
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.
["c = input()\nc = c.split(' ')\nx = int(c[0])\ny = int(c[1])\nsa = y - 2 * x\nif sa % 4 == 0:\n print('Yes')\nelse:\n print('No')\n", "c = input()\nc = c.split(' ')\nx = int(c[0])\ny = int(c[1])\nsa = 4 * x -y\nsa /=2\nsb = x - sa\nall = sa * 2 + sb * 4\nprint(all)\nif all == y and sa >=0 and sb >= 0:\n print('Yes')\nelse:\n print('No')", 'def readInts():\n return list(map(int, input().split()))\n\ndef main():\n c = input()\n c = c.split(\' \')\n x = int(c[0])\n y = int(c[1])\n sa = y - 2 * x\n if sa % 4 == 0:\n print(\'Yes\')\n else:\n print(\'No\')\n \n \nif __name__ == "__main__":\n main()', "c = input()\nc = c.split(' ')\nx = int(c[0])\ny = int(c[1])\nsa = y - 2 * x\nif sa % 4 == 0 and sa >= 0:\n print('Yes')\nelse:\n print('No')", "c = input()\nc = c.split(' ')\nx = int(c[0])\ny = int(c[1])\nsa = 4 * x -y\nsa /=2\nsb = x - sa\nall = sa * 2 + sb * 4\nprint(all)\nif all == y:\n print('Yes')\nelse:\n print('No')", "c = input()\nc = c.split(' ')\nx = int(c[0])\ny = int(c[1])\nsa = 4 * x -y\nif sa % 2 == 0 and x*2 <= y and x*4>=y:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s006024402', 's119538269', 's237366397', 's648622432', 's727750101', 's599626802']
[9168.0, 9192.0, 9172.0, 9176.0, 9188.0, 9088.0]
[22.0, 20.0, 20.0, 23.0, 23.0, 20.0]
[123, 193, 251, 134, 170, 145]
p02640
u175217658
2,000
1,048,576
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.
["X,Y = map(int, input().split())\nans = 0\n\nif(Y%2 == 1 or Y > 4*X):\n ans = 0\nelif(Y<4*X and Y%2 == 0 and 2*100 <= Y):\n ans = 1\n \nif(ans == 0):\n print('No')\nelif(ans == 1):\n print('Yes')", "X,Y = map(int, input().split())\nans = 0\n\nif(Y<=4*X and Y%2 == 0 and 2*X <= Y):\n ans = 1\nelse :\n ans = 0\n \nif(ans == 0):\n print('No')\nelif(ans == 1):\n print('Yes')\n"]
['Wrong Answer', 'Accepted']
['s605279493', 's455588512']
[9188.0, 9168.0]
[21.0, 23.0]
[198, 178]
p02640
u175590965
2,000
1,048,576
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.
['x,y = map(int,input().split())\nfor i in range(x):\n for j in range(x):\n if i*2+j*4 == y and i+j == x:\n print("Yes")\n break\nprint("No")', 'x,y = map(int,input().split())\nans = "No"\nfor i in range(x+1):\n for j in range(x+1):\n if i*2+j*4 == y and i+j == x:\n ans = "Yes"\nprint(ans)\n']
['Wrong Answer', 'Accepted']
['s340738275', 's283361874']
[9112.0, 9156.0]
[26.0, 27.0]
[165, 161]
p02640
u177182853
2,000
1,048,576
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.
['import sys\nfrom collections import deque, defaultdict, Counter\nfrom itertools import accumulate, product, permutations, combinations\nfrom operator import itemgetter\nfrom bisect import bisect_left, bisect_right\nfrom heapq import heappop, heappush\nfrom math import ceil, floor, sqrt, gcd, inf\nfrom copy import deepcopy\nimport numpy as np\nimport scipy as sp\n\nINF = inf\nMOD = 1000000007\n\nx, y = [int(i) for i in input().split()]\n\ntmp = 0\nres = "No"\n\na = y - 2 * x\nb = 4 * x - y\nif 0 <= a <= x and 0 <= b <= x and a % 2 == 0 and b % 2 == 0:\n res = "Yes"\n\nprint(res)\n', 'import sys\nfrom collections import deque, defaultdict, Counter\nfrom itertools import accumulate, product, permutations, combinations\nfrom operator import itemgetter\nfrom bisect import bisect_left, bisect_right\nfrom heapq import heappop, heappush\nfrom math import ceil, floor, sqrt, gcd, inf\nfrom copy import deepcopy\nimport numpy as np\nimport scipy as sp\n\nINF = inf\nMOD = 1000000007\n\nx, y = [int(i) for i in input().split()]\n\ntmp = 0\nres = "No"\n\nfor i in range(x + 1):\n j = x - i\n if 2 * i + 4 * j == y:\n res = "Yes"\n\nprint(res)\n']
['Wrong Answer', 'Accepted']
['s221331897', 's788318395']
[31164.0, 30916.0]
[131.0, 132.0]
[564, 542]
p02640
u179365960
2,000
1,048,576
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.
['x, y = input().split()\nx = int(x)\ny = int(y)\n\ndef check(x, y):\n \n if x * 4 > y:\n print("No")\n return\n\n \n if y % 2 != 0:\n print("No")\n return\n\n \n for i in range(0, x):\n \n leg2_animal = i+1\n leg4_animal = x - leg2_animal\n \n \n sum_legs = leg2_animal * 2 + leg4_animal * 4\n\n if sum_legs == y:\n print("Yes")\n return\n\n print("No")\n\ncheck(x,y)', 'x, y = input().split()\nx = int(x)\ny = int(y)\n\ndef check(x, y):\n \n for i in range(0, x+1):\n \n leg2_animal = i\n leg4_animal = x - leg2_animal\n \n \n sum_legs = leg2_animal * 2 + leg4_animal * 4\n\n if sum_legs == y:\n print("Yes")\n return\n\n print("No")\n\ncheck(x,y)']
['Wrong Answer', 'Accepted']
['s606921564', 's616120672']
[9196.0, 9192.0]
[22.0, 23.0]
[670, 439]
p02640
u181424364
2,000
1,048,576
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.
["#a,b=map(int, input().split()) \n\nfor i in range(a):\n if (a-i)*2+(i)*4 == b:\n print('Yes')\n break\nif i==a-1:\n print('No')", "#a,b=map(int, input().split()) \n\nfor i in range(a):\n if (a-i)*2+(i)*4 == b:\n print('Yes')\n break\n \n print('No')", "a,b=map(int, input().split()) \nif i in range(a):\n if((a-i)*2 + (i)*4 == b):\n print('Yes')\n else:\n print('No')\n ", "a,b=map(int, input().split()) \n\nfor i in range(a+1):\n if (a-i)*2+(i)*4 == b:\n print('Yes')\n break\n if i==a:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s152971233', 's768430772', 's882648940', 's652786659']
[8968.0, 9048.0, 9120.0, 9168.0]
[25.0, 25.0, 21.0, 22.0]
[140, 129, 142, 147]
p02640
u183364338
2,000
1,048,576
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.
['num=[]\nnum=input().split(" ")\natama=int(num[0])\nashi=int(num[1])\n\ncount=0\nfor i in range(atama):\n if 2*(atama-i)+4*i == ashi:\n print("YES")\n break\n else:\n count=count+1\n \n if count == atama:\n print("No")', 'num=[]\nnum=input().split(" ")\natama=int(num[0])\nashi=int(num[1])\n\ncount=0\nfor i in range(atama+1):\n if 2*(atama-i)+4*i == ashi:\n print("YES")\n break\n else:\n count=count+1\n \n if count == atama+1:\n print("No")', 'num=[]\nnum=input().split(" ")\natama=int(num[0])\nashi=int(num[1])\n\ncount=0\nfor i in range(atama+1):\n if 2*(atama-i)+4*i == ashi:\n print("Yes")\n break\n else:\n count=count+1\n \n if count == atama+1:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s274795571', 's965328282', 's169529775']
[9128.0, 9184.0, 9184.0]
[24.0, 22.0, 22.0]
[243, 247, 247]
p02640
u184117766
2,000
1,048,576
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.
['x, y = map(int, input().split())\n\nturu_all = 2 * x\nkame = (y - turu_all) / 2\n\nturu = x - kame\nif x == turu + kame:\n ans = "Yes"\n if turu < 0 or kame < 0 or type(kame) == float:\n ans = "No"\n\nprint(ans)', 'x, y = map(int, input().split())\n\nturu_all = 2 * x\na = y - turu_all\nkame = a / 2\nturu = x - kame\n\nif x == turu + kame:\n ans = "Yes"\n if turu < 0 or kame < 0 or a%2 != 0:\n ans = "No"\n\nprint(ans)']
['Wrong Answer', 'Accepted']
['s386450964', 's434598793']
[9172.0, 9168.0]
[23.0, 21.0]
[213, 206]
p02640
u184661160
2,000
1,048,576
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.
['def inp():\n ls=list(map(int,input().split()))\n return ls\nx,n=map(int,input().split())\nls=inp()\nls.sort()\nif n==0:\n print(x)\n exit(0)\nelse:\n ans=0\n d=1000000000\n for i in range(1,101):\n if i in ls:\n continue\n tmp=abs(x-i)\n if tmp<d:\n d=tmp\n ans=i\n print(ans)', "x,y=map(int,input().split())\nif x==1 and x*4>=y and y%2==0 and x*2<=y:\n print('Yes')\nelif x*4>= y and y%2==0 and x*2<=y:\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s853021889', 's901142920']
[9144.0, 9180.0]
[23.0, 23.0]
[335, 158]
p02640
u185350737
2,000
1,048,576
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.
["x, y = map(int, input().split())\njudge='No'\n\nfor i in range(x+1):\n if(x==1 and (y==4 or y==2)):\n judge='Yes'\n if(y%4==0 and y/4==x):\n judge='Yes'\n if(y%2==0 and y/2==x):\n judge='Yes'\n for j in range(x+1-i):\n print(i, j)\n if((i*2+j*4)==y and i+j==x):\n judge='Yes'\n print(i*2, j*4)\n if((i*4+j*2)==y and i+j==x):\n judge='Yes'\n \nif(y%2==1):\n judge='No'\n\nprint(judge)\n ", "x, y = map(int, input().split())\njudge='No'\n\nfor i in range(x):\n if(x==1 and (y==4 or y==2)):\n judge='Yes'\n if(y%4==0 and y/4==x):\n judge='Yes'\n if(y%2==0 and y/2==x):\n judge='Yes'\n for j in range(x-i):\n if((((i*2+j*4)==y) or ((i*4+j*2)==y)) and i+j==x):\n judge='Yes'\n \nif(y%2==1):\n judge='No'\n\nprint(judge)\n ", "x, y = map(int, input().split())\njudge='No'\n\nfor i in range(x+1):\n if(x==1 and (y==4 or y==2)):\n judge='Yes'\n if(y%4==0 and y/4==x):\n judge='Yes'\n if(y%2==0 and y/2==x):\n judge='Yes'\n for j in range(x+1-i):\n print(i, j)\n if((i*2+j*4)==y and i+j==x):\n judge='Yes'\n if((i*4+j*2)==y and i+j==x):\n judge='Yes'\n \nif(y%2==1):\n judge='No'\n\nprint(judge)\n ", "x, y = map(int, input().split())\njudge='No'\n\nfor i in range(x+1):\n if(x==1 and (y==4 or y==2)):\n judge='Yes'\n if(y%4==0 and y/4==x):\n judge='Yes'\n if(y%2==0 and y/2==x):\n judge='Yes'\n for j in range(x+1-i):\n if((i*2+j*4)==y and i+j==x):\n judge='Yes'\n if((i*4+j*2)==y and i+j==x):\n judge='Yes'\n \nif(y%2==1):\n judge='No'\n\nprint(judge)\n "]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s505844574', 's855822388', 's890082893', 's166404066']
[9332.0, 9140.0, 9176.0, 9088.0]
[34.0, 27.0, 33.0, 30.0]
[408, 341, 386, 370]
p02640
u186051700
2,000
1,048,576
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.
['# B - Crane and Turtle\n\nx,y = list(map(int, input().split()))\n\na = 2*x - y/2\nb = (y-2*x)/2\n\n#print(a,b)\n\nif a>=0 and b>=0 and a%1==0.5 and b%1!=0.5:\n print("Yes")\nelse:\n print("No")', '# B - Crane and Turtle\n\nx,y = list(map(int, input().split()))\n\na = 2*x - y/2\nb = (y-2*x)/2\n\n#print(a,b)\n\nif a>=0 and b>=0 and a%1!=0.5 and b%1!=0.5:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s136595313', 's094661690']
[9236.0, 9236.0]
[23.0, 22.0]
[187, 187]
p02640
u186121428
2,000
1,048,576
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.
['\ndef main():\n\tx, y = map(int, input().split())\n\tfor a in range(x):\n\t\tif y == a * 2 + 4 * (x - a):\n\t\t\tprint(\'yes\')\n\t\t\treturn\n\t\telif (y == x * 2) or (y == y*4):\n\t\t\tprint(\'yes\')\n\t\t\treturn\n\n\tprint(\'no\')\n\treturn\n\nif __name__ == "__main__":\n\tmain()', '\ndef main():\n\tx, y = map(int, input().split())\n\tfor a in range(1, x):\n\t\tif y == a * 2 + 4 * (x - a):\n\t\t\tprint(\'yes\')\n\t\t\treturn\n\tif (y == x * 2) or (y == x*4):\n\t\tprint(\'yes\')\n\t\treturn\n\n\tprint(\'no\')\n\treturn\n\nif __name__ == "__main__":\n\tmain()', 'def main():\n\tx, y = map(int, input().split())\n\tfor a in range(x+1):\n\t\tif y == a * 2 + 4 * (x - a):\n\t\t\tprint(\'Yes\')\n\t\t\treturn\n\t# if (y == x * 2) or (y == x*4):\n\t# \tprint(\'Yes\')\n\t# \treturn\n\n\tprint(\'No\')\n\treturn\n\nif __name__ == "__main__":\n\tmain()']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s303112440', 's432659743', 's585335810']
[9168.0, 9148.0, 9164.0]
[21.0, 23.0, 21.0]
[242, 240, 244]
p02640
u186542450
2,000
1,048,576
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.
['X, Y = map(int, input().split())\nK = Y / 2 + X\nT = 2 * X - Y / 2\n\nif K.is_integer() and T.is_integer() and K * 4 + T * 2 == Y:\n print("Yes")\nelse:\n print(\'No\')\n', 'X, Y = map(int, input().split())\nK = Y / 2 - X#48\nT = 2 * X - Y / 2 #\n\nif K.is_integer() and K>=0 and T.is_integer() and T>=0 and K * 4 + T * 2 == Y and K + T == X:\n print("Yes")\nelse:\n print(\'No\')\n']
['Wrong Answer', 'Accepted']
['s328370335', 's669252488']
[9100.0, 9172.0]
[23.0, 23.0]
[166, 204]
p02640
u187883751
2,000
1,048,576
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.
["x,y = map(int,input().split())\n#2a+4b = y\n#x = a+b\n#x-a = b\n#2a+4(x-a) = y\n#y = 4x-2a\n\nfor i in range(x+1):\n if y == 4*x - 2*i:\n print('Yes')\n break\n else:\n print('No')\n", "x,y = map(int,input().split())\na = int(input())\nans = 2*a + 4(x-a)\nif ans == y:\n print('Yes')\nelse:\n print('No')\n", "x,y = map(int,input().split())\na = int(input())\nans = 2*a + 4(x-a)\nif ans == y:\n print('Yes')\nelse:\n print('No')\n", "x,y = map(int,input().split())\n#2a+4b = y\n#x = a+b\n#x-a = b\n#2a+4(x-a) = y\n#y = 4x-2a\n\nfor i in range(x+1):\n if y == 4*x - 2*i:\n print('Yes')\n break\nelse:\n print('No')\n"]
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s262658501', 's273210356', 's391752191', 's035121639']
[9088.0, 9112.0, 9088.0, 9024.0]
[29.0, 24.0, 29.0, 28.0]
[180, 115, 115, 176]
p02640
u188305619
2,000
1,048,576
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.
['X, Y = map(int, input().split())\nZ = X * 4 - Y\nprint(Z)\nif Z % 2 == 0 and Z >= 0:\n print("Yes")\nelse:\n print("No")', 'X, Y = map(int, input().split())\nif X * 4 < Y:\n print("No")\nelif X * 2 > Y:\n print("No")\nelif (X * 4 - Y) % 2 == 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s901469260', 's390538529']
[9168.0, 9172.0]
[22.0, 21.0]
[120, 160]
p02640
u190178779
2,000
1,048,576
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.
["X, Y = map(int, input().split())\nans = 'No'\nfor a in range(X + 1):\n b = X - a\n if 2 * a + 4 * b == Y:\n ans = 'Yes'\n print(ans)", "import sys\n\nX, Y = map(int, input().split())\nans = 'No'\nif X[0] > 100 or X[1] > 100:\n print(ans)\n sys.exit()\nif X[1] > X[0]*4 or X[1] < X[0]*2:\n print(ans)\n sys.exit()\nif X[1] % 2 == 1:\n print(ans)\n sys.exit()\n\nfor a in range(X + 1):\n b = X - a\n if 2 * a + 4 * b == Y:\n ans = 'Yes'\n print(ans)\n", "import sys\n\nX, Y = map(int, input().split())\nans = 'No'\nif X > 100 or Y > 100:\n print(ans)\n sys.exit()\nif Y > X*4 or Y < X*2:\n print(ans)\n sys.exit()\nif Y % 2 == 1:\n print(ans)\n sys.exit()\n\nfor a in range(X + 1):\n b = X - a\n if 2 * a + 4 * b == Y:\n ans = 'Yes'\n print(ans)", 'X = list(map(int, input().split()))\nif X[0] > 100 or X[1] > 100:\n no_print\nif X[1] > X[0]*4 or X[1] < X[0]*2:\n no_print\nif X[1] % 2 == 1:\n no_print\n\nnumber_check\n \ndef no_print():\n print(No)\n exit\n for I in list(range(1,100,1))\n\ndef number_check():\n turtle = X[0]\n crane = 0\n for (int i==0; i <= X[0]: i++):\n result = turtle * 4 + crane * 2 \n if result > X[1]:\n crane += 1\n turtle -= 1\n if result == X[1]:\n print(Yes)\n exit\n if result < X[1]:\n turtle += 1\n crane -= 1\n ', "import sys\nX,Y = map(int,input().split())\n\nif not ( 1 <= X <= 100 and 1 <= Y <= 100 ): sys.exit()\n\nfor I in range(101):\n for J in range(101):\n if (I*2 + J*4) == Y and I+J == X:\n print('Yes')\n sys.exit()\nprint('No')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s188474501', 's434239235', 's695556631', 's785356827', 's641949637']
[8892.0, 9060.0, 9048.0, 9048.0, 9184.0]
[20.0, 23.0, 22.0, 20.0, 30.0]
[126, 300, 278, 528, 246]
p02640
u193182854
2,000
1,048,576
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.
['x, y = map(int, input().split())\nfor i in range(x+1):\n j = x-i\n if i*2+j*4 == y:\n print("yes")\n break\nelse: print("No")\n', 'x, y = map(int, input().split())\nfor i in range(x+1):\n j = x-i\n if i*2+j*4 == y:\n print("Yes")\n break\nelse: print("No")\n']
['Wrong Answer', 'Accepted']
['s802807240', 's719776408']
[9112.0, 9072.0]
[29.0, 28.0]
[140, 140]
p02640
u200228637
2,000
1,048,576
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.
["x, y = map(int, input().split())\n\nif y % 2 == 0 and (x * 2 <= y) and (x * 4 <= y):\n print('Yes')\nelse:\n print('No')", "x, y = map(int, input().split())\n \nif y % 2 == 0 and (x * 2 <= y) and (x * 4 >= y):\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s940029319', 's118891201']
[9152.0, 9196.0]
[22.0, 19.0]
[117, 118]
p02640
u200916944
2,000
1,048,576
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.
['x, y = map(int, open(0).read().split())\nc = ((x * 2) <= y <= (x * 4)) and y % 2 == 0\nif c:\n print("YES")\nelse:\n print("NO")\n', 'x, y = map(int, open(0).read().split())\nc = ((x * 2) <= y <= (x * 4)) and y % 2 == 0\nif c:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s132617897', 's214892173']
[9156.0, 9164.0]
[23.0, 23.0]
[130, 129]
p02640
u202826462
2,000
1,048,576
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.
['\nimport itertools\nfrom collections import defaultdict\nimport collections\nimport math\nimport sys\nsys.setrecursionlimit(200000)\nmod = 1000000007\n\nx, y = map(int, input().split())\n\nflag = False\nfor i in range(x + 1):\n for j in range(x - i + 1):\n if i * 2 + j * 4 == y:\n print("Yes")\n flag = True\n\nif flag == False:\n print("No")', '\nimport itertools\nfrom collections import defaultdict\nimport collections\nimport math\nimport sys\nsys.setrecursionlimit(200000)\nmod = 1000000007\n\nx, y = map(int, input().split())\n\nflag = False\nfor i in range(x + 1):\n for j in range((x + 1) - i):\n if (i * 2 + j * 4) == y and i+j== x:\n flag = True\n\nif flag == False:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s034906144', 's803200361']
[9492.0, 9468.0]
[24.0, 26.0]
[375, 389]
p02640
u203471639
2,000
1,048,576
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.
['x, y = map(int, input().split())\ncount = 0\nfor i in range(1, y + 1):\n if i % 2 == 0 or i % 4 == 0:\n count += 1\nif count == x:\n print("Yes")\nelse:\n print("No")', 'x,y=map(int,input().split())\n \nfor i in range(x+1):\n j=x-i\n if j<0:continue\n if 2*i+4*j==y or 4*i+2*j==y:\n print("Yes")\n exit(0)\nprint("No")']
['Wrong Answer', 'Accepted']
['s808385437', 's129161988']
[9176.0, 9180.0]
[21.0, 22.0]
[174, 149]
p02640
u205762924
2,000
1,048,576
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.
['X,Y = map(int, input().split())\nP = "NO"\n\nfor i in range(X):\n bX = X - (i+1)\n bY = Y - 2 * (i+1)\n if 4 * bX == bY:\n P = "YES"\n \nprint(P)', 'X,Y = map(int, input().split())\nP = "No"\n\nfor i in range(X+1):\n bX = X - i\n bY = Y - 2 * i\n if 4 * bX == bY:\n P = "Yes"\n \nprint(P)']
['Wrong Answer', 'Accepted']
['s163970330', 's089180713']
[9100.0, 9164.0]
[20.0, 25.0]
[159, 153]
p02640
u206352909
2,000
1,048,576
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.
['a,b=map(int,input().split())\nfor i in range(a):\n if 2*i+4*(a-i)==b:\n print("Yes")\n break\n else:\n print("No")\n break', 'a,b=map(int,input().split())\nc=0\nfor i in range(a+1):\n if 2*i+4*(a-i)==b:\n print("Yes")\n c=1\n \n break\n else:\n pass\n \nif c==0:\n print("No")']
['Wrong Answer', 'Accepted']
['s301597419', 's280099693']
[9160.0, 9176.0]
[22.0, 21.0]
[129, 157]
p02640
u206541745
2,000
1,048,576
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.
['x,y=map(int,input().strip().split())\n\nif x*4<b:\n print("No")\nelif y%2!=0:\n print("No")\nelse:\n print("Yes")\n', 'x,y=map(int,input().strip().split())\nif x*4<y or x*2>y:\n print("No")\nelif y%2!=0:\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s648156407', 's458942174']
[9160.0, 9108.0]
[25.0, 23.0]
[110, 118]
p02640
u208512038
2,000
1,048,576
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.
['x, y = map(int, input().split())\n\nc = 0\n\nwhile x >= 0 :\n if c * 2 + x * 4 == y :\n break \n c += 1\n x -= 1\nelse :\n print(No)\n\nprint(Yes)', 'x , y = map(int, input().split()))\n\nans = False\nc = 0\nt = x\n\nwhile ans = False :\n if t = -1 :\n break \n elif c*2+t*4 == y :\n ans = True\n elif : \n c += 1\n t += -1\n\nif ans :\n print(Yes)\n elif :\n print(No)\n ', 'x , y = map(int, input().split())\n\nc = 0\nt = x\n\nwhile t >= 0 :\n if c * 2 + t * 4 = y :\n break \n c += 1\n t += -1\nelse :\n print(No)\n\nprint(Yes)', 'x, y = map(int, input().split())\n\nc = 0\nt = x\n\nwhile t >= 0 :\n if c * 2 + t * 4 == y :\n break \n c += 1\n t += -1\nelse :\n print(No)\n\nprint(Yes)', 'x, y = map(int, input().split())\n\nc = 0\n\nwhile x >= 0:\n if c * 2 + x * 4 == y:\n break\n c += 1\n x += -1\nelse:\n print("No")\n exit()\n\nprint("Yes")\n']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s044621582', 's166373055', 's782762932', 's884926058', 's776778047']
[9168.0, 8948.0, 9024.0, 9172.0, 9168.0]
[23.0, 23.0, 20.0, 22.0, 26.0]
[153, 274, 160, 160, 166]
p02640
u212242633
2,000
1,048,576
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.
["X, Y = map(int, input().split())\n\nfor i in range(0, X+1):\n if 4*i + 2*(X-i) == Y:\n print('Yes')\n break\n else:\n pass\n print('No')", "X, Y = map(int, input().split())\n\nfor i in range(0, X+1):\n if 4*i + 2*(X-i) == Y:\n flg = True\n break\n else:\n flg = False\nif flg == True:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s129219880', 's263338741']
[9044.0, 9072.0]
[30.0, 26.0]
[140, 182]
p02640
u214639130
2,000
1,048,576
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.
['x,y=map(int,input().split())\ntr,km,flag=0,0,0\nfor i in range(x):\n tr+=1\n for l in range(x-tr):\n km +=1\n if tr+km==y:\n flag=1\nif flag==1:\n print("Yes")\nelse:\n print("No")\n', 'x,y=map(int,input()).split())\ntr,km,flag=0,0,0\nfor i in range(x):\n tr+=1\n for l in range(x-tr):\n km +=1\n if tr+km==y:\n flag=1\nif frag==1:\n print("Yes")\nelse flag ==0:\n print("No")', 'x,y=map(int,input().split())\ntr,km,flag=0,0,0\n\nfor i in range(x+1):\n z=x-i\n if i*2+z*4==y:\n flag=1\nif flag==1:\n print("Yes")\nelse:\n\tprint("No")\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s400489822', 's982386559', 's687108258']
[9040.0, 8812.0, 9056.0]
[29.0, 28.0, 27.0]
[185, 194, 150]
p02640
u215315599
2,000
1,048,576
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.
['X, Y = map(int,input().split())\nfor i in range(X+1):\n a = i\n b = X-i\n if 2*a+4*b == Y or 2*b+4*a == Y:\n print(\'Yes\')\n else:\n print("No")', 'X, Y = map(int,input().split())\nfor i in range(X+1):\n a = i\n b = X-i\n if 2*a+4*b == Y or 2*b+4*a == Y:\n print(\'Yes\')\n exit()\nprint("No")\n']
['Wrong Answer', 'Accepted']
['s210113198', 's384842230']
[9168.0, 9172.0]
[22.0, 22.0]
[162, 160]
p02640
u216015528
2,000
1,048,576
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.
["x, y = map(int, input().split())\na = (2 + 2 * x - y) / 2\nb = (y - 4 * x) / 2\nif a >= 0 and b >= 0 and a % 1 == 0 and b % 1 == 0:\n print('Yes')\nelse:\n print('No')", "x, y = map(int, input().split())\na = (4 * x - y) / 2\nb = (y - 2 * x) / 2\nif a >= 0 and b >= 0 and a % 1 == 0 and b % 1 == 0:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s242641029', 's586197197']
[9172.0, 9176.0]
[22.0, 22.0]
[167, 163]
p02640
u217571418
2,000
1,048,576
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.
["X, Y = map(int, input().split())\nZ = X * 4 - Y\n\nif Z % 2 == 0 and X >= Z >= 0:\n\tprint('Yes')\nelse:\n\tprint('No')", "X, Y = map(int, input().split())\nZ = X * 4 - Y\n\nif Z % 2 == 0 and X * 2 >= Z >= 0:\n\tprint('Yes')\nelse:\n\tprint('No')"]
['Wrong Answer', 'Accepted']
['s423150611', 's446778509']
[9144.0, 9164.0]
[26.0, 29.0]
[111, 115]
p02640
u218108604
2,000
1,048,576
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.
["import sys\n# from collections import deque\n# from collections import Counter\n# from math import sqrt\n# from math import log\n# from math import ceil\n\n\n# \tif(a==0):\n# \t\treturn b \n\n\n\n\n# \tp=2\n# \twhile(p*p<=n): \n\n\n\n# \t\tp+=1\n\n\n# \ts=set()\n\n\n# \t\ts.add(i)\n\n\n# 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']\n# mod=10**9+7\n\nfast_reader=sys.stdin.readline\nfast_writer=sys.stdout.write\n\ndef input():\n\treturn fast_reader().strip()\n\ndef print(*argv):\n\tfast_writer(' '.join((str(i)) for i in argv))\n\tfast_writer('\\n')\n\ndef list_input():\n\treturn list(map(int, input().split()))\n\ndef sep_input():\n\treturn map(int, input().split())\n\n#_______________________________________________________________________________________________________________________________________\n\nx,y=sep_input()\nl=[]\nfor i in range(x+1):\n\tl.append(2*i + 4*(x-i))\n\tl.append(4*i + 2*(x-i))\ns=set(l)\nif(y in s):\n\tprint('YES')\nelse:\n\tprint('NO')", "import sys\n# from collections import deque\n# from collections import Counter\n# from math import sqrt\n# from math import log\n# from math import ceil\n\n\n# \tif(a==0):\n# \t\treturn b \n\n\n\n\n# \tp=2\n# \twhile(p*p<=n): \n\n\n\n# \t\tp+=1\n\n\n# \ts=set()\n\n\n# \t\ts.add(i)\n\n\n# 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']\n# mod=10**9+7\n\nfast_reader=sys.stdin.readline\nfast_writer=sys.stdout.write\n\ndef input():\n\treturn fast_reader().strip()\n\ndef print(*argv):\n\tfast_writer(' '.join((str(i)) for i in argv))\n\tfast_writer('\\n')\n\ndef list_input():\n\treturn list(map(int, input().split()))\n\ndef sep_input():\n\treturn map(int, input().split())\n\n#_______________________________________________________________________________________________________________________________________\n\nx,y=sep_input()\nl=[]\nfor i in range(x):\n\tl.append(2*i + 4*(x-i))\n\tl.append(4*i + 2*(x-i))\ns=set(l)\nif(y in s):\n\tprint('YES')\nelse:\n\tprint('NO')", "import sys\n# from collections import deque\n# from collections import Counter\n# from math import sqrt\n# from math import log\n# from math import ceil\n\n\n# \tif(a==0):\n# \t\treturn b \n\n\n\n\n# \tp=2\n# \twhile(p*p<=n): \n\n\n\n# \t\tp+=1\n\n\n# \ts=set()\n\n\n# \t\ts.add(i)\n\n\n# 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']\n# mod=10**9+7\n\nfast_reader=sys.stdin.readline\nfast_writer=sys.stdout.write\n\ndef input():\n\treturn fast_reader().strip()\n\ndef print(*argv):\n\tfast_writer(' '.join((str(i)) for i in argv))\n\tfast_writer('\\n')\n\ndef list_input():\n\treturn list(map(int, input().split()))\n\ndef sep_input():\n\treturn map(int, input().split())\n\n#_______________________________________________________________________________________________________________________________________\n\nx,y=sep_input()\nl=[]\nfor i in range(x+1):\n\tl.append(2*i + 4*(x-i))\n\tl.append(4*i + 2*(x-i))\ns=set(l)\nif(y in s):\n\tprint('Yes')\nelse:\n\tprint('No')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s561723729', 's730748385', 's487691093']
[9224.0, 9216.0, 9232.0]
[24.0, 20.0, 20.0]
[1244, 1242, 1244]
p02640
u218216885
2,000
1,048,576
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.
['x, y = [int(i) for i in input().split()]\nfor i in range(x+1):\n\tj = x-i\n\tif (i*2)+(j*4) == y:\n\t\tprint("Yes")\nelse:\n\tprint("No")', 'x, y = [int(i) for i in input().split()]\nfor i in range(x+1):\n\tj = x-i\n\tif i*2+j*4 == y:\n\t\tprint("Yes")\nelse:\n\tprint("No")', 'x, y = [int(i) for i in input().split()]\nfor i in range(x+1):\n\tj = x-i\n\tif i*2+j*4 == y:\n\t\tprint("Yes")\n\t\tbreak\nelse:\n\tprint("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s073315505', 's623834475', 's461012241']
[9172.0, 9168.0, 9172.0]
[23.0, 25.0, 21.0]
[126, 122, 130]
p02640
u221149873
2,000
1,048,576
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.
['x,y = list(map(int,input().split()))\nif y > 4*x or y < x*2 or y % 2 == 1:\n print("no")\nelse:\n print("yes")', 'x,y = list(map(int,input().split()))\nif y > 4*x:\n print("No")\nelif y < x*2:\n print("No")\nelif y % 2 == 1:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s182967057', 's830493078']
[9160.0, 9172.0]
[22.0, 21.0]
[112, 150]
p02640
u228636605
2,000
1,048,576
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.
['X , Y = map(int, input().split())\nflag = 0\nfor x in range(X+1):\n for y in range(X+1):\n print(x,y)\n if x + y == X and 2 * x + 4 * y == Y:\n flag = 1\n break\n if flag == 1:\n break\nif flag == 0:\n print("No")\nelse:\n print("Yes")', 'X , Y = map(int, input().split())\nflag = 0\nfor x in range(X+1):\n for y in range(X+1):\n if x + y == X and 2 * x + 4 * y == Y:\n flag = 1\n break\n if flag == 1:\n break\nif flag == 0:\n print("No")\nelse:\n print("Yes")']
['Wrong Answer', 'Accepted']
['s105944966', 's690845036']
[9312.0, 9180.0]
[26.0, 22.0]
[277, 258]