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
u769694158
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=list(map(int,input().split()))\nif b>=2*a and b<=4*a and b%2==0:\n print('YES')\nelse:\n print('NO')", "a,b=list(map(int,input().split()))\nif b>=2*a and b<=4*a and b%2==0:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s624561926', 's347053182']
[9160.0, 9128.0]
[28.0, 25.0]
[106, 106]
p02640
u770077083
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.
['print("Yes" if (lambda x: x[0] * 2 <= x[1] <= x * 4)(list(map(int,input().split()))) else "No")', 'x,y = map(int,input().split())\nif x*2 <= y <= x*4 and y % 2 == 0:\n print("Yes")\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s531617980', 's410609099']
[9072.0, 9008.0]
[22.0, 30.0]
[95, 105]
p02640
u770468054
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=-2\n\nfor i in range(x):\n if i % 2 == 0:\n z +=4\n else:\n z +=2\n if z == y :\n print("Yes")\n elif z==(y-2):\n print("Yes")\n else:\n print("No")', 'X,Y = map(int,input().split())\ne = 0\ntemp_X = X\nif Y%2 != 0:\n print("No")\n quit()\nelse:\n while temp_X >= 0:\n i = (temp_X*2) + (e*4)\n if i == Y:\n print("Yes")\n quit()\n temp_X -= 1\n e += 1\nprint("No")']
['Wrong Answer', 'Accepted']
['s889817881', 's415755392']
[9120.0, 9184.0]
[21.0, 24.0]
[228, 257]
p02640
u771210206
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\nall_kame = y - 2*x\n#print(type(all_kame))\nif all_kame < 0:\n print("No")\nelif all_kame == 0:\n print("Yes")\nelse:\n for i in range(x+1):\n if all_kame - 2*(x-i) ==0:\n print("Yes")\n break\n print("No")', 'x,y = map(int, input().split())\n\nall_kame = y - 2*x\n#print(type(all_kame))\nif all_kame < 0:\n print("No")\nelif all_kame == 0:\n print("Yes")\nelse:\n for i in range(x+1):\n if all_kame - 2*i ==0:\n print("Yes")\n else:\n print("No")', 'x,y = map(int, input().split())\n\nall_kame = y - 2*x\n#print(type(all_kame))\nif all_kame < 0:\n print("No")\n \nelif all_kame == 0:\n print("Yes")\n \nelse:\n for i in range(x+1):\n if all_kame - 2*(x-i) ==0:\n print("Yes")\n exit()\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s468535170', 's609414051', 's955711687']
[9068.0, 9192.0, 9076.0]
[28.0, 28.0, 28.0]
[269, 269, 280]
p02640
u771383254
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()))\n\nflg = true\nfor i in range(x):\n if 2*i + 4*(x-i) == y:\n print('Yes'):\n flg = False\n break\n \nif flg:print('No')", "x, y = list(map(int, input().split()))\n\nflg = True\n\nfor i in range(x+1):\n if i*2 + (x-i)*4 == y:\n print('Yes')\n flg = False\n break\n \nif flg:print('No')"]
['Runtime Error', 'Accepted']
['s951703847', 's796513737']
[8976.0, 9176.0]
[26.0, 22.0]
[166, 164]
p02640
u779728630
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 == 2 or Y - 2*X < 0 or 4 * X - Y < 0:\n print('NO')\nelse:\n print('YES')", "X, Y = map(int, input().split())\n\nif Y % 2 == 1 or Y - 2*X < 0 or 4 * X - Y < 0:\n print('No')\nelse:\n print('Yes')\n"]
['Wrong Answer', 'Accepted']
['s466991726', 's235981269']
[9160.0, 9152.0]
[23.0, 24.0]
[115, 116]
p02640
u782643389
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.
['doubutsu, ashi = input().strip().split()\n\n\n\ndoubutsu = int(doubutsu)\nashi = int(ashi)\n\nkame = (ashi-2*doubutsu)/2\ntsuru = doubutsu - kame\n\nif type(kame) == int and type(tsuru) == int:\n if kame >= 0 and tsuru >= 0:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")', 'xn = input().split()\ndata_str = input().split()\ndata = [int(s) for s in data_str] \n\ndata_2 = []\n\nx = int(xn[0]) \ndata.sort() \n\nprint(data)\n\n\na = x-1\nwhile True:\n #check\n for i in range(data):\n if data[i] == a:\n a = a - 1\n else:\n data_2.append(a)\n break\n if a == int(data_2[0]):\n break\n\n\nb = x + 1\nwhile True:\n #check\n for i in range(data):\n if int(data[i]) != b:\n data_2.append(b)\n print("bの値{}".format(b))\n break\n else:\n b = b + 1\n break\n if b == int(data_2[1]):\n break\n\n\nif abs(x-a) < abs(b-x):\n print(a)\nelse:\n print(b)', 'doubutsu, ashi = input().split()\n\n\n\n\nkame = (ashi-2*doubutsu)/2\ntsuru = doubutsu - kame\n\nif type(kame) == int and type(tsuru) == int:\n if kame >= 0 and tsuru >= 0:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")', 'listt = input().split()\n\n\n\ndoubutsu = int(listt[0])\nashi = int(listt[1])\n\nkame = (ashi-2*doubutsu)/2\ntsuru = doubutsu - kame\n\nif type(kame) == int and type(tsuru) == int:\n if kame >= 0 and tsuru >= 0:\n print("Yes")\n elif kame == 0 and tsuru == 0;\n print(\'No\')\n else:\n print("No")\nelse:\n print("No")', 'listt = input().split()\n\n\n\ndoubutsu = int(listt[0])\nashi = int(listt[1])\n\nkame = (ashi-2*doubutsu)/2\ntsuru = doubutsu - kame\n\nif type(kame) == int and type(tsuru) == int:\n if kame >= 0 and tsuru >= 0:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")', 'listt = input().split()\n\ndoubutsu = int(listt[0])\nashi = int(listt[1])\n\nkame = (ashi-2*doubutsu)/2\ntsuru = doubutsu - kame\n\nif ashi%2 == 0 and kame >= 0 and tsuru >= 0:\n print(\'Yes\')\nelse:\n print("No")\n\n\n']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s027996608', 's482087865', 's527145049', 's710570679', 's940582666', 's635247795']
[9140.0, 9168.0, 9088.0, 8928.0, 8900.0, 9168.0]
[30.0, 30.0, 23.0, 26.0, 28.0, 26.0]
[319, 959, 269, 361, 306, 210]
p02640
u785728112
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())\ncrain = (4 * x - y) / 2\nif y>=2x and y<=4x and y%2==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")']
['Runtime Error', 'Accepted']
['s550617942', 's533505353']
[9020.0, 9168.0]
[21.0, 21.0]
[124, 102]
p02640
u789854092
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] = [x forx in map(int, input().split(' '))]\nflg = -1\nif y % 2 == 1:\n flg = 1\nelse:\n for i in range(0, x):\n if i * 2 + (x - i) * 4 == y:\n flg = 0\n break\nif flg == 1 or flg == -1:\n print('No')\nelse:\n print('Yes')", "[x, y] = [x for x in map(int, input().split(' '))]\nflg = -1\nif y % 2 == 1:\n flg = 1\nelse:\n for i in range(0, x):\n if i * 2 + (x - i) * 4 == y or (x - i) * 2 + i * 4 == y:\n flg = 0\n break\nprint('Yes' if flg == 0 else 'No')"]
['Runtime Error', 'Accepted']
['s025361030', 's688622388']
[9012.0, 9196.0]
[23.0, 24.0]
[233, 236]
p02640
u791375270
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())\nlist1 = []\nlist2 = []\n\nfor x in range(0,101):\n for y in range(0,101):\n list1.append(x+y)\n list2.append(2*x+4*y)\n\n\nfor i in list1:\n if list1[i] == X and list2[i] == Y:\n print('Yes')\n sys.exit()\nprint('No')", "import sys\nX, Y = map(int,input().split())\nlist1 = []\nlist2 = []\n\nfor x in range(0,101):\n for y in range(0,101):\n list1.append(x+y)\n list2.append(2*x+4*y)\n\n\nfor i in range(len(list1)):\n if list1[i] == X and list2[i] == Y:\n print('Yes')\n sys.exit()\nprint('No')"]
['Wrong Answer', 'Accepted']
['s202021538', 's852482789']
[9456.0, 9456.0]
[27.0, 27.0]
[261, 273]
p02640
u793010149
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()) ans = 'No'\nfor a in range(X + 1):\nb=X-a\nif 2 * a + 4 * b == Y:\nans = 'Yes' print(ans)", "X,Y=map(int, input().split())\nans = 'No'\nfor a in range(X + 1):\n b=X-a\nif 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', 'Wrong Answer', 'Accepted']
['s374036451', 's689293636', 's514214363']
[8904.0, 9084.0, 9084.0]
[30.0, 31.0, 30.0]
[118, 119, 123]
p02640
u793378082
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())\nb = 0\nif y % 2 != 0:\n print("NO")\n quit()\nelse:\n while x >= 0:\n c = x * 2 + b * 4\n if c == y:\n print("YES")\n quit()\n x -=1\n b +=1\nprint("NO")', 'X, Y = map(int, input().split())\nA = x\nB = 0\nif Y % 2 != 0:\n print("NO")\n quit()\nelse:\n while A >= 0:\n C = A*2 + B*4\n if C == Y:\n print("YES")\n quit()\n A -=1\n B +=1\nprint("NO")', 'X, Y = map(int, input().split())\nif X * 2 >= Y:\n print("YES")\nelse:\n print("NO")', 'x, y = map(int, input().split())\na = x\nb = 0\nif y % 2 != 0:\n print("NO")\n quit()\nelse:\n while a >= 0:\n c = a * 2 + b * 4\n if c == y:\n print("YES")\n quit()\n a -=1\n b +=1\nprint("NO")', 'X, Y = map(int, input().split())\nA = X\nB = 0\nif Y % 2 != 0:\n print("NO")\n quit()\nelse:\n while A >= 0:\n C = A*2 + B*4\n if C == Y:\n print("YES")\n quit()\n A -=1\n B +=1\nprint("NO")', 'X, Y = map(int, input().split())\nif X * 2 <= Y or X * 4 <= Y:\n print("YES")\nelse:\n print("NO")', 'X, Y = map(int, input().split())\nif X * 2 <= Y:\n print("YES")\nelse:\n print("NO")', 'X, Y = map(int, input().split())\nA = x\nB = 0\nif Y % 2 != 0:\n print("NO")\nelse:\n while A >= 0:\n C = A*2 + B*4\n if C == Y:\n print("YES")\n quit()\n A -=1\n B +=1\n print("NO")', 'X, Y = map(int, input().split())\nA = X\nB = 0\nif Y % 2 != 0:\n print("NO")\nelse:\n while A >= 0:\n C = A*2 + B*4\n if C == Y:\n print("YES")\n A-=1\n B+=1\n print("NO")', 'X, Y = map(int, input().split())\nA = X\nB = 0\nif Y % 2 != 0:\n print("NO")\n quit()\nelse:\n while A >= 0:\n C = A*2 + B*4\n if C == Y:\n print("YES")\n quit()\n A -=1\n B +=1\n print("NO")', 'x, y = map(int, input().split())\nb = 0\nif y % 2 != 0:\n print("No")\n quit()\nelse:\n while x >= 0:\n c = x * 2 + b * 4\n if c == y:\n print("Yes")\n quit()\n x -=1\n b +=1\nprint("No")']
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s148285428', 's225348116', 's437773579', 's470808580', 's573680593', 's731504774', 's743864796', 's833764818', 's877885755', 's969369597', 's766515620']
[9032.0, 9032.0, 9188.0, 9184.0, 9184.0, 9104.0, 9160.0, 8976.0, 9120.0, 9180.0, 9184.0]
[24.0, 19.0, 21.0, 21.0, 20.0, 21.0, 22.0, 21.0, 2205.0, 24.0, 24.0]
[199, 203, 82, 205, 201, 96, 82, 196, 183, 203, 199]
p02640
u793409790
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']
['s378135932', 's793346296']
[8924.0, 9064.0]
[20.0, 27.0]
[134, 138]
p02640
u794705757
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(1, X+1):\n \n f = 2 * i + 4 * (X - i)\n if f == Y:\n print("YES")\n break\nelse:\n print("NO")', 'X, Y = map(int, input().split())\n\nfor i in range(X+1):\n f = (2 * i) + 4 * (X - i)\n if f == Y:\n print("Yes")\n break\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s132824778', 's735916434']
[9112.0, 9104.0]
[22.0, 24.0]
[172, 156]
p02640
u799107696
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#if (2*x)<y:\nz=y-(2*x) \na=z/2 \n\nif a<=x and a>=0 and z%2==0:\n print('yes')\nelse:\n print('no')", "x,y = map(int,input().split())\n#if (2*x)<y:\nz=y-(2*x) \na=z/2 \n\nif a<=x and z%2==0:\n print('yes')\nelse:\n print('no')", "x,y = map(int,input().split())\n#if (2*x)<y:\nz=y-(2*x) \na=z/2 \n\nif a<=x and a>=0 and z%2==0:\n print('yes')\nelse:\n print('No')\n", "x,y = map(int,input().split())\n#if (2*x)<y:\nz=y-(2*x) \na=z/2 \n\nif a<=x:\n print('yes')\nelse:\n print('no')", "x,y = map(int,input().split())\n\nz=y-(2*x) \na=z/2 \n\nif a<=x:\n print('yes')\nelse:\n print('no')\n", "x,y = map(int,input().split())\n#if (2*x)<y:\nz=y-(2*x) \na=z/2 \n\nif a<=x and a>=0 and z%2==0:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s154294087', 's471734691', 's683217377', 's740516802', 's867478536', 's977724700']
[9108.0, 9164.0, 9160.0, 9108.0, 9164.0, 9164.0]
[22.0, 23.0, 23.0, 22.0, 26.0, 21.0]
[185, 176, 186, 165, 99, 186]
p02640
u799428010
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='Yes'\nfor i in range(X+1):\n if Y!=2*i+4*(X-i):\n print('No')\n break\nprint('No')", "X,Y= map(int, input().split())\nfor i in range(X+1):\n if Y==2*i+4*(X-i):\n print('Yes')\n exit()\nprint('No')"]
['Wrong Answer', 'Accepted']
['s138303954', 's621415797']
[9056.0, 8984.0]
[30.0, 28.0]
[130, 122]
p02640
u801701525
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 for j in range(x+1):\n if i*2 + j*4 == y and i + j == x:\n print('yes')\n exit()\nprint('No')", "x, y = map(int,input().split())\n\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 print('Yes')\n exit()\nprint('No')"]
['Wrong Answer', 'Accepted']
['s372306566', 's865887986']
[9168.0, 9172.0]
[24.0, 24.0]
[176, 176]
p02640
u805066078
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(i*2 + (x+1-i)*4) == y or (i*4 + (x+1-i)*2) == y:\n\tprint("Yes")\n else:\n print("No")\n break', 'x, y = map(int, input().split())\nfor i in range(x+1):\n if((i*2 + (x-i)*4) == y) or ((i*4 +(x-i)*2) == y):\n print("Yes")\n\tbreak\n else:\n\tprint("No")\n\tbreak', ' x, y = map(int, input().split())\n for i in range(x+1):\n if((i*2 + (x-i)*4) == y):\n print("Yes")\n \tbreak\n else:\n \tprint("No")\n \tbreak', 'x, y = map(int, input().split())\nif y == 2:\n print("Yes")\nelse:\n for i in range(x+1):\n if((i*2 + (x+1-i)*4) == y) or ((i*4 + (x+1-i)*2) == y):\n print("Yes")\n else:\n print("No")', "x, y = map(int, input().split())\nres = 'No'\nfor i in range(x+1):\n k = x-i\n if(i*2 + k*4) == y:\n res = 'Yes'\nprint(res)"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s003110552', 's085679574', 's096507555', 's344911821', 's257242738']
[9032.0, 9004.0, 8832.0, 9128.0, 9080.0]
[23.0, 21.0, 24.0, 25.0, 28.0]
[153, 158, 165, 194, 123]
p02640
u805852597
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(input().split())\n\nmax_num = 4 * x\nmin_num = 2 * x\n\nif y % 2 == 1:\n print('No')\nelif (min_num <= y) and (max_num >= y):\n print('Yes')\nelse:\n print('No')", "x, y = input().split()\n\nif y % 2 == 1:\n print('No')\n\nmax_num = 4 * x\nmin_num = 2 * x\n\nif (min_num <= y) and (max_num >= y):\n print('Yes')\nelse:\n print('No')", "x, y = input().split()\n\nmax_num = 4 * x\nmin_num = 2 * x\n\nif y % 2 == 1:\n print('No')\nelif (min_num <= y) and (max_num >= y):\n print('Yes')\nelse:\n print('No')", "x, y = map(int, input().split())\n\nmax_num = 4 * x\nmin_num = 2 * x\n\nif y % 2 == 1:\n print('No')\nelif (min_num <= y) and (max_num >= y):\n print('Yes')\nelse:\n print('No')"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s315217075', 's349235049', 's862227216', 's552855057']
[9104.0, 9024.0, 9104.0, 9176.0]
[25.0, 23.0, 19.0, 23.0]
[171, 165, 166, 177]
p02640
u807021746
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.
['flag = True\nfor a in range(101):\n if 2*a + 4*(x-a) == y:\n print("Yes")\n flag = False\n break\nif flag:\n print("No")', 'x, y = map(int, input().split())\nflag = True\nfor a in range(x+1):\n if 2*a + 4*(x-a) == y:\n print("Yes")\n flag = False\n break\nif flag:\n print("No")']
['Runtime Error', 'Accepted']
['s525287258', 's556554713']
[9004.0, 9192.0]
[23.0, 24.0]
[124, 157]
p02640
u808817704
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 functools\n\ndef main():\n X, Y = tuple(int(c) for c in input().split(\' \'))\n for i in range(X+1):\n ashi = i*2 + (X-i)*4\n if ashi==Y:\n print(\'YES\')\n #print(i, X-i)\n break\n else:\n print(\'NO\')\n\n\nif __name__ == "__main__":\n main()', '#import functools\n\ndef main():\n X, Y = tuple(int(c) for c in input().split(\' \'))\n for i in range(X+1):\n ashi = i*2 + (X-i)*4\n if ashi==Y:\n print(\'Yes\')\n #print(i, X-i)\n break\n else:\n print(\'No\')\n\n\nif __name__ == "__main__":\n main()']
['Wrong Answer', 'Accepted']
['s126012287', 's771739989']
[9176.0, 9180.0]
[23.0, 20.0]
[297, 297]
p02640
u809963697
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 == 1:\n print('No')\nelif x * 4 < y:\n print('No')\nelif x * 2 > y:\n print('No')\nelse:\n print('Yes')", "x, y = map(int, input().split())\nif y % 2 == 1:\n print('No')\nelif x * 4 < y:\n print('No')\nelif x * 2 > y:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s530668469', 's273652858']
[9100.0, 9168.0]
[23.0, 24.0]
[140, 142]
p02640
u810764216
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.
["i = list(map(int, input().split()))\n\nx = 1/2*(i[1]-2*i[0])\nprint(x)\nif x < i[0] & isinstance(x, int):\n print('Yes')\nelse:\n print('No')\n", "i = list(map(int, input().split()))\nif i[1]%2 == 1:\n print('No')\n exit()\n\nx = 1/2*(i[1]-2*i[0])\nprint(x)\n\nif 0 <= x < i[0] and x.is_integer():\n print('Yes')\nelse:\n print('No')", "i = list(map(int, input().split()))\n\nx = 1/2*(i[1]-2*i[0])\nprint(x)\n\nif x < i[0] and x.is_integer():\n print('Yes')\nelse:\n print('No')", "i = list(map(int, input().split()))\nif i[1]%2 == 1 or i[1] == 0:\n print('No')\n exit()\n\nx = 1/2*(i[1]-2*i[0])\ny = i[0] - x\n\nif 0 <= x <= i[0] and x.is_integer():\n if 0 <= y <= i[0] and y.is_integer():\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s470039725', 's576593555', 's898448917', 's976187742']
[9172.0, 9188.0, 9172.0, 9136.0]
[22.0, 22.0, 21.0, 19.0]
[137, 179, 135, 239]
p02640
u811620467
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.
['s = input().split()\nfor i in range(int(s[0])+1):\n\tif((i * 2 + ((int(s[0])) - i) * 4) == int(s[1])):\n\t\thantei = "OK"\n\t\tbreak\n\telse:\n\t\thantei = "NG"\nif(hantei == "NG"):\n\tprint("NO")\nelse:\n\tprint("YES")', 's = input().split()\nfor i in range(int(s[0])+1):\n\tif((i * 2 + ((int(s[0])) - i) * 4) == int(s[1])):\n\t\thantei = "OK"\n\t\tbreak\n\telse:\n\t\thantei = "NG"\nif(hantei == "NG"):\n\tprint("No")\nelse:\n\tprint("Yes")']
['Wrong Answer', 'Accepted']
['s940662271', 's074968577']
[9184.0, 9216.0]
[29.0, 29.0]
[199, 199]
p02640
u812458368
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#print(x, y)\nleg_turtle = 4\nleg_clane = 2\n\nif y > x * leg_turtle:\n print("No")\n exit()\nelif y < leg_clane * x:\n print("No")\n exit()\n\n\nimport pulp\n\n\nproblem = pulp.LpProblem(\'clane_turtle\', pulp.LpMaximize)\n\n\nclane = pulp.LpVariable(\'clane\', 0, 100, \'Integer\') \nturtle = pulp.LpVariable(\'turtle\', 0, 100, \'Integer\') \n\n\nproblem += 2 * clane + 4 * turtle\n\n\nproblem += clane + turtle == x\nproblem += 2 * clane + 4 * turtle <= y\n\n\nstatus = problem.solve()\n#print(pulp.LpStatus[status])\nc = clane.value()\nt = turtle.value()\nres_1 = 2 * c + 4 * t\nres_2 = c + t\n#print(c, t)\nif res_1 == y and res_2 == x:\n print("Yes")\nelse:\n print("No")\n', 'x, y = map(int, input().split(" "))\n\n#print(x, y)\nleg_turtle = 4\nleg_clane = 2\n\nif y > x * leg_turtle:\n print("No")\n exit()\nelif y < leg_clane * x:\n print("No")\n exit()\n\n\nfor i in range(x + 1):\n clane = i\n turtle = x - i\n #print(clane, turtle)\n\n legs = 2 * clane + 4 * turtle\n\n if legs == y:\n print("Yes")\n exit()\n else:\n continue\nprint("No")']
['Runtime Error', 'Accepted']
['s733795353', 's298553383']
[9224.0, 9180.0]
[24.0, 23.0]
[775, 393]
p02640
u814288001
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!=0):\n print("NO")\nelse:\n z = b//2 \n y = b//4\n if(a>=y and a <=z):\n print(\'YES\')\n else:\n print(\'NO\')', 'a,b = map(int,input().split())\nif(b%2!=0):\n print("NO")\nelse:\n z = 2*a \n y = 4*a\n if(b>=z and b<=y):\n print(\'YES\')\n else:\n print(\'NO\')', 'a,b = map(int,input().split())\nif(b%2!=0):\n print("No")\nelse:\n z = 2*a \n y = 4*a\n if(b>=z and b<=y):\n print(\'Yes\')\n else:\n print(\'No\')']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s295460491', 's601925398', 's786998429']
[9156.0, 9192.0, 9116.0]
[26.0, 28.0, 29.0]
[166, 163, 163]
p02640
u816631826
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.
['#Take the value of X\n#Take the value of Y\n\n\nX, Y = map(int, input().split(" "))\n\nC = (Y-4*X)/-2\n\nT = X - ((Y-4*X)/-2)\n\ntotal = int(T + C)\n\nif (T<0) or (C<0):\n print("No")\nelif (T%1 != 1) or (C%1 != 1):\n print("No")\nelif (T+C) == X and (4*T + 2*C) == Y:\n print("Yes")\nelse:\n print("No")', 'vals1,vals2 = input().split(" ") #ask input in one line\n\na = int(vals1) #animals\nb = int(vals2) #actual legs\n\npossible= a*4 #highest possible legs\n\n\nif possible<b : \n print("no")\n\nelse:\n print("yes")', 'x, *y = map(int, input().split())\nC= 2\nT= 4\nans="No"\nfor i in range(x+1):\n b=x-i\n if Ci + Tb == y:\n answer = "Yes"\nprint(answer)', '#define number of animals and legs\n#function for the question can be understood as x=crane+turtles and y=2cranes+4turtles\ndef equation(numLeg, numAnim):\n for numCrane in range(0, numAnim):\n numTurt=numAnim-numCrane\n totalLeg=4*numTurt+2*numCrane\n if totalLeg==numLeg:\n return[numTurt,numCrane]\n return[None,None]\n#input x and y\nif __name__ == \'__main__\':\n x,y=int(input()).split()\n cranes,turtles=equation(y,x)\n if turtles==0:\n print("No")\n else:\n print("Yes")\n', 'x,y=map(int,input().split()) #input for x=animals, y=legs\n\nc=2 #crane has 2 legs\nt=4 #turtle has 4 legs\n\nfor i in range (x): #loop the number of animals\n\n a=x-i #the subtraction to get the number of turtle available for every loop starting from i=0\n\n if (i*c) +(t*a)==y: #the formula to get the amount of legs for both animals in a loop\n print ("yes") #if equals to y then there is a combination of both animals\n else:\n print("no")', 'X,Y = map(int,input().split()) #input number of animals and legs\n\ncrane_legs = 2\nturtle_legs = 4\n\nanswer = "No"\n\nfor i in range(X+1): #X+1 because it will only consider 0,1,2\n remaining = X-i\n if crane_legs*i + turtle_legs*remaining == Y:\n answer = "Yes"\n#Loop to check combinations of animals is correct\n\nprint(answer)']
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s229104551', 's423780607', 's540716248', 's789477253', 's890273025', 's123121301']
[9188.0, 9168.0, 9096.0, 9000.0, 9104.0, 8688.0]
[28.0, 33.0, 25.0, 22.0, 29.0, 28.0]
[316, 205, 141, 525, 454, 332]
p02640
u820087133
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(s) for s in input().rstrip().split())\n\nif ((B - 2 * A) >= 2 or (4 * A - B) >= 2) and (B - 2 * A) >= 0 and (4 * A - B) >= 0 and (B - 2 * A) % 2 == 0 and (4 * A - B) % 2 == 0:\n print("YES")\nelse:\n print("NO")', 'A, B = (int(s) for s in input().rstrip().split())\n\nif ((B - 2 * A) >= 2 or (4 * A - B) >= 2) and (B - 2 * A) >= 0 and (4 * A - B) >= 0 and (B - 2 * A) % 2 == 0 and (4 * A - B) % 2 == 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s830671690', 's907749091']
[9184.0, 9188.0]
[21.0, 21.0]
[220, 220]
p02640
u820435135
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())\n1<=x<=100\n1<=y<=100\nz=y/x\nif y>x*6:\n print('No')\nelif y<x*2:\n print('No')\nelif y%2==1:\n print('No')\nelif y==4 and x==1:\n print('No')\nelif z==2 or z==3 or z==4 or z==5 or z==6:\n print('Yes')\nelse:\n print('No')\n", "x,y=(int(x) for x in input().split())\n1<=x<=100\n1<=y<=100\nz=y/x\nif y>x*6:\n print('No')\nelif y<x*2:\n print('No')\nelif y%2==1:\n print('No')\nelif y==4 and x==1:\n print('No')\nelif z%1==1:\n print('Yes')\nelse:\n print('No')\n", "x,y=(int(x) for x in input().split())\nif y>x*4:\n print('No')\nelif y<x*2:\n print('No')\nelif y%2==1:\n print('No')\nelse:\n print('Yes')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s184444019', 's324770184', 's224256675']
[9192.0, 9184.0, 9160.0]
[23.0, 23.0, 21.0]
[265, 235, 144]
p02640
u825378567
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 A-2*B >=1 and (A-2*B)%2==0:\n print("Yes")\nelse:\n print("No")', 'def main1():\n A,B=map(int,input().split())\n for x in range(0,401):\n for y in range(0,401):\n if x+y==A and 2*x+4*y==B:\n print("Yes")\n return \n print("No")\n \nmain1()']
['Wrong Answer', 'Accepted']
['s648756045', 's622617586']
[9096.0, 9104.0]
[24.0, 27.0]
[95, 224]
p02640
u827553608
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,l=map(int,input().split())\ns=0\nif l/a==2 or l/a==4:\n\tprint("YES")\nelif l<a:\n\tprint("NO")\nelse:\n\tf=a*4\n\tif f>l:\n\t\twhile f>l:\n\t\t\tf=f-2\n\t\tif f==l:\n\t\t\tprint("YES")\t\t\t\n\t\telse:\n\t\t\tprint("NO")\n\telse:\n\t\tprint("NO") ', 'a,l=map(int,input().split())\ns=0\nif l/a==2 or l/a==4:\n\tprint("YES")\nelse:\n\tt,f=0,0\n\tfor i in range(1,a+1):\n\t\tt+=1*2\n\t\tf+=1*4\n\tif f>l:\n\t\twhile f!=l:\n\t\t\tf=f-2\n\t\tif f==l:\n\t\t\tprint("YES")\n\t\telse:\n\t\t\tprint("NO")\n\telse:\n\t\tprint("NO") ', 'a,l=map(int,input().split())\ns=0\nif l/a==2 or l/a==4:\n\tprint("YES")\nelse:\n\tf=a*4\n\tif f>l:\n\t\twhile f>l:\n\t\t\tf=f-2\n\t\tif f==l:\n\t\t\tprint("YES")\t\t\t\n\t\telse:\n\t\t\tprint("NO")\n\telse:\n\t\tprint("NO") ', 'a,l=map(int,input().split())\ns=0\nif l/a==2 or l/a==4:\n\tprint("YES")\nelif l<a:\n\tprint("NO")\nelse:\n\tf=a*4\n\tif f>l:\n\t\tfor i in range(a):\n\t\t\tf=f-2\n\t\t\tif f==l:\n\t\t\t\tprint("YES")\n\t\t\t\tbreak\t\t\t\n\t\telse:\n\t\t\tprint("NO")\n\telse:\n\t\tprint("NO") ', 'a,l=map(int,input().split())\ns=0\nif l<a or a==0:\n\tprint("NO")\nelif l/a==2 or l/a==4:\n\tprint("YES")\n\nelse:\n\tf=a*4\n\tif f>l:\n\t\tfor i in range(a):\n\t\t\tf=f-2\n\t\t\tif f==l:\n\t\t\t\tprint("YES")\n\t\t\t\tbreak\t\t\t\n\t\telse:\n\t\t\tprint("NO")\n\telse:\n\t\tprint("NO") ', 'a,l=map(int,input().split())\ns=0\nif l/a==2 or l/a==4:\n\tprint("YES")\nelse:\n\tt,f=0,0\n\tfor i in range(1,a+1):\n\t\tt+=i*2\n\t\tf+=i*4\n\tif f>l:\n\t\twhile f!=l:\n\t\t\tf=f-2\n\t\tif f==l:\n\t\t\tprint("YES")\n\t\telse:\n\t\t\tprint("NO")\n\telse:\n\t\tprint("NO") ', 'a,l=map(int,input().split())\ns=0\nif l/a==2 or l/a==4:\n\tprint("YES")\nelse:\n\tt,f=0,0\n\tfor i in range(1,a+1):\n\t\tt+=i*2\n\t\tf+=i*4\nif f>l:\n\twhile f!=l:\n\t\tf=f-2\n\tif f==l:\n\t\tprint("YES")\n\telse:\n\t\tprint("NO")\nelse:\n\tprint("NO") ', 'a,l=map(int,input().split())\ns=0\nif l<a or a==0:\n\tprint("No")\nelif l/a==2 or l/a==4:\n\tprint("Yes")\n\nelse:\n\tf=a*4\n\tif f>l:\n\t\tfor i in range(a):\n\t\t\tf=f-2\n\t\t\tif f==l:\n\t\t\t\tprint("Yes")\n\t\t\t\tbreak\t\t\t\n\t\telse:\n\t\t\tprint("No")\n\telse:\n\t\tprint("No") ']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s085715235', 's410017247', 's512157392', 's616959684', 's669058497', 's745844156', 's960884544', 's428160990']
[9136.0, 9200.0, 9060.0, 9196.0, 9196.0, 9204.0, 9204.0, 9136.0]
[23.0, 2205.0, 21.0, 23.0, 22.0, 2205.0, 2205.0, 20.0]
[209, 228, 186, 229, 238, 228, 219, 238]
p02640
u828105169
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 stdin.readline().rstrip().split()]\nif Y % 2 == 0:\n Z = Y / X\n if 2 <= Z <= 4:\n print('Yes')\nelse:\n print('No')", "from sys import stdin\nX, Y = [int(x) for x in stdin.readline().rstrip().split()]\nif Y % 2 == 0:\n Z = Y / X\n if 2 <= Z <= 4:\n print('Yes')\n else:\n print('No')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s353384791', 's104185829']
[9100.0, 9176.0]
[21.0, 22.0]
[150, 202]
p02640
u829416877
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 = 2*X-Y/2\nif ans >= 0 and ans%1 == 0:\n print('YES')\nelse:\n print('NO')", "X,Y = map(int, input().split())\nans = 2*X-Y/2\nif 0 <= ans <= X and Y%2 == 0 :\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s356882266', 's916829040']
[9180.0, 9164.0]
[22.0, 23.0]
[108, 112]
p02640
u832871520
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.
['# coding: utf-8\n\nimport sys\nimport math\nfrom collections import Counter\nimport itertools\nimport fractions\nfrom decimal import *\n#import numpy as np\n#from functools import reduce\n\n\ndef II(): return int(sys.stdin.readline())\ndef MI(): return map(int, sys.stdin.readline().split())\n\ndef LI(): return list(map(int, sys.stdin.readline().split()))\n\ndef LLI(rows_number): return [LI() for _ in range(rows_number)]\ndef SR(): return sys.stdin.readline().rstrip()\n\nascii_lowercase = \'abcdefghijklmnopqrstuvwxyz\'\nascii_uppercase = \'ABCDEFGHIJKLMNOPQRSTUVWXYZ\'\nascii_uppercase2 = \'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ\'\n\n\np2D = lambda x: print(*x, sep="\\n")\np2E = lambda x: print(\'\'.join(x))\np2S = lambda x: print(*x, sep=" ")\n\n# ###########################################\nX,Y=MI()\n\nif X*2 < Y and X*4 > Y:\n print(\'No\')\n exit()\n\nif Y%2==0:\n print(\'Yes\')\nelse:\n print(\'No\')\n', '# coding: utf-8\n\nimport sys\nimport math\nfrom collections import Counter\nimport itertools\nimport fractions\nfrom decimal import *\n#import numpy as np\n#from functools import reduce\n\n\ndef II(): return int(sys.stdin.readline())\ndef MI(): return map(int, sys.stdin.readline().split())\n\ndef LI(): return list(map(int, sys.stdin.readline().split()))\n\ndef LLI(rows_number): return [LI() for _ in range(rows_number)]\ndef SR(): return sys.stdin.readline().rstrip()\n\nascii_lowercase = \'abcdefghijklmnopqrstuvwxyz\'\nascii_uppercase = \'ABCDEFGHIJKLMNOPQRSTUVWXYZ\'\nascii_uppercase2 = \'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ\'\n\n\np2D = lambda x: print(*x, sep="\\n")\np2E = lambda x: print(\'\'.join(x))\np2S = lambda x: print(*x, sep=" ")\n\n# ###########################################\nX,Y=MI()\n\nif X*2 < Y:\n print(\'No\')\n exit()\n\nif Y%2==0:\n print(\'Yes\')\nelse:\n print(\'No\')\n', '# coding: utf-8\n\nimport sys\nimport math\nfrom collections import Counter\nimport itertools\nimport fractions\nfrom decimal import *\n#import numpy as np\n#from functools import reduce\n\n\ndef II(): return int(sys.stdin.readline())\ndef MI(): return map(int, sys.stdin.readline().split())\n\ndef LI(): return list(map(int, sys.stdin.readline().split()))\n\ndef LLI(rows_number): return [LI() for _ in range(rows_number)]\ndef SR(): return sys.stdin.readline().rstrip()\n\nascii_lowercase = \'abcdefghijklmnopqrstuvwxyz\'\nascii_uppercase = \'ABCDEFGHIJKLMNOPQRSTUVWXYZ\'\nascii_uppercase2 = \'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ\'\n\n\np2D = lambda x: print(*x, sep="\\n")\np2E = lambda x: print(\'\'.join(x))\np2S = lambda x: print(*x, sep=" ")\n\n# ###########################################\nX,Y=MI()\n\nif X*2 < Y or X*4 > Y:\n print(\'No\')\n exit()\n\nif Y%2==0:\n print(\'Yes\')\nelse:\n print(\'No\')\n', '# coding: utf-8\n\nimport sys\nimport math\nfrom collections import Counter\nimport itertools\nimport fractions\nfrom decimal import *\n#import numpy as np\n#from functools import reduce\n\n\ndef II(): return int(sys.stdin.readline())\ndef MI(): return map(int, sys.stdin.readline().split())\n\ndef LI(): return list(map(int, sys.stdin.readline().split()))\n\ndef LLI(rows_number): return [LI() for _ in range(rows_number)]\ndef SR(): return sys.stdin.readline().rstrip()\n\nascii_lowercase = \'abcdefghijklmnopqrstuvwxyz\'\nascii_uppercase = \'ABCDEFGHIJKLMNOPQRSTUVWXYZ\'\nascii_uppercase2 = \'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ\'\n\n\np2D = lambda x: print(*x, sep="\\n")\np2E = lambda x: print(\'\'.join(x))\np2S = lambda x: print(*x, sep=" ")\n\n# ###########################################\nX,Y=MI()\n\nif X*2 > Y or X*4 < Y:\n print(\'No\')\n exit()\n\nif Y%2==0:\n print(\'Yes\')\nelse:\n print(\'No\')\n']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s168830613', 's432795260', 's580275642', 's516594471']
[10392.0, 10336.0, 10464.0, 10304.0]
[40.0, 38.0, 37.0, 38.0]
[1123, 1111, 1122, 1122]
p02640
u833738197
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())\nhon = 0\nflag = False\nfor i in range(1,x+1):\n turu = i\n kame = x - i\n\n hon=2*turu+4*kame\n if hon == y:\n flag = True\n \nfor i in range(1,x+1):\n print(i)\n turu = x-i\n kame = i \n\n hon=2*turu+4*kame\n if hon == y:\n flag = True\n \nif flag == True:\n print('Yes')\nelse:\n print('No')", "x,y = map(int,input().split())\nhon = 0\nflag = False\nfor i in range(1,x+1):\n turu = i\n kame = x - i\n\n hon=2*turu+4*kame\n if hon == y:\n flag = True\n \nfor i in range(1,x+1):\n\n turu = x-i\n kame = i \n\n hon=2*turu+4*kame\n if hon == y:\n flag = True\n \nif flag == True:\n print('Yes')\nelse:\n print('No')\n "]
['Wrong Answer', 'Accepted']
['s171555902', 's346572124']
[9208.0, 9196.0]
[22.0, 23.0]
[360, 353]
p02640
u839246671
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[0] * 4) <= a[1]:\n if (a[0] * 2) >= a[1]:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")\n', 'a = list(map(int,input().split()))\nif (a[0] * 4) >= a[1] and (a[0] * 2) <= a[1] and A[1] % 2 == 0:\n print("Yes")\nelse:\n print("No")', 'a = list(map(int,input().split()))\nif (a[0] * 4) <= a[1]:\n if (a[0] * 2) >= a[1]:\n print("Yes")\n else:\n print("No")\nelse:\nprint("No")', 'a = list(map(int,input().split()))\nif (a[0] * 4) >= a[1] and (a[0] * 2) <= a[1] and a[1] % 2 == 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s054772530', 's093495259', 's544117736', 's597421060']
[9180.0, 9112.0, 9036.0, 9064.0]
[23.0, 25.0, 23.0, 20.0]
[144, 135, 141, 135]
p02640
u841568901
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 2*X<=T<=4*X and (4*X-T)%2==0 else "No")', 'X, Y = map(int, input().split())\nprint("Yes" if 2*X<=Y<=4*X and Y%2==0 else "No")']
['Runtime Error', 'Accepted']
['s783556501', 's420582259']
[9096.0, 9160.0]
[25.0, 20.0]
[87, 81]
p02640
u842054747
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\nanswer = "No"\n\nfor i in range(x + 1):\n b = x - i\n if a * 2 + b * 4 == y:\n answer = "Yes"\n\nprint(answer)\n', 'animal_num, leg_num = map(int, input().split())\n\ncrawn = 2\ntutle = 4\n\nif leg_num > animal_num * tutle:\n print("no")\nelif leg_num == animal_num * crawn:\n print("yes")\nelif leg_num == animal_num * tutle:\n print("yes")\nelif ((tutle * animal_num) - leg_num) % crawn == 0:\n print("yes")\nelse:\n print("no")\n', 'x, y = map(int, input().split())\n\nanswer = "No"\n\nfor i in range(x + 1):\n y = x - i\n if a * 2 + b * 4 == y:\n answer = "Yes"\n\nprint(answer)', 'x, y = map(int, input().split())\n\nanswer = "No"\n\nfor i in range(x + 1):\n j = x - i\n if i * 2 + j * 4 == y:\n answer = "Yes"\n\nprint(answer)\n']
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s058297649', 's209190783', 's738588807', 's445658662']
[8976.0, 9104.0, 9144.0, 9148.0]
[21.0, 30.0, 25.0, 25.0]
[143, 306, 142, 143]
p02640
u842388336
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\nans = 'No'\nfor i range(x+1):\n if (x*2 + (x-i)*4) == y:\n ans='Yes'\n break\nprint(ans)", "x, y = map(int, input().split())\n\nans = 'No'\nfor i in range(x+1):\n if (i*2 + (x-i)*4) == y:\n ans='Yes'\n break\nprint(ans)\n"]
['Runtime Error', 'Accepted']
['s839941605', 's838250412']
[8928.0, 9156.0]
[30.0, 25.0]
[124, 128]
p02640
u844123804
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.
['i = input().split()\ni = [int(j) for j in i]\n\nflg = 0\nfor a in range(i[0]):\n if 2*a+4*b==i[1]:\n print("Yes")\n flg = 1\n \nif flg==0:\n print("No")', 'i = input().split()\ni = [int(j) for j in i]\n \nflg = 0\nfor a in range(i[0]+1):\n if 2*a+4*(i[0]-a)==i[1]:\n print("Yes")\n flg = 1\n \nif flg==0:\n print("No")']
['Runtime Error', 'Accepted']
['s590447653', 's597024147']
[9112.0, 9180.0]
[24.0, 20.0]
[153, 163]
p02640
u845416499
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.
['if __name__ == \'__main__\':\n x, y = map(int, input().strip().split())\n flag = False\n\n if y % 2 == 1:\n print("No")\n else:\n sum = x * 4\n if sum == y:\n print("Yes")\n else:\n for i in range(x):\n sum -= 2\n if sum == y:\n print("Yes")\n break\n flag = True\n if not flag:\n print("No")\n', 'if __name__ == \'__main__\':\n x, y = map(int, input().strip().split())\n flag = False\n\n if y % 2 == 1:\n print("No")\n else:\n sum = x * 4\n if sum == y:\n print("Yes")\n else:\n for i in range(x):\n sum -= 2\n if sum == y:\n print("Yes")\n flag = True\n break\n\n if not flag:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s955359413', 's862793780']
[9188.0, 9180.0]
[21.0, 23.0]
[448, 449]
p02640
u845536929
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().stlip(' '))\n\nif y % 2 != 0:\n print('No')\nelif y - 2 * x < 0:\n print('No')\nelse:\n print('Yes')\n \n", "X, Y = map(int, input().split(' '))\n\nans = 'No'\nfor x in range(X+1):\n if 2*x + 4*(X-x) == y:\n ans = 'Yes'\n break\n \nprint(ans)\n ", "X, Y = map(int, input().split(' '))\n\nans = 'No'\nfor x in range(X+1):\n if 2*x + 4*(X-x) == Y:\n ans = 'Yes'\n break\n \nprint(ans)\n \n"]
['Runtime Error', 'Runtime Error', 'Accepted']
['s359223924', 's588736415', 's114008676']
[9020.0, 9112.0, 9164.0]
[26.0, 24.0, 30.0]
[124, 138, 139]
p02640
u845620905
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\nif B % 2 == 1:\n print("NO")\nelse:\n if 2*A <= B and B <= 4*A:\n print("YES")\n else:\n print("NO")', 'A, B = map(int, input().split())\n\nif B % 2 == 1:\n print("No")\nelse:\n if 2*A <= B and B <= 4*A:\n print("Yes")\n else:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s512906034', 's812649791']
[9168.0, 9152.0]
[21.0, 22.0]
[151, 152]
p02640
u845650912
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:\n print('No')\nelif Y%2 != 0:\n print('No')\nelse:\n if (4*X-Y)%2 == 0 and (Y-2*X) == 0:\n print('Yes')\n else:\n print('No') ", "X, Y= map(int,input().split())\n\nif Y < 2 *X:\n print('No')\nelif Y%2 != 0:\n print('No')\nelse:\n if (4*X-Y)%2 == 0 and (4*X-Y) >= 0:\n print('Yes')\n else:\n print('No') "]
['Wrong Answer', 'Accepted']
['s378524579', 's750172926']
[9180.0, 9208.0]
[22.0, 22.0]
[191, 191]
p02640
u845847173
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\ny = (X + Y) / 2\nif type(y) == "int":\n print("Yes")\nelse:\n print("No")', 'X, Y = map(int, input().split())\n\ny = (Y - X) / 2\nx = (4 * X - Y) / 2\nif type(y) == "int" and type(x) == "int":\n print("Yes")\nelse:\n print("No")', 'X, Y = map(int, input().split())\n\nif 4 * X < Y:\n print("No")\nelif Y / 2 < X:\n print("No")\nelse:\n y = abs(Y - 2 * X)\n x = abs(4 * X - Y)\n if y%2 == 0 and x%2 == 0:\n print("Yes")\n else:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s458972142', 's924705684', 's716072703']
[9096.0, 9168.0, 9184.0]
[21.0, 20.0, 21.0]
[109, 150, 208]
p02640
u849229491
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())\nimport sys\nif x == 1 and y == 2:\n print('Yes')\nelif x == 1 and y == 4:\n print('Yes')\nelse:\n for i in range(1,x+1):\n tmp = i*2+(4*(x-i))\n print(tmp)\n if tmp == y:\n print('Yes')\n sys.exit()\n print('No')\n", "x,y = map(int,input().split())\nimport sys\nif x == 1 and y == 2:\n print('Yes')\nelif x == 1 and y == 4:\n print('Yes')\nelse:\n for i in range(x+1):\n tmp = i*2+(4*(x-i))\n if tmp == y:\n print('Yes')\n sys.exit()\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s932799516', 's851673831']
[9204.0, 9184.0]
[22.0, 21.0]
[287, 266]
p02640
u849334482
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.
["animal, leg = map(int, input().split())\n\nanswer = 'No'\n\nfor i in range(1, animal+1):\n temp = 2 * i + 4 * (animal-i)\n if temp == leg:\n answer = 'YES'\n break\n\nprint(answer)", "animal, leg = map(int, input().split())\n\nanswer = 'No'\n\nfor i in range(animal):\n temp = 2 * (i+1) + 4 * (animal-i-1)\n if temp == leg:\n answer = 'YES'\n break\n\nprint(answer)", "animal, leg = map(int, input().split())\n\nanswer = 'No'\n\nfor i in range(0, animal+1):\n temp = 2 * i + 4 * (animal-i)\n if temp == leg:\n answer = 'YES'\n break\n\nprint(answer)", "animal, leg = map(int, input().split())\n\nanswer = 'No'\n\nfor i in range(0, animal+1):\n temp = 2 * i + 4 * (animal-i)\n if temp == leg:\n answer = 'Yes'\n break\n\nprint(answer)"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s057730799', 's095580768', 's423195721', 's144177249']
[9152.0, 9108.0, 9164.0, 9196.0]
[25.0, 22.0, 22.0, 25.0]
[190, 191, 190, 190]
p02640
u854405453
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())\ni = 'yes' if x * 2 <= y <= x * 4 and y % 2 == 0 else 'no'\nprint(i)", "x,y = map(int, input().split())\ni = 'Yes' if x * 2 <= y <= x * 4 and y % 2 == 0 else 'No'\nprint(i)"]
['Wrong Answer', 'Accepted']
['s718773687', 's270690346']
[9156.0, 9160.0]
[23.0, 21.0]
[98, 98]
p02640
u855967722
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 T in range(100):\n for K in range(100):\n if (T+K) == X and (2*T) + (4*K) == Y:\n print("YES")\n exit()\nprint("NO")', 'X, Y = map(int, input().split())\nT = (Y - 2*X) / 2\nK = X - (Y - 2*X) / 2\nif (T >= 0) and (K >= 0):\n print("YES")\nelse:\n print("NO")\n ', 'X, Y = map(int, input().split())\nfor T in range(100):\n for K in range(100):\n if (T+K) == X and (2*T) + (4*K) == Y:\n print("Yes")\n exit()\nprint("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s122065507', 's234050301', 's865355126']
[9176.0, 9108.0, 9180.0]
[28.0, 20.0, 23.0]
[162, 136, 162]
p02640
u863370423
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(input().split()) #input number of animals and legs\n\ncrane_legs = 2\nturtle_legs = 4\n\nanswer = "No"\n\nfor i in range(X+1): #X+1 because it will only consider 0,1,2\n remaining = X-i\n if crane_legs*i + turtle_legs*remaining == Y:\n answer = "Yes"\n#Loop to check combinations of animals is correct\n\nprint(answer)', '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', '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")', 'i = list(map(int, input().split()))\n\nCrane = 2\nTurtle = 4\n\n\nX=i[0]\nY=i[1]\n\nC=0\nT=0\nnoAnimal = 0\n\ndef Calculate (C,T,Crane,Turtle,X,Y):\n if X > 100:\n return False\n if Y > 100:\n return False\n \n for C in range(50):\n \n for T in range(25):\n Leg = (T*Turtle)+(C*Crane)\n if Leg > 100:\n return False\n \n if Leg == Y:\n noAnimal = C+T\n return True\n\n return False\n \nprint (Calculate(C,T,Crane,Turtle,X,Y))', 'x,y=map(int,input().split()) #input for x=animals, y=legs\n\nc=2 #crane has 2 legs\nt=4 #turtle has 4 legs\n\nfor i in range (x+1): #loop the number of animals\n\n a=x-i #the subtraction to get the number of turtle available for every loop starting from i=0\n\n if (i*c) +(x*t)==y: #the formula to get the amount of legs for both animals in a loop\n print ("yes") #if equals to y then there is a combination of both animals\n else:\n print("no")', "C, T = map(int, input().split())\n\n#declare the output result no\nresult = 'No'\nfor a in range(C + 1):\nb = C - a \n\n#but if the combination is in the cases the result will be yes\nif 2 * a + 4 * b == T:\n result = 'Yes'\n\nprint(result)\n", '#definiition\nx,y= map(int,input().split())\ncrane= 2\nturtle= 4\nans="No"\n#Loop\nfor i in range(x+1):\n b=x-i\n if crane*i + turtle*b == y:\n ans = "Yes"\nprint(ans)']
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s251991389', 's459892757', 's585327944', 's737664362', 's807258065', 's890583110', 's873859632']
[9056.0, 9144.0, 9128.0, 9204.0, 9028.0, 8984.0, 9168.0]
[27.0, 27.0, 26.0, 26.0, 28.0, 25.0, 28.0]
[328, 281, 221, 544, 456, 242, 170]
p02640
u863397945
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,l = map(int,input().split())\n\nfor i in range(n):\n if 4*i+2*(n-i)-l == 0:\n print("Yes")\n break\n else:\n print("No")', 'n,l = map(int,input().split())\n \nfor i in range(n+1):\n if 4*i+2*(n-i)-l == 0:\n print("Yes")\n break\n else:\n print("No")', 'n,l = map(int,input().split())\ncount = 0 \n\nfor i in range(n+1):\n if 4*i+2*(n-i)-l == 0:\n print("Yes")\n count = 1\n break\n\nif count == 0:\n print("No")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s071299055', 's241477626', 's233626609']
[9116.0, 9076.0, 9120.0]
[27.0, 27.0, 31.0]
[126, 129, 159]
p02640
u864085306
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 = list(map(int, input().split()))\n\nX= num[0]\nY =num[1]\n\nfor i in range(X):\n if 4*X - 2*i == Y:\n print("Yes")\n braek;\n else:\n print("No")\n break;', 'num = list(map(int, input().split()))\n\nX= num[0]\nY =num[1]\nans = "No"\nfor i in range(X+1):\n if 4*X - 2*i == Y:\n ans = "Yes"\n braek;\nprint(ans)', 'num = list(map(int, input().split()))\n\nX= num[0]\nY =num[1]\n\nfor i in range(X+1):\n if 4*X - 2*i == Y:\n print("Yes")\n braek;\n else:\n print("No")\n break;', 'num = list(map(int, input().split()))\nX= num[0]\nY =num[1]\n\nans = "No"\nfor i in range(X+1):\n if 4*X - 2*i == Y:\n ans = "Yes"\n break;\nprint(ans)']
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s019531064', 's560145403', 's642111132', 's057267948']
[9176.0, 8908.0, 9160.0, 9180.0]
[27.0, 24.0, 27.0, 29.0]
[162, 149, 164, 149]
p02640
u865222833
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 = [int(v) for v in input().split(' ')]\n if y % 2 == 0 and y >= 2 * x and y <= 4 * x:\n print('yes')\n else:\n print('no')\n\n\nif __name__ == '__main__':\n main()\n", "def main():\n x, y = [int(v) for v in input().split(' ')]\n if y % 2 == 0 and y >= 2 * x and y <= 4 * x:\n print('Yes')\n else:\n print('No')\n\n\nif __name__ == '__main__':\n main()\n"]
['Wrong Answer', 'Accepted']
['s303781635', 's349995842']
[9160.0, 9164.0]
[21.0, 25.0]
[200, 200]
p02640
u866374539
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#a+b=x\n#2a+4b=y\n#2a=4x-y\n\nif ((y-(2*x))%2==0)&(x-((y-(2*x))/2))>0 :\n print("Yes")\nelse:\n print("No")', 'x,y=map(int,input().split())\n\nif (y % 2 == 0) and (x * 2 <= y <= x * 4):\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Accepted']
['s896251291', 's945714513']
[9172.0, 9076.0]
[24.0, 27.0]
[132, 107]
p02640
u868540272
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()) ans = 'No'\nfor a in range(X + 1):\n\tb=X-a\n\tif 2 * a + 4 * b == Y:\nans = 'Yes' print(ans)\n \n", "X, Y = map(int, input().split()) \nans = 'No'\nfor a in range(X + 1):\n\tb=X-a\n\tif 2 * a + 4 * b == Y:\n\t\tans = 'Yes' print(ans)\n \n", "A=list(map(int,input().split()))\na=[]\nfor n in range(0,101):\n for m in range(0,101):\n if n+m=A[0] & 2*n+4*m=A[1]:\n a.append(1)\n else:\n a.append(0)\n \nif 1 in a:\n print('yes')\nelse:\n print('No')\n \n \n", "A=list(map(int,input().split()))\na=[]\nfor n in range(0,a[0]+1):\n m=A[0]-n\n if 2*n+4*m=A[1]:\n a.append(1)\n \nif 1 in a:\n print('yes')\nelse:\n print('No')\n \n \n", "X, Y = map(int, input().split()) ans = 'No'\nfor a in range(X + 1):\nb=X-a\nif 2 * a + 4 * b == Y:\nans = 'Yes' print(ans)\n \n", "X, Y = map(int, input().split()) \nans = 'No'\nfor a in range(X + 1):\n\tb=X-a\n\tif 2 * a + 4 * b == Y:\n\t\tans = 'Yes' \nprint(ans)\n \n"]
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s110406914', 's160142834', 's160509756', 's486795973', 's920904356', 's586882933']
[8976.0, 8992.0, 8936.0, 8880.0, 8968.0, 9100.0]
[28.0, 26.0, 26.0, 26.0, 24.0, 29.0]
[124, 127, 227, 177, 122, 128]
p02640
u868884408
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(input().split(" "))\nanimal = int(a[0])\nfoot = int(a[1])\n \nsaisyo = 2 * animal\nsaidai = 4 * animal\n \nif (foot % 2 = 0) and (saisyo <= foot <= saidai):\n\tprint("Yes")\nelse:\n print("No")', 'a = list(input().split(" "))\nanimal = int(a[0])\nfoot = int(a[1])\n\nsaisyo = 1 * animal\nsaidai = 2 * animal\nb = foot / 2\n\nif (foot % 2 = 0) and (saisyo <= b <= saidai):\n\tprint("Yes")\nelse:\n print("No")', 'a = list(input().split(" "))\nanimal = int(a[0])\nfoot = int(a[1])\n \nsaisyo = 2 * animal\nsaidai = 4 * animal\n \nif (foot % 2 == 0) and (saisyo <= foot <= saidai):\n\tprint("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s134514684', 's813629656', 's580005301']
[9020.0, 9028.0, 9176.0]
[22.0, 22.0, 22.0]
[194, 202, 195]
p02640
u880400515
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 math\n\nX, Y = list(map(int, input().split()))\n\nc = Y / 2 - X\nt = X - c\n\nif (c < 0 or t < 0 or c != math.floor(c) or t != math.floor(t)):\n print("NO")\nelse:\n print("YES")\n', 'import math\n\nX, Y = list(map(int, input().split()))\n\nc = Y / 2 - X\nt = X - c\n\n\nif (c < 0 or t < 0 or c != math.floor(c) or t != math.floor(t)):\n print("No")\nelse:\n print("Yes")\n']
['Wrong Answer', 'Accepted']
['s350588635', 's655276793']
[9172.0, 9164.0]
[21.0, 23.0]
[182, 183]
p02640
u883237011
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\nfor kame in range(0, x+1):\n tsuru = x - kame\n legs = kame * 4 + tsuru * 2\n if legs == y:\n print("Yes")\n break\nelse:\n print("No")\n', 'x, y = map(int, input().split())\n\nfor kame in range(0, x+1):\n tsuru = x - kame\n legs = kame * 4 + tsuru * 2\n if legs == y:\n print("Yes")\n break\nelse:\n print("No")\n']
['Runtime Error', 'Accepted']
['s355117361', 's085659916']
[9032.0, 8920.0]
[33.0, 28.0]
[179, 189]
p02640
u887080361
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.
["data=input().split()\nx=int(data[0])\ny=int(data[1])\n\nif (y%2 != 0) and (y-2*x >= 0) and ((y-2*x)/2 <=x):\n print('Yes') \nelse:\n print('No')", "data=input().split()\nx=int(data[0])\ny=int(data[1])\n\nif y%2 != 0 and y-2*x >= 0 and (y-2*x)/2 <=x:\n print('Yes') \nelse:\n print('No')", "data=input().split()\nx=int(data[0])\ny=int(data[1])\n\nif (y%2 == 0) and (y-2*x >= 0) and ((y-2*x)/2 <=x):\n print('Yes') \nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s014394755', 's502837728', 's771469767']
[8940.0, 9148.0, 8992.0]
[26.0, 24.0, 24.0]
[146, 140, 146]
p02640
u888933875
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'\nif Y % 2 == 0 and 0 <= (4 * X - Y) / 2 <= X:\n ans='Yes'\n exit()\nprint(ans)", "X, Y = map(int, input().split())\nans='No'\nif Y % 2 == 0 and 0 <= (4 * X - Y) / 2 <= X:\n ans='Yes'\n exit(0)\nprint(ans)", "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'\n exit()\nprint(ans)", "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'\n exit()\nprint(ans)", "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'\n exit(0)\nprint(ans)", 'def test():\n x, y = map(int, input().split())\n if y&1:\n print("No")\n return\n print("Yes" if 2*x<=y<= 4*x else "No")\ntest()']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s276410185', 's742103509', 's817571398', 's828398564', 's998255855', 's932811985']
[9080.0, 9172.0, 9112.0, 9156.0, 9160.0, 9108.0]
[29.0, 27.0, 27.0, 31.0, 31.0, 28.0]
[122, 123, 131, 131, 132, 145]
p02640
u894939163
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.
["animals, legs = input().split()\nanimals = int(animals)\nlegs = int(legs)\n\nfor i in range(0,animals+1):\n print(animals)\n if ((i * 2) + ((animals - i) * 4)) == legs:\n result = True\n break\n result = False\n\nif result:\n print('Yes')\nelse:\n print('No')\n ", "animals, legs = input().split()\nanimals = int(animals)\nlegs = int(legs)\n\nfor i in range(0,animals+1):\n if ((i * 2) + ((animals - i) * 4)) == legs:\n result = True\n break\n result = False\n\nif result:\n print('Yes')\nelse:\n print('No')\n "]
['Wrong Answer', 'Accepted']
['s524534763', 's689494255']
[9172.0, 9172.0]
[23.0, 21.0]
[258, 241]
p02640
u900132103
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()] \n\nfor a in range(0,X) :\n Z = 2 * a + 4 * (X - a)\n print("yes" if Z == Y else "NO")', "x,y = map(int,input().split())\nans='No'\nfor i in range(x+1):\n if y == 2*i+4*(x-i):\n ans='Yes'\nprint(ans)"]
['Wrong Answer', 'Accepted']
['s745610759', 's978692632']
[9172.0, 9172.0]
[24.0, 20.0]
[124, 114]
p02640
u902430070
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 == 1:\n print('No')\nelse:\n if y //4 < x or y //2 > x:\n print('No')\n else:\n print('Yes')\n ", "x, y = map(int, input().split())\nif y % 2 == 1:\n print('No')\nelse:\n if x*2 <= y <= x*4 :\n print('Yes')\n else:\n print('No')"]
['Wrong Answer', 'Accepted']
['s170829087', 's435007140']
[9160.0, 9164.0]
[23.0, 22.0]
[140, 133]
p02640
u903005414
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\nv = -Y + 4 * X\n# print('v', v)\nif v % 2 != 0:\n print('No')\n exit()\n\nif v < 0:\n print('No')\n exit()\n\nif X < v:\n print('No')\n exit()\n\nprint('Yes')\n\n# a: turu, b: kame\n# a * 2 + b * 4 = Y\n# a + b = X\n\n# b = X - a\n# a * 2 + (X - a) * 4 = Y\n\n# a = (- Y + 4 * X) / 2\n", "X, Y = map(int, input().split())\n\nif X % 2 == 1 and Y % 2 == 1:\n print('No')\n exit()\n\nv = -Y + 4 * X\n# print('v', v)\nif v % 2 != 0:\n print('No')\n exit()\n\nif v < 0:\n print('No')\n exit()\n\nif X < v:\n print('No')\n exit()\n\nprint('Yes')\n\n# a: turu, b: kame\n# a * 2 + b * 4 = Y\n# a + b = X\n\n# b = X - a\n# a * 2 + (X - a) * 4 = Y\n\n# a = (- Y + 4 * X) / 2\n", "X, Y = map(int, input().split())\n\nfor a in range(0, X + 1):\n b = X - a\n if a * 2 + b * 4 == Y:\n print('Yes')\n exit()\nprint('No')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s218572906', 's772925158', 's082542594']
[9116.0, 9180.0, 9100.0]
[21.0, 23.0, 21.0]
[360, 418, 149]
p02640
u910632349
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 4*i+(x-i)*2=y:\n print("Yes")\n exit()\nprint("No")', 'x,y=map(int,input().split())\nfor i in range(x+1):\n if 4*i+(x-i)*2==y:\n print("Yes")\n exit()\nprint("No")']
['Runtime Error', 'Accepted']
['s463617629', 's687822292']
[8920.0, 9192.0]
[25.0, 26.0]
[119, 120]
p02640
u913973350
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\nb,a = map(int,input().split())\n\n\nt=[]\n\n\nif a%2==0:\n\tt.append(a//2)\n \nif a%4==0:\n\tt.append(a//4)\n\nif a%6==0:\n\tt.append(a//6)\n\nif (a%4)%2==0:\n t.append(a//4+(a%4)//2)\n\nif b in t:\n print('Yes')\nelse:\n print('No')\n", "\na,b = map(int,input().split())\n\nu=0\nfor k in range(a+1):\n x = a-k\n\n if k*2+x*4==b:\n print('Yes')\n u+=1\n break\n\nif u==0:\n print('No')"]
['Wrong Answer', 'Accepted']
['s364604225', 's388944972']
[9116.0, 9120.0]
[29.0, 23.0]
[219, 146]
p02640
u916242112
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\nif Y%2 ==1:\n\tprint("No")\nelif X<2*Y or X > 4*Y:\n\tprint("No")\nelse:\n\tprint("Yes")', 'Y,X = map(int,input().split())\n\n\nif Y%2 ==1:\n\tprint("No")\nelif X<2*Y or X > 4*Y:\n\tprint("No")\nelse:\n\tprint("Yes")\n', 'X,Y = map(int,input().split())\n\n\nif Y%2 ==1:\n\tprint("No")\nelif Y<2*X or Y > 4*X:\n\tprint("No")\nelse:\n\tprint("Yes")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s590583301', 's918287026', 's852482391']
[9164.0, 9068.0, 9160.0]
[25.0, 24.0, 24.0]
[125, 126, 126]
p02640
u917558625
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.
["s=list(map(int,input().split()))\nif Y-2*X>=0 and (Y-2*X)%2==0:\n a=int((Y-2*X)//2)\n if X-a>=0:\n print('Yes')\n else:\n print('No')\nelse:\n print('No')", "X,Y=map(int,input().split())\nif Y-2*X>=0 and (Y-2*X)%2==0:\n a=int((Y-2*X)//2)\n if X-a>=0:\n print('Yes')\n else:\n print('No')\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s282910650', 's894769905']
[9180.0, 9176.0]
[21.0, 22.0]
[156, 152]
p02640
u920463220
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.
["from sys import stdin,stdout\nx,y=map(int,stdin.readline().split())\nif y&1:\n print('No')\n exit(0)\nt=y//2-1\nc=x-t\nans='Yes' if c>0 and t>0 else 'No'\nprint(ans)", "from sys import stdin,stdout\nx,y=map(int,stdin.readline().split())\nif y&1:\n print('No')\n exit(0)\nt=(y//2)-x\nc=x-t\nans='Yes' if c>=0 and t>=0 else 'No'\nprint(ans)"]
['Wrong Answer', 'Accepted']
['s587479637', 's865672883']
[9164.0, 9204.0]
[23.0, 22.0]
[163, 167]
p02640
u920977317
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:\\Users\\kouya\\Anaconda3\\python.exe C:/Users/kouya/pywork/atcoder/past/Contest170.py\n2 100\nNo\n\nProcess finished with exit code 0\n', 'import sys\n\ndef main():\n X,Y=map(int,input().split())\n crane=(Y-2*X)/2\n if crane!=int(crane):\n print("No")\n sys.exit()\n turtle=X-crane\n if crane>=0 and turtle>=0:\n print("Yes")\n else:\n print("No")\n\nif __name__=="__main__":\n main()']
['Runtime Error', 'Accepted']
['s770673811', 's073267934']
[8968.0, 9168.0]
[24.0, 25.0]
[129, 279]
p02640
u923269289
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.
['l=list(map(int,input().split()))\nn=l[0]\nlegs=l[1]\nif(l[1]%2!=0):\n print("No")\nif(l[1]%2==0 and l[0]*4>=l[1] and l[0]*2<=l[1]):\n print("Yes")\nif(l[0]==l[1] and l[1]==0):\n print("Yes")\nelse:\n print("No")\n', 'l=list(map(int,input().split()))\nn=l[0]\nlegs=l[1]\n(2*a)+(2*(n-a))==legs\nif(l[1]%2!=0):\n print("No")\nif(l[1]%2==0 and l[0]*4>=l[1]):\n print("Yes")\nelse:\n print("No")', 'l=list(map(int,input().split()))\nn=l[0]\nlegs=l[1]\nif(n==0 and legs==0):\n print("Yes")\nif(legs%2==0 and l[0]*4>=l[1] and l[0]*2<=l[1]):\n print("Yes")\nelse:\n print("No")\n \n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s267519815', 's732158282', 's770129945']
[9196.0, 9192.0, 9176.0]
[21.0, 21.0, 21.0]
[214, 173, 182]
p02640
u925406312
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\nturu = 2\nkame = 4\nflag =0\n\nfor x in range(a + 1):\n \n for y in range(a + 1):\n \n if x + y == b//2 and (x + y) <= a:\n flag += 1\n\nif flag == 0:\n print("No")\nelse:\n print("Yes")', 'turu = 2\nkame = 4\nflag =0\n\nfor x in range(a + 1):\n for y in range(a + 1):\n if turu * x + kame * y == b and x + y <= a:\n flag += 1\n\nif flag == 0:\n print("No")\nelse:\n print("Yes")', '\nX,Y = map(int,input().split())\n\nturu = 2\nkame = 4\nflag = False\nfor i in range(0, X + 1): # 0, 1, 2, 3\n \n turu_num = X - i\n \n leg_total = kame * i + turu_num * turu\n \n if(leg_total == Y):\n flag = True\n break\n# for q in range(0, X - i + 1):\n\n# if kame * i + turu * q == Y and (i + q) <= X:\n\nif flag:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s470501766', 's706675742', 's395422378']
[9188.0, 9104.0, 9160.0]
[23.0, 22.0, 21.0]
[303, 204, 620]
p02640
u931655383
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 == 0:\n if x*4 >= y >= x*2:\n for i in range(x):\n if (x*4) - ((x-i)*2) == y:\n print("YES")\n break\n else:\n print("NO")\n else:\n print("NO")\nelse:\n print("NO")', 'x,y = map(int,input().split())\nk = "NO"\nfor i in range(x+1):\n b=x-i\n if (b*4)+(i*2)==y:\n k="YES"\nprint(k)', 'x,y= map(int, input().split())\nif y %2 == 0:\n if x*4 >= y >= x*2:\n for i in range(x+1):\n if (x*4) - ((x-i)*2) == y:\n print("YES")\n break\n else:\n print("NO")\n else:\n print("NO")\nelse:\n print("NO")', 'x,y = map(int,input().split())\nk = "NO"\nfor i in range(x+1):\n b=x-i\n if i*4+b*2==y:\n k="YES"\nprint(k)', 'x,y= map(int, input().split())\nif y %2 == 0:\n\tif x*4 >= y >= x*2:\n \t\tprint("YES")\nelse:\n print("NO")', 'x,y = map(int,input().sprit())\nk = "NO"\nfor i in range(x+1):\n b=x-i\n if i*4+b*2==y:\n k="YES"\nprint(k)', 'x,y= map(int, input().split())\nif y %2 == 0:\n if x*4 >= y >= x*2:\n print(\'YES\')\n else:\n print("NO")\nelse:\n print("NO")', 'x,y= map(int, input().split())\nif y %2 == 0:\n if x*4 >= y >= x*2:\n for i in range(x):\n if (x*4*i) - ((x-i)*2) == y:\n print("YES")\n break\n else:\n print("NO")\n else:\n print("NO")\nelse:\n print("NO")', 'x,y = map(int,input().split())\nk = "No"\nfor i in range(x+1):\n b=x-i\n if (b*4)+(i*2)==y:\n k="Yes"\nprint(k)']
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s029184396', 's049625311', 's097666021', 's224932081', 's661429704', 's686435028', 's701147729', 's705198782', 's828371970']
[9180.0, 9160.0, 9180.0, 9160.0, 9160.0, 8980.0, 9164.0, 9204.0, 9056.0]
[24.0, 24.0, 21.0, 22.0, 23.0, 22.0, 21.0, 22.0, 21.0]
[258, 110, 260, 106, 103, 106, 144, 260, 110]
p02640
u933650305
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=Y%4\nb=a/2\nc=int(Y/4)\nif a%2!=0,b+c>X:\n print("No")\nelse:\n print("Yes")', 'X,Y=map(int,input().split())\na=Y%4\nb=a/2\nc=int(Y/4)\nif a%2!=0 or b+c>X or 4*X<Y or 2*X>Y:\n print("No")\nelse:\n print("Yes")\n']
['Runtime Error', 'Accepted']
['s082621686', 's832893852']
[9012.0, 9116.0]
[21.0, 28.0]
[103, 125]
p02640
u934940582
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*X - Y/2) > 0 and Y%2 == 0:\n print('YES')\nelse:\n print('NO')\n", "X,Y = map(int,input().split())\n\nfor i in range(X+1):\n if 2*i + 4*(X-i) == Y:\n print('YES')\n if i == X:\n prinnt('NO')", "X,Y = map(int,input().split())\n\nif (2*X - Y/2) > 0 and Y%2 == 0:\n print('YES')\nelse:\n print('NO')\n", "X,Y = map(int,input().split())\n\nif (2*X - Y/2) >= 0 and Y%2 == 0:\n print('YES')\nelse:\n print('NO')\n", "X,Y = map(int,input().split())\n\nfor i in range(X+1):\n if 2*i + 4*(X-i) == Y:\n print('YES')\n break\n if i == X:\n print('NO')", "import sys\nX,Y = map(int,input().split())\n\n\nfor i in range(X+1):\n if 2*i + 4*(X-i) == Y:\n print('Yes')\n sys.exit()\nprint('No')\n "]
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s339866338', 's356319777', 's426844740', 's505684208', 's806947303', 's466931802']
[9148.0, 9164.0, 9144.0, 8972.0, 9124.0, 9120.0]
[28.0, 23.0, 26.0, 32.0, 29.0, 29.0]
[104, 136, 104, 105, 149, 148]
p02640
u935254309
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\nflg = False\n\nfor i in range(1,X+1):\n \n j = X-i\n \n print(i,j)\n if i*2+j*4 == Y:\n flg=True\n break\n \n \nif(flg == True):\n print("Yes")\nelse:\n print("No")\n ', 'X,Y = map(int,input().split())\n\nflg = False\n\nfor i in range(X+1):\n \n j = X-i\n \n if i*2+j*4 == Y:\n flg=True\n break\n \n \nif flg == True:\n print("Yes")\nelse:\n print("No")\n \n']
['Wrong Answer', 'Accepted']
['s393973635', 's115658449']
[9100.0, 9076.0]
[28.0, 24.0]
[243, 226]
p02640
u935642171
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())\nv = Y-(2*X)\nif v<0 or v%2==1:\n print('No')\nelif 4*X > Y:\n print('No')\nelse:\n print('Yes')\n", "X,Y = input().split()\nv = Y-(2*X)\nif v<0 or v%2==1:\n print('No')\nelse:\n print('Yes')", "X,Y = map(int,input().split())\nv = Y-(2*X)\nif v<0 or v%2==1:\n print('No')\nelif 4*X < Y:\n print('No')\nelse:\n print('Yes')\n"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s197547366', 's551318873', 's658478777']
[9152.0, 8952.0, 9156.0]
[28.0, 24.0, 30.0]
[124, 86, 124]
p02640
u939581910
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())\nr=4*x\nif r>=y y>=2*x and (r-y)%2==0:\n print('Yes')\nelse:\n print('No')\n", "x,y=map(int,input().split())\nr=4*x\nif r>=y and y>=2*x and (r-y)%2==0:\n print('Yes')\nelse:\n print('No')\n"]
['Runtime Error', 'Accepted']
['s107059047', 's044407345']
[9016.0, 9068.0]
[25.0, 27.0]
[101, 105]
p02640
u940831163
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\na = (y-2*x)/2\nb = (4*x-y/2)\nif a == int(a) and b == int(b) and a >= 0 and b >= 0:\n print('YES')\nelse:\n print('NO')\n", "x, y = map(int, input().split())\n\nfor i in range(100):\n for j in range(100):\n if i+j == x and 2*i + 4*j == y:\n print('Yes')\n exit()\nprint('No')\n"]
['Wrong Answer', 'Accepted']
['s032339134', 's747563789']
[9104.0, 9104.0]
[25.0, 24.0]
[155, 176]
p02640
u944731949
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().split()\n\nif int(a[1]) % 2 != 0:\n print('No')\nelif int(a[0]) * 4 == int(a[1]) or int(a[0]) * 2 == int(a[1]):\n print('Yes')\nelif 2 * int(a[0]) >= int(a[1]) and 2 * int(a[0]) - int(a[1]) / 2 >= 1:\n print('Yes')\nelse:\n print('No')", "a = input().split()\nx = int(a[0])\ny = int(a[1])\nif y % 2 != 0 or 2 * x > y:\n print('No')\nelif 2 * x - y / 2 >= 0:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s547008159', 's620760757']
[9204.0, 9176.0]
[23.0, 22.0]
[264, 155]
p02640
u944886577
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 i in range(100):\n for j in range(100):\n if i+j==x and i*2+j*4=y:\n flag=1\n exit()\n else:\n pass\nif flag==1:\n print("Yes")\nelse:\n print("No")\n', 'a,b=map(int,input().split())\n for i in range(a):\n for j in range(b):\n if i+j=a and i*2+4*j=b:\n print("Yes")\n break\n else:\n print("No")\n ', 'x,y=map(int, input().split())\nflag=0\nfor i in range(100):\n for j in range(100):\n if i+j==x and i*2+j*4==y:\n flag=1\n else:\n pass\n \nif flag==1:\n print("Yes")\nelse:\n print("No")']
['Runtime Error', 'Runtime Error', 'Accepted']
['s079163637', 's613575483', 's529038161']
[8944.0, 9004.0, 9144.0]
[25.0, 28.0, 26.0]
[193, 153, 185]
p02640
u948368898
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.
['if __name__ == "__main__":\n X, Y = list(map(int, input().split()))\n a = Y / 4\n b = Y / 2\n if X >= a and X <= b:\n print("YES")\n else:\n print("NO")', 'if __name__ == "__main__":\n X, Y = list(map(int, input().split()))\n a = Y / 4\n b = Y / 2\n if Y % 2 != 0:\n print("No")\n else:\n if X >= a and X <= b:\n print("Yes")\n else:\n print("No")']
['Wrong Answer', 'Accepted']
['s393701095', 's063567071']
[9168.0, 9200.0]
[23.0, 21.0]
[174, 239]
p02640
u957198490
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 if Y == (2 * i + 4 * (X - T)):\n print('Yes')\n exit()\nelse:\n print('No')", "X, Y = map(int, input().split())\n\nfor i in range(X+1):\n if Y == (2 * i + 4 * (X - i)):\n print('Yes')\n exit()\nelse:\n print('No')"]
['Runtime Error', 'Accepted']
['s527691701', 's898263622']
[9172.0, 9100.0]
[22.0, 21.0]
[147, 147]
p02640
u957799665
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\na = 2*x-y/2\nb = y/2-x\nprint(a, b)\nif a.is_integer and b.is_integer == True:\n if a >= 0 and b >= 0:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")', 'x, y = map(int, input().split())\n\na = 2*x-y/2\nb = y/2-x\nif a.is_integer() and b.is_integer() and a >= 0 and b >= 0:\n print("Yes")\nelse:\n print("No")']
['Wrong Answer', 'Accepted']
['s409955702', 's140880214']
[9128.0, 9084.0]
[25.0, 31.0]
[208, 154]
p02640
u957872856
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 = y - x*2\n if z%4==0:\n print("Yes")\n exit()\nprint("No")\n', 'x, y = map(int, input().split())\nfor i in range(x+1):\n z = y - i*2\n if z%4==0 and 4*(x-i)==z:\n print("Yes")\n exit()\nprint("No")\n']
['Wrong Answer', 'Accepted']
['s665402056', 's927382642']
[9096.0, 8820.0]
[26.0, 27.0]
[121, 136]
p02640
u961247631
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 not a % 2 == 0 and not b % 2 == 0:\n print('NO')\nelif 2 * a <= b <= 4 * a:\n print('YES')\nelse:\n print('NO')", "a,b = map(int,input(). split ())\nif not a % 2 == 0 and not b % 2 == 0:\n print('NO')\nelif a > 100 or b > 100:\n print('NO')\nelif not isinstance(a, int) or not isinstance(b, int):\n print('NO')\nelif 2 * a <= b <= 4 * a:\n print('YES')\nelse:\n print('NO')", "a,b = map(int,input(). split ())\nif not b % 2 == 0:\n print('No')\nelif a > 100:\n print('No')\nelif b > 100:\n print('No')\nelif a < 1:\n print('No')\nelif b < 1:\n print('No')\nelif not isinstance(a, int):\n print('No')\nelif not isinstance(b, int):\n print('No')\nelif 2 * a <= b <= 4 * a:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s404442540', 's639190006', 's795187463']
[9136.0, 9016.0, 9220.0]
[22.0, 28.0, 21.0]
[151, 263, 338]
p02640
u963747475
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.
["h,l=map(int,input().split())\ntemp=l//2\ntemp2=abs(temp-h)\ntemp1=abs(h-temp2)\nif ((temp2*4)+(temp1*2))==l:\n print('YES')\nelse:\n print('NO')", "h,l=map(int,input().split())\ntemp=l//2\ntemp2=abs(temp-h)\ntemp1=abs(h-temp2)\nif ((temp2*4)+(temp1*2))==l:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Accepted']
['s104000354', 's389747785']
[9204.0, 9124.0]
[21.0, 25.0]
[139, 140]
p02640
u966207392
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):\n print('NO')\n\nelif Y < (2*X):\n print('NO')\n\nelif Y % 2 != 0:\n print('NO')\n\nelse:\n print('YES')\n", "X, Y = map(int, input().split())\nif 2*X < Y < 4*X:\n elif Y % 2 != 0:\n print('No')\n else:\n print('Yes')\n\nelse:\n print('No')", "X, Y = map(int, input().split())\nif (2*X) <= Y <= (4*X):\n if Y % 2 != 0:\n print('No')\n else:\n print('Yes')\n\nelse:\n print('No')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s099606667', 's272106715', 's966447837']
[9168.0, 9016.0, 9172.0]
[21.0, 23.0, 22.0]
[155, 145, 149]
p02640
u967484343
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 i in range(X):\n j = X - i \n if i * 2 + j * 4 == Y:\n ans = ‘Yes’\n\nprint(ans)', "X, Y = map(int, input().split())\nans = 'No'\nfor i in range(X):\n j = X - i \n if i * 2 + j * 4 == Y:\n ans = 'Yes'\n elif j * 2 + i * 4 == Y:\n ans = 'Yes'\nprint(ans)"]
['Runtime Error', 'Accepted']
['s800256875', 's912833283']
[8912.0, 9060.0]
[25.0, 30.0]
[145, 184]
p02640
u967864815
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 a in range(x+1):\n b = x - a\n if 2 * a + 4 * b == y:\n print('Yes')\nprint('No')\n", "import sys\n\nx, y = map(int, input().split())\n\nfor a in range(x+1):\n b = x - a\n if 2 * a + 4 * b == y:\n print('Yes')\n sys.exit()\nprint('No')"]
['Wrong Answer', 'Accepted']
['s759619679', 's791964446']
[9100.0, 9088.0]
[26.0, 27.0]
[129, 159]
p02640
u968876625
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 != 0:\n print('NO')\nelse:\n if x*2<=y<=x*4:\n print('YES')\n else:\n print('NO')", "x, y = map(int, input().split())\nif y % 2 != 0:\n print('No')\nelse:\n if x*2<=y<=x*4:\n print('Yes')\n else:\n print('No')"]
['Wrong Answer', 'Accepted']
['s768130929', 's432591495']
[9164.0, 9120.0]
[24.0, 23.0]
[140, 140]
p02640
u969081133
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 n in range(x+1):\n if n*2+(x-n)*4==y:\n ans=1\n break\nif ans==0:\n print('Yes')\nelse:\n print('No')", "x,y=map(int,input().split())\nans=0\nfor n in range(x+1):\n if n*2+(x-n)*4==y:\n ans=1\n break\nif ans==1:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s504852053', 's525544956']
[9096.0, 9168.0]
[29.0, 30.0]
[142, 142]
p02640
u969848070
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+1):\n for j in range(i):\n if j * 2 + (a+1-j) * 4 ==b:\n print('Yes')\n exit()\nprint('No')\n \n", "a, b = map(int, input().split())\n\nfor i in range(a+1):\n if i * 2 + (a+1-i) * 4 ==b:\n print('Yes')\n exit()\nprint('No')\n ", "a, b = map(int, input().split())\n\nfor i in range(a+1):\n if i*2 + (a-i)*4 == b:\n print('Yes')\n exit()\nprint('No')"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s018447334', 's819725507', 's340139350']
[9080.0, 9140.0, 9160.0]
[28.0, 28.0, 29.0]
[155, 127, 119]
p02640
u970198631
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 = int(input())\nMM = input().split()\ntotal = 1\nfor i in MM:\n total = total*int(i)\n\n if total > 10**18:\n break\nfor i in MM:\n if int(i) == 0:\n total = 0\nif total > 10**18:\n print(-1)\nelse:\n print(total)\n ', "X,Y = map(int,input().split())\ncount = 0\nfor i in range(X+1):\n for j in range(X+1):\n if 2*i + 4*j == Y and i+j ==X:\n count +=1\nif count == 0:\n print('No')\nelse:\n print('Yes')"]
['Runtime Error', 'Accepted']
['s429765254', 's772751647']
[9176.0, 9028.0]
[28.0, 26.0]
[215, 185]
p02640
u975771310
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 X, Y = list(map(int, input().split()))\n ans = "No"\n\n if X*4<Y:\n ans = "No"\n elif X*2>Y:\n ans = "No"\n else:\n for i in range(X+1):\n temp = i*2 + (X-i)*4\n if temp==Y:\n ans = "Yes"\n break\n\n return ans', "def main():\n\n X, Y = list(map(int, input().split()))\n ans = 'No'\n\n for i in range(X+1):\n temp = i*2 + (X-i)*4\n if temp==Y:\n ans = 'Yes'\n break\n\n return ans", 'def main():\n\n X, Y = list(map(int, input().split()))\n ans = \'No\'\n for i in range(X+1):\n temp = i*2 + (X-i)*4\n if temp==Y:\n ans = \'Yes\'\n break\n\n return ans\n\n\nif __name__=="__main__":\n ans = main()\n print(ans)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s482823310', 's845166715', 's702973255']
[9088.0, 9104.0, 9180.0]
[22.0, 20.0, 23.0]
[405, 259, 325]
p02640
u975997984
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(1, X+1):\n if 2*i + 4*(X-i+1) == Y:\n print('Yes')\n exit(0)\nprint('No')\n", "X, Y = map(int, input().split())\n\nfor i in range(X+1):\n if 2*i + 4*(X-i) == Y:\n print('Yes')\n exit(0)\nprint('No')\n"]
['Wrong Answer', 'Accepted']
['s264630396', 's379320803']
[9068.0, 9124.0]
[26.0, 27.0]
[136, 131]
p02640
u977650778
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%2 == 1:\n print('No')\nelif X*2 >= Y and X*4 <= Y:\n print('Yes')\nelse:\n print('No')", "X, Y = list(map(int, input().split()))\nif Y%2 == 1:\n print('No')\nelif X*2 <= Y and X*4 >= Y:\n print('Yes')\nelse:\n print('No')"]
['Wrong Answer', 'Accepted']
['s079556133', 's223884830']
[9124.0, 9164.0]
[22.0, 22.0]
[134, 134]
p02640
u979683057
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\nx,y = map(int,input(). split ())\n\nturu = 2*x\ncame = 4*x\n\nif y%2==0:\n if y >= turu and came >= y:\n print("YES")\n else:\n print("NO")\nelse:\n print("NO")\n', 'import numpy as np\nx,y = map(int,input(). split ())\n\nturu = 2*x\ncame = 4*x\n\nif y%2==0:\n if y >= turu and came >= y:\n print("Yes")\n else:\n print("No")\nelse:\n print("No")\n']
['Wrong Answer', 'Accepted']
['s503965068', 's810082448']
[27112.0, 27108.0]
[111.0, 102.0]
[192, 192]
p02640
u984592063
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>=a and b<=2*a:\n print('Yes')\nelse:\n print('No')\n", "a, b = map(int, input().split())\nif 2*a<b+1 or a>b-1:\n print('No')\nelse:\n print('Yes')\n", "a, b = map(int, input().split())\nif 2*a<b or a>b:\n print('No')\nelse:\n print('Yes')\n", "a, b = map(int, input().split())\nif b>=2*a and b<=4*a and a%2==0:\n print('Yes')\nelse:\n print('No')\n", "a, b = map(int, input().split())\nif b>=2*a and b<=4*a and b%2==0:\n print('Yes')\nelse:\n print('No')\n"]
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s120818415', 's150884039', 's451114018', 's462701672', 's759640046']
[9128.0, 9148.0, 9180.0, 9160.0, 9160.0]
[22.0, 24.0, 27.0, 25.0, 25.0]
[92, 93, 89, 105, 105]
p02640
u987654380
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.
['l = [int(i) for i in input().split()]\n\nfor i in range(l[0]+1):\n r = (i * 2 + (l[0] - i) * 4\n if r == l[1]:\n print("Yes")\n break\n else:\n if i == l[0]:\n print("No")', 'l = [int(i) for i in input().split()]\n\nfor i in range(l[0]+1):\n r = i * 2 + (l[0] - i) * 4\n if r == l[1]:\n print("Yes")\n break\n else:\n if (l[0] - i) == 0:\n print("No")']
['Runtime Error', 'Accepted']
['s596871309', 's501536714']
[8844.0, 9104.0]
[23.0, 22.0]
[179, 184]