buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y - x >= 0 && (y - x) % 2 == 0 && x - (y - x) / 2 >= 0)
cout << "Yes";
else
cout << "No";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y - 2 * x >= 0 && (y - 2 * x) % 2 == 0 && x - (y - 2 * x) / 2 >= 0)
cout << "Yes";
else
cout << "No";
return 0;
}
| [["+", 31, 16, 31, 16, 31, 16, 12, 16, 31, 13], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 48], ["+", 31, 16, 31, 23, 0, 16, 12, 16, 31, 13], ["+", 31, 16, 31, 23, 0, 16, 12, 16, 17, 48], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 31, 13], ["+", 12, 16, 31, 23, 0, 16, 12, 16, 17, 48]] | 1 | 69 |
#include <stdio.h>
int main(void) {
int X, Y, kame, turu, c = 1, T = 0;
scanf("%d", &X);
scanf("%d", &Y);
for (kame = 1; kame <= 100; kame++) {
for (turu = 1; turu <= 100; turu++) {
if (kame + turu == X) {
if (kame * 4 + turu * 2 == Y) {
printf("Yes");
T = 1;
}
... | #include <stdio.h>
int main(void) {
int X, Y, kame, turu, c = 1, T = 0;
scanf("%d", &X);
scanf("%d", &Y);
for (kame = 0; kame <= 100; kame++) {
for (turu = 0; turu <= 100; turu++) {
if (kame + turu == X) {
if (kame * 4 + turu * 2 == Y) {
printf("Yes");
T = 1;
}
... | [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13]] | 0 | 129 |
#include <stdio.h>
int main() {
int x, y;
scanf("%d %d", &x, &y);
int i, flag = 0;
for (i = 0; i <= x; i++) {
if (y - 2 * i == 4 * (x - i)) {
flag = 1;
break;
}
}
if (flag == 1) {
printf("YES\n");
} else {
printf("NO\n");
}
return 0;
} | #include <stdio.h>
int main() {
int x, y;
scanf("%d %d", &x, &y);
int i, flag = 0;
for (i = 0; i <= x; i++) {
if (y - 2 * i == 4 * (x - i)) {
flag = 1;
break;
}
}
if (flag == 1) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 102 |
function Main(input) {
input = input.split("\n");
aa = input[0].split(" ");
var x = aa[0].split(" ");
var y = aa[1].split(" ");
var tu = (4 * x - y) / (4 - 2)
var ka = x - tu
if (ka >= 0 && tu >= 0 && Number.isInteger(ka) == true) {
var result = "YES";
}
else {
var result = "NO";
}
cons... | function Main(input) {
input = input.split("\n");
aa = input[0].split(" ");
var x = aa[0].split(" ");
var y = aa[1].split(" ");
var tu = (4 * x - y) / (4 - 2)
var ka = x - tu
if (ka >= 0 && tu >= 0 && Number.isInteger(ka) == true) {
var result = "Yes";
}
else {
var result = "No";
}
cons... | [["-", 64, 556, 0, 198, 0, 200, 51, 557, 0, 491], ["+", 64, 556, 0, 198, 0, 200, 51, 557, 0, 491], ["-", 0, 556, 0, 198, 0, 200, 51, 557, 0, 491], ["+", 0, 556, 0, 198, 0, 200, 51, 557, 0, 491]] | 2 | 150 |
X,Y = map(int, input().split())
ans = 0
for i in range(X):
cranes = i
turtles = X - cranes
if cranes*2+turtles*4 == Y:
ans += 1
break
if ans >= 1:
print("Yes")
elif X == 0 and Y == 0:
print("Yes")
else:
print("No")
| X,Y = map(int, input().split())
ans = 0
for i in range(X+1):
cranes = i
turtles = X - cranes
if cranes*2+turtles*4 == Y:
ans += 1
break
if ans >= 1:
print("Yes")
elif X == 0 and Y == 0:
print("Yes")
else:
print("No")
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 84 |
import sys
X, Y = map(int, input().split())
for i in range(X):
if Y == 4*i + 2*(X-i):
print("Yes")
sys.exit()
if X == 1:
if Y == 4 or Y == 2:
print("Yes")
sys.exit()
if Y < X:
print("No")
sys.exit()
print("No") | import sys
X, Y = map(int, input().split())
for i in range(X+1):
if Y == 4*i + 2*(X-i):
print("Yes")
sys.exit()
if X == 1:
if Y == 4 or Y == 2:
print("Yes")
sys.exit()
if Y < X:
print("No")
sys.exit()
print("No") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 99 |
x, y = map(int, input().split(" "))
if y%2 == 1:
print('No')
elif 4 * x < y:
print('No')
elif 2 * x > 7:
print('No')
else:
for i in range(0,x+1):
if 2 * i + 4 * (x-i) == y:
print('Yes')
break
else:
print('No')
| x, y = map(int, input().split(" "))
if y%2 == 1:
print('No')
elif 4 * x < y:
print('No')
elif 2 * x > y:
print('No')
else:
for i in range(0,x+1):
# print("i:{}".format(i))
if 2 * i + 4 * (x-i) == y:
print('Yes')
break
else:
print('No')
| [["-", 0, 656, 0, 57, 75, 665, 15, 666, 0, 612], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 0, 22]] | 5 | 102 |
#include <iostream>
using namespace std;
int main() {
int X, Y;
bool finished = false;
cin >> X >> Y;
for (int i = 1; i < 101; i++) {
for (int j = 1; j < 101; j++) {
if (i + j == X && 4 * i + 2 * j == Y) {
finished = true;
break;
}
}
if (finished) {
break;
}
}... | #include <iostream>
using namespace std;
int main() {
int X, Y;
bool finished = false;
cin >> X >> Y;
for (int i = 0; i < 101; i++) {
for (int j = 0; j < 101; j++) {
if (i + j == X && 4 * i + 2 * j == Y) {
finished = true;
break;
}
// else if(i==0||j==0){
// if()
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 122 |
X, Y = map(int, input().split())
for i in range(X):
if i*4 + (X-i)*2 == Y:
print('Yes')
exit()
print('No') | X, Y = map(int, input().split())
for i in range(X+1):
if i*4 + (X-i)*2 == Y:
print('Yes')
exit()
print('No')
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 54 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, temp1 = 0, temp2 = 0;
cin >> a >> b;
temp2 = a;
bool ans = false;
for (int i = 0; i < a; i++) {
temp1 = i;
temp2 = a - i;
if ((temp1 * 2 + temp2 * 4) == b) {
ans = true;
}
}
if (ans == true) {
cout << "Yes";
}... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, temp1 = 0, temp2 = 0;
cin >> a >> b;
temp2 = a;
bool ans = false;
for (int i = 0; i <= a; i++) {
temp1 = i;
temp2 = a - i;
if ((temp1 * 2 + temp2 * 4) == b) {
ans = true;
}
}
if (ans == true) {
cout << "Yes";
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 109 |
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define rep(i, a, n) for (ll i = a; i < n; i++)
int main() {
ll x, y;
cin >> x >> y;
ll t = x;
ll c = 0;
if (t * 4 < y && y % 2 == 1) {
cout << "No" << endl;
}
rep(i, 0, x) {
if (t * 4 + c * 2 == y) {
cout << "Yes" << endl;
... | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define rep(i, a, n) for (ll i = a; i < n; i++)
int main() {
ll x, y;
cin >> x >> y;
ll t = x;
ll c = 0;
if (t * 4 < y && y % 2 == 1) {
cout << "No" << endl;
return 0;
}
rep(i, 0, x + 1) {
if (t * 4 + c * 2 == y) {
cout ... | [["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 13], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 35], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 124 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt(), Y = sc.nextInt();
int y = (4 * X - Y) / 2;
if (y < 0 || Y % 2 != 0)
System.out.println("No");
else {
int x = X - y;
if (4 * x + 2 * y... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt(), Y = sc.nextInt();
int y = (4 * X - Y) / 2;
if (y < 0 || y > X || Y % 2 != 0)
System.out.println("No");
else {
int x = X - y;
if (4 * ... | [["+", 15, 15, 0, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 12, 22], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106]] | 3 | 133 |
import java.util.*;
class Main {
static Scanner sc;
static void solve() {
int qnt = sc.nextInt();
int legs = sc.nextInt();
if (4 * qnt < legs || legs < 2 * qnt || legs % 2 != 0) {
System.out.println("NO");
return;
}
System.out.println("YES");
}
public static void main(Strin... | import java.util.*;
class Main {
static Scanner sc;
static void solve() {
int qnt = sc.nextInt();
int legs = sc.nextInt();
if (4 * qnt < legs || legs < 2 * qnt || legs % 2 != 0) {
System.out.println("No");
return;
}
System.out.println("Yes");
}
public static void main(Strin... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 114 |
X ,Y = map(int,input().split())
if X > 50:
print('No')
exit(0)
for i in range(1, X+1):
f = 2 * i + 4 * (X - i)
if f == Y:
print('Yes')
break
else:
ans = X * 4
count = ans/4
if count == X and Y%4 == 0:
print('Yes')
else:
print('No') | X ,Y = map(int,input().split())
if X > 50:
print('No')
exit(0)
for i in range(1, X+1):
f = 2 * i + 4 * (X - i)
if f == Y:
print('Yes')
break
else:
ans = X * 4
count = ans/4
if count == X and ans==Y and Y%4 == 0:
print('Yes')
else:
print('No') | [["+", 0, 57, 15, 679, 31, 679, 12, 666, 0, 22], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 60], ["+", 75, 76, 8, 196, 0, 57, 15, 679, 17, 355]] | 5 | 105 |
x, y = map(int, input().split())
count = 0
for k in range(50):
kame = k
turu = x-k
ashi = 2*turu + 4*kame
if ashi==y:
count += 1
break
if count>0:
print("Yes")
else:
print("No") | x, y = map(int, input().split())
count = 0
for k in range(x+1):
kame = k
turu = x-k
ashi = 2*turu + 4*kame
if ashi==y:
count += 1
break
if count>0:
print('Yes')
else:
print('No') | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655], ["+", 0, 1, 0... | 5 | 72 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
bool ans = false;
cin >> a >> b;
if (a * 2 <= b && b <= a * 4) {
if (a % 2 == 0) {
ans = true;
}
}
if (ans) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
bool ans = false;
cin >> a >> b;
if (a * 2 <= b && b <= a * 4) {
if (b % 2 == 0) {
ans = true;
}
}
if (ans) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 86 |
def main():
x, y = map(int, input().split())
if 4*x - y < 0 and y - 2*x < 0:
print("No")
else:
c = (4*x - y) / 2
t = (y - 2*x) / 2
if c==int(c) and t==int(t):
print("Yes")
else:
print("No")
if __name__ == "__main__":
main() | def main():
x, y = map(int, input().split())
if 4*x - y < 0 or y - 2*x < 0:
print("No")
else:
c = (4*x - y) / 2
t = (y - 2*x) / 2
if c==int(c) and t==int(t):
print("Yes")
else:
print("No")
if __name__ == "__main__":
main() | [["-", 0, 14, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 0, 14, 8, 196, 0, 57, 15, 679, 17, 354]] | 5 | 107 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= 100; i++) {
int j = x - i;
if (i * 2 + j * 4 == y) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int j = x - i;
if (i * 2 + j * 4 == y) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 78 |
#include <iostream>
#include <string>
std::string check(int x, int y) {
if (y % 2 == 0) {
int t = (int)(0.5 * y) - x;
if (t > 0 && (x - t) >= 0)
return "Yes";
}
return "No";
}
int main() {
int x, y;
std::cin >> x >> y;
std::cout << check(x, y) << std::endl;
return 0;
} | #include <iostream>
#include <string>
std::string check(int x, int y) {
if (y % 2 == 0) {
int t = (int)(0.5 * y) - x;
if (t >= 0 && (x - t) >= 0)
return "Yes";
}
return "No";
}
int main() {
int x, y;
std::cin >> x >> y;
std::cout << check(x, y) << std::endl;
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20]] | 1 | 102 |
x,y = map(int,input().split())
flag = 0
for i in range(x):
total = 2 * i + 4 * (x - i)
if y == total:
print('Yes')
flag = 1
break
if flag == 0:
print('No') | x,y = map(int,input().split())
flag = 0
for i in range(x + 1):
total = 2 * i + 4 * (x - i)
if y == total:
print('Yes')
flag = 1
break
if flag == 0:
print('No') | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 66 |
import sys
n , total = map(int,input().split())
t = 0
k = 0
for t in range(n + 1):
for k in range(n):
x = t + k
if x == n:
if 2*t + 4*k == total:
print("Yes")
sys.exit()
print("No")
| import sys
n , total = map(int,input().split())
t = 0
k = 0
for t in range(n + 1):
for k in range(n + 1):
x = t + k
if x == n:
if 2*t + 4*k == total:
print("Yes")
sys.exit()
print("No")
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 80 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, j;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
j = x - i;
if ((i * 4 + j * 2) == y) {
cout << "YES";
return 0;
}
}
cout << "NO";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, j;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
j = x - i;
if ((i * 4 + j * 2) == y) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 81 |
#include <algorithm>
#include <iostream>
#include <queue>
#include <string.h>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
if (m > 4 * n || m % 2)
cout << "No";
else {
int x = (4 * n - m) / 2;
if (2 * x + 4 * (n - x) == m)
cout << "Yes";
else
cout << "No";
}
return ... | #include <algorithm>
#include <iostream>
#include <queue>
#include <string.h>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
if (m > 4 * n || m % 2 || m < 2 * n)
cout << "No";
else {
int x = (4 * n - m) / 2;
if (2 * x + 4 * (n - x) == m)
cout << "Yes";
else
cout << "No";
... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 13], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 48], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 22]] | 1 | 95 |
a,b=(int(x) for x in input().split())
lista=[]
listb=[]
for numa in range(a+1):
lista.append(numa*2)
for numb in range(a+1):
listb.append(numb*4)
listb.reverse()
count=0
combined1 = [x*y for (x, y) in (lista, listb)]
for num in combined1:
if num==b:
count+=1
if count>0:
print("Yes")
else:
print("No") | a,b=(int(x) for x in input().split())
lista=[]
listb=[]
for numa in range(a+1):
lista.append(numa*2)
for numb in range(a+1):
listb.append(numb*4)
listb.reverse()
count=0
combined1 = [x+y for (x, y) in zip(lista, listb)]
for num in combined1:
if num==b:
count+=1
if count>0:
print("Yes")
else:
print("No")
| [["-", 0, 1, 0, 662, 12, 658, 8, 657, 17, 48], ["+", 0, 1, 0, 662, 12, 658, 8, 657, 17, 72], ["+", 0, 662, 12, 658, 0, 659, 12, 652, 63, 22]] | 5 | 123 |
X,Y = map(int, input().split())
if Y%2==0 and Y<4*X and Y>2*X:
print("Yes")
else:
print("No") |
X,Y = map(int, input().split())
if Y%2==0 and Y<=4*X and Y>=2*X:
print("Yes")
else:
print("No") | [["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20]] | 5 | 49 |
x,y = list(map(int, input("").split()))
if 4 * x < y:
print("No")
else:
if 2 * x <y:
if y % 2 == 0:
print("Yes")
else:
print("No")
else:
print("No") | x,y = list(map(int, input("").split()))
if 4 * x < y:
print("No")
else:
if 2 * x <= y:
if y % 2 == 0:
print("Yes")
else:
print("No")
else:
print("No") | [["-", 75, 76, 8, 196, 0, 57, 15, 666, 667, 18], ["+", 75, 76, 8, 196, 0, 57, 15, 666, 667, 19]] | 5 | 72 |
x,y=map(int,input().split())
l=[]
for i in range(x):
l.append(2*(x+i))
i+=1
print('Yes' if y in l else 'No') | x,y=map(int,input().split())
l=[]
for i in range(x+1):
l.append(2*(x+i))
i+=1
print('Yes' if y in l else 'No') | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 57 |
x, y = map(int, input().split())
c = 0
while x >= 0:
if c * 2 + x * 4 == y:
break
c += 1
x -= 1
else:
print("No")
print("Yes") | x, y = map(int, input().split())
c = 0
while x >= 0:
if c * 2 + x * 4 == y:
break
c += 1
x += -1
else:
print("No")
exit()
print("Yes")
| [["-", 0, 52, 8, 196, 0, 1, 0, 677, 17, 110], ["+", 0, 52, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 8, 196, 0, 1, 0, 677, 12, 664, 17, 33], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 56 |
X, Y = map(int, input().split())
ans = []
for x in range(0,51):
if Y == 4*x + 2*(X-x):
ans = 1
if ans == 1:
print("Yes")
else:
print("No")
| X, Y = map(int, input().split())
ans = []
for x in range(0,X+1):
if Y == 4*x + 2*(X-x):
ans = 1
if ans == 1:
print("Yes")
else:
print("No")
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 67 |
x, y = int(map, input().split())
if(2*x <= y <= 4*x and y%2==0 and x <= 50):
print("Yes")
else:
print("No") | x, y = map(int, input().split())
if(2*x <= y <= 4*x and y%2==0 and x <= 50):
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22]] | 5 | 53 |
#include <stdio.h>
void main() {
int n, c, i, j, s = 0;
scanf("%d", &n);
scanf("%d", &c);
i = 0;
j = n;
while (i <= c && j >= 0) {
s = 2 * i + 4 * j;
if (s == c) {
printf("Yes");
break;
}
i++;
j--;
}
if (i > n)
printf("No");
} | #include <stdio.h>
void main() {
int n, c, i, j, s = 0;
scanf("%d", &n);
scanf("%d", &c);
i = 0;
j = n;
while (i <= n && j >= 0) {
s = 2 * i + 4 * j;
if (s == c) {
printf("Yes");
break;
}
i++;
j--;
}
if (i > n)
printf("No");
}
| [["-", 0, 52, 15, 23, 0, 16, 31, 16, 12, 22], ["+", 0, 52, 15, 23, 0, 16, 31, 16, 12, 22]] | 0 | 107 |
x, y = list(map(int, input().split()))
yes = "Yes"
no = "No"
ans = no
for i in range(y+1):
s = (4 * i) + (2 * (x - i))
if (y == s):
ans = yes
break
print(ans)
| x, y = list(map(int, input().split()))
yes = "Yes"
no = "No"
ans = no
for i in range(x+1):
s = (4 * i) + (2 * (x - i))
if (y == s):
ans = yes
break
print(ans)
| [["-", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22]] | 5 | 74 |
def main():
X, Y = map(int, input().split())
if((4 * X) < Y):
print("No")
else:
turuNum = (Y - 2 * X) / 2
kameNum = X - turuNum
if(turuNum.is_integer() and kameNum >= 0):
print("Yes")
else:
print("No")
if __name__ == "__main__":
main() | def main():
X, Y = map(int, input().split())
if((4 * X) < Y):
print("No")
else:
turuNum = (Y - 2 * X) / 2
kameNum = X - turuNum
if(turuNum.is_integer() and kameNum >= 0 and turuNum >= 0):
print("Yes")
else:
print("No")
if __name__ == "__main... | [["+", 8, 196, 0, 57, 15, 23, 0, 679, 17, 355], ["+", 0, 57, 15, 23, 0, 679, 12, 666, 0, 22], ["+", 0, 57, 15, 23, 0, 679, 12, 666, 667, 20], ["+", 0, 57, 15, 23, 0, 679, 12, 666, 0, 612]] | 5 | 93 |
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int turu = 0, kame = 0;
while (turu < x) {
kame = x - turu;
if (turu * 2 + kame * 4 == y) {
cout << "Yes" << endl;
r... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int turu = 0, kame = 0;
while (turu <= x) {
kame = x - turu;
if (turu * 2 + kame * 4 == y) {
cout << "Yes" << endl;
... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]] | 1 | 92 |
X,Y=map(int,input().split())
re='No'
for i in range(X):
if (X-i)*2+(i*4)==Y:
re='Yes'
break
print(re) | X,Y=map(int,input().split())
re='No'
for i in range(X+1):
if (X-i)*2+(i*4)==Y:
re='Yes'
break
print(re) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 56 |
X,Y = map(int, input().split())
for kame in range(1,X):
if (2*(X-kame)+4*kame)==Y:
print("Yes")
break
else:
print("No")
| X,Y = map(int, input().split())
for kame in range(0,X+1):
if (2*(X-kame)+4*kame)==Y:
print("Yes")
break
else:
print("No")
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 58 |
x, y = [int(i) for i in input().split()]
for i in range(x+1):
j = x-i
if i*2+j*4 == y:
print("Yes")
else:
print("No") | x, y = [int(i) for i in input().split()]
for i in range(x+1):
j = x-i
if i*2+j*4 == y:
print("Yes")
break
else:
print("No") | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 60 |
#include <assert.h>
#include <stdio.h>
#include <stdio.h>
#include <string.h>
/*
入力例:
3
1 1 3
*/
int main() {
int iDataNum, st, sx, sy, i;
int ct, cx, cy;
int strInput[2];
for (int i = 0; i < 2; i++) {
scanf("%d", &strInput[i]);
}
for (int i = 0; i <= strInput[0]; i++) {
if... | #include <assert.h>
#include <stdio.h>
#include <stdio.h>
#include <string.h>
/*
入力例:
3
1 1 3
*/
int main() {
int iDataNum, st, sx, sy, i;
int ct, cx, cy;
int strInput[2];
for (int i = 0; i < 2; i++) {
scanf("%d", &strInput[i]);
}
for (int i = 0; i <= strInput[0]; i++) {
if... | [["-", 31, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 12, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 131 |
A, B = map(int, input().split())
a=list(range(2*A,4*A,2))
if (B in a) == True:
print('Yes')
else:
print('No') | A, B = map(int, input().split())
a=list(range(2*A,4*A+1,2))
#print(a)
if (B in a) == True:
print('Yes')
else:
print('No') | [["+", 3, 4, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 3, 4, 0, 652, 3, 4, 0, 657, 12, 612]] | 5 | 56 |
x, y = map(int, input().split())
ans = 'No'
for i in range(x):
foot = 4*(i) + 2*(x-(i))
if foot==y:
ans = 'Yes'
print(ans) | x, y = map(int, input().split())
ans = 'No'
for i in range(x+1):
foot = 2*(i) + 4*(x-(i))
if foot==y:
ans = 'Yes'
print(ans) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 1, 0, 662, 12, 657, 31, 657, 31, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 31, 612], ["-", 0, 1, 0, 662, 12, 657, 12, 657, 31, 612], ["+", 0, 1, 0, 662, 12, 657, 12, 657, 31, 612]] | 5 | 60 |
def main():
x, y = map(int, input().split())
y2 = y
ans = 'No'
for i in range(1, x + 1):
x2 = x - i
if 4 * i + 2 * x2 == y:
ans = 'Yes'
break
print(f'{ans}')
if __name__ == '__main__':
main() | def main():
x, y = map(int, input().split())
ans = 'No'
for i in range(x + 1):
x2 = x - i
if 4 * i + 2 * x2 == y:
ans = 'Yes'
break
print(f'{ans}')
if __name__ == '__main__':
main() | [["-", 0, 14, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 14, 8, 196, 0, 1, 0, 662, 0, 32], ["-", 0, 14, 8, 196, 0, 1, 0, 662, 12, 22], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 81 |
x, y = map(int, input().split())
if y % 2 == 0 and (x * 2 <= y) and (x * 4 <= y):
print('Yes')
else:
print('No') | x, y = map(int, input().split())
if y % 2 == 0 and (x * 2 <= y) and (x * 4 >= y):
print('Yes')
else:
print('No') | [["-", 0, 57, 15, 679, 12, 23, 0, 666, 667, 19], ["+", 0, 57, 15, 679, 12, 23, 0, 666, 667, 20]] | 5 | 53 |
function main(input) {
let args = input.split('\n');
let a = 0;
let flag = false;
let [x, y] = args[a++].split(' ').map((e) => +e);
for (let i = 0; i <= x; ++i) {
if (i * 2 + (x - i) * 4 == y) {
flag = true;
break;
}
}
console.log(flag ? 'YES' : 'NO');
}
main(require('fs').readFileSyn... | function main(input) {
let args = input.split('\n');
let a = 0;
let flag = false;
let [x, y] = args[a++].split(' ').map((e) => +e);
for (let i = 0; i <= x; ++i) {
if (i * 2 + (x - i) * 4 == y) {
flag = true;
break;
}
}
console.log(flag ? 'Yes' : 'No');
}
main(require('fs').readFileSyn... | [["-", 0, 2, 3, 3, 0, 510, 64, 557, 0, 491], ["+", 0, 2, 3, 3, 0, 510, 64, 557, 0, 491], ["-", 0, 2, 3, 3, 0, 510, 75, 557, 0, 491], ["+", 0, 2, 3, 3, 0, 510, 75, 557, 0, 491]] | 2 | 135 |
#include <bits/stdc++.h>
#define limit (int)(2e5 + 5)
#define mod (int)(1e9 + 7)
using namespace std;
using lli = long long int;
using ulli = unsigned long long int;
using ld = long double;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int x, y;
cin >> x >> y;
if (y % 2 != 0)... | #include <bits/stdc++.h>
#define limit (int)(2e5 + 5)
#define mod (int)(1e9 + 7)
using namespace std;
using lli = long long int;
using ulli = unsigned long long int;
using ld = long double;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int x, y;
cin >> x >> y;
if (y % 2 != 0)... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 124 |
#include <bits/stdc++.h>
#include <cctype>
#define ll long long int
#define PB push_back
#define GO \
ll t; \
cin >> t; ... | #include <bits/stdc++.h>
#include <cctype>
#define ll long long int
#define PB push_back
#define GO \
ll t; \
cin >> t; ... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 185 |
#include <algorithm>
#include <bitset>
#include <chrono>
#include <cstring>
#include <ctype.h>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#inclu... | #include <algorithm>
#include <bitset>
#include <chrono>
#include <cstring>
#include <ctype.h>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#inclu... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 79], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, ... | 1 | 264 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if ((y & 1 == 0) && y >= 2 * x && y <= 4 * x) {
cout << "Yes" << '\n';
} else {
cout << "No" << '\n';
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if ((y % 2 == 0) && y >= 2 * x && y <= 4 * x) {
cout << "Yes" << '\n';
} else {
cout << "No" << '\n';
}
} | [["-", 51, 16, 31, 16, 31, 23, 0, 16, 17, 67], ["-", 31, 16, 31, 23, 0, 16, 12, 16, 31, 13], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 109], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 12, 13]] | 1 | 70 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long int x, y;
cin >> x >> y;
if (y % 2 == 1) {
cout << "No"
<< "\n";
return 0;
}
int crane = abs(y - 4 * x) / 2;
int turtle = abs(x - crane);
if (crane + turtle == x)
... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
long long int x, y;
cin >> x >> y;
if (y % 2 == 1) {
cout << "No"
<< "\n";
return 0;
}
int crane = abs(y - 4 * x) / 2;
int turtle = abs(x - crane);
if (2 * crane + 4 * turtle ==... | [["+", 15, 339, 51, 16, 31, 16, 31, 16, 31, 13], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 48], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 31, 13], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 48], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool res = false;
for (int i = 1; i <= x; i++) {
int b = x - i;
if ((2 * b + 4 * i) == y)
res = true;
}
if (res)
cout << "Yes";
else
cout << "No";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool res = false;
for (int i = 0; i <= x; i++) {
int b = x - i;
if ((2 * b + 4 * i) == y)
res = true;
}
if (res)
cout << "Yes";
else
cout << "No";
return 0;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 89 |
#include <bits/stdc++.h>
using namespace ::std;
#define int long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sax(x) cout << "!!!!!!!!!!! " << #x << " = " << x << '\n'
#define inf (sizeof(int) == 4 ? (int)1E9 : (int)1E18)
#define one(x) x.insert(x.begin(), 0);
#define TCT... | #include <bits/stdc++.h>
using namespace ::std;
#define int long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sax(x) cout << "!!!!!!!!!!! " << #x << " = " << x << '\n'
#define inf (sizeof(int) == 4 ? (int)1E9 : (int)1E18)
#define one(x) x.insert(x.begin(), 0);
#define TCT... | [["-", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 889 |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String args[]) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter pw = new PrintWriter(System.out);
String str[] = br.readLine().split(" ");
int x = Integer.parseInt(... | import java.io.*;
import java.util.*;
public class Main {
public static void main(String args[]) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter pw = new PrintWriter(System.out);
String str[] = br.readLine().split(" ");
int x = Integer.parseInt(... | [["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499]] | 3 | 184 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (2 * A <= B && 4 * A >= B && B % 2 == 2) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int A, B;
cin >> A >> B;
if (2 * A <= B && 4 * A >= B && B % 2 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 64 |
/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
******************************************... | /******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
******************************************... | [["-", 75, 76, 0, 9, 0, 7, 15, 16, 17, 18], ["+", 75, 76, 0, 9, 0, 7, 15, 16, 17, 19]] | 1 | 127 |
import math
x, y = map(int, input().split())
a = (4 * x - y) / 2
if a >= 1 and a == math.ceil(a):
print('Yes')
else:
print('No') | import math
x, y = map(int, input().split())
a = (4 * x - y) / 2
if a >= 0 and a <= x and a == math.ceil(a):
print('Yes')
else:
print('No') | [["-", 0, 656, 0, 57, 15, 679, 31, 666, 0, 612], ["+", 0, 57, 15, 679, 31, 679, 31, 666, 0, 612], ["+", 0, 656, 0, 57, 15, 679, 31, 679, 17, 355], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 0, 22], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 19]] | 5 | 57 |
#include <bits/stdc++.h>
using namespace std;
/// File input & output /////
#define fRead(x) freopen("x.txt", "r", stdin)
#define fWrite(x) freopen("x.txt", "w", stdout)
#define mt make_tuple
#define ld long double
#define ll long long
#define ull unsigned long long
#define ff first
#define ss second
#define pb pus... |
#include <bits/stdc++.h>
using namespace std;
/// File input & output /////
#define fRead(x) freopen("x.txt", "r", stdin)
#define fWrite(x) freopen("x.txt", "w", stdout)
#define mt make_tuple
#define ld long double
#define ll long long
#define ull unsigned long long
#define ff first
#define ss second
#define pb pus... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 370 |
/*
Author: ankrypt
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
template <class T>
using oset =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define MOD 1000000007... | /*
Author: ankrypt
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
template <class T>
using oset =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
#define MOD 1000000007... | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22]] | 1 | 338 |
#include <iostream>
#include <vector>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
for (int i = 1; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| #include <iostream>
#include <vector>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 79 |
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y & 1 != 1 and x * 4 >= y and x * 2 <= y)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if ((y & 1) != 1 and x * 4 >= y and x * 2 <= y)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [["+", 51, 16, 31, 16, 31, 16, 31, 23, 0, 24], ["+", 51, 16, 31, 16, 31, 16, 31, 23, 0, 25]] | 1 | 60 |
// IN the name of GOD
#include <bits/stdc++.h>
#define ll long long
using namespace std;
const int M = 1e9 + 7;
void solve() {
int z1, z2;
cin >> z1 >> z2;
int x, y;
bool ok = 0;
if (z2 < 2 * z1 || z2 > 4 * z1) {
cout << "NO";
return;
}
if ((z2 - 2 * z1) % 2) {
cout << "NO";
return;
}
... | // IN the name of GOD
#include <bits/stdc++.h>
#define ll long long
using namespace std;
const int M = 1e9 + 7;
void solve() {
int z1, z2;
cin >> z1 >> z2;
int x, y;
bool ok = 0;
if (z2 < 2 * z1 || z2 > 4 * z1) {
cout << "No";
return;
}
if ((z2 - 2 * z1) % 2) {
cout << "No";
return;
}
... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 132 |
import sys
if __name__ == "__main__":
for line in sys.stdin:
anis, legs = line.split(' ')
if legs % 2 == 1 or legs > anis * 4 or legs < anis * 2:
print("No")
else:
print("Yes")
| import sys
if __name__ == "__main__":
for line in sys.stdin:
anis, legs = map(int, line.split(' '))
if legs % 2 == 1 or legs > anis * 4 or legs < anis * 2:
print("No")
else:
print("Yes") | [["+", 8, 196, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 21], ["+", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 61 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using p = pair<int, int>;
using ll = long long;
int main() {
int x, y;
cin >> x >> y;
rep(i, x) {
int tatol = i;
int toki = x - i;
if ((tatol * 4)... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;
using p = pair<int, int>;
using ll = long long;
int main() {
int x, y;
cin >> x >> y;
rep(i, x + 1) {
int tatol = i;
int toki = x - i;
if ((tatol ... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]] | 1 | 117 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
if (y >= x * 4 && x * 2 >= y) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "No";
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
if (y <= x * 4 && x * 2 <= y) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "No";
}
return 0;
}
| [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 76 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool ans = false;
for (int i = 0; i <= x && !ans; ++i)
if (2 * i + 4 * (x - i) == y)
ans = true;
cout << (ans ? "YES\n" : "NO\n");
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool ans = false;
for (int i = 0; i <= x && !ans; ++i)
if (2 * i + 4 * (x - i) == y)
ans = true;
cout << (ans ? "Yes\n" : "No\n");
}
| [["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 81 |
#include <stdio.h>
int main(void) {
int a, b, c = 0, i, x, y;
scanf("%d %d", &x, &y);
for (i = 0; i <= x; i++) {
b = x - i;
if (2 * a + 4 * b == y) {
c = 1;
break;
}
}
if (c == 1) {
printf("Yes\n");
} else {
printf("No");
}
return 0;
}
| #include <stdio.h>
int main(void) {
int a, b, c = 0, i, x, y;
scanf("%d %d", &x, &y);
for (i = 0; i <= x; i++) {
a = i;
b = x - i;
if (2 * a + 4 * b == y) {
c = 1;
break;
}
}
if (c == 1) {
printf("Yes\n");
} else {
printf("No");
}
return 0;
} | [["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]] | 0 | 107 |
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
typedef long long ll;
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
typedef long long ll;
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int a = 0;
bool flag = false;
for (int i = 0; i <= x; i++) {
a = 4 * i + 2 * (x - i);
if (a == y)
flag = true;
}
if (flag = true)
cout << "YES" << endl;
else if (flag == false)
cout << "NO" << end... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int a = 0;
bool flag = false;
for (int i = 0; i <= x; i++) { // int j=x-i;
a = 4 * i + 2 * (x - i);
if (a == y)
flag = true;
}
if (flag == true)
cout << "Yes" << endl;
else if (flag == false)
cou... | [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 105 |
#include <bits/stdc++.h>
using namespace std;
#define bit(a) __builtin_popcount(a)
#define all(x) x.begin(), x.end()
#define minv(v) *min_element(all(v))
#define maxv(v) *max_element(all(v))
#define unq(v) sort(all(v)), v.erase(unique(all(v)), v.end())
#define w(x) while (x--)
#define rep(i, a, b) for (i = a; i <= b; i... | #include <bits/stdc++.h>
using namespace std;
#define bit(a) __builtin_popcount(a)
#define all(x) x.begin(), x.end()
#define minv(v) *min_element(all(v))
#define maxv(v) *max_element(all(v))
#define unq(v) sort(all(v)), v.erase(unique(all(v)), v.end())
#define w(x) while (x--)
#define rep(i, a, b) for (i = a; i <= b; i... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 196 |
def main():
c = input()
c = c.split(' ')
x = int(c[0])
y = int(c[1])
for i in range(1, 100):
turu = i * 2
for j in range(1, 100):
kame = j * 4
if turu + kame == y and i + j == x:
print('Yes')
return
print('No')
if __name__ == "__main__":
main() | def main():
c = input()
c = c.split(' ')
x = int(c[0])
y = int(c[1])
for i in range(0, 100):
turu = i * 2
for j in range(0, 100):
kame = j * 4
if turu + kame == y and i + j == x:
print('Yes')
return
print('No')
if __name__ == "__main__":
main() | [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 104 |
x, y = map(int, input().split())
for a in range(0, x+1):
b = x - a
if a*2 + b*4 == y:
ans = 'Yes'
break
print(ans)
| x, y = map(int, input().split())
ans = 'No'
for a in range(0, x+1):
b = x - a
if a*2 + b*4 == y:
ans = 'Yes'
break
print(ans)
| [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 654], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 655]] | 5 | 54 |
import math
from collections import deque
from collections import defaultdict
import itertools as it
#自作関数群
def readInt():
return int(input())
def readInts():
return list(map(int, input().split()))
def readChar():
return input()
def readChars():
return input().split()
def factorization(n):
res = []
if n%2==0:
... | import math
from collections import deque
from collections import defaultdict
import itertools as it
#自作関数群
def readInt():
return int(input())
def readInts():
return list(map(int, input().split()))
def readChar():
return input()
def readChars():
return input().split()
def factorization(n):
res = []
if n%2==0:
... | [["-", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 1,073 |
X, Y = list(map(int, input().split()))
if (4 * X - Y) % 2 == 1:
print("No")
if (-2 * X + Y) % 2 == 1:
print("No")
turu = (4 * X - Y) // 2
kame = (-2 * X + Y) // 2
if turu < 0 or kame < 0:
print("No")
else:
print("Yes")
| X, Y = list(map(int, input().split()))
if (4 * X - Y) % 2 == 1:
print("No")
exit()
if (-2 * X + Y) % 2 == 1:
print("No")
exit()
turu = (4 * X - Y) // 2
kame = (-2 * X + Y) // 2
if turu < 0 or kame < 0:
print("No")
else:
print("Yes") | [["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 104 |
#include <stdio.h>
int main(void) {
// a + b = x
// 2a + 4b = y
// 2b = y -2x <- must be >= 0
// b = (y - 2x) / 2 <- must be %2 == 0
// a = x - b <- must be >= 0
int x, y, z;
scanf("%d %d", &x, &y);
if ((z = y - 2 * x) > 0 && z % 2 == 0 && x - z / 2 > 0) {
printf("Yes\n");
} else {
printf("... | #include <stdio.h>
int main(void) {
// a + b = x
// 2a + 4b = y
// 2b = y -2x <- must be >= 0
// b = (y - 2x) / 2 <- must be %2 == 0
// a = x - b <- must be >= 0
int x, y, z;
scanf("%d %d", &x, &y);
if ((z = y - 2 * x) >= 0 && z % 2 == 0 && x - z / 2 >= 0) {
printf("Yes\n");
} else {
printf... | [["-", 15, 23, 0, 16, 31, 16, 31, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20]] | 0 | 86 |
X,Y = map(int,input().split())
T = False
for i in range(1,X+1):
p = X-i
J= 2*i + 4*p
if J ==Y:
T = True
if T == True:
print("Yes")
else: print("No")
| X,Y = map(int,input().split())
T = False
for i in range(0,X+1):
p = X-i
J= 2*i + 4*p
if J ==Y:
T = True
if T == True:
print("Yes")
else: print("No")
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 72 |
x,y = map(int,input().split())
for a in range(1,101):
if 4*x-2*a==y:
print('Yes')
break
else:
print('No') | x,y = map(int,input().split())
for a in range(x+1):
if 4*x-2*a==y:
print('Yes')
break
else:
print('No') | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 52 |
#include <bits/stdc++.h>
typedef long long ll;
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define fr f... | #include <bits/stdc++.h>
typedef long long ll;
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define fr f... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 136 |
x, y =map(int, input().split())
def B():
for i in range(0,x):
if 4*i+2*(x-i)-y==0:
return 'Yes'
return 'No'
print(B()) | x, y =map(int, input().split())
def B():
for i in range(0,x+1):
if 4*i+2*(x-i)-y==0:
return 'Yes'
return 'No'
print(B())
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 62 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define x first
#define y second
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
// assert(freopen("input.txt","r",stdin));
// assert(freopen("output.txt","w",stdout));
ll x, y;
cin >> x >> y;
int ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define x first
#define y second
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
// assert(freopen("input.txt","r",stdin));
// assert(freopen("output.txt","w",stdout));
ll x, y;
cin >> x >> y;
int ... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 123 |
#include <bits/stdc++.h> // include all standard C++ libraries
using namespace std;
// Loops
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define _rrep(i, n) rrepi(i, n, 0)
#define rrepi(i, a, b) for (int i = int(a) - 1; i ... | #include <bits/stdc++.h> // include all standard C++ libraries
using namespace std;
// Loops
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = int(a); i < int(b); ++i)
#define _rrep(i, n) rrepi(i, n, 0)
#define rrepi(i, a, b) for (int i = int(a) - 1; i ... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35]] | 1 | 532 |
x, y = map(int, input().split())
if y % 2 != 0:
print('NO')
else:
if x*2<=y<=x*4:
print('YES')
else:
print('NO') | x, y = map(int, input().split())
if y % 2 != 0:
print('No')
else:
if x*2<=y<=x*4:
print('Yes')
else:
print('No') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 56 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
if (a * 2 < b && a * 4 >> b) {
if (b % 2 == 0 && b % 6 == 0) {
cout << "Yes" << endl;
} else if (b % 6 == 0 || b % 2 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << end... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main(void) {
int a, b;
cin >> a >> b;
if (a * 2 <= b && a * 4 >= b) {
if (b % 2 == 0 && b % 6 == 0) {
cout << "Yes" << endl;
} else if (b % 6 == 0 || b % 2 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << en... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 152], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 113 |
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#define all(c) c.begin(), c.end()
#define mp(x, y) make_pair... | #include <bits/stdc++.h>
#define ll long long
#define ld long double
#define vi vector<int>
#define vll vector<ll>
#define vvi vector<vi>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#define all(c) c.begin(), c.end()
#define mp(x, y) make_pair... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 168 |
X,Y = map(int, input().split())
ans = 0
if(Y<4*X and Y%2 == 0 and 2*X <= Y):
ans = 1
else :
ans = 0
if(ans == 0):
print('No')
elif(ans == 1):
print('Yes') | X,Y = map(int, input().split())
ans = 0
if(Y<=4*X and Y%2 == 0 and 2*X <= Y):
ans = 1
else :
ans = 0
if(ans == 0):
print('No')
elif(ans == 1):
print('Yes')
| [["-", 15, 23, 0, 679, 31, 679, 31, 666, 667, 18], ["+", 15, 23, 0, 679, 31, 679, 31, 666, 667, 19]] | 5 | 74 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int i, x, y, ck = 0;
cin >> x >> y;
for (i = 1; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
ck = 1;
break;
}
}
if (ck)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int i, x, y, ck = 0;
cin >> x >> y;
for (i = 0; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
ck = 1;
break;
}
}
if (ck)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13]] | 1 | 92 |
import sys
X, Y = map(int, input().split())
a = 2 * X
if a == Y:
print('Yes')
sys.exit()
for i in range(X+1):
a = a + 2
if a == Y:
print('Yes')
sys.exit()
print('No') | import sys
X, Y = map(int, input().split())
a = 2 * X
if a == Y:
print('Yes')
sys.exit()
for i in range(X):
a = a + 2
if a == Y:
print('Yes')
sys.exit()
print('No') | [["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 76 |
X, Y = map(int, input().split())
n = (X*4 - Y) / 2
if n >=0 and n <= Y and Y%2 ==0:
print("Yes")
else:
print("No") | X, Y = map(int, input().split())
n = (X*4 - Y) / 2
if n >=0 and n <= X and Y%2 ==0:
print("Yes")
else:
print("No") | [["-", 0, 57, 15, 679, 31, 679, 12, 666, 0, 22], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 0, 22]] | 5 | 56 |
x, y = map(int, input().split())
print('Yes' if y%2 == 0 and x <= y//2 and y // 4 <= x else 'No')
| x, y = map(int, input().split())
print('Yes' if y%2 == 0 and x <= y/2 and y / 4 <= x else 'No')
| [["-", 0, 679, 31, 679, 12, 666, 0, 657, 17, 676], ["+", 0, 679, 31, 679, 12, 666, 0, 657, 17, 85], ["-", 0, 41, 0, 679, 12, 666, 0, 657, 17, 676], ["+", 0, 41, 0, 679, 12, 666, 0, 657, 17, 85]] | 5 | 44 |
x, y = map(int, input().split())
flg = False
for i in range(1, 101):
for j in range(1, 101):
if (i * 2) + (j * 4) == y and (i + j) == x:
print("Yes")
flg = True
break
if flg == True:
break
else:
print("No")
| x, y = map(int, input().split())
flg = False
for i in range(101):
for j in range(101):
if (i * 2) + (j * 4) == y and (i + j) == x:
print("Yes")
flg = True
break
if flg == True:
break
else:
print("No") | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 86 |
x,y = map(int,input().split())
for i in range(x+1):
asi = 0
for j in range(x+1):
if i + j > x:
break
asi = i * 4 + j * 2
if asi == y:
print("Yes")
exit()
print("No") | x,y = map(int,input().split())
for i in range(x+1):
asi = 0
for j in range(x+1):
if i + j != x:
continue
asi = i * 4 + j * 2
if asi == y:
print("Yes")
exit()
print("No") | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 667, 79], ["-", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117]] | 5 | 76 |
x, y = map(int, input().split())
ans = 'No'
for i in range(x + 1):
j = x - a
if (j*2 + i*4 == y):
ans = "Yes"
print(ans)
| x, y = map(int, input().split())
ans = 'No'
for i in range(x + 1):
j = x - i
if (j*2 + i*4 == y):
ans = "Yes"
print(ans)
| [["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 12, 22]] | 5 | 58 |
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= 50; i++) {
for (int j = 0; j <= 24; j++) {
if (2 * i + 4 * j == y && i + j == x)
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= 50; i++) {
for (int j = 0; j <= 25; j++) {
if (2 * i + 4 * j == y && i + j == x) {
cout << "Yes" << endl;
return 0;
}
}
}
cout << "No" << endl;
return 0;
}
| [["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 95 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int LLI;
void solve() {
int x, y;
cin >> x >> y;
bool found = false;
for (int turtles = 0; turtles <= x; ++turtles) {
int cranes = x - turtles;
int legs = turtles * 4 + cranes * 2;
if (legs == y) {
found = true;
}
}
if (... | #include <bits/stdc++.h>
using namespace std;
typedef long long int LLI;
void solve() {
int x, y;
cin >> x >> y;
bool found = false;
for (int turtles = 0; turtles <= x; ++turtles) {
int cranes = x - turtles;
int legs = turtles * 4 + cranes * 2;
if (legs == y) {
found = true;
}
}
if (... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 126 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int C = i;
int T = x - i;
if (((T * 4) + (C * 2)) == y) {
cout << "YES";
return 0;
}
}
cout << "NO";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int C = i;
int T = x - i;
if (((T * 4) + (C * 2)) == y) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 89 |
X,Y=map(int,input().split())
if(Y%2==0 & 2*X<=Y<=4*X):
print('Yes')
else:
print('No')
| X,Y=map(int,input().split())
if(Y%2==0 and 2*X<=Y<=4*X):
print('Yes')
else:
print('No')
| [["-", 0, 57, 15, 23, 0, 666, 0, 657, 17, 67], ["+", 0, 656, 0, 57, 15, 23, 0, 679, 17, 355]] | 5 | 49 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y <= 4 * x and 2 * y <= x and y % 2 == 0)
cout << "Yes" << '\n';
else
cout << "No" << '\n';
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y <= 4 * x and 2 * x <= y and y % 2 == 0)
cout << "Yes" << '\n';
else
cout << "No" << '\n';
}
| [["-", 51, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22]] | 1 | 64 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define IOS \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie... | [["-", 0, 57, 64, 9, 0, 1, 0, 2, 63, 22], ["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["-", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35]] | 1 | 111 |
#include <bits/stdc++.h>
#include <iostream>
#define int long long
#define mod 1000000007
#define pb(x) push_back(x)
#define gcd(a, b) __gcd(a, b)
#define all(v) v.begin(), v.end()
#define lcm(a, b) (a * b) / gcd(a, b)
#define bits(x) __builtin_popcountll(x)
#define fast ... | #include <bits/stdc++.h>
#include <iostream>
#define int long long
#define mod 1000000007
#define pb(x) push_back(x)
#define gcd(a, b) __gcd(a, b)
#define all(v) v.begin(), v.end()
#define lcm(a, b) (a * b) / gcd(a, b)
#define bits(x) __builtin_popcountll(x)
#define fast ... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 119 |
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define ll long long
using namespace std;
int main() {
int x, y;
cin >> x >> y;
rep(i, 101) {
if (2 * i + 4 * (x - i) == y) {
cout << "Yes" << endl;
// cout << i << " " << x - i << endl;
return 0;
}
}
cout ... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define ll long long
using namespace std;
int main() {
int x, y;
cin >> x >> y;
rep(i, x + 1) {
if (2 * i + 4 * (x - i) == y) {
cout << "Yes" << endl;
// cout << i << " " << x - i << endl;
return 0;
}
}
cou... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 31, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 81 |
#include <stdio.h>
int main() {
int i, num, X, Y, cnt;
cnt = 0;
if (scanf("%d%d", &X, &Y) == -1) {
return 0;
}
for (i = 0; i <= X; i++) {
num = 2 * i + 4 * (X - i);
if (num == Y) {
cnt++;
}
}
if (cnt == 0) {
printf("NO\n");
} else {
printf("YES\n");
}
return 0;
}
| #include <stdio.h>
int main() {
int i, num, X, Y, cnt;
cnt = 0;
if (scanf("%d%d", &X, &Y) == -1) {
return 0;
}
for (i = 0; i <= X; i++) {
num = 2 * i + 4 * (X - i);
if (num == Y) {
cnt++;
}
}
if (cnt == 0) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 115 |
x,y = map(int, input().split())
i = 'yes' if x * 2 <= y <= x * 4 and y % 2 == 0 else 'no'
print(i) | x,y = map(int, input().split())
i = 'Yes' if x * 2 <= y <= x * 4 and y % 2 == 0 else 'No'
print(i) | [["-", 0, 1, 0, 662, 12, 41, 0, 557, 0, 6], ["+", 0, 1, 0, 662, 12, 41, 0, 557, 0, 6]] | 5 | 45 |
#include <iostream>
using namespace std;
int main() {
int x, y, c, t;
cin >> x;
cin >> y;
if (y % 2 != 0) {
cout << "No" << endl;
return 0;
}
c = 2 * x - y / 2;
t = y / 2 - x;
if (c >= 0 && t >= 0)
cout << "yes";
else {
cout << "No";
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y, c, t;
cin >> x;
cin >> y;
if (y % 2 != 0) {
cout << "No" << endl;
return 0;
}
c = 2 * x - y / 2;
t = y / 2 - x;
if (c >= 0 && t >= 0)
cout << "Yes";
else {
cout << "No";
}
return 0;
} | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]] | 1 | 96 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.