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 |
|---|---|---|---|---|
X, Y = map(int, input().split())
if 4 * X <= Y:
print("No")
elif Y / 2 <= X:
print("No")
else:
y = abs(Y - 2 * X)
x = abs(4 * X - Y)
if y%2 == 0 and x%2 == 0:
print("Yes")
else:
print("No") | X, Y = map(int, input().split())
if 4 * X < Y:
print("No")
elif Y / 2 < X:
print("No")
else:
y = abs(Y - 2 * X)
x = abs(4 * X - Y)
if y%2 == 0 and x%2 == 0:
print("Yes")
else:
print("No") | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 667, 19], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 667, 18], ["-", 0, 656, 0, 57, 75, 665, 15, 666, 667, 19], ["+", 0, 656, 0, 57, 75, 665, 15, 666, 667, 18]] | 5 | 91 |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner s = new Scanner(System.in);
int hiki = s.nextInt();
int asi = s.nextInt();
int sum = hiki * 2;
if (sum > asi || asi % 2 == 0 || sum * 2 < asi) {
for (int i = 0; i... | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner s = new Scanner(System.in);
int hiki = s.nextInt();
int asi = s.nextInt();
int sum = hiki * 2;
if (sum > asi || asi % 2 == 0 || sum * 2 < asi) {
for (int i = 0; i... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 141 |
x,y = list(map(int, input().split()))
if y > 4*x:
print("No")
else:
if y % 2 == 0 and y > x*2:
print("Yes")
else:
print("No") | x,y = list(map(int, input().split()))
if y > 4*x:
print("No")
else:
if y % 2 == 0 and y >= x*2:
print("Yes")
else:
print("No") | [["-", 8, 196, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 20]] | 5 | 61 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (ll i = (a); i < (b); i++)
#define REP(i, n) rep(i, 0, n)
void solve() {
int x, y;
cin >> x >> y;
if (y % 2) {
cout << "No" << endl;
return;
}
cout << (x >= y / 4 && x <= y / 2 ? "Yes" : "No") << endl;
}
int... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, a, b) for (ll i = (a); i < (b); i++)
#define REP(i, n) rep(i, 0, n)
void solve() {
int x, y;
cin >> x >> y;
if (y % 2) {
cout << "No" << endl;
return;
}
cout << (x >= ((y + 2) / 4) && x <= y / 2 ? "Yes" : "No") << endl... | [["+", 0, 41, 15, 16, 31, 16, 12, 23, 0, 24], ["+", 31, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 31, 16, 12, 23, 0, 16, 31, 23, 0, 25], ["+", 0, 41, 15, 16, 31, 16, 12, 23, 0, 25]] | 1 | 117 |
x,y=map(int, input().split())
a=False
for i in range(1,x+1):
if i*2+(x-i)*4==y:
a=True
break
if a==True:
print("Yes")
else:
print("No") | x,y=map(int, input().split())
a=False
for i in range(0,x+1):
if i*2+(x-i)*4==y:
a=True
break
if a==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 | 69 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int t = y - 2 * x;
int c = 4 * x - y;
if (t > 0 && c > 0 && (t % 2 == 0) && (c % 2 == 0))
cout << "Yes";
else
cout << "No";
return 0;
}
| #include <iostream>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int t = y - 2 * x;
int c = 4 * x - y;
if (t >= 0 && c >= 0 && (t % 2 == 0) && (c % 2 == 0))
cout << "Yes";
else
cout << "No";
return 0;
}
| [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 20]] | 1 | 85 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
#define pb push_back
#define ld long double
#define f first
#define s second
#define in insert
#define sz(x) (int)x.size()
#define all(x) (x).begin(), (x).end()
#define speed ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
#define pb push_back
#define ld long double
#define f first
#define s second
#define in insert
#define sz(x) (int)x.size()
#define all(x) (x).begin(), (x).end()
#define speed ... | [["+", 51, 16, 31, 16, 12, 16, 31, 23, 0, 24], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 51, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 187 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i < x; i++) {
if ((i * 2) + (x - i) * 4 == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i < (x + 1); i++) {
if ((i * 2) + (x - i) * 4 == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| [["+", 8, 9, 0, 7, 15, 16, 12, 23, 0, 24], ["+", 0, 7, 15, 16, 12, 23, 0, 16, 17, 72], ["+", 0, 7, 15, 16, 12, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 23, 0, 25]] | 1 | 81 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if ((4 * x - y) % 2 == 0 && y < 4 * x && 4 * x < 2 * y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if ((4 * x - y) % 2 == 0 && y <= 4 * x && 4 * x <= 2 * y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 72 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double x = sc.nextInt();
double y = sc.nextInt();
sc.close();
if (y > x * 4 || y < x * 2) {
System.out.println("NO");
} else {
for (int i = 0; i <= 100... |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
double x = sc.nextInt();
double y = sc.nextInt();
sc.close();
if (y > x * 4 || y < x * 2) {
System.out.println("No");
} else {
for (int i = 0; i <= 100... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 145 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, M, k, a1, a2, b1, b2, c1, c2, d1, d2, e1, e2;
cin >> N;
cin >> M;
if (M % 2 == 1) {
cout << "No" << endl;
} else {
if (M - 2 * N < 0) {
cout << "No" << endl;
} else {
if (M - 4 * M > 0) {
cout << "No" << endl;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N, M, k, a1, a2, b1, b2, c1, c2, d1, d2, e1, e2;
cin >> N;
cin >> M;
if (M % 2 == 1) {
cout << "No" << endl;
} else {
if (M - 2 * N < 0) {
cout << "No" << endl;
} else {
if (M - 4 * N > 0) {
cout << "No" << endl;
... | [["-", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22]] | 1 | 122 |
#include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int X = 0;
int Y = 0;
cin >> X >> Y;
for (int i = 0; i < X; i++) {
for (int j = 0; j < X; j++) {
if ((2 * i + 4 * j) == Y) {
if ((i + j) == X) {
cout << "Yes" << endl;
... | #include <iostream>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int X = 0;
int Y = 0;
cin >> X >> Y;
for (int i = 0; i <= X; i++) {
for (int j = 0; j <= X; j++) {
if ((2 * i + 4 * j) == Y) {
if ((i + j) == X) {
cout << "Yes" << endl;
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 114 |
import math
X, Y = map(int,input().split())
ans = "No"
for i in range(X):
if(2*X+2*i==Y):
ans = "Yes"
print(ans) | import math
X, Y = map(int,input().split())
ans = "No"
for i in range(X+1):
if(2*X+2*i==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]] | 5 | 53 |
X,Y=input().split();
X=int(X);
Y=int(Y);
for k in range(X):
if Y==4*k+2*(X-k):
print("Yes");
exit();
print("No"); | X,Y=input().split();
X=int(X);
Y=int(Y);
for k in range(X+1):
if Y==4*k+2*(X-k):
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 | 67 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y, a;
cin >> X >> Y;
a = Y - 2 * X;
if (a % 2 == 0) {
if (X >= a / 2)
cout << "Yes" << endl;
else
cout << "No" << endl;
} else
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y, a;
cin >> X >> Y;
a = Y - 2 * X;
if (a % 2 == 0) {
if (X >= a / 2 && a >= 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
} else
cout << "No" << endl;
} | [["+", 64, 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], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 77 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
if (4 * X - Y < 0) {
cout << "No" << endl;
}
else if (4 * X - Y >= 0 && (4 * X - Y) % 2 == 0 && (4 * X - Y) % 2 <= X) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
if (4 * X - Y < 0) {
cout << "No" << endl;
}
else if (4 * X - Y >= 0 && (4 * X - Y) % 2 == 0 && (4 * X - Y) / 2 <= X) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
} | [["-", 15, 339, 51, 16, 12, 16, 31, 16, 17, 109], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 85]] | 1 | 99 |
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define ll long long
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define pii pair<ll, ll>
#define vi vector<ll>
#define vii vector<pi... | #include <bits/stdc++.h>
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define ll long long
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define pii pair<ll, ll>
#define vi vector<ll>
#define vii vector<pi... | [["-", 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 | 197 |
import sys
def I(): return int(sys.stdin.readline().rstrip())
def LI():return list(map(int,sys.stdin.readline().rstrip().split()))
def LS():return list(sys.stdin.readline().rstrip().split())
def main():
X,Y = LI()[:]
#print(X,Y)
if ((Y-2*X) % 2) == 0:
a = (Y-2*X) / 2
if a<=X:
print('Yes')
e... | import sys
def I(): return int(sys.stdin.readline().rstrip())
def LI():return list(map(int,sys.stdin.readline().rstrip().split()))
def LS():return list(sys.stdin.readline().rstrip().split())
def main():
X,Y = LI()[:]
#print(X,Y)
if ((Y-2*X) % 2) == 0:
a = (Y-2*X) / 2
if a<=X and a>=0:
print('Yes'... | [["+", 0, 57, 64, 196, 0, 57, 15, 679, 17, 355], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 667, 20], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 147 |
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <vector>
using namespace std;
int main(int argc, char const *argv[]) {
int a, b;
cin >> a >> b;
bool flag = 0;
int x = 2 * a;
int y = 4 * a;
if (b >= x && b <= y && (b % 2 == 0)) {
cout << "Yes" << endl... | #include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <vector>
using namespace std;
int main(int argc, char const *argv[]) {
int a, b;
cin >> a >> b;
bool flag = 0;
int x = 2 * a;
int y = 4 * a;
if (b >= x && b <= y && (b % 2 == 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 | 131 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ok() puts(ok ? "Yes" : "No");
using namespace std;
using ll = long long;
using vi = vector<int>;
using ii = pair<int, int>;
using vvi = vector<vi>;
using vii = vector<ii>;
using gt = greater<int>;
using minq = priority_queue<int, vector<in... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ok() puts(ok ? "Yes" : "No");
using namespace std;
using ll = long long;
using vi = vector<int>;
using ii = pair<int, int>;
using vvi = vector<vi>;
using vii = vector<ii>;
using gt = greater<int>;
using minq = priority_queue<int, vector<in... | [["+", 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, 47], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 48], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 13]] | 1 | 161 |
x, y = map(int, input().split())
flag = 0
for i in range(x):
if (i * 2 + (x - i) * 4) == y:
print("YES")
flag = 1
break
if flag == 0:
print("NO") | x, y = map(int, input().split())
flag = 0
for i in range(x+1):
if (i * 2 + (x - i) * 4) == y:
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], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 65 |
#include <bits/stdc++.h>
using namespace std;
int main() {
double x, y;
double a, b;
cin >> x >> y;
// 2a+2b=2x
// 2a+4b=y
b = (y - 2 * x) / 2;
a = (4 * x - y) / 2;
if (a - int(a) > 0 || a < 0 || b - int(b) > 0 || b < 0) {
cout << "No\n";
} else {
cout << "yes\n";
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
double x, y;
double a, b;
cin >> x >> y;
// 2a+2b=2x
// 2a+4b=y
b = (y - 2 * x) / 2;
a = (4 * x - y) / 2;
if (a - int(a) > 0 || a < 0 || b - int(b) > 0 || b < 0) {
cout << "No\n";
} else {
cout << "Yes\n";
}
}
| [["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 101 |
#include <iostream>
#include <string>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
string A = "Yes";
if (Y % 2 != 0) {
A = "No";
}
if (Y > X * 4) {
A = "No";
}
if (X >= 51) {
A = "No";
}
if (X >= Y) {
A = "No";
}
cout << A << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
string A = "Yes";
if (Y % 2 != 0) {
A = "No";
}
if (Y > X * 4) {
A = "No";
}
if (X >= 51) {
A = "No";
}
if (X * 2 > Y) {
A = "No";
}
cout << A << endl;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 48], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 98 |
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
const double pi = acos(-1.0);
int max(int a, int b) {
if (a > b) {
return a;
}
return b;
}
int min(int a, int b) {
if (a < b) {
return a;
}
return b;
}
int main(void) {
int x, y, z;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
... | #include <bits/stdc++.h>
#include <math.h>
using namespace std;
const double pi = acos(-1.0);
int max(int a, int b) {
if (a > b) {
return a;
}
return b;
}
int min(int a, int b) {
if (a < b) {
return a;
}
return b;
}
int main(void) {
int x, y, z;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
... | [["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33]] | 1 | 149 |
#include <stdio.h>
#include <string.h>
int main(void) {
int x, y, a = 0;
scanf("%d%d", &x, &y);
for (int i = 1; i <= x; i++) {
for (int j = 1; j <= x; j++) {
if (2 * i + 4 * j == y && i + j == x) {
a = 1;
}
}
}
if (a == 1) {
printf("%s", "Yes");
} else {
printf("%s", "... | #include <stdio.h>
#include <string.h>
int main(void) {
int x, y, a = 0;
scanf("%d%d", &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) {
a = 1;
}
}
}
if (a == 1) {
printf("%s", "Yes");
} else {
printf("%s", "... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 0 | 125 |
#include <bits/stdc++.h>
using namespace std;
#define int long long int
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout << setprecision(9) << fixed;
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
int a2 = y / 2 - x;
int a1 = x - a2;
if (a1 >= 0 && a2 >= 0)
cout << "YE... | #include <bits/stdc++.h>
using namespace std;
#define int long long int
int32_t main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout << setprecision(9) << fixed;
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
int a2 = y / 2 - x;
int a1 = x - a2;
if (a1 >= 0 && a2 >= 0)
cout << "Ye... | [["-", 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 | 114 |
X,Y=map(int,input().split())
if Y>4*X:
print('No')
exit()
else:
pass
if (Y-2*X)%2==0:
print('Yes')
else:
print('No') | X,Y=map(int,input().split())
if Y>4*X or Y<2*X:
print('No')
exit()
else:
pass
if (Y-2*X)%2==0:
print('Yes')
else:
print('No') | [["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 31, 612], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 48], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22]] | 5 | 62 |
x, y = map(int, open(0).read().split())
c = ((x * 2) <= y <= (x * 4)) and y % 2 == 0
if c:
print("YES")
else:
print("NO")
| x, y = map(int, open(0).read().split())
c = ((x * 2) <= y <= (x * 4)) and y % 2 == 0
if c:
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 | 61 |
// Problem : B - Crane and Turtle
// Contest : AtCoder - AtCoder Beginner Contest 170
// URL : https://atcoder.jp/contests/abc170/tasks/abc170_b
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#include <iostream>
#include <stdio.h>
using namespace std;
... |
// Problem : B - Crane and Turtle
// Contest : AtCoder - AtCoder Beginner Contest 170
// URL : https://atcoder.jp/contests/abc170/tasks/abc170_b
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#include <iostream>
#include <stdio.h>
using namespace std;
... | [["-", 51, 16, 12, 16, 31, 16, 31, 16, 31, 13], ["-", 51, 16, 12, 16, 31, 16, 31, 16, 17, 48], ["+", 51, 16, 12, 16, 31, 16, 12, 16, 31, 13], ["+", 51, 16, 12, 16, 31, 16, 12, 16, 17, 48]] | 1 | 105 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 1; i <= y / 2; i++) {
if (i * 2 + (x - i) * 4 == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= y / 2; i++) {
if (i * 2 + (x - i) * 4 == y) {
cout << "Yes" << endl;
return 0;
}
}
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 | 81 |
#include <algorithm>
#include <iostream>
#include <vector>
using std::make_pair;
using std::pair;
using std::max;
using std::min;
using std::sort;
using std::cin;
using std::cout;
using std::vector;
int main() {
int x, y;
cin >> x >> y;
bool f = false;
for (int turtle = 0; turtle <= x; turtle++) {
if ... | #include <algorithm>
#include <iostream>
#include <vector>
using std::make_pair;
using std::pair;
using std::max;
using std::min;
using std::sort;
using std::cin;
using std::cout;
using std::vector;
int main() {
int x, y;
cin >> x >> y;
bool f = false;
for (int turtle = 0; turtle <= x; turtle++) {
if ... | [["+", 8, 9, 0, 1, 0, 16, 12, 23, 0, 24], ["+", 8, 9, 0, 1, 0, 16, 12, 23, 0, 25]] | 1 | 121 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
int X, Y;
cin >> X >> Y;
int temp;
for (int i = 0; i < 101; i++) {
temp = 2 * i + 4 * (X - i);
if (temp == Y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
int X, Y;
cin >> X >> Y;
int temp;
for (int i = 0; i <= X; i++) {
temp = 2 * i + 4 * (X - i);
if (temp == Y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| [["-", 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 | 89 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
long long ans = 0;
if ((4 * x - y) % 2 == 0 && (4 * x - y >= 0) && (y - 2 * x) >= 0) {
ans = 1;
}
if (ans == 1) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
long long x, y;
cin >> x >> y;
long long ans = 0;
if ((4 * x - y) % 2 == 0 && (4 * x - y >= 0) && (y - 2 * x) >= 0) {
ans = 1;
}
if (ans == 1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 100 |
x, y = map(int, input().split())
sub = y - x * 2
if sub % 2 == 0 and 0 <= sub <= x:
print('Yes')
else:
print('No') | x, y = map(int, input().split())
sub = y - x * 2
if sub % 2 == 0 and 0 <= sub / 2 <= x:
print('Yes')
else:
print('No') | [["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 85], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 612]] | 5 | 50 |
def main():
X, Y = map(int, input().split())
#total X
#feet Y
for x in range(X+1):
y = X - x
feet = 4 * x + 2 * y
if feet == Y:
print("YES")
return
print("NO")
if __name__ == '__main__':
main()
|
def main():
X, Y = map(int, input().split())
#total X
#feet Y
for x in range(X+1):
y = X - x
feet = 4 * x + 2 * y
if feet == Y:
print("Yes")
return
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 | 75 |
X, Y = map(int, input().split())
def check():
for i in range(1,101):
if i * 2 + (X - i) * 4 == Y:
return 'Yes'
return 'No'
print(check())
| X, Y = map(int, input().split())
def check():
for i in range(0, X + 1):
if i * 2 + (X - i) * 4 == Y:
return 'Yes'
return 'No'
print(check())
| [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 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 | 60 |
# 別変数の整数複数個
X, Y = [int(x) for x in input().strip().split(" ")]
if Y % 2 == 1:
print("No")
else:
turtles = (Y - 2 * X) // 2
cranes = (4 * X - Y) // 2
print(cranes, turtles)
if (0 <= turtles <= X) and (0 <= cranes <= X):
print("Yes")
else:
print("No") | # 別変数の整数複数個
X, Y = [int(x) for x in input().strip().split(" ")]
if Y % 2 == 1:
print("No")
else:
turtles = (Y - 2 * X) // 2
cranes = (4 * X - Y) // 2
if (0 <= turtles <= X) and (0 <= cranes <= X):
print("Yes")
else:
print("No") | [["-", 75, 76, 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, 21], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 102 |
X, Y = map(int, input().split())
crain = (4 * X - Y) / 2
if crain.is_integer() and 0 <= crain:
print("Yes")
else:
print("No") | X, Y = map(int, input().split())
crain = (4 * X - Y) / 2
if crain.is_integer() and 0 <= crain <= X:
print("Yes")
else:
print("No") | [["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22]] | 5 | 52 |
x, y = map(int, input().split(" "))
for i in range(1, x+1):
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(0, 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, 612]] | 5 | 64 |
#include <iostream>
using namespace std;
int main() {
int a, b, x, y;
cin >> x >> y;
if (y % 2 != 0)
cout << "No";
else {
b = ((y - 2 * x) / 2);
a = x - b;
if (a < 0)
cout << "No";
else {
if (2 * a + 4 * b == y)
cout << "Yes";
else
cout << "No";
}
}
}
| #include <iostream>
using namespace std;
int main() {
int a, b, x, y;
cin >> x >> y;
if (y % 2 != 0)
cout << "No";
else {
b = ((y - 2 * x) / 2);
a = x - b;
if (a < 0 || b < 0)
cout << "No";
else {
if (2 * a + 4 * b == y)
cout << "Yes";
else
cout << "No";
... | [["+", 0, 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 | 104 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int all = sc.nextInt();
int foot = sc.nextInt();
int tsuru = all * 2;
if (tsuru == foot) {
System.out.print("Yes");
return;
} else if (tsuru > foot) {
Syste... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int all = sc.nextInt();
int foot = sc.nextInt();
int tsuru = all * 2;
if (tsuru == foot) {
System.out.print("Yes");
return;
} else if (tsuru > foot) {
Syste... | [["+", 64, 196, 0, 57, 64, 196, 0, 37, 0, 38], ["+", 64, 196, 0, 57, 64, 196, 0, 37, 0, 35]] | 3 | 157 |
line = input()
line = line.rstrip().split(' ')
total = int(line[0])
total_leg = int(line[1])
kame = (total_leg - total * 2) / 2
tsuru = total - kame
print(tsuru, kame)
if total_leg % 2 == 1:
print('No')
elif (0 <= kame and kame <= total) and (0 <= tsuru and tsuru <= total):
print('Yes')
else:
print('No'... | line = input()
line = line.rstrip().split(' ')
total = int(line[0])
total_leg = int(line[1])
kame = (total_leg - total * 2) / 2
tsuru = total - kame
if total_leg % 2 == 1:
print('No')
elif (0 <= kame and kame <= total) and (0 <= tsuru and tsuru <= total):
print('Yes')
else:
print('No')
| [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 107 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
string ans = "NO";
int kame;
if (Y % 2 == 0) {
kame = Y / 2 - X;
if (0 <= kame && kame <= 100) {
if (0 <= X - kame && X - kame <= 100) {
ans = "YES";
}
}
}
cout << ans << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
string ans = "No";
int kame;
if (Y % 2 == 0) {
kame = Y / 2 - X;
if (0 <= kame && kame <= 100) {
if (0 <= X - kame && X - kame <= 100) {
ans = "Yes";
}
}
}
cout << ans << endl;
} | [["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["-", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6]] | 1 | 91 |
X, Y = map(int, input().split())
max = X * 4
if Y > max:
print('No')
elif Y % 2 != 0:
print('No')
else:
for i in range(2*X, 4*X+1, 2):
print(i)
if i == Y:
print('Yes')
break
else:
print('No')
| X, Y = map(int, input().split())
max = X * 4
if Y > max:
print('No')
elif Y % 2 != 0:
print('No')
else:
for i in range(2*X, 4*X+1, 2):
if i == Y:
print('Yes')
break
else:
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 | 89 |
animal,leg = [int(x) for x in input().split()]
# crane + turtle = animal
# 2*crane + 4*turtle = leg
import numpy as np
A = np.array([
[1,1],
[2,4]
])
B = np.array([
[animal],
[leg]
])
A_inv = np.linalg.inv(A)
ans = A_inv.dot(B)
print(ans)
result = 0
for a in ans:
for b in a:
if b<0 or not b.... | animal,leg = [int(x) for x in input().split()]
# crane + turtle = animal
# 2*crane + 4*turtle = leg
import numpy as np
A = np.array([
[1,1],
[2,4]
])
B = np.array([
[animal],
[leg]
])
A_inv = np.linalg.inv(A)
ans = A_inv.dot(B)
result = 0
for a in ans:
for b in a:
if b<0 or not b.is_integer(... | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 131 |
#include <bits/stdc++.h>
#define fastIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
using namespace std;
int main() {
... | #include <bits/stdc++.h>
#define fastIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
using namespace std;
int main() {
... | [["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 93 |
function Main(input) {
var X = input.split(" ")[0];
var Y = input.split(" ")[1];
var tmp = 2 * X - Y / 2;
if (Y % 2 === 0 && tmp >= 0) {
console.log('Yes');
} else {
console.log("No");
}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8")); | function Main(input) {
var X = input.split(" ")[0];
var Y = input.split(" ")[1];
var tmp = 2 * X - Y / 2;
if (Y % 2 === 0 && tmp >= 0 && X >= tmp) {
console.log('Yes');
} else {
console.log("No");
}
}
Main(require("fs").readFileSync("/dev/stdin", "utf8")); | [["+", 8, 556, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 22]] | 2 | 104 |
from numpy.linalg import solve
x, y = map(int, input().split())
left = [[1, 1],
[2, 4]]
right = [x, y]
a = solve(left, right)
left = [[1, 1],
[4, 2]]
right = [x, y]
b = solve(left, right)
if (a[0] > 0 and a[1] >0) or (b[0] > 0 and b[1] >0):
if (a[0].is_integer() is True and a[1].is_integer() is... | from numpy.linalg import solve
x, y = map(int, input().split())
left = [[1, 1],
[2, 4]]
right = [x, y]
a = solve(left, right)
left = [[1, 1],
[4, 2]]
right = [x, y]
b = solve(left, right)
if (a[0] >= 0 and a[1] >= 0) or (b[0] >= 0 and b[1] >= 0):
if (a[0].is_integer() is True and a[1].is_intege... | [["-", 15, 679, 31, 23, 0, 679, 31, 666, 667, 47], ["+", 15, 679, 31, 23, 0, 679, 31, 666, 667, 20], ["-", 15, 679, 31, 23, 0, 679, 12, 666, 667, 47], ["+", 15, 679, 31, 23, 0, 679, 12, 666, 667, 20], ["-", 15, 679, 12, 23, 0, 679, 31, 666, 667, 47], ["+", 15, 679, 12, 23, 0, 679, 31, 666, 667, 20], ["-", 15, 679, 12, ... | 5 | 186 |
import static java.lang.Math.*;
import java.io.*;
import java.util.*;
public class Main {
static final FastReader sc = new FastReader(System.in);
static final PrintWriter pw = new PrintWriter(System.out);
static int visited[];
static ArrayList<ArrayList<Integer>> adjlist;
static class edge implements Compa... | import static java.lang.Math.*;
import java.io.*;
import java.util.*;
public class Main {
static final FastReader sc = new FastReader(System.in);
static final PrintWriter pw = new PrintWriter(System.out);
static int visited[];
static ArrayList<ArrayList<Integer>> adjlist;
static class edge implements Compa... | [["+", 0, 16, 31, 16, 12, 16, 12, 492, 141, 22], ["+", 31, 16, 12, 16, 12, 492, 3, 4, 0, 24], ["+", 12, 492, 3, 4, 0, 16, 31, 74, 0, 24], ["+", 3, 4, 0, 16, 31, 74, 39, 511, 0, 512], ["+", 12, 492, 3, 4, 0, 16, 31, 74, 0, 25], ["+", 31, 16, 12, 16, 12, 492, 3, 4, 0, 25]] | 3 | 2,544 |
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int sum = 4 * x;
if (sum == y) {
cout << "Yes";
return 0;
}
if (y > sum) {
cout << "No";
return 0;
}
for (int i = 1; i <= x; i++) {
sum -= 2;
if (sum == y) {
cout << "Yes";
break;
}
... | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int sum = 4 * x;
if (sum == y) {
cout << "Yes";
return 0;
}
if (y > sum or x * 2 > y) {
cout << "No";
return 0;
}
for (int i = 1; i <= x; i++) {
sum -= 2;
if (sum == y) {
cout << "Yes";
... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 354], ["+", 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 | 119 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int x = Integer.parseInt(scan.next());
int y = Integer.parseInt(scan.next());
boolean flag = false;
for (int i = 0; i < x; i++) {
if ((2 * i + 4 * (x - i)) == y) {
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int x = Integer.parseInt(scan.next());
int y = Integer.parseInt(scan.next());
boolean flag = false;
for (int i = 0; i <= x; i++) {
if ((2 * i + 4 * (x - i)) == y) {
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 141 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x, cin >> y;
for (int i = 1; i < x + 1; i++) {
if ((2 * i) + (4 * (x - i)) == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x, cin >> y;
for (int i = 0; i < x + 1; 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 | 84 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll a, b;
cin >> a >> b;
if (b & 1)
cout << "No"
<< "\n";
else if (b > a * 4 || b < a * 2)
cout << "No"
<< "\n";
if (a * 4 == b || a * 2 == b)
cout << "Yes"
<< "\n";
else {
int flag = 0... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ll a, b;
cin >> a >> b;
if (b & 1)
cout << "No"
<< "\n";
else if (b > a * 4 || b < a * 2)
cout << "No"
<< "\n";
else if (a * 4 == b || a * 2 == b)
cout << "Yes"
<< "\n";
else {
int fla... | [["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]] | 1 | 171 |
xi = gets.chomp.split(" ").map!{|item| item.to_i}
for f in 1..xi[0]
if xi[1] == (f*2) + (xi[0]-f)*4
puts "Yes"
exit
end
end
puts "No" | xi = gets.chomp.split(" ").map!{|item| item.to_i}
for f in 0..xi[0]
if xi[1] == (f*2) + (xi[0]-f)*4
puts "Yes"
exit
end
end
puts "No" | [["-", 0, 493, 0, 88, 51, 267, 0, 475, 756, 612], ["+", 0, 493, 0, 88, 51, 267, 0, 475, 756, 612]] | 4 | 64 |
x, y = map(int, input().split())
for i in range(1, x+1):
f = 2 * i + 4 * (x - i)
if f == y:
print("Yes")
exit()
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")
exit()
print("No") | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 61 |
X,Y=map(int,input().split())
ans="NO"
if X<=50:
for i in range(X+1):
if i*2+(X-i)*4==Y:
ans="Yes"
print(ans) | X,Y=map(int,input().split())
ans="No"
if X<=50:
for i in range(X+1):
if i*2+(X-i)*4==Y:
ans="Yes"
print(ans)
| [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 60 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using str = string;
using P = pair<int, int>;
using Pll = pair<ll, ll>;
const double PI = 3.141592653589793238;
const ll mod = 1000000007;
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define REP(i, m, n) for (int i = m; i < (int)n; i++)
#def... | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using str = string;
using P = pair<int, int>;
using Pll = pair<ll, ll>;
const double PI = 3.141592653589793238;
const ll mod = 1000000007;
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define REP(i, m, n) for (int i = m; i < (int)n; i++)
#def... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 0, 7, 10, 43, 49, 50, 51, 16, 31, 22], ["+", 0, 7, 10, 43, 49, 50, 51, 16, 17, 33], ["+", 0, 7, 10, 43, 49, 50, 51, 16, 12, 22], ["+", 8, 9, 0, 7, 15, 16, 31, 16, 17, 72], ["+", 8, 9, 0, 7, 15, 16, 31, 16, 12, 22]] | 1 | 403 |
// Author := Abhishek Giri
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#define mod 1000000007
#define V(type) vecapital_in_tor<(type)>
#define all(c) ((c).begin(), (c).end())
#define in(var) cin >> (var)
#define out(var) cout << (var)
#define on(var) cou... | // Author := Abhishek Giri
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#define mod 1000000007
#define V(type) vecapital_in_tor<(type)>
#define all(c) ((c).begin(), (c).end())
#define in(var) cin >> (var)
#define out(var) cout << (var)
#define on(var) cou... | [["+", 51, 16, 31, 16, 12, 16, 12, 16, 17, 48], ["+", 51, 16, 31, 16, 12, 16, 12, 16, 12, 22]] | 1 | 603 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
if (Y < X * 4 && Y > X * 2 && Y % 2 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
if (Y <= X * 4 && Y >= X * 2 && Y % 2 == 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 19], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20]] | 1 | 64 |
import math
def ip():return int(input())
def imp():return map(int,input().split())
def impstr():return map(str,input().split())
def limp():return list(map(int,input().split()))
def limpstr():return list(map(str,input().split()))
a,b=imp()
for i in range(0,a+1):
if i*2+(a-i)*3==b:
print("Yes")
exit(... | import math
def ip():return int(input())
def imp():return map(int,input().split())
def impstr():return map(str,input().split())
def limp():return list(map(int,input().split()))
def limpstr():return list(map(str,input().split()))
a,b=imp()
for i in range(0,a+1):
if i*2+(a-i)*4==b:
print("Yes")
exit(... | [["-", 0, 57, 15, 666, 0, 657, 12, 657, 12, 612], ["+", 0, 57, 15, 666, 0, 657, 12, 657, 12, 612]] | 5 | 141 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
int ans1 = n * 2, ans2 = n * 4;
if (m >= ans1 && m <= ans2 && m % 2 == 0)
cout << "YES";
else
cout << "NO";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int n, m;
cin >> n >> m;
int ans1 = n * 2, ans2 = n * 4;
if (m >= ans1 && m <= ans2 && m % 2 == 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], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 68 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <vector>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool kumiawase = true;
for (int i = 0; i < X; i++) {
if (Y == 2 * (X - i) + 4 * i) {
cout << "Yes" << e... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <vector>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool kumiawase = true;
for (int i = 0; i <= X; i++) {
if (Y == 2 * (X - i) + 4 * i) {
cout << "Yes" << ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 103 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef vector<long long> vll;
typedef vector<vector<long long>> vvll;
typedef pair<int, int> pii;
typedef pair<long long, int> pli;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef vector<long long> vll;
typedef vector<vector<long long>> vvll;
typedef pair<int, int> pii;
typedef pair<long long, int> pli;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 209 |
x,y=list(map(int,input().split()))
for i in range(1,x+1):
if i*2+(x-i)*4 == y:
print("Yes")
exit()
print("No") | x,y=list(map(int,input().split()))
for i in range(x+1):
if i*2+(x-i)*4 == 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]] | 5 | 61 |
# coding: utf-8
############################
x,y = map(int,input().split())
for i in range(x):
kame = x-i
turu = i
if kame*2 + turu*4 ==y:
print("Yes")
exit()
print("No") | # coding: utf-8
############################
x,y = map(int,input().split())
for i in range(x+1):
kame = x-i
turu = i
if kame*2 + turu*4 ==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 | 60 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
typedef long long ll;
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int ch = y - 2 * x;
if (ch < 0) {
cout << "No" << endl;
} el... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
typedef long long ll;
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int ch = y - 2 * x;
if (ch < 0) {
cout << "No" << endl;
} el... | [["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 85], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 13]] | 1 | 122 |
/*input
1 2
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define rep(i, j, n) for (i = j; i < n; i++)
#define repi(i, j, n) for (i = j; i > n; i--)
#define inf 100001
#define M 1000000007
#define pie 3.141592653589793238
#define ll long long
#define ld long... | /*input
1 2
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define rep(i, j, n) for (i = j; i < n; i++)
#define repi(i, j, n) for (i = j; i > n; i--)
#define inf 100001
#define M 1000000007
#define pie 3.141592653589793238
#define ll long long
#define ld long... | [["+", 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, 109], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 307 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
for (int i = 0; i < y / 4 + 1; i++) {
if (i * 4 + (x - i) * 2 == y) {
cout << "YES";
return 0;
}
}
cout << "NO";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
for (int i = 0; i < y / 4 + 1; i++) {
if (i * 4 + (x - i) * 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 | 93 |
X,Y=map(int,input().split())
eva=False
if Y%2==0:
if 4*X>Y:
if (2*X-Y/2)<=X:
eva=True
if eva:
print("Yes")
else:
print("No") | X,Y=map(int,input().split())
eva=False
if Y%2==0:
if 4*X>=Y:
if (2*X-Y/2)<=X:
eva=True
if eva:
print("Yes")
else:
print("No")
| [["-", 0, 57, 64, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 667, 20]] | 5 | 66 |
#include <bits/stdc++.h>
using namespace std;
#define CPP_CAT(x, y) CPP_CAT_I(x, y)
#define CPP_CAT_I(x, y) x##y
using i8 = int8_t;
using u8 = uint8_t;
using i16 = int16_t;
using u16 = uint16_t;
using i32 = int32_t;
using u32 = uint32_t;
using i64 = int64_t;
using u64 = uint64_t;
using f32 = float;
using f64 = double;... | #include <bits/stdc++.h>
using namespace std;
#define CPP_CAT(x, y) CPP_CAT_I(x, y)
#define CPP_CAT_I(x, y) x##y
using i8 = int8_t;
using u8 = uint8_t;
using i16 = int16_t;
using u16 = uint16_t;
using i32 = int32_t;
using u32 = uint32_t;
using i64 = int64_t;
using u64 = uint64_t;
using f32 = float;
using f64 = double;... | [["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6]] | 1 | 462 |
#include <iostream>
int main() {
int X = 0, Y = 0;
std::cin >> X >> Y;
if (Y <= X * 4 && Y >= X * 2 && Y % 2 == 0)
std::cout << "YES";
else
std::cout << "NO";
return 0;
} | #include <iostream>
int main() {
int X = 0, Y = 0;
std::cin >> X >> Y;
if (Y <= X * 4 && Y >= X * 2 && Y % 2 == 0)
std::cout << "Yes";
else
std::cout << "No";
return 0;
} | [["-", 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 | 65 |
#include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int x, y, flag = 0, cnt = 0;
cin >> x >> y;
for (int i = 1; i <= x; i++) {
cnt = i * 2 + (x - i) * 4;
if (cnt == y) {
flag = 1;
}
cnt = 0;
}
if (flag == 1) {
cout << "Yes" << endl;
} else {
... | #include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int x, y, flag = 0, cnt = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
cnt = i * 2 + (x - i) * 4;
if (cnt == y) {
flag = 1;
}
cnt = 0;
}
if (flag == 1) {
cout << "Yes" << endl;
} else {
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 108 |
package main
import "fmt"
func main() {
var x,y int
fmt.Scan(&x,&y)
for i:= 0; i < x; i++ {
if y == (2 * (x-i) + 4*i) {
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 y == (2 * (x-i) + 4*i) {
fmt.Println("Yes")
return
}
}
fmt.Println("No")
}
| [["-", 8, 196, 0, 7, 0, 430, 15, 16, 17, 18], ["+", 8, 196, 0, 7, 0, 430, 15, 16, 17, 19]] | 7 | 85 |
#include "bits/stdc++.h"
#define rep(i, j) for (int i = 0; i < j; i++)
using namespace std;
using ll = long long;
using ull = unsigned long long;
int gcd(int x, int y);
const int INF = 1001001001;
/*struct mint {
ll x; // typedef long long ll;
mint(ll x = 0) :x((x% mod + mod) % mod) {}
mint operator-() c... | #include "bits/stdc++.h"
#define rep(i, j) for (int i = 0; i < j; i++)
using namespace std;
using ll = long long;
using ull = unsigned long long;
int gcd(int x, int y);
const int INF = 1001001001;
/*struct mint {
ll x; // typedef long long ll;
mint(ll x = 0) :x((x% mod + mod) % mod) {}
mint operator-() c... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 235 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool ans = false;
for (int i = 1; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
ans = true;
break;
} else {
continue;
}
}
if (ans) {
cout << "Yes" << endl;
} else {
cout << "No" <<... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
bool ans = false;
for (int i = 0; i <= x; i++) {
if (2 * (i) + 4 * (x - i) == y) {
ans = true;
break;
} else {
continue;
}
}
if (ans) {
cout << "Yes" << endl;
} else {
cout << "No" ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 51, 16, 31, 16, 31, 16, 12, 74, 0, 24], ["+", 51, 16, 31, 16, 31, 16, 12, 74, 0, 25]] | 1 | 98 |
x, y = map(int, input().split())
if y%2 == 1:
print("NO")
else:
if y >= 2*x and y <= 4*x:
print("Yes")
else:
print("No") | x, y = map(int, input().split())
if y%2 == 1:
print("No")
else:
if y >= 2*x and y <= 4*x:
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 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
string result = "No";
cin >> X >> Y;
for (int i = 1; i <= X; i++) {
if (2 * i + 4 * (X - i) == Y) {
result = "Yes";
break;
}
}
cout << result << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
string result = "No";
cin >> X >> Y;
for (int i = 0; i <= X; i++) {
if (2 * i + 4 * (X - i) == Y) {
result = "Yes";
break;
}
}
cout << result << endl;
return 0;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 81 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int TESTS = 1;
// cin>>TESTS;
while (TESTS--) {
int a, b;
cin >> a >> b;
if (b >= 2 * a && b <= 4 * a && b % 2 != 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int TESTS = 1;
// cin>>TESTS;
while (TESTS--) {
int a, b;
cin >> a >> b;
if (b >= 2 * a && b <= 4 * a && b % 2 == 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
} | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60]] | 1 | 73 |
x,y=map(int,input().split())
result='No'
for i in range(1,100):
for d in range(1,100):
if i+d==x:
if i*2+d*4==y or i*4+d*2==y:
result='Yes'
break
print(result) | x,y=map(int,input().split())
result='No'
for i in range(0,101):
for d in range(0,101):
if i+d==x:
if i*2+d*4==y or i*4+d*2==y:
result='Yes'
break
print(result) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 79 |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
if (x * 2 > y || x * 4 < y || y % 2) {
cout << "No" << endl;
}
cout << "Yes" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
if (x * 2 > y || x * 4 < y || y % 2) {
cout << "No" << endl;
} else
cout << "Yes" << endl;
return 0;
}
| [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 76 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int a, b;
bool c = true;
for (int i = 0; i < X; i++) {
a = i, b = X - i;
if (4 * a + 2 * b == Y) {
cout << "Yes" << endl;
c = false;
break;
}
}
if (c) {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int a, b;
bool c = true;
for (int i = 0; i < X + 1; i++) {
a = i, b = X - i;
if (4 * a + 2 * b == Y) {
cout << "Yes" << endl;
c = false;
break;
}
}
if (c) {
cout << "No" << endl;
}
} | [["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 101 |
X, Y = map(int, input().split())
for i in range(X):
i += 1
if 2 * i + 4 * (X - i) == Y:
print('Yes')
exit()
print('No') | X, Y = map(int, input().split())
for i in range(X + 1):
# i += 1
if 2 * i + 4 * (X - i) == 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], ["-", 0, 7, 8, 196, 0, 1, 0, 677, 31, 22], ["-", 0, 7, 8, 196, 0, 1, 0, 677, 17, 107], ["-", 0, 7, 8, 196, 0, 1, 0, 677, 12, 612]] | 5 | 57 |
#include <iomanip>
#include <iostream>
/*cout <<setprecision(11)<<ret<<endl;で、数字部分を計11桁表示*/
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
// Shift+Command+bでデバッグ
//その... | #include <iomanip>
#include <iostream>
/*cout <<setprecision(11)<<ret<<endl;で、数字部分を計11桁表示*/
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <queue>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
// Shift+Command+bでデバッグ
//その... | [["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["-", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 11, 12, 5, 0, 6]] | 1 | 127 |
#include <cstdio>
int main() {
int X, Y;
scanf("%d %d", &X, &Y);
int a, b;
int ans;
if ((Y - 2 * X) % 2 != 0)
ans = 0;
else {
b = Y - 2 * X;
if (b < 0 || b > X)
ans = 0;
else
ans = 1;
}
if (ans == 0)
printf("No");
else
printf("Yes");
return 0;
} | #include <cstdio>
int main() {
int X, Y;
scanf("%d %d", &X, &Y);
int a, b;
int ans;
if ((Y - 2 * X) % 2 != 0)
ans = 0;
else {
b = (Y - 2 * X) / 2;
if (b < 0 || b > X)
ans = 0;
else
ans = 1;
}
if (ans == 0)
printf("No");
else
printf("Yes");
return 0;
} | [["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 31, 23, 0, 25], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 17, 85], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 12, 13]] | 1 | 106 |
#include <bits/stdc++.h>
//短縮
#define rep(i, n) for (int i = 0; i < (n); ++i)
// sort()用
#define all(v) v.begin(), v.end()
#define PB(N) push_back(N)
using namespace std;
using Graph = vector<vector<int>>;
int main() {
int X, Y;
cin >> X >> Y;
bool flag = 0;
for (int i = 1; i <= X; i++) {
int j = X - i... | #include <bits/stdc++.h>
//短縮
#define rep(i, n) for (int i = 0; i < (n); ++i)
// sort()用
#define all(v) v.begin(), v.end()
#define PB(N) push_back(N)
using namespace std;
using Graph = vector<vector<int>>;
int main() {
int X, Y;
cin >> X >> Y;
bool flag = 0;
for (int i = 0; i <= X; i++) {
int j = X - i... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 120 |
#include <bits/stdc++.h>
using namespace std;
// ofstream cout("output.out");
#define fast() \
{ \
ios_base::sync_with_stdio(0); ... | #include <bits/stdc++.h>
using namespace std;
// ofstream cout("output.out");
#define fast() \
{ \
ios_base::sync_with_stdio(0); ... | [["-", 15, 339, 51, 16, 12, 16, 31, 16, 17, 85], ["-", 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, 17, 18], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 48], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 13]] | 1 | 218 |
X,Y = map(int,input().split())
found = False
# if (X == 1) :
# if (Y == 2 or Y == 4) :
# found = True
for i in range(X) :
kame_legs = 4 * i
tsuru_legs = 2 * (X-i)
if (Y == kame_legs + tsuru_legs) :
found = True
break
if (found) :
print("Yes")
else :
print("No") | X,Y = map(int,input().split())
found = False
# if (X == 1) :
# if (Y == 2 or Y == 4) :
# found = True
for i in range(X+1) :
kame_legs = 4 * i
tsuru_legs = 2 * (X-i)
if (Y == kame_legs + tsuru_legs) :
# print("tsuru", tsuru_legs, "kame", kame_legs)
found = True
break
if... | [["+", 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())
if Y - 2 * X >= 0 and 4 * X - Y >= 0 and Y % 2 == 0:
print("YES")
else:
print("NO") | X, Y = map(int, input().split())
if Y - 2 * X >= 0 and 4 * X - Y >= 0 and Y % 2 == 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 | 53 |
x, y = map(int, input().split())
foot = y - x * 2
if foot % 2 == 0 and 0 <= foot and foot <= x * 2:
print("YES")
else:
print("NO") | x, y = map(int, input().split())
foot = y - x * 2
if foot % 2 == 0 and 0 <= foot and foot <= x * 2:
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 | 54 |
#include <bits/stdc++.h>
using namespace std;
#define all(v) begin(v), end(v)
#define endl '\n';
#define int long long
#define pii pair<int, int>
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int x, y;
cin >> x >> y;
int a = 4 * x - y;
if (a & 1 || a < 0) {
cout << "NO" << endl;
} else... | #include <bits/stdc++.h>
using namespace std;
#define all(v) begin(v), end(v)
#define endl '\n';
#define int long long
#define pii pair<int, int>
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
int x, y;
cin >> x >> y;
int a = 4 * x - y;
if (a & 1 || a < 0) {
cout << "No" << endl;
} else... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 144 |
x, y = map(int, input().split())
if y>=2*x and y<=4*x and y%2 ==0:
ans ="YES"
else:
ans = "NO"
print(ans)
|
x, y = map(int, input().split())
if y>=2*x and y<=4*x and y%2 ==0:
ans ="Yes"
else:
ans = "No"
print(ans) | [["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 8, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 51 |
/*
CODED BY
**************
DARSHAN JAIN
darshanjain31
**************
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
#define fast \
ios_base::sync_with_stdio(false); ... | /*
CODED BY
**************
DARSHAN JAIN
darshanjain31
**************
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
#define fast \
ios_base::sync_with_stdio(false); ... | [["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22]] | 1 | 100 |
#include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
int main() {
// your code goes here
int x, y;
cin >> x >> y;
int min = x * 2;
int max = x * 4;
if (y >= min || y <= max) {
if (y % 4 == 0 || y % 2 == 0) {
cout << "Yes" << endl;
} else
co... | #include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
int main() {
// your code goes here
int x, y;
cin >> x >> y;
int min = x * 2;
int max = x * 4;
if (y >= min && y <= max) {
if (y % 4 == 0 || y % 2 == 0) {
cout << "Yes" << endl;
} else
co... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 98 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
#define sz(a) int((a).size())
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define all(c) (c).begin(), (c).end()
#... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
#define sz(a) int((a).size())
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define all(c) (c).begin(), (c).end()
#... | [["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 20], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20]] | 1 | 255 |
X,Y =map(int,input().split())
A=-1
if Y%2 ==1:
print('No')
A=0
if 2*X <= Y <= 4*X:
print('Yes')
elif A!= 0:
print('No') | X,Y =map(int,input().split())
A=-1
if Y%2 ==1:
print('No')
A=0
if 2*X <= Y <= 4*X and A !=0:
print('Yes')
elif A!= 0:
print('No') | [["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 79], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612]] | 5 | 64 |
#include <bits/stdc++.h>
#define debug(x) \
cout << "DEBUG" \
<< " " << #x << ":" << x << '\n'
#define rep(i, n) \
for (int_... | #include <bits/stdc++.h>
#define debug(x) \
cout << "DEBUG" \
<< " " << #x << ":" << x << '\n'
#define rep(i, n) \
for (int_... | [["+", 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 | 408 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include <set>
#include <sstream>
#include <typeinfo>
#include <vector>
using namespace std;
int main() {
int X, Y;
int max, min;
cin >> X >> Y;
max = X * 4;
min = X * 2;
if... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include <set>
#include <sstream>
#include <typeinfo>
#include <vector>
using namespace std;
int main() {
int X, Y;
int max, min;
cin >> X >> Y;
max = X * 4;
min = X * 2;
if... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 115 |
#include <bits/stdc++.h>
#define REP(i, a, b) for (long long i = a; i <= b; ++i)
#define ll long long
using namespace std;
ll a, b;
inline ll read() {
ll s = 0, w = 1;
char ch = getchar();
for (; ch < '0' || ch > '9'; ch = getchar())
w *= ch == '-' ? -1 : 1;
for (; ch >= '0' && ch <= '9'; ch = getchar())
... | #include <bits/stdc++.h>
#define REP(i, a, b) for (long long i = a; i <= b; ++i)
#define ll long long
using namespace std;
ll a, b;
inline ll read() {
ll s = 0, w = 1;
char ch = getchar();
for (; ch < '0' || ch > '9'; ch = getchar())
w *= ch == '-' ? -1 : 1;
for (; ch >= '0' && ch <= '9'; ch = getchar())
... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 224 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if ((4 * a - b) % 2 == 0 && (b - 2 * a) % 2 == 0 && (4 * a - b) > 0 &&
(b - 2 * a) > 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if ((4 * a - b) % 2 == 0 && (b - 2 * a) % 2 == 0 && (4 * a - b) >= 0 &&
(b - 2 * a) >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 93 |
animal, leg = map(int, input().split())
answer = 'No'
for i in range(0, animal+1):
temp = 2 * i + 4 * (animal-i)
if temp == leg:
answer = 'YES'
break
print(answer) | animal, leg = map(int, input().split())
answer = 'No'
for i in range(0, animal+1):
temp = 2 * i + 4 * (animal-i)
if temp == leg:
answer = 'Yes'
break
print(answer) | [["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 61 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.