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 <stdio.h>
int main(void) {
int x, y;
scanf("%d %d", &x, &y);
if ((3 * x - y) % 2 == 0 && (2 * x - y) % 2 == 0 && (3 * x - y) >= 0 &&
(2 * x - y) <= 0) {
printf("Yes");
} else {
printf("No");
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, y;
scanf("%d %d", &x, &y);
if ((4 * x - y) % 2 == 0 && (2 * x - y) % 2 == 0 && (4 * x - y) >= 0 &&
(2 * x - y) <= 0) {
printf("Yes");
} else {
printf("No");
}
return 0;
} | [["-", 31, 16, 31, 23, 0, 16, 31, 16, 31, 13], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 31, 13], ["-", 12, 16, 31, 23, 0, 16, 31, 16, 31, 13], ["+", 12, 16, 31, 23, 0, 16, 31, 16, 31, 13]] | 0 | 95 |
i=(input().split())
x=int(i[0])
y=int(i[1])
a=(4*x-y)/2
b=(y-2*x)/2
if a.is_integer() and b.is_integer() and a>=0 and b>=0:
print("YES")
else:
print("NO")
| i=(input().split())
x=int(i[0])
y=int(i[1])
a=(4*x-y)/2
b=(y-2*x)/2
if a.is_integer() and b.is_integer() and a>=0 and b>=0:
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 | 86 |
X,Y=map(int,input().split())
l=list(range(2*X,4*X,2))
#print(l)
flag=False
for i in range(len(l)):
if l[i]==int(Y):
flag=True
if flag:
print("Yes")
else:
print("No") | X,Y=map(int,input().split())
l=list(range(2*X,4*X+2,2))
#print(l)
flag=False
for i in range(len(l)):
if l[i]==int(Y):
flag=True
if flag:
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 | 79 |
#include <bits/stdc++.h>
using namespace std;
#define l1 long long
int main() {
int x, y, f = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
for (int j = 0; j <= x; j++) {
if ((2 * i + 4 * j) == y && (i + j == x)) {
f = 1;
cout << "YES";
break;
}
}
if (f == 1)
... | #include <bits/stdc++.h>
using namespace std;
#define l1 long long
int main() {
int x, y, f = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
for (int j = 0; j <= x; j++) {
if ((2 * i + 4 * j) == y && (i + j == x)) {
f = 1;
cout << "Yes";
break;
}
}
if (f == 1)
... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6]] | 1 | 118 |
/*
*/
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep2(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) rep2(i, 0, n)
template <class T, class U> void chmin(T &t, U f) {
if (t > f)
t = f;
}
template <class T, class U> void chmax(T &t, U f) {
if (t < f)
t = f;
}
i... | /*
*/
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep2(i, a, n) for (int i = (a); i < (n); i++)
#define rep(i, n) rep2(i, 0, n)
template <class T, class U> void chmin(T &t, U f) {
if (t > f)
t = f;
}
template <class T, class U> void chmax(T &t, U f) {
if (t < f)
t = f;
}
i... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 184 |
#include <iostream>
using namespace std;
int main(void) {
long long int x;
long long int y;
cin >> x >> y;
for (long long int i = 0; i <= x; i++) {
long long int tartle = (x - i);
long long int tmpans = y;
if (y == 2 * i) {
cout << "Yes" << endl;
return 0;
} else {
if (y < 2... | #include <iostream>
using namespace std;
int main(void) {
long long int x;
long long int y;
cin >> x >> y;
for (long long int i = 0; i <= x; i++) {
long long int tartle = (x - i);
long long int tmpans = y;
if (y == 2 * i && i == x) {
cout << "Yes" << endl;
return 0;
} else {
... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 151 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i < x; i++) {
if (2 * i + 4 * (x - i) == 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++) {
if (2 * i + 4 * (x - i) == y) {
cout << "Yes";
return 0;
}
}
cout << "No";
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 75 |
a = list(map(int, input().split()))
if (4 * a[0] - a[1]) % 2 == 0 and 2 * t >= (4 * a[0] - a[1]) >= 0:
print('Yes')
else:
print('No') | a = list(map(int, input().split()))
if (4 * a[0] - a[1]) % 2 == 0 and 2 * a[0] >= (4 * a[0] - a[1]) >= 0:
print('Yes')
else:
print('No') | [["-", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22], ["+", 15, 679, 12, 666, 0, 657, 12, 206, 51, 22], ["+", 15, 679, 12, 666, 0, 657, 12, 206, 0, 70], ["+", 15, 679, 12, 666, 0, 657, 12, 206, 206, 612], ["+", 15, 679, 12, 666, 0, 657, 12, 206, 0, 73]] | 5 | 70 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, i, j = 0, k, x;
cin >> a >> b;
for (i = 1; i <= a; i++) {
x = a - i;
k = (i * 2) + (x * 4);
if (k == b) {
j = 1;
break;
}
}
if (j == 1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, i, j = 0, k, x;
cin >> a >> b;
for (i = 0; i <= a; i++) {
x = a - i;
k = (i * 2) + (x * 4);
if (k == b) {
j = 1;
break;
}
}
if (j == 1)
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 | 108 |
console.log(function(args) {
const [X, Y] = args.trim().split(' ').map(x => x | 0);
return (X * 2 <= Y && Y <= X * 4) ? 'Yes' : 'No';
}(require('fs').readFileSync('/dev/stdin', 'utf8')));
| console.log(function(args) {
const [X, Y] = args.trim().split(' ').map(x => x | 0);
return (X * 2 <= Y && Y <= X * 4 && ~Y & 1) ? 'Yes' : 'No';
}(require('fs').readFileSync('/dev/stdin', 'utf8'))); | [["+", 0, 37, 0, 510, 15, 23, 0, 16, 17, 98], ["+", 15, 23, 0, 16, 12, 16, 31, 91, 17, 92], ["+", 15, 23, 0, 16, 12, 16, 31, 91, 28, 22], ["+", 0, 510, 15, 23, 0, 16, 12, 16, 17, 67], ["+", 0, 510, 15, 23, 0, 16, 12, 16, 12, 555]] | 2 | 83 |
a,b = [int(tmp) for tmp in input().split()]
a = a*2
y = (b-a)//2
x = (a-2*y)//2
if x<0 or y<0 or y%2==1 :
print("No")
else :
print("Yes")
| a,b = [int(tmp) for tmp in input().split()]
a = a*2
y = (b-a)//2
x = (a-2*y)//2
if x<0 or y<0 or b%2==1 :
print("No")
else :
print("Yes")
| [["-", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 31, 22]] | 5 | 74 |
x, y = [int(n) for n in input().split()]
for a in range(x+1):
legs = 2 * a + 4 * (x-a)
if legs == y:
print('YES')
exit()
print('NO')
| x, y = [int(n) for n in input().split()]
for a in range(x+1):
legs = 2 * a + 4 * (x-a)
if legs == y:
print('Yes')
exit()
print('No')
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 63 |
typedef char Bool;
#define true 39
#define false 0
typedef long long int64;
typedef unsigned long long uint64;
typedef int int32;
typedef unsigned int uint32;
typedef unsigned char byte;
#pragma warning(disable : 4996)
#include <stdio.h>
int main() {
int x, y;
scanf("%d %d", &x, &y);
for (int i = 0; i != x + 2;... | typedef char Bool;
#define true 39
#define false 0
typedef long long int64;
typedef unsigned long long uint64;
typedef int int32;
typedef unsigned int uint32;
typedef unsigned char byte;
#pragma warning(disable : 4996)
#include <stdio.h>
int main() {
int x, y;
scanf("%d %d", &x, &y);
for (int i = 0; i != x + 1;... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 0 | 151 |
x,y=map(int,input().split())
if y-2*x>=0 and (y-2*x)%2==0 and (4*x-y)>0 and (4*x-y)%2==0:
print("Yes")
else:
print("No")
| x,y=map(int,input().split())
if y-2*x>=0 and (y-2*x)%2==0 and (4*x-y)>=0 and (4*x-y)%2==0:
print("Yes")
else:
print("No")
| [["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 47], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 20]] | 5 | 73 |
#include <bits/stdc++.h>
using namespace std;
ifstream f("A.in");
typedef long long ll;
int main() {
ll X, Y, a, b;
cin >> X >> Y;
if (Y % 2 == 0) {
a = (2 * X) - (Y / 2);
b = (Y / 2) - X;
// cout<<a<<' '<<b<<'\n';
if (a >= 0 && b >= 0)
cout << "YES";
else
cout << "NO";
} else
... | #include <bits/stdc++.h>
using namespace std;
ifstream f("A.in");
typedef long long ll;
int main() {
ll X, Y, a, b;
cin >> X >> Y;
if (Y % 2 == 0) {
a = (2 * X) - (Y / 2);
b = (Y / 2) - X;
// cout<<a<<' '<<b<<'\n';
if (a >= 0 && b >= 0)
cout << "Yes";
else
cout << "No";
} else
... | [["-", 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 | 105 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int y = scan.nextInt();
scan.close();
for (int i = 0; i <= 100; i++) {
if (2 * i + 4 * (x - i) == y) {
System.out.println("Yes");
... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int y = scan.nextInt();
scan.close();
for (int i = 0; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
System.out.println("Yes");
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 12, 22]] | 3 | 117 |
import sys
input = sys.stdin.readline
def S():
return input().rstrip()
def I():
return int(input())
def MI():
return map(int, input().split())
x, y = MI()
for i in range(1, x + 1):
f = i * 2 + (x - i) * 4
if f == y:
print("Yes")
exit()
print("No")
| import sys
input = sys.stdin.readline
def S():
return input().rstrip()
def I():
return int(input())
def MI():
return map(int, input().split())
x, y = MI()
for i in range(x + 1):
total = i * 2 + (x - i) * 4
if total == y:
print("Yes")
exit()
print("No")
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["-", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 104 |
# https://atcoder.jp/contests/abc170/tasks/abc170_b
X, Y = gets.split.map(&:to_i)
cond = Y.between?(X*2, X*4)
puts cond ? 'Yes' : 'No'
| # https://atcoder.jp/contests/abc170/tasks/abc170_b
X, Y = gets.split.map(&:to_i)
cond = Y.even? && Y.between?(X*2, X*4)
puts cond ? 'Yes' : 'No'
| [["+", 0, 493, 0, 662, 12, 738, 31, 652, 735, 22], ["+", 36, 36, 0, 493, 0, 662, 12, 738, 17, 98], ["+", 0, 493, 0, 662, 12, 738, 12, 652, 486, 743], ["+", 0, 493, 0, 662, 12, 738, 12, 652, 17, 131]] | 4 | 38 |
x, y = map(int, input().split())
f = False
for num_of_tsuru in range(1, x+1):
num_of_kame = x - num_of_tsuru
if (2*num_of_tsuru) + (4*num_of_kame) == y:
f = True
break
if f:
print('Yes')
else:
print('No') | x, y = map(int, input().split())
f = False
for num_of_tsuru in range(0, x+1):
num_of_kame = x - num_of_tsuru
if (2*num_of_tsuru) + (4*num_of_kame) == y:
f = True
break
if f:
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 |
#include <iostream>
#include <string>
using namespace std;
int main() {
long long x, y;
string ans = "No";
cin >> x >> y;
for (int i = 1; i <= x; i++) {
if (((i * 2) + ((x - i) * 4)) == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
long long x, y;
string ans = "No";
cin >> x >> y;
for (int i = 0; i <= x; i++) {
if (((i * 2) + ((x - i) * 4)) == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 87 |
n,k=map(int,input().split())
f=0
for i in range(0,n,1):
p=i*4+(n-i)*2
if p==k:
f=1
break
if f==0:
print("No")
else:
print("Yes")
| n,k=map(int,input().split())
f=0
for i in range(0,n+1,1):
p=i*4+(n-i)*2
if p==k:
f=1
break
if f==0:
print("No")
else:
print("Yes")
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 72 |
x, y = map(int, input().split())
if (4*x-y) > 0 and (4*x-y) % 2 == 0 and (4*x-y)/2 <= x:
print("Yes")
else:
print("No") | x, y = map(int, input().split())
if (4*x-y) >= 0 and (4*x-y) % 2 == 0 and (4*x-y)/2 <= x:
print("Yes")
else:
print("No") | [["-", 0, 57, 15, 679, 31, 679, 31, 666, 667, 47], ["+", 0, 57, 15, 679, 31, 679, 31, 666, 667, 20]] | 5 | 65 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, cnt = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int z;
z = (x - i) * 2 + i * 4;
if (z == y)
cnt++;
}
if (cnt > 0)
cout << "YES";
else
cout << "NO";
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, cnt = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int z;
z = (x - i) * 2 + i * 4;
if (z == y)
cnt++;
}
if (cnt > 0)
cout << "Yes";
else
cout << "No";
}
| [["-", 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 | 88 |
X, Y = map(int, input().split())
if Y % 2 != 0:
print("NO")
else:
if Y/2 >= X and 4*X >= Y:
print("YES")
else:
print("NO") | X, Y = map(int, input().split())
if Y % 2 != 0:
print("No")
else:
if Y/2 >= X and 4*X >= Y:
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 | 58 |
X, Y = map(int, input().split())
flag = 0
for i in range(1,X+1):
total = i * 2 + (X - i) * 4
if total == Y:
flag = 1
break
if flag:
print('Yes')
else:
print('No') | X, Y = map(int, input().split())
flag = 0
for i in range(0,X+1):
total = i * 2 + (X - i) * 4
if total == Y:
flag = 1
break
if flag:
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 | 70 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#pragma GCC optimize(2)
#define int long long
#define MAXN 2000000
#define INF (1e13 + 7)
#define MANX MAXN
using namespace std;
inline int read() {
int x = 0, f = 1;
char c = getchar();
while (c > '9' || c < '0') {
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#pragma GCC optimize(2)
#define int long long
#define MAXN 2000000
#define INF (1e13 + 7)
#define MANX MAXN
using namespace std;
inline int read() {
int x = 0, f = 1;
char c = getchar();
while (c > '9' || c < '0') {
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 7, 8, 7, 10, 43, 49, 50, 51, 13], ["+", 0, 7, 8, 7, 10, 43, 49, 50, 51, 13], ["+", 0, 7, 8, 7, 8, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 7, 8, 57, 64, 9, 0, 46]] | 1 | 207 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y >= 2 * x && y <= 4 * x && y % 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 && y <= 4 * x && y % 2 == 0) {
cout << "Yes";
} else {
cout << "No";
}
return 0;
}
| [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 63 |
x, y = map(int,input().split())
for i in range(x+1):
print(i)
if 4 * i + 2*(x - i) == y:
print('Yes')
exit()
print('No') | x, y = map(int, input().split())
for i in range(x + 1):
if 4 * i + 2 * (x - i) == y:
print('Yes')
exit()
print('No') | [["-", 0, 7, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 60 |
# coding:utf-8
def main():
X, Y = map(int, input().split())
m = (Y-2*X)
if (m >= 0 and m % 2 == 0 and (2*X - m) >= 0 and (2*X - m) % 2 == 0):
print("Yes")
else:
print("NO")
return
if __name__ == "__main__":
main()
| # coding:utf-8
def main():
X, Y = map(int, input().split())
m = (Y-2*X)
if (m >= 0 and m % 2 == 0 and (2*X - m) >= 0 and (2*X - m) % 2 == 0):
print("Yes")
else:
print("No")
return
if __name__ == "__main__":
main()
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 91 |
x,y=map(int,input().split())
ok=False
for i in range(1,x+1):
a=2*i+4*(x-i)
if a==y:
ok=True
break
if ok:
print("Yes")
else:
print("No") | x,y=map(int,input().split())
ok=False
for i in range(x+1):
a=2*i+4*(x-i)
if a==y:
ok=True
break
if ok:
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 70 |
#include <algorithm>
#include <array>
#include <atomic>
#include <bitset>
#include <cassert>
#include <ccomplex>
#include <cctype>
#include <cerrno>
#include <cfenv>
#include <cfloat>
#include <chrono>
#include <cinttypes>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <codecvt>
#inc... | #include <algorithm>
#include <array>
#include <atomic>
#include <bitset>
#include <cassert>
#include <ccomplex>
#include <cctype>
#include <cerrno>
#include <cfenv>
#include <cfloat>
#include <chrono>
#include <cinttypes>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <codecvt>
#inc... | [["-", 31, 16, 12, 16, 31, 16, 12, 16, 31, 13], ["+", 31, 16, 12, 16, 31, 16, 12, 16, 31, 13], ["-", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["-", 15, 339, 51, 16, 12, 16, 31, 16, 17, 33], ["+", 51, 16, 12, 16, 31, 16, 31, 16, 12, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 33]] | 1 | 233 |
A,B = list(map(int, input().split()))
for i in range(1, A+1):
f = 2 * i + 4 * (A - i)
if f == B:
print("Yes")
break
else:
print("No") | A,B = list(map(int, input().split()))
for i in range(0, A+1):
f = 2 * i + 4 * (A - i)
if f == B:
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]] | 5 | 64 |
#include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define pb push_back
#define pob pop_back
#define mp make_pair
#define ff first
#define ss second
#define pi 3.14159265
#define fast \
ios::sync_with_stdio(0); ... | #include <bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define pb push_back
#define pob pop_back
#define mp make_pair
#define ff first
#define ss second
#define pi 3.14159265
#define fast \
ios::sync_with_stdio(0); ... | [["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 130 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int A;
int B;
cin >> A >> B;
string S = "No";
for (int i = 0; i < A + 1; i++) {
if ((12 - 2 * i) == B) {
S = "Yes";
break;
}
}
cout << S << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int A;
int B;
cin >> A >> B;
string S = "No";
for (int i = 0; i < A + 1; i++) {
if ((4 * A - 2 * i) == B) {
S = "Yes";
break;
}
}
cout << S << endl;
} | [["-", 15, 339, 51, 16, 31, 23, 0, 16, 31, 13], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 31, 13], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 17, 48], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 12, 22]] | 1 | 77 |
X, Y = map(int, input().split())
i = Y-2*X
flag = i%2==0 and i//2 < X and i>=0
ans = 'Yes' if flag else 'No'
print(ans)
| X, Y = map(int, input().split())
i = Y-2*X
flag = i%2==0 and i//2 <= X and i>=0
ans = 'Yes' if flag else 'No'
print(ans)
| [["-", 0, 662, 12, 679, 31, 679, 12, 666, 667, 18], ["+", 0, 662, 12, 679, 31, 679, 12, 666, 667, 19]] | 5 | 55 |
// Author: HarshKumar
#include <bits/stdc++.h>
using namespace std;
#define ll int64_t
const ll N = 1e6 + 6, M = 1e9 + 7;
int main() {
ios::sync_with_stdio(false), cin.tie(nullptr);
ll x, y;
cin >> x >> y;
for (ll i = 0; i < 101; i++) {
if (2 * i + 4 * (x - i) == y)
return cout << "Yes", 0;
}
cou... | // Author: HarshKumar
#include <bits/stdc++.h>
using namespace std;
#define ll int64_t
const ll N = 1e6 + 6, M = 1e9 + 7;
int main() {
ios::sync_with_stdio(false), cin.tie(nullptr);
ll x, y;
cin >> x >> y;
for (ll i = 0; i <= x; i++) {
if (2 * i + 4 * (x - i) == y)
return cout << "Yes", 0;
}
cout... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 102 |
#include <bits/stdc++.h>
using namespace std;
#define gc getchar_unlocked
#define foi(i, n) for (int i = 0; i < n; i++)
#define Foi(i, k, n) \
for (int i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1)
#define fol(i, n) for (ll i = 0; i < n; i++)
#defin... | #include <bits/stdc++.h>
using namespace std;
#define gc getchar_unlocked
#define foi(i, n) for (int i = 0; i < n; i++)
#define Foi(i, k, n) \
for (int i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1)
#define fol(i, n) for (ll i = 0; i < n; i++)
#defin... | [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 554 |
#include <bits/stdc++.h>
using namespace std;
int x, y;
int main(void) {
cin >> x >> y;
for (int i = 0; i <= 100; i++) {
int j = x - i;
if (2 * i + 4 * j == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int x, y;
int main(void) {
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int j = x - i;
if (2 * i + 4 * j == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 83 |
num, legs = map(int, input().split())
flag = 1
tmp = num * 4
for i in range(num+1):
if(tmp == legs):
print("Yes")
flag = 0
else:
tmp -= 2
if(flag == 1):
print("No") | num, legs = map(int, input().split())
flag = 1
tmp = num * 4
for i in range(num+1):
if(tmp == legs):
print("Yes")
flag = 0
break
else:
tmp -= 2
if(flag == 1):
print("No") | [["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 68 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
if (Y % 2 == 0 && Y >= X * 2) {
if (Y <= X * 4) {
cout << "Yes";
}
if (Y >= X * 4) {
cout << "No";
}
}
if (Y % 2 != 0 || Y < X * 2) {
cout << "No";
}
cout << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
if (Y % 2 == 0 && Y >= X * 2) {
if (Y <= X * 4) {
cout << "Yes";
}
if (Y > X * 4) {
cout << "No";
}
}
if (Y % 2 != 0 || Y < X * 2) {
cout << "No";
}
cout << endl;
}
| [["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 97 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool flag = false;
for (int i = 1; i <= 1000; i++)
for (int j = 1; j <= 1000; j++) {
if (i * 2 + j * 4 == y && i + j == x) {
flag = true;
break;
}
}
if (flag)
cout << "Yes" << endl;
el... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool flag = false;
for (int i = 0; i <= 100; i++)
for (int j = 0; j <= 100 - i; j++) {
if (i * 2 + j * 4 == y && i + j == x) {
flag = true;
break;
}
}
if (flag)
cout << "Yes" << endl;
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 7, 10, 43, 49, 50, 51, 13], ["+", 0, 7, 8, 7, 10, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 7, 8, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 7, 15, ... | 1 | 108 |
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x * 4 < y || y % 2 != 0)
cout << "No";
else
cout << "Yes";
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x * 4 < y || y % 2 != 0 || x * 2 > y)
cout << "No";
else
cout << "Yes";
return 0;
}
| [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 48], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 53 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
int ans = 0;
cin >> x >> y;
for (int i = 1; i <= x; i++) {
if ((2 * i + 4 * (x - i)) == y) {
ans = 1;
break;
}
}
if (ans == 1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
int ans = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
if ((2 * i + 4 * (x - i)) == y) {
ans = 1;
break;
}
}
if (ans == 1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 100 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1e18;
const int inf = 1e9;
#define rep(i, a, b) for (int i = a; i < b; i++)
#define per(i, b, a) for (int i = a - 1; i >= b; i--)
using Graph = vector<vector<int>>;
using pint = pair<int, int>;
int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1e18;
const int inf = 1e9;
#define rep(i, a, b) for (int i = a; i < b; i++)
#define per(i, b, a) for (int i = a - 1; i >= b; i--)
using Graph = vector<vector<int>>;
using pint = pair<int, int>;
int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 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 | 211 |
def input_int():
return map(int, input().split())
def one_int():
return int(input())
def one_str():
return input()
def many_int():
return list(map(int, input().split()))
X, Y = input_int()
flg=True
for i in range(1,X+1):
if 2*i + (X-i)*4 == Y:
print("Yes")
flg=False
if flg:
... | def input_int():
return map(int, input().split())
def one_int():
return int(input())
def one_str():
return input()
def many_int():
return list(map(int, input().split()))
X, Y = input_int()
flg=True
for i in range(X+1):
if 2*i + (X-i)*4 == Y:
print("Yes")
flg=False
if flg:
pr... | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 115 |
#include <stdio.h>
int main(void) {
int X, Y, t;
scanf("%d", &Y);
scanf("%d", &X);
t = (4 * Y - X) / 2;
if (Y - t >= 0 && t >= 0 && 2 * t % 2 == 0) {
puts("Yes");
} else {
puts("No");
}
return 0;
}
| #include <stdio.h>
int main(void) {
int X, Y, t;
scanf("%d", &Y);
scanf("%d", &X);
t = (4 * Y - X) / 2;
if (Y - t >= 0 && t >= 0 && X % 2 == 0) {
puts("Yes");
} else {
puts("No");
}
return 0;
}
| [["-", 0, 16, 12, 16, 31, 16, 31, 16, 31, 13], ["-", 0, 16, 12, 16, 31, 16, 31, 16, 17, 48], ["-", 0, 16, 12, 16, 31, 16, 31, 16, 12, 22], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 31, 22]] | 0 | 90 |
x, y = map(int, input().split())
k = (y-2*x) / 2
t = x - k
if 2*t + 4*k == y and k >= 0 and t >= 0:
print('Yes')
else:
print('No') | x, y = map(int, input().split())
k = (y-2*x) // 2
t = x - k
if 2*t + 4*k == y and k >= 0 and t >= 0:
print('Yes')
else:
print('No') | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 676]] | 5 | 65 |
x, y = map(int, input().split())
for i in range(101):
j = x - i
if y == 2 * i + 4 * j:
print("Yes")
exit()
else:
print("No")
| x, y = map(int, input().split())
for i in range(x + 1):
j = x - i
if y == 2 * i + 4 * j:
print("Yes")
exit()
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 | 57 |
#include <bits/stdc++.h>
#pragma region Macro
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define SORT(v) sort(v.begin(), v.end())
#define pb(a) push_back(a)
#define eb(a) emplace_back(a)
#define vi vector<int>
#define vvi vector<vector<int>>
#define chmax(x, y... | #include <bits/stdc++.h>
#pragma region Macro
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define SORT(v) sort(v.begin(), v.end())
#define pb(a) push_back(a)
#define eb(a) emplace_back(a)
#define vi vector<int>
#define vvi vector<vector<int>>
#define chmax(x, y... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 31, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 31, 22]] | 1 | 190 |
X, Y = map(int, input().split())
for i in range(1, X):
f = 2 * i + 4 * (X - i)
if f == Y:
print('Yes')
break
else:
print('No') | X, Y = map(int, input().split())
for i in range(X + 1):
f = 2 * i + 4 * (X - i)
if f == 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, 21], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 59 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int x, y;
cin >> x >> y;
bool can = false;
for (int i = 0; i < y / 2; i++) {
if (2 * i + 4 * (x - i) == y) {
can = true;
break;
}
}
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int x, y;
cin >> x >> y;
bool can = false;
for (int i = 0; i <= y / 2; i++) {
if (2 * i + 4 * (x - i) == y) {
can = true;
break;
}
}
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 115 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define mp makepair
#define deb(x) cout << x << "\n";
#define deB(x, y) cout << x << " " << y << "\n";
#define Deb(x, y, z) cout << x << " " << y << " " << z << "\n"
#define YES cout << "YES\n";
#d... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ff first
#define ss second
#define pb push_back
#define mp makepair
#define deb(x) cout << x << "\n";
#define deB(x, y) cout << x << " " << y << "\n";
#define Deb(x, y, z) cout << x << " " << y << " " << z << "\n"
#define YES cout << "YES\n";
#d... | [["-", 0, 52, 15, 339, 51, 16, 12, 16, 31, 13], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 48]] | 1 | 143 |
x,y=map(int,input().split())
result='No'
if x*4>=x:
for i in range(x):
if i*4+(x-i)*2==y:
result='Yes'
break
print(result) | x,y=map(int,input().split())
result='No'
if x*4>=x:
for i in range(x+1):
if i*4+(x-i)*2==y:
result='Yes'
break
print(result) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 61 |
X,Y=map(int,input().split())
a=0
for i in range(1,X+1):
if i*2+(X-i)*4==Y:
a=1
if a==1:
print('Yes')
else:
print('No') | X,Y=map(int,input().split())
a=0
for i in range(0,X+1):
if i*2+(X-i)*4==Y:
a=1
if a==1:
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 | 68 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define lld long double
#define vc vector
typedef pair<ll, ll> pairs;
int main() {
// your code goes here
std::ios::sync_with_stdio(false);
ll t, n, i, j, k, l, c, f;
vector<ll> a;
ll x, y;
cin >> x >> y;
if ((y & 1) || (y / 2 < x) || (2 *... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define lld long double
#define vc vector
typedef pair<ll, ll> pairs;
int main() {
// your code goes here
std::ios::sync_with_stdio(false);
ll t, n, i, j, k, l, c, f;
vector<ll> a;
ll x, y;
cin >> x >> y;
if ((y & 1) || (y / 2 < x) || (2 *... | [["-", 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 | 116 |
x, y = map(int, input().split())
i=1
flag = 0
while(i <= x):
if(i*2 + (x-i)*4) == y:
flag = 1
break
i+=1
if flag == 1:
print("Yes")
else:
print("No")
| x, y = map(int, input().split())
i=0
flag = 0
while(i <= x):
if(i*2 + (x-i)*4) == y:
flag = 1
break
i+=1
if flag == 1:
print("Yes")
else:
print("No")
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 72 |
x,y = map(int,input().split())
if x*4-1 <= y or x*2-1 >= y:
print('No')
elif y % 2 == 1:
print('No')
else:
print('Yes') | x,y = map(int,input().split())
if x*4+1 <= y or x*2-1 >= y:
print('No')
elif y % 2 == 1:
print('No')
else:
print('Yes') | [["-", 0, 57, 15, 679, 31, 666, 0, 657, 17, 33], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 17, 72]] | 5 | 60 |
#include <stdio.h>
int main() {
int x, y, i;
scanf("%d %d", &x, &y);
for (i = 0; i < x; i++) {
if ((i * 2 + (x - i) * 4) == y) {
printf("Yes");
return (0);
}
}
printf("No");
return (0);
} | #include <stdio.h>
int main() {
int x, y, i;
scanf("%d %d", &x, &y);
for (i = 0; i <= x; i++) {
if ((i * 2 + (x - i) * 4) == y) {
printf("Yes");
return (0);
}
}
printf("No");
return (0);
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 0 | 87 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in);) {
int x = sc.nextInt();
int y = sc.nextInt();
if (y < x * 2 || x * 4 < y) {
System.out.println("NO");
} else if (y % 2 != 0) {
System.out.pri... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner sc = new Scanner(System.in);) {
int x = sc.nextInt();
int y = sc.nextInt();
if (y < x * 2 || x * 4 < y) {
System.out.println("No");
} else if (y % 2 != 0) {
System.out.pri... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 134 |
import math
X, Y = list(map(int, input().split()))
c = Y / 2 - X
t = X - c
if (c < 0 or t < 0 or c != math.floor(c) or t != math.floor(t)):
print("NO")
else:
print("YES")
| import math
X, Y = list(map(int, input().split()))
c = Y / 2 - X
t = X - c
if (c < 0 or t < 0 or c != math.floor(c) or t != math.floor(t)):
print("No")
else:
print("Yes")
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 76 |
x,y = (int(x) for x in input().split())
for i in range(x):
total = 2 * i + 4 * (x - i)
if total == y:
print('Yes')
break
else:
print('No') | x,y = (int(x) for x in input().split())
for i in range(x+1):
total = 2 * i + 4 * (x - i)
if total == y:
print('Yes')
break
else:
print('No') | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 61 |
X, Y = map(int, input().split())
ans = Y - 2 * X
temp1 = ans / 2
temp2 = ans % 2
if temp2 == 0 and temp1 <= X:
print("Yes")
else:
print("No") | X, Y = map(int, input().split())
ans = Y - 2 * X
temp1 = ans / 2
temp2 = ans % 2
if ans >= 0 and temp2 == 0 and temp1 <= X:
print("Yes")
else:
print("No") | [["+", 0, 57, 15, 679, 31, 679, 31, 666, 0, 22], ["+", 0, 57, 15, 679, 31, 679, 31, 666, 667, 20], ["+", 0, 57, 15, 679, 31, 679, 31, 666, 0, 612], ["+", 0, 656, 0, 57, 15, 679, 31, 679, 17, 355]] | 5 | 56 |
a,b = map(int,input().split())
exist_flg = False
for kame in range(a):
tsuru = a - kame
if (kame*4+tsuru*2)==b:
exist_flg = True
break
if exist_flg:
print("Yes")
else:
print("No") | a,b = map(int,input().split())
exist_flg = False
for kame in range(a+1):
tsuru = a - kame
if (kame*4+tsuru*2)==b:
exist_flg = True
break
if exist_flg:
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 | 66 |
#include <bits/stdc++.h>
#define FOR(i, a, n) for (long long i = (a); i < (n); i++)
#define REP(i, n) for (long long i = 0; i < (n); i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define pb push_back
#define PI 3.14159265358979323846264338327950L
#define e18 1000000000000000000
using namespace std;
typedef long lo... | #include <bits/stdc++.h>
#define FOR(i, a, n) for (long long i = (a); i < (n); i++)
#define REP(i, n) for (long long i = 0; i < (n); i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define pb push_back
#define PI 3.14159265358979323846264338327950L
#define e18 1000000000000000000
using namespace std;
typedef long lo... | [["+", 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 | 382 |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef unsigned long long ULL;
void process();
int main() {
int X, Y;
int x;
cin >> X >> Y;
x = (Y - 4 * X) / (-2);
if (x >= 0 && 2 * x + 4 * (X - x) == Y) {
cout << "Yes" << endl;
} else {
cout <<... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef unsigned long long ULL;
void process();
int main() {
int X, Y;
int x;
cin >> X >> Y;
x = (Y - 4 * X) / (-2);
if (x >= 0 && x <= X && 2 * x + 4 * (X - x) == Y) {
cout << "Yes" << endl;
} else {
... | [["+", 15, 339, 51, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 108 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 1; i <= y / 2; ++i) {
if (4 * x - 2 * i == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= y / 2; ++i) {
if (4 * x - 2 * 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 | 76 |
#include <algorithm>
#include <bitset>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
const int INF = 0x7fffffff;
us... | #include <algorithm>
#include <bitset>
#include <deque>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
const int INF = 0x7fffffff;
us... | [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13]] | 1 | 175 |
// I make this just for fun because i'm done
// Aimi Haraguni >> Konomi Suzuki >> Yui >> Ikimono Gakari >> Garnidelia >>
// Kalafina >> Eir Aoi. .. dude? problems that involves any kind of persistent
// data structures are the best of the best, are not them?
// #pragma GCC optimize ("Ofast,unroll-loops")
// #pragma... | // I make this just for fun because i'm done
// Aimi Haraguni >> Konomi Suzuki >> Yui >> Ikimono Gakari >> Garnidelia >>
// Kalafina >> Eir Aoi. .. dude? problems that involves any kind of persistent
// data structures are the best of the best, are not them?
// #pragma GCC optimize ("Ofast,unroll-loops")
// #pragma... | [["+", 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, 354], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]] | 1 | 530 |
X,Y = map(int,input().split())
flag = True
for x in range(1,X+1):
i = X - x # 亀 4
j = x # 鶴 2
if i*4+j*2 == Y:
flag = False
print("Yes")
break
if flag:
print("No") | X,Y = map(int,input().split())
flag = True
for x in range(X+1):
i = X - x # 亀 4
j = x # 鶴 2
if i*4+j*2 == Y:
flag = False
print("Yes")
break
if flag:
print("No") | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 71 |
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 || -1 * x + y / 2 < 0 || 2 * x - y / 2 < 0) {
cout << "NO";
return 0;
}
cout << "YES";
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 || -1 * x + y / 2 < 0 || 2 * x - y / 2 < 0) {
cout << "No";
return 0;
}
cout << "Yes";
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 | 69 |
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int ans = -1;
int a, b;
for (int i = 0; i <= x; i++) {
a = 0;
b = x - i;
if (2 * a + 4 * b == y) {
ans = 1;
}
}
if (ans == 1) {
cout << "Yes\n";
} else {
c... | #include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int ans = -1;
int a, b;
for (int i = 0; i <= x; i++) {
a = i;
b = x - i;
if (2 * a + 4 * b == y) {
ans = 1;
break;
}
}
if (ans == 1) {
cout << "Yes\n";
}... | [["-", 0, 7, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]] | 1 | 109 |
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define ll long long int
#define dbl double
#define pi acos(-1)
#define sc1(a) scanf("%lld", &a)
#define sc2(a, b) scanf("%lld%lld", &a, &b)
#define sc3(a, b, c) scanf("%lld%lld%lld", &a, &b, &c)
#define pb push_back
#define mxx 100000
map<string, ll> mp, ... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
#define ll long long int
#define dbl double
#define pi acos(-1)
#define sc1(a) scanf("%lld", &a)
#define sc2(a, b) scanf("%lld%lld", &a, &b)
#define sc3(a, b, c) scanf("%lld%lld%lld", &a, &b, &c)
#define pb push_back
#define mxx 100000
map<string, ll> mp, ... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 314 |
x, y = map(int,input().split())
pnt = 0
for i in range(1,x+1):
if i * 2 + (x-i) * 4 == y:
pnt = 1
if pnt == 0:
print("No")
if pnt == 1:
print("Yes") | x, y = map(int,input().split())
pnt = 0
for i in range(0,x+1):
if i * 2 + (x-i) * 4 == y:
pnt = 1
if pnt == 0:
print("No")
if pnt == 1:
print("Yes") | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 71 |
#include <bits/stdc++.h>
#define ll long long int
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define phi 3.1415926535
using namespace std;
ll tc, cnt = 0, number, many, total = 0;
int rmove[4] = {0, 0, -1, 1};
int cmove[4] = {1, -1, 0, 0};
int main() {
ios_base::sync_with_stdio(f... | #include <bits/stdc++.h>
#define ll long long int
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define phi 3.1415926535
using namespace std;
ll tc, cnt = 0, number, many, total = 0;
int rmove[4] = {0, 0, -1, 1};
int cmove[4] = {1, -1, 0, 0};
int main() {
ios_base::sync_with_stdio(f... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 181 |
x, y = [int(x) for x in input().split()]
flg = False
for i in range(1, x+1):
j = x-i
if i*2 + j*4 == y:
flg = True
break
if flg:
print("Yes")
else:
print("No")
| x, y = [int(x) for x in input().split()]
flg = False
for i in range(0, x+1):
j = x-i
if i*2 + j*4 == y:
flg = True
break
if flg:
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 |
#include <bits/stdc++.h>
#include <iostream>
#include <string.h>
int main(void) {
int x, y;
scanf("%d %d", &x, &y);
for (int i = 1; i <= 100; i++) {
for (int j = 1; j <= 100; j++) {
if ((i + j) == x && (i * 2) + (j * 4) == y) {
printf("Yes");
return 0;
}
}
}
printf("No"... | #include <bits/stdc++.h>
#include <iostream>
#include <string.h>
int main(void) {
int x, y;
scanf("%d %d", &x, &y);
for (int i = 0; i <= 100; i++) {
for (int j = 0; j <= 100; j++) {
if ((i + j) == x && (i * 2) + (j * 4) == y) {
printf("Yes");
return 0;
}
}
}
printf("No"... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 109 |
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 1; i <= x; ++i) {
int result = i * 2 + (x ... | #include <algorithm>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <set>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
int result = i * 2 + (x ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 103 |
#include <bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define all(v) v.begin(), v.end()
#define ll long long int
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | #include <bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define all(v) v.begin(), v.end()
#define ll long long int
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 149 |
def main():
x, y = map(int, input().split())
for i in range(x+1):
if 2 * i + 4 * (x - i) == y:
print('YES')
exit()
print('NO')
if __name__ == "__main__":
main()
|
def main():
x, y = map(int, input().split())
for i in range(x+1):
if 2 * i + 4 * (x - i) == y:
print('Yes')
exit()
print('No')
if __name__ == "__main__":
main()
| [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 71 |
x,y = map(int,input().split())
ans = "No"
for i in range(1,x+1):
if i*2 + (x-i)*4 == y:
ans = "Yes"
break
print(ans) | x,y = map(int,input().split())
ans = "No"
for i in range(0,x+1):
if i*2 + (x-i)*4 == y:
ans = "Yes"
break
print(ans) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 58 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int m, n;
cin >> m >> n;
if (m <= n && n <= 2 * m && n % 2 == 0)
cout << "Yes" << endl;
else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int m, n;
cin >> m >> n;
if (m * 2 <= n && n <= 4 * m && n % 2 == 0)
cout << "Yes" << endl;
else {
cout << "No" << endl;
}
} | [["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 12, 13], ["-", 51, 16, 31, 16, 12, 16, 12, 16, 31, 13], ["+", 51, 16, 31, 16, 12, 16, 12, 16, 31, 13]] | 1 | 60 |
#include <iostream>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
if (y % 2 != 0) {
cout << "NO" << endl;
return 0;
}
if (2 * x <= y && y <= 4 * x) {
cout << "YES" << endl;
return 0;
} else {
cout << "NO" << endl;
return 0;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int x, y;
cin >> x >> y;
if (y % 2 != 0) {
cout << "No" << endl;
return 0;
}
if (2 * x <= y && y <= 4 * x) {
cout << "Yes" << endl;
return 0;
} else {
cout << "No" << endl;
return 0;
}
return 0;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 89 |
#include <stdio.h>
int main() {
int x, y;
scanf("%d%d", &x, &y);
if (y % 2 == 1) {
printf("No");
return 0;
}
if (2 * y >= x && 4 * x >= y) {
printf("Yes");
return 0;
}
printf("No");
return 0;
} | #include <stdio.h>
int main() {
int x, y;
scanf("%d%d", &x, &y);
if (y % 2 == 1) {
printf("No");
return 0;
}
if (y >= 2 * x && 4 * x >= y) {
printf("Yes");
return 0;
}
printf("No");
return 0;
}
| [["-", 15, 23, 0, 16, 31, 16, 31, 16, 31, 13], ["-", 15, 23, 0, 16, 31, 16, 31, 16, 17, 48], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 31, 13], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 48]] | 0 | 82 |
x,y = map(int, input().split(" "))
z = y/2-x
if z>=0 and z<=x and z%1==0:
print("yes")
else:
print("no") | x,y = map(int, input().split(" "))
z = y/2-x
if z>=0 and z<=x and z%1==0:
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 | 55 |
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();
if (y > 4 * x || y % 2 == 1)
System.out.println("No");
else
System.out.println("Yes");
sc.close();
}
}
| 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();
if (y > 4 * x || y % 2 == 1 || y < 2 * x)
System.out.println("No");
else
System.out.println("Yes");
sc.close();
}
}
| [["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 18], ["+", 15, 15, 0, 16, 12, 16, 12, 16, 31, 499], ["+", 15, 15, 0, 16, 12, 16, 12, 16, 17, 48], ["+", 15, 15, 0, 16, 12, 16, 12, 16, 12, 22]] | 3 | 95 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (b % 2 != 0) {
cout << "NO" << endl;
return 0;
} else {
if (a * 4 < b || a * 2 > b) {
cout << "NO" << endl;
return 0;
}
cout << "YES" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (b % 2 != 0) {
cout << "No" << endl;
return 0;
} else {
if (a * 4 < b || a * 2 > b) {
cout << "No" << endl;
return 0;
}
cout << "Yes" << endl;
}
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 82 |
X,Y=map(int,input().split())
flag=0
for i in range(1,X+1):
j=X-i
if i*2+j*4==Y:
flag=1
print('Yes' if flag==1 else 'No') | X,Y=map(int,input().split())
flag=0
for i in range(0,X+1):
j=X-i
if i*2+j*4==Y:
flag=1
# print(i,j)
print('Yes' if flag==1 else 'No') | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 64 |
X,Y=map(int,input().split())
res=0
for i in range(1,101):
if i*2+(X-i)*4==Y:
res=1
if res==0:
print('No')
else:
print('Yes') | X,Y=map(int,input().split())
res=0
for i in range(0,X+1):
if i*2+(X-i)*4==Y:
res=1
if res==0:
print('No')
else:
print('Yes') | [["-", 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, 31, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 66 |
#include <bits/stdc++.h>
#define DEBUG if (0)
#define lli long long int
#define ldouble long double
using namespace std;
int main() {
int x, y;
while (scanf("%d %d", &x, &y) != EOF) {
bool can = true;
int b = (y - 2 * x) / 2;
if ((y - 2 * x) & 1)
can = false;
if (x - b < 0)
can = false;... | #include <bits/stdc++.h>
#define DEBUG if (0)
#define lli long long int
#define ldouble long double
using namespace std;
int main() {
int x, y;
while (scanf("%d %d", &x, &y) != EOF) {
bool can = true;
int b = (y - 2 * x) / 2;
if (((y - 2 * x) & 1) || b < 0)
can = false;
if (x - b < 0)
c... | [["+", 51, 16, 31, 23, 0, 16, 31, 23, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 25], ["+", 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], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 112 |
def resolve():
import sys
input = sys.stdin.readline
xy = [int(x) for x in input().rstrip().split()]
x = xy[0]
y = xy[1]
for i in range(1, x+1):
if((i * 2 + (x-i)*4) == y):
print("Yes")
exit()
print("No")
# x = list(map(int, input().split()))
if... |
def resolve():
import sys
input = sys.stdin.readline
xy = [int(x) for x in input().rstrip().split()]
x = xy[0]
y = xy[1]
for i in range(x+1):
if((i * 2 + (x-i)*4) == y):
print("Yes")
exit()
print("No")
# x = list(map(int, input().split()))
if __n... | [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 105 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define inf ll(1e18)
#define mod 1000000007
#define mod1 998244353
#define mod2 999983
ll power(ll a, ll n, ll m);
ll power(ll a, ll n, ll m) {
if (n == 0)
return 1;
ll x = power(a, n / 2, m);
if (n % 2 != 0)
return (((a * x) % m) * (... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define inf ll(1e18)
#define mod 1000000007
#define mod1 998244353
#define mod2 999983
ll power(ll a, ll n, ll m);
ll power(ll a, ll n, ll m) {
if (n == 0)
return 1;
ll x = power(a, n / 2, m);
if (n % 2 != 0)
return (((a * x) % m) * (... | [["-", 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 | 249 |
#include <algorithm>
#include <iomanip> // std::setprecision()
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define YES cout << "YES" << endl;
#... | #include <algorithm>
#include <iomanip> // std::setprecision()
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define YES cout << "YES" << endl;
#... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 147], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 185 |
def main():
x, y = map(int,input().split())
fm1 = y - 2 * x
fm2 = 4 * x - y
if y % 2 == 0 and fm1 >= 0 and fm2 >= 0:
print("YES")
else:
print("NO")
if __name__ == '__main__':
main() | def main():
x, y = map(int,input().split())
fm1 = y - 2 * x
fm2 = 4 * x - y
if y % 2 == 0 and fm1 >= 0 and fm2 >= 0:
print("Yes")
else:
print("No")
if __name__ == '__main__':
main() | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 74 |
<?php
fscanf(STDIN, "%d %d", $dobutsu, $ashi);
for($i = 0;$i < $dobutsu;$i++) {
$tsuru = $i;
$kame = $dobutsu - $tsuru;
if($ashi === ($tsuru * 2 + $kame * 4)) {
echo "Yes";
exit(0);
}
}
echo "No"; | <?php
fscanf(STDIN, "%d %d", $dobutsu, $ashi);
for($i = 0;$i <= $dobutsu;$i++) {
$tsuru = $i;
$kame = $dobutsu - $tsuru;
if($ashi === ($tsuru * 2 + $kame * 4)) {
echo "Yes";
exit(0);
}
}
echo "No"; | [["-", 36, 36, 0, 493, 0, 7, 0, 16, 17, 18], ["+", 36, 36, 0, 493, 0, 7, 0, 16, 17, 19]] | 6 | 84 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define l long
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define M1 1000000007
#define M2 998244353
#define fl(i, a, b) for (ll i = a; i < b; i++)
#define bfl(i, a, b) for (ll i = b - 1; i >= a; ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define l long
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second
#define M1 1000000007
#define M2 998244353
#define fl(i, a, b) for (ll i = a; i < b; i++)
#define bfl(i, a, b) for (ll i = b - 1; i >= a; ... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 497 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <unordered_map>
typedef long long ll;
typedef long double ld;
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
for (int j = 0; j <= x; ++j) {
if ((i * 4 + j... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <unordered_map>
typedef long long ll;
typedef long double ld;
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
for (int j = 0; j <= x; ++j) {
if ((i * 4 + j... | [["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 19], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 60]] | 1 | 117 |
import math
X,Y=map(int,input().split())
#B,W=map(int,input().split())
#N=int(input())
flag=False
for i in range(X+2):
if i*2+((X-i)*4)==Y:
flag=True
if flag:
print("Yes")
else:
print("No") | import math
X,Y=map(int,input().split())
#B,W=map(int,input().split())
#N=int(input())
flag=False
for i in range(X+1):
if i*2+((X-i)*4)==Y:
flag=True
if flag:
print("Yes")
else:
print("No") | [["-", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 70 |
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <string>
#include <utility>
#include <vector>
const double PI = acos(-1);
#define rep(i, n) for (int i = 0; i < (n); i++)
usi... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <string>
#include <utility>
#include <vector>
const double PI = acos(-1);
#define rep(i, n) for (int i = 0; i < (n); i++)
usi... | [["+", 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 | 705 |
X, Y = list(map(int, input().split()))
is_exist = False
for gruidaes in range(X + 1):
turtles = X - gruidaes
if turtles * 4 + gruidaes * 2 == Y:
is_exist = True
break
if is_exist:
print('YES')
else:
print('NO') | X, Y = list(map(int, input().split()))
is_exist = False
for gruidaes in range(X + 1):
turtles = X - gruidaes
if turtles * 4 + gruidaes * 2 == Y:
is_exist = True
break
if is_exist:
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 | 69 |
package main
import "fmt"
func main() {
var x, y int
fmt.Scan(&x, &y)
for i := 1; i <= x; i++ {
if i*2+(x-i)*4 == y {
fmt.Println("Yes")
return
}
}
fmt.Println("No")
}
| package main
import "fmt"
func main() {
var x, y int
fmt.Scan(&x, &y)
for i := 0; i <= x; i++ {
if i*2+(x-i)*4 == y {
fmt.Println("Yes")
return
}
}
fmt.Println("No")
}
| [["-", 0, 7, 0, 430, 10, 431, 12, 432, 0, 433], ["+", 0, 7, 0, 430, 10, 431, 12, 432, 0, 433]] | 7 | 83 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.