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 <iostream>
using namespace std;
int main() {
int x, y, a, b;
cin >> x >> y;
for (a = 0; a < x; a++) {
b = x - a;
if (a * 2 + b * 4 == y) {
cout << "Yes" << endl;
return 0;
break;
}
}
cout << "No" << endl;
} | #include <iostream>
using namespace std;
int main() {
int x, y, a, b;
cin >> x >> y;
for (a = 0; a <= x; a++) {
b = x - a;
if (a * 2 + b * 4 == y) {
cout << "Yes" << endl;
return 0;
break;
}
}
cout << "No" << endl;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 83 |
X, Y = list(map(int, input().split()))
for x in range(1, X + 1):
if x * 2 + (X - x) * 4 == Y:
print("Yes")
break
else:
print("No")
| X, Y = list(map(int, input().split()))
for x in range(X + 1):
if x * 2 + (X - x) * 4 == 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]] | 5 | 61 |
X, Y = map(int, input().split())
K = 0
if Y % 2 == 0:
K = Y//2 - X
if K > 0:
if X - K >= 0:
print("Yes")
exit()
print("No")
| X, Y = map(int, input().split())
K = 0
if Y % 2 == 0:
K = Y//2 - X
if K >= 0:
if X - K >= 0:
print("Yes")
exit()
print("No")
| [["-", 0, 57, 64, 196, 0, 57, 15, 666, 667, 47], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 667, 20]] | 5 | 60 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0 && 2 * x <= y && 4 & x >= 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;
if (y % 2 == 0 && 2 * x <= y && 4 * x >= y) {
cout << "Yes" << endl;
return 0;
}
cout << "No" << endl;
return 0;
}
| [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 67], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 48]] | 1 | 67 |
x, y = map(int, input().split())
if y % 2 != 0:
print('No')
if x*2 <= y <= x*4:
print('Yes')
else:
print('No') | x, y = map(int, input().split())
if y % 2 != 0:
print('No')
exit()
if x*2 <= y <= x*4:
print('Yes')
else:
print('No')
| [["+", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 54 |
#pragma GCC target("avx2")
#pragma GCC optimize "trapv"
#pragma GCC optimization("O3")
#pragma GCC optimization("unroll-loops")
#include <bits/stdc++.h>
#define input(a, n) \
for (ll i1 = 0; i1 < n; i1++) \
cin... | #pragma GCC target("avx2")
#pragma GCC optimize "trapv"
#pragma GCC optimization("O3")
#pragma GCC optimization("unroll-loops")
#include <bits/stdc++.h>
#define input(a, n) \
for (ll i1 = 0; i1 < n; i1++) \
cin... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 201 |
x,y = gets.split(" ").map(&:to_i)
res = 0
(0..x).each do |i|
if (4*i + 2*(x-i)) == y
res = "Yes"
end
end
if res == "Yes"
p res
else
p "No"
end | x,y = gets.split(" ").map(&:to_i)
res = 0
(0..x).each do |i|
if (4*i + 2*(x-i)) == y
res = "Yes"
end
end
if res == "Yes"
puts res
else
puts "No"
end
| [["-", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["+", 0, 493, 0, 121, 64, 749, 0, 652, 735, 22], ["-", 0, 493, 0, 121, 75, 95, 0, 652, 735, 22], ["+", 0, 493, 0, 121, 75, 95, 0, 652, 735, 22]] | 4 | 69 |
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.*;
import javax.sound.sampled.ReverbType;
public class Main {
static Scanner scan = new Scanner(System.in);
static int cnt = 0;
static int M = (int)1e9 + 7;
static boolean issamedi(int i, int j) {
... | import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.*;
import javax.sound.sampled.ReverbType;
public class Main {
static Scanner scan = new Scanner(System.in);
static int cnt = 0;
static int M = (int)1e9 + 7;
static boolean issamedi(int i, int j) {
... | [["-", 15, 15, 0, 16, 31, 16, 12, 16, 31, 499], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 31, 499]] | 3 | 483 |
#pragma comment(linker, "/stack:20000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx")
#include <bits/stdc++.h>
#define se second
#define fi first
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long ll;
int x, y;
int main() {
ios_base:... | #pragma comment(linker, "/stack:20000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx")
#include <bits/stdc++.h>
#define se second
#define fi first
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long ll;
int x, y;
int main() {
ios_base:... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 121 |
x,y = map(int,input().split())
for i in range(x):
if(2*i+4*(x-i) == y):
print("Yes")
exit()
print("No")
| x,y = map(int,input().split())
for i in range(x+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]] | 5 | 56 |
#include <iostream>
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" << endl;
return 0;
} else if (2 * i + 4 * (x - i) < y) {
cout << "No" << endl;
return 0;
}
}
} | #include <iostream>
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" << endl;
return 0;
} else if (2 * i + 4 * (x - i) < y)
break;
}
cout << "No" << endl;
return 0;
} | [["-", 0, 57, 75, 76, 0, 57, 64, 9, 0, 45], ["+", 0, 57, 75, 76, 0, 57, 64, 93, 0, 94], ["+", 0, 57, 75, 76, 0, 57, 64, 93, 0, 35], ["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 57, 75, 76, 0, 57, 64, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 1 | 98 |
X, Y = map(int, input().split())
count = 0
r = range(2 * X, 4 * X, 2)
for i in r:
if i == Y:
count += 1
print('Yes' if count > 0 else 'No') | X, Y = map(int, input().split())
count = 0
r = range(2*X, 4*X+2, 2)
for i in r:
if i == Y:
count += 1
print('Yes' if count > 0 else 'No') | [["+", 0, 662, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 662, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 60 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
for (int i = 0; i < 100; i++) {
for (int j = 0; j < 100; j++) {
int A = i + 1, B = j + 1;
if (A + B == X && A * 2 + B * 4 == Y) {
cout << "Yes" << endl;
return 0;
}
}
}
cout << "No" <... | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
for (int i = 0; i < 101; i++) {
for (int j = 0; j < 101; j++) {
int A = i, B = j;
if (A + B == X && A * 2 + B * 4 == Y) {
cout << "Yes" << endl;
return 0;
}
}
}
cout << "No" << endl;
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 107 |
#include <iostream>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
for (int x = 1; x <= X; x++) {
if ((2 * x + 4 * (X - x)) == Y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
for (int x = 0; x <= X; x++) {
if ((2 * x + 4 * (X - x)) == 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 |
import sys
input = sys.stdin.readline
import math
def INT(): return int(input())
def MAPINT(): return map(int, input().split())
def LMAPINT(): return list(map(int, input().split()))
def STR(): return input()
def MAPSTR(): return map(str, input().split())
def LMAPSTR(): return list(map(str, input().split()))
f_inf = f... | import sys
input = sys.stdin.readline
import math
def INT(): return int(input())
def MAPINT(): return map(int, input().split())
def LMAPINT(): return list(map(int, input().split()))
def STR(): return input()
def MAPSTR(): return map(str, input().split())
def LMAPSTR(): return list(map(str, input().split()))
f_inf =... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 177 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;
#define debug(x) cout << '>' << #x << ':' << x << endl;
#define loop(i, n) for (int i = 0; i < (int)(n); i++)
#define foi(i, k, n) for (int i = (k); i < (int)(n); i += 1)
#define fod(i, n, k) for (int i ... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;
#define debug(x) cout << '>' << #x << ':' << x << endl;
#define loop(i, n) for (int i = 0; i < (int)(n); i++)
#define foi(i, k, n) for (int i = (k); i < (int)(n); i += 1)
#define fod(i, n, k) for (int i ... | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 320 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
scanf("%d %d", &X, &Y);
if (Y % 2 == 0 && Y / 2 - X >= 0 && 2 * X - Y / 4 >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
scanf("%d %d", &X, &Y);
if (Y % 2 == 0 && Y / 2 - X >= 0 && 2 * X - Y / 2 >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 51, 16, 12, 16, 31, 16, 12, 16, 12, 13], ["+", 51, 16, 12, 16, 31, 16, 12, 16, 12, 13]] | 1 | 80 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int a, b, flag = 0;
b = x - a;
for (int a = 0; a < x; a++) {
if ((2 * a) + (4 * (x - a)) == y)
flag = 1;
}
if (flag == 1) {
cout << "Yes"
<< "\n";
} else {
cout << "No"
<< "\n";
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int a, b, flag = 0;
b = x - a;
for (int a = 0; a <= x; a++) {
if ((2 * a) + (4 * (x - a)) == y)
flag = 1;
}
if (flag == 1) {
cout << "Yes"
<< "\n";
} else {
cout << "No"
<< "\n";
}... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 112 |
#include <iostream>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool ans = false;
for (int i = 0; i < X; i++) {
if (4 * X - 2 * i == Y) {
ans = true;
break;
}
}
if (ans) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool ans = false;
for (int i = 0; i <= X; i++) {
if (4 * X - 2 * i == Y) {
ans = true;
break;
}
}
if (ans) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 89 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<long long>;
using vvi = vector<vector<int>>;
using pii = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define pb push_back
int main() {
int x, y;
cin >> x >> y;
rep(i, x + 1) re... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<long long>;
using vvi = vector<vector<int>>;
using pii = pair<int, int>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define pb push_back
int main() {
int x, y;
cin >> x >> y;
rep(i, x + 1) re... | [["-", 15, 339, 51, 16, 12, 16, 31, 16, 12, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 22]] | 1 | 135 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
boolean flag = false;
for (int i = 0; i < x; i++) {
if (2 * i + 4 * (x - i) == y) {
flag = true;
break;
}
... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
boolean flag = false;
for (int i = 0; i <= x; i++) {
if (2 * i + 4 * (x - i) == y) {
flag = true;
break;
}
... | [["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]] | 3 | 129 |
X, Y =map(int,input().split())
a = 0
for i in range(X+1):
if 2*i+4*(X-i)==Y:
print('Yes')
else:
a = 1
if a ==1:
print('No') | X, Y =map(int,input().split())
a = 0
for i in range(X+1):
if 2*i+4*(X-i)==Y:
print('Yes')
else:
a +=1
if a ==X+1:
print('No') | [["-", 75, 76, 8, 196, 0, 1, 0, 662, 0, 32], ["+", 75, 76, 8, 196, 0, 1, 0, 677, 17, 107], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 31, 22], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 72]] | 5 | 66 |
#include <bits/stdc++.h>
#define repr(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
#define reprrev(i, a, b) for (int i = b - 1; i >= a; i--) // [a, b)
#define reprev(i, n) reprrev(i, 0, n)
#define _GLIBCXX_DEBUG
using ll = long long;
using ull = unsigned long long;
template <class... | #include <bits/stdc++.h>
#define repr(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
#define reprrev(i, a, b) for (int i = b - 1; i >= a; i--) // [a, b)
#define reprev(i, n) reprrev(i, 0, n)
#define _GLIBCXX_DEBUG
using ll = long long;
using ull = unsigned long long;
template <class... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 432 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
int main() {
int x, y;
cin >> x >> y;
if (4 * x < y || (y & 1) == 1)
cout << "No";
else
cout << "Yes";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod = 1e9 + 7;
int main() {
int x, y;
cin >> x >> y;
if (4 * x < y || (y & 1) == 1 || y < 2 * x)
cout << "No";
else
cout << "Yes";
return 0;
}
| [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 13], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 48], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 22]] | 1 | 68 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
int main() {
bool t = false;
int x, y;
cin >> x >> y;
rep(i, x + 1) {
if (y == i * 2 + y * (x - i))
t = true;
}
if (t)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
int main() {
bool t = false;
int x, y;
cin >> x >> y;
rep(i, x + 1) {
if (y == i * 2 + 4 * (x - i))
t = true;
}
if (t)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [["-", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 13]] | 1 | 93 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
for (int a = 0; a <= X; a++) {
int b = X - a;
if (Y = (2 * a) + (4 * b)) {
cout << "Yes";
return 0;
}
}
cout << "No";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
for (int a = 0; a <= X; a++) {
int b = X - a;
if (Y == (2 * a) + (4 * b)) {
cout << "Yes";
return 0;
}
}
cout << "No";
} | [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 79 |
#include <stdio.h>
int main() {
int X, Y;
scanf("%d %d", &X, &Y);
int sum;
int flag = 0;
for (int i = 1; i <= X; i++) {
sum = i * 2 + (X - i) * 4;
if (sum == Y)
flag = 1;
}
if (flag == 1) {
printf("Yes\n");
} else {
printf("No\n");
}
} | #include <stdio.h>
int main() {
int X, Y;
scanf("%d %d", &X, &Y);
int sum;
int flag = 0;
for (int i = 0; i <= X; i++) {
sum = i * 2 + (X - i) * 4;
if (sum == Y)
flag = 1;
}
if (flag == 1) {
printf("Yes\n");
} else {
printf("No\n");
}
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 0 | 101 |
x, y = map(int, input().split())
for i in range(0, x+1):
a.append(2 * i + 4 * (3 - i))
print("Yes" if y in a else "No") | x, y = map(int, input().split())
a = []
for i in range(0, x+1):
a.append(2 * i + 4 * (x - i))
print("Yes" if y in a else "No") | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 70], ["+", 0, 656, 0, 1, 0, 662, 12, 634, 0, 73], ["-", 0, 657, 12, 657, 12, 23, 0, 657, 31, 612], ["+", 0, 657, 12, 657, 12, 23, 0, 657, 31, 22]] | 5 | 58 |
import sys
X, Y = map(int,input().split()) #X_動物の数 Y_脚の数
ALL = X*2
for i in range(X):
if ALL == Y:
print('Yes')
sys.exit()
ALL += 2
print('No') | import sys
X, Y = map(int,input().split()) #X_動物の数 Y_脚の数
ALL = X*2
for i in range(X+1):
if ALL == Y:
print('Yes')
sys.exit()
ALL += 2
print('No') | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 57 |
#!/usr/bin/env python3
X, Y = list(map(int, input().split()))
is_ok = False
for i in range(1, X + 1):
if (i * 2 + (X - i) * 4) == Y:
is_ok = True
break
ans = "Yes" if is_ok else "No"
print(ans)
| #!/usr/bin/env python3
X, Y = list(map(int, input().split()))
is_ok = False
for i in range(0, X + 1):
if (i * 2 + (X - i) * 4) == Y:
is_ok = True
break
ans = "Yes" if is_ok else "No"
print(ans)
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 71 |
# 170 B
X , Y = list(map(int, input().split()))
ans = 0
for i in range(0, X):
if (X-i)*2 + i*4 == Y:
ans = 1
print('Yes') if ans == 1 else print('No') | # 170 B
X , Y = list(map(int, input().split()))
ans = 0
for i in range(0, X+1):
if (X-i)*2 + i*4 == Y:
ans = 1
print('Yes') if ans == 1 else print('No') | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 68 |
X,Y=list(map(int,input().split()))
judge=False
for i in range(1,X+1):
if i*2+(X-i)*4==Y:
judge=True
if judge:
print("Yes")
else:
print("No") | X,Y=list(map(int,input().split()))
judge=False
for i in range(0,X+1):
if i*2+(X-i)*4==Y:
judge=True
if judge:
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 |
l = input().split()
x = l[0]
y = int(l[1])
ans = 0
foots = 2*int(x)
for i in range(int(x)):
if foots == y:
ans +=1
foots += 2
if ans == 1:
print("Yes")
else:
print("No") | l = input().split()
x = l[0]
y = int(l[1])
ans = 0
foots = 2*int(x)
for i in range(int(x)+1):
if foots == y:
ans +=1
foots += 2
if ans == 1:
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 | 76 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define li int64_t
int main() {
int x, y;
cin >> x >> y;
if ((y - 2 * x) % 2 == 0 && (4 * x - y % 2) == 0 && y - 2 * x >= 0 &&
4 * x - y >= 0)
cout << "Yes";
else {
cout << "No";
}
} | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define li int64_t
int main() {
int x, y;
cin >> x >> y;
if ((y - 2 * x) % 2 == 0 && (4 * x - y) % 2 == 0 && y - 2 * x >= 0 &&
4 * x - y >= 0)
cout << "Yes";
else {
cout << "No";
}
} | [["+", 31, 16, 12, 16, 31, 16, 31, 23, 0, 25], ["-", 31, 16, 31, 16, 12, 16, 31, 23, 0, 25]] | 1 | 86 |
a,b=input().split()
a=int(a)
b=int(b)
c=0
for i in range(a):
if 2*i+4*(a-i)==b:
c=c+1
if c==0:
print("No")
else:
print("Yes") | a,b=input().split()
a=int(a)
b=int(b)
c=0
for i in range(a+1):
if 2*i+4*(a-i)==b:
c=c+1
if c==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 | 73 |
X, Y = map(int, input().split())
for k in range(X):
t = X - k
if k*4 + t*2 == Y:
print("Yes")
exit()
print("No")
|
X, Y = map(int, input().split())
for k in range(X+1):
t = X - k
if k*4 + t*2 == Y:
print("Yes")
exit()
print("No")
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 55 |
function Main(input) {
input = input.split("\n");
const X = parseInt(input[0].split(" ")[0]);
const Y = parseInt(input[0].split(" ")[1]);
if ((Y - X * 2) % 2 === 0 && X * 4 <= Y && X * 2 <= Y) {
console.log("Yes");
} else {
console.log("No");
}
}
// デバッグ用
function debug() {
var input = document.... | function Main(input) {
input = input.split("\n");
const X = parseInt(input[0].split(" ")[0]);
const Y = parseInt(input[0].split(" ")[1]);
if ((Y - X * 2) % 2 === 0 && X * 4 >= Y && X * 2 <= Y) {
console.log("Yes");
} else {
console.log("No");
}
}
// デバッグ用
function debug() {
var input = document.... | [["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20]] | 2 | 157 |
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define REPS(i, a, b) for (int i = (a); i < (b); ++i)
using namespace std;
using ll = long long;
int main() {
int x, y;
cin >> x >> y;
int z = 2 * x;
REP(i, x) {
if (z == y) {
cout << "Yes" << endl;
return 0;
}
z... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define REPS(i, a, b) for (int i = (a); i < (b); ++i)
using namespace std;
using ll = long long;
int main() {
int x, y;
cin >> x >> y;
int z = 2 * x;
REP(i, x + 1) {
if (z == y) {
cout << "Yes" << endl;
return 0;
}
... | [["+", 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 | 93 |
x,y=map(int,input().split())
cnt=0
for i in range(x):
if 2*i+4*(x-i)==y:
cnt+=1
if cnt==0:
print('No')
else:
print('Yes') | x,y=map(int,input().split())
cnt=0
for i in range(x+1):
if 2*i+4*(x-i)==y:
cnt+=1
if cnt==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 | 64 |
X, Y = [int(v) for v in input().split()]
ans = "No"
for c in range(X + 1):
t = X - c
if 2 * c + 3 * t == Y:
ans = "Yes"
break
print(ans) | X, Y = [int(v) for v in input().split()]
ans = "No"
for c in range(X + 1):
t = X - c
if 2 * c + 4 * t == Y:
ans = "Yes"
break
# if ans == "No":
# for t in range(X + 1):
# c = X - t
# if 2 * c + 3 * t == Y:
# ans = "Yes"
# break
print(ans) | [["-", 0, 57, 15, 666, 0, 657, 12, 657, 31, 612], ["+", 0, 57, 15, 666, 0, 657, 12, 657, 31, 612]] | 5 | 61 |
x,y = map(int, input().split())
ans = 'false'
for i in range(1,x+1):
if y == 2*i + 4*(x-i):
ans = 'true'
break
if ans == 'true':
print('Yes')
else:
print('No') | x,y = map(int, input().split())
ans = 'false'
for i in range(0,x+1):
if y == 2*i + 4*(x-i):
ans = 'true'
break
if ans == '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 | 75 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
string ans = "No";
for (int i = 1; i < X + 1; i++) {
int j = X - i;
if (2 * i + 4 * j == Y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
string ans = "No";
for (int i = 0; i < X + 1; i++) {
int j = X - i;
if (2 * i + 4 * j == Y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
return 0;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 86 |
X,Y = map(int,input().split())
Max = X*4
while Max >= Y:
if Max == Y:
print('Yes')
exit()
Max -= 2
print('No')
| X,Y = map(int,input().split())
Max = X*4
while Max >= X*2:
if Max == Y:
print('Yes')
exit()
Max -= 2
print('No') | [["-", 36, 36, 0, 656, 0, 52, 15, 666, 0, 22], ["+", 0, 656, 0, 52, 15, 666, 0, 657, 31, 22], ["+", 0, 656, 0, 52, 15, 666, 0, 657, 17, 48], ["+", 0, 656, 0, 52, 15, 666, 0, 657, 12, 612]] | 5 | 49 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); i++)
#define INF 1001001001
#define LLINF 1001001001001001001
#define MOD 1000000007
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a,... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); i++)
#define INF 1001001001
#define LLINF 1001001001001001001
#define MOD 1000000007
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a,... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 199 |
import sys
x, y = map(int, input().split())
ans = 0
for i in range(x):
if y == i*2 + (x - i)* 4:
ans = 1
break
if ans == 1:
print("Yes")
else:
print("No") | import sys
x, y = map(int, input().split())
ans = 0
for i in range(x+1):
if y == i*2 + (x - i)* 4:
ans = 1
break
if ans == 1:
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 | 67 |
#include <bits/stdc++.h>
#define con continue
#define pb push_back
#define fi first
#define se second
#define fr front()
#define one 1.0
#define inf 1000000000000000000
#define ret return
#define all(vl) vl.begin(), vl.end()
#define sor sort
#define cl clear
#define m_p make_pair
using namespace std;
typedef long long ... | #include <bits/stdc++.h>
#define con continue
#define pb push_back
#define fi first
#define se second
#define fr front()
#define one 1.0
#define inf 1000000000000000000
#define ret return
#define all(vl) vl.begin(), vl.end()
#define sor sort
#define cl clear
#define m_p make_pair
using namespace std;
typedef long long ... | [["-", 0, 43, 49, 50, 51, 16, 12, 16, 12, 13], ["+", 0, 43, 49, 50, 51, 16, 12, 16, 12, 13]] | 1 | 189 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int mod = 1000000007;
int main() {
ios::sync_with_stdio(false);
int x, y;
cin >> x >> y;
if (y % 2 || x * 2 < y || x * 4 > y)
cout << "N... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int mod = 1000000007;
int main() {
ios::sync_with_stdio(false);
int x, y;
cin >> x >> y;
if (y % 2 || x * 2 > y || x * 4 < y)
cout << "N... | [["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18]] | 1 | 89 |
<?php
fscanf(STDIN, "%d %d", $X, $Y);
for($i = 0; $i <= $X+1; $i++){
$j = $X - $i;
if($i*2 + 4*$j == $Y){
echo "Yes" ."\n";
return;
}
}
echo "No" . "\n";
?> | <?php
fscanf(STDIN, "%d %d", $X, $Y);
for($i = 0; $i < $X+1; $i++){
$j = $X - $i;
if($i*2 + 4*$j == $Y){
echo "Yes" ."\n";
return;
}
}
echo "No" . "\n";
?> | [["-", 36, 36, 0, 493, 0, 7, 0, 16, 17, 19], ["+", 36, 36, 0, 493, 0, 7, 0, 16, 17, 18]] | 6 | 84 |
x,y=map(int,input().split())
ans=0
for n in range(x+1):
if n*2+(x-n)*4==y:
ans=1
break
if ans==0:
print('Yes')
else:
print('No') | x,y=map(int,input().split())
ans=0
for n in range(x+1):
if n*2+(x-n)*4==y:
ans=1
break
if ans==1:
print('Yes')
else:
print('No') | [["-", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612], ["+", 36, 36, 0, 656, 0, 57, 15, 666, 0, 612]] | 5 | 67 |
x, y = map(int, input().split())
print('Yes' if any(x * 2 + i * 2 for i in range(x + 1)) else 'No')
| x, y = map(int, input().split())
print('Yes' if any(x * 2 + i * 2 == y for i in range(x + 1)) else 'No')
| [["+", 0, 41, 0, 652, 3, 668, 8, 666, 667, 60], ["+", 0, 41, 0, 652, 3, 668, 8, 666, 0, 22]] | 5 | 46 |
ans = "No"
x,y = map(int, input().split())
for i in range(x):
if 2*i + 4*(x-i) == y:
ans = "Yes"
print(ans) | ans = "No"
x,y = map(int, input().split())
for i in range(x+1):
if 2*i + 4*(x-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 |
#include <stdio.h>
int main(void) {
int X, Y;
scanf("%d %d", &X, &Y);
if (Y < 2 * X || 4 * X < Y) {
printf("No");
} else if (Y % 2 == 1) {
printf("N0");
} else {
printf("Yes");
}
return 0;
} | #include <stdio.h>
int main(void) {
int X, Y;
scanf("%d %d", &X, &Y);
if (Y < 2 * X || 4 * X < Y) {
printf("No");
} else if (Y % 2 == 1) {
printf("No");
} else {
printf("Yes");
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 81 |
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <vector>
using namespace std;
typedef long long ll;
type... | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <vector>
using namespace std;
typedef long long ll;
type... | [["-", 0, 41, 64, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 41, 64, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 41, 75, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 41, 75, 2, 3, 4, 0, 5, 0, 6]] | 1 | 360 |
x, y = gets.chomp.split.map(&:to_i)
ans = "No"
for i in 0..x-1
if (x - i) * 2 + i * 4 == y
ans = 'Yes'
end
end
puts ans
| x, y = gets.chomp.split.map(&:to_i)
ans = "No"
for i in 0..x
if (x - i) * 2 + i * 4 == y
ans = 'Yes'
end
end
puts ans
| [["-", 0, 88, 51, 267, 0, 475, 444, 738, 17, 33], ["-", 0, 88, 51, 267, 0, 475, 444, 738, 12, 612]] | 4 | 51 |
x, y = gets.chomp.split.map(&:to_i)
ans = "No"
for a in (1..x) do
b = x - a
if (2 * a) + (4 * b) == y
ans = "Yes"
break
end
end
puts ans
| x, y = gets.chomp.split.map(&:to_i)
ans = "No"
for a in (0..x) do
b = x - a
if (2 * a) + (4 * b) == y
ans = "Yes"
break
end
end
puts ans
| [["-", 0, 88, 51, 267, 0, 739, 0, 475, 756, 612], ["+", 0, 88, 51, 267, 0, 739, 0, 475, 756, 612]] | 4 | 58 |
package main
import (
"fmt"
)
func main() {
var X, Y int
fmt.Scanf("%d %d", &X, &Y)
flag := 0
for i := 1; i <= X; i++ {
j := X - i
if Y == (2*i + 4*j) {
flag = 1
}
}
if flag == 1 {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
}
| package main
import (
"fmt"
)
func main() {
var X, Y int
fmt.Scanf("%d %d", &X, &Y)
flag := 0
for i := 0; i <= X; i++ {
j := X - i
if Y == (2*i + 4*j) {
flag = 1
}
}
if flag == 1 {
fmt.Println("Yes")
} else {
fmt.Println("No")
}
} | [["-", 0, 7, 0, 430, 10, 431, 12, 432, 0, 433], ["+", 0, 7, 0, 430, 10, 431, 12, 432, 0, 433], ["-", 36, 36, 36, 36, 36, 36, 0, 434, 0, 165]] | 7 | 110 |
#include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
using ll = long long;
using pll = pair<ll, ll>;
#define fi first
#define se second
#define pb push_back
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define MOD 1000000007
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {... | #include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
using ll = long long;
using pll = pair<ll, ll>;
#define fi first
#define se second
#define pb push_back
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define MOD 1000000007
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 211 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, k, n) for (int i = k; i < n; i++)
#define repp(i, k, n) for (int i = k; i <= n; i++)
#define per(i, k, n) for (int i = k; i >= n; i--)
#define int long long
#define all(a) a.begin(), a.end()
#define pb push_back
typedef long long ll;
typedef pair<int, int> ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, k, n) for (int i = k; i < n; i++)
#define repp(i, k, n) for (int i = k; i <= n; i++)
#define per(i, k, n) for (int i = k; i >= n; i--)
#define int long long
#define all(a) a.begin(), a.end()
#define pb push_back
typedef long long ll;
typedef pair<int, int> ... | [["-", 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 | 286 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int Y = sc.nextInt();
int judge = 1;
while (X >= 0 && Y >= 0) {
if (Y / 4 == X && Y % 4 == 0) {
judge = 1;
break;
}
X = X ... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int X = sc.nextInt();
int Y = sc.nextInt();
int judge = 0;
while (X >= 0 && Y >= 0) {
if (Y / 4 == X && Y % 4 == 0) {
judge = 1;
break;
}
X = X ... | [["-", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 195, 8, 196, 0, 503, 49, 200, 51, 499]] | 3 | 137 |
x,y = map(int,input().split())
for i in range(x):
if 2 * i + 4 * (x - i) == y:
print('Yes')
sys.exit()
print('No') | x,y = map(int,input().split())
for i in range(x+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], ["-", 64, 196, 0, 1, 0, 652, 63, 319, 500, 22], ["-", 64, 196, 0, 1, 0, 652, 63, 319, 0, 131]] | 5 | 56 |
import sys
x,y = map(int,input().split())
#2a+4b =y
#a+b =x
#b=x-a
#y =2a+4(x-a)=4x-2a
for i in range(x):
if y == 4*x-2*i:
print("Yes")
sys.exit()
else:
print("No")
| import sys
x,y = map(int,input().split())
#2a+4b =y
#a+b =x
#b=x-a
#y =2a+4(x-a)=4x-2a
for i in range(x+1):
if y == 4*x-2*i:
print("Yes")
sys.exit()
else:
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 <stdio.h>
int main() {
int crane = 2;
int turtle = 4;
int X, Y;
scanf("%d %d", &X, &Y);
if (Y < 2 * X || X * 4 < Y) {
printf("NO");
} else if (Y % 2 == 1) {
printf("NO");
} else {
printf("Yes");
}
return 0;
} | #include <stdio.h>
int main() {
int crane = 2;
int turtle = 4;
int X, Y;
scanf("%d %d", &X, &Y);
if (Y < 2 * X || X * 4 < Y) {
printf("No");
} else if (Y % 2 == 1) {
printf("No");
} else {
printf("Yes");
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 90 |
a, b = map(int, input().split())
for i in range(a+1):
if i * 2 + (a+1-i) * 4 ==b:
print('Yes')
exit()
print('No')
| a, b = map(int, input().split())
for i in range(a+1):
if i*2 + (a-i)*4 == b:
print('Yes')
exit()
print('No') | [["-", 12, 657, 31, 23, 0, 657, 31, 657, 17, 72], ["-", 12, 657, 31, 23, 0, 657, 31, 657, 12, 612]] | 5 | 58 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int ans = 0;
for (int i = 0; i < X; i++) {
if (Y == i * 2 + (X - i) * 4)
ans++;
}
if (ans > 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int ans = 0;
for (int i = 0; i <= X; i++) {
if (Y == i * 2 + (X - i) * 4)
ans++;
}
if (ans > 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 86 |
#include <stdio.h>
int main() {
int c, t, x, y;
scanf("%d%d", &x, &y);
if ((y - 2 * x) % 2 != 0 || (4 * x - y) != 0 || y < 2 * x || 4 * x < y)
printf("No");
else
printf("Yes");
return 0;
} | #include <stdio.h>
int main() {
int c, t, x, y;
scanf("%d%d", &x, &y);
if ((y - 2 * x) % 2 != 0 || (4 * x - y) % 2 != 0 || y < 2 * x || 4 * x < y)
printf("No");
else
printf("Yes");
return 0;
} | [["+", 31, 16, 31, 16, 12, 16, 31, 16, 17, 109], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 12, 13]] | 0 | 84 |
x,y = list(map(int,input().split()))
if ((4 * x) - y) % 2 == 0 and y >= 2 * x and y >= 4 * x:
print('Yes')
else:
print('No') | x,y = list(map(int,input().split()))
if ((4 * x) - y) % 2 == 0 and y >= 2 * x and y <= 4 * x:
print('Yes')
else:
print('No') | [["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19]] | 5 | 60 |
import sys
X ,Y = map(int,input().split())
for i in range(1, X+1):
if 2*i + 4*(X-i) == Y:
print("Yes")
sys.exit()
print("No")
| import sys
X ,Y = map(int,input().split())
for i in range(0, X+1):
if 2*i + 4*(X-i) == Y:
print("Yes")
sys.exit()
print("No")
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 62 |
x, y = 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 = map(int, input().split())
for i in range(0, 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, 612]] | 5 | 58 |
from math import floor,ceil,sqrt,factorial,log
from collections import Counter, deque
from functools import reduce
import numpy as np
def S(): return input()
def I(): return int(input())
def MS(): return map(str,input().split())
def MI(): return map(int,input().split())
def FLI(): return [int(i) for i in input().split(... | from math import floor,ceil,sqrt,factorial,log
from collections import Counter, deque
from functools import reduce
import numpy as np
def S(): return input()
def I(): return int(input())
def MS(): return map(str,input().split())
def MI(): return map(int,input().split())
def FLI(): return [int(i) for i in input().split(... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 270 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define all(x) x.begin(), x.end()
typedef vector<ll> vll;
typedef vector<int> vi;
const ll N = 2e6 + 10;
const int M = 1e9 + 7;
const double eps = 1e-9;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x;... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define all(x) x.begin(), x.end()
typedef vector<ll> vll;
typedef vector<int> vi;
const ll N = 2e6 + 10;
const int M = 1e9 + 7;
const double eps = 1e-9;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x;... | [["-", 0, 34, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 34, 31, 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 | 122 |
x, y = map(int, input().split())
ans = 'No'
for a in range(x+1):
b = x-a
if 2*a+4*b == Y:
ans = 'Yes'
print(ans) | x, y = map(int, input().split())
ans = 'No'
for a in range(x+1):
b = x-a
if 2*a+4*b == y:
ans = 'Yes'
print(ans) | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 56 |
def main():
x, y = map(int, input().split())
b = (y - 2*x) / 2
a = (4*x - y) / 2
b1 = (y - 2*x) % 2
a1 = (4*x - y) % 2
print(a,b)
if a1 == 0 and b1 == 0 and a >= 0 and b >= 0:
print("Yes")
else:
print("No")
if __name__ == '__main__':
main()
| def main():
x, y = map(int, input().split())
b = (y - 2*x) / 2
a = (4*x - y) / 2
b1 = (y - 2*x) % 2
a1 = (4*x - y) % 2
if a1 == 0 and b1 == 0 and a >= 0 and b >= 0:
print("Yes")
else:
print("No")
if __name__ == '__main__':
main()
| [["-", 0, 14, 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 | 112 |
x, y = map(int,input().split())
for i in range(x):
if 4*i + 2*(x-i) == y:
print("Yes")
break
else:
print("No") | x, y = map(int,input().split())
for i in range(x+1):
if 4*i + 2*(x-i) == 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 | 54 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X;
int Y;
cin >> X >> Y;
int i, j;
if (Y % 2 == 1 || 4 * X > Y) {
cout << "No" << endl;
return 0;
}
for (i = X; i >= 0; i--) {
if (2 * i > Y) {
continue;
} else {
if ((Y - 2 * i) % 4 == 0 && (Y - 2 * i) / 4 + i =... | #include <bits/stdc++.h>
using namespace std;
int main() {
int X;
int Y;
cin >> X >> Y;
int i, j;
if (Y % 2 == 1 || 2 * X > Y) {
cout << "No" << endl;
return 0;
}
for (i = X; i >= 0; i--) {
if (2 * i > Y) {
continue;
} else {
if ((Y - 2 * i) % 4 == 0 && (Y - 2 * i) / 4 + i =... | [["-", 15, 339, 51, 16, 12, 16, 31, 16, 31, 13], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 13]] | 1 | 140 |
package main
import (
"bufio"
"fmt"
"os"
"reflect"
"strconv"
)
var sc = bufio.NewScanner(os.Stdin)
var out = bufio.NewWriter(os.Stdout)
func main() {
buf := make([]byte, 1024*1024)
sc.Buffer(buf, bufio.MaxScanTokenSize)
sc.Split(bufio.ScanWords)
defer out.Flush() // !!!!caution!!!! you must use Fprint(out, ... | package main
import (
"bufio"
"fmt"
"os"
"reflect"
"strconv"
)
var sc = bufio.NewScanner(os.Stdin)
var out = bufio.NewWriter(os.Stdout)
func main() {
buf := make([]byte, 1024*1024)
sc.Buffer(buf, bufio.MaxScanTokenSize)
sc.Split(bufio.ScanWords)
defer out.Flush() // !!!!caution!!!! you must use Fprint(out, ... | [["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 18], ["-", 0, 57, 15, 16, 31, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 16, 31, 16, 12, 16, 17, 79]] | 7 | 572 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int a; // a=turu , b = kame
for (a = 0; a < X; a++) {
if (Y == 2 * a + 4 * (X - a)) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int a; // a=turu , b = kame
for (a = 0; a <= X; a++) {
if (Y == 2 * a + 4 * (X - a)) {
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, 17, 19]] | 1 | 79 |
import sys
input = sys.stdin.readline
x,y=list(map(int,input().split()))
a = (y-2*x)/2
print('Yes' if a == int(a) and a<=x else 'No')
| import sys
input = sys.stdin.readline
x,y=list(map(int,input().split()))
a = (y-2*x)/2
print('Yes' if a == int(a) and 0<=a<=x else 'No')
| [["+", 3, 4, 0, 41, 0, 679, 12, 666, 0, 612], ["+", 3, 4, 0, 41, 0, 679, 12, 666, 667, 19]] | 5 | 60 |
x, y = map(int, input().split())
for i in range(1, x+1):
if i*4+(x-i)*2 == y:
print("Yes")
break
else:
print("No")
| x, y = map(int, input().split())
for i in range(0, x+1):
if i*4+(x-i)*2 == 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 | 58 |
def main():
na, nl = (int(i) for i in input().split())
nc = (4*na - nl) / 2
pos = nc == int(nc) and nc >= 0 and nc <= x
if pos:
print('Yes')
else:
print('No')
main()
| def main():
na, nl = (int(i) for i in input().split())
nc = (4*na - nl) / 2
pos = (nc == int(nc) and nc >= 0 and nc <= na)
if pos:
print('Yes')
else:
print('No')
main()
| [["+", 8, 196, 0, 1, 0, 662, 12, 23, 0, 24], ["-", 0, 1, 0, 662, 12, 679, 12, 666, 0, 22], ["+", 0, 662, 12, 23, 0, 679, 12, 666, 0, 22], ["+", 8, 196, 0, 1, 0, 662, 12, 23, 0, 25]] | 5 | 72 |
a,b=map(int,input().split())
k=[]
j=a+1
for i in range(a-1):
k.append(2*j)
j=j+1
if(b in k):
print('Yes')
else:
print('No') | a,b=map(int,input().split())
k=[]
j=a
for i in range(a+1):
k.append(2*j)
j=j+1
#print(k)
if(b in k):
print('Yes')
else:
print('No') | [["-", 0, 656, 0, 1, 0, 662, 12, 657, 17, 72], ["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["-", 0, 7, 12, 652, 3, 4, 0, 657, 17, 33], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72]] | 5 | 69 |
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
)
var sc = bufio.NewScanner(os.Stdin)
func nextLine() string {
sc.Scan()
return sc.Text()
}
func main() {
a := nextLine()
arr := strings.Split(a, " ")
x, _ := strconv.Atoi(arr[0])
y, _ := strconv.Atoi(arr[1])
num := 4*x - y
if num <= 0 || nu... | package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
)
var sc = bufio.NewScanner(os.Stdin)
func nextLine() string {
sc.Scan()
return sc.Text()
}
func main() {
a := nextLine()
arr := strings.Split(a, " ")
x, _ := strconv.Atoi(arr[0])
y, _ := strconv.Atoi(arr[1])
num := 4*x - y
if num < 0 || num... | [["-", 0, 57, 15, 16, 31, 16, 31, 16, 17, 19], ["+", 0, 57, 15, 16, 31, 16, 31, 16, 17, 18]] | 7 | 161 |
#include <stdio.h>
int main() {
int x, y;
scanf("%d %d", &x, &y);
for (int i = 1; i <= x; i++) {
if ((i * 2 + (x - i) * 4) == y) {
printf("Yes\n");
return 0;
}
}
printf("No\n");
return 0;
} | #include <stdio.h>
int main() {
int x, y;
scanf("%d %d", &x, &y);
for (int i = 0; i <= x; i++) {
if ((i * 2 + (x - i) * 4) == y) {
printf("Yes\n");
return 0;
}
}
printf("No\n");
return 0;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 0 | 84 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 && y < x * 2)
cout << "No";
else {
int temp = (y - x * 2) / 2;
if (temp > x)
cout << "No";
else
cout << "Yes";
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 || y < x * 2)
cout << "No";
else {
int temp = (y - x * 2) / 2;
if (temp > x)
cout << "No";
else
cout << "Yes";
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 79 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << ((x * 2 <= y && y <= x * 4 && y & 1 == 0) ? "Yes" : "No") << "\n";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << ((x * 2 <= y && y <= x * 4 && y % 2 == 0) ? "Yes" : "No") << "\n";
} | [["-", 0, 41, 15, 23, 0, 16, 12, 16, 17, 67], ["-", 15, 23, 0, 16, 12, 16, 12, 16, 31, 13], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 17, 109], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 12, 13]] | 1 | 59 |
<?php
$arg = fgets(STDIN);
list($x, $y) = explode(" ", $arg);
if($y%2 == 1){echo 'No'; exit();}
for($i = $x; $i >= 0; $i--){
$crane = $i;
$turtle = $x-$i;
if(($crane * 2) + ($turtle * 4) == $y){
echo 'yes';
exit();
}
}
echo 'No'; | <?php
$arg = fgets(STDIN);
list($x, $y) = explode(" ", $arg);
if($y%2 == 1){echo 'No'; exit();}
for($i = $x; $i >= 0; $i--){
$crane = $i;
$turtle = $x-$i;
if(($crane * 2) + ($turtle * 4) == $y){
echo 'Yes';
exit();
}
}
echo 'No'; | [["-", 0, 57, 8, 9, 0, 608, 0, 557, 0, 610], ["+", 0, 57, 8, 9, 0, 608, 0, 557, 0, 610]] | 6 | 117 |
X, Y = map(int, input().split())
ans = 'No'
for i in X:
j = X - i
if (i * 2 + j * 4) == Y:
ans = 'Yes'
print(ans) | X, Y = map(int, input().split())
ans = 'No'
for i in range(X+1):
j = X - i
if (i * 2 + j * 4) == Y:
ans = 'Yes'
print(ans) | [["+", 36, 36, 0, 656, 0, 7, 12, 652, 63, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 24], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 25]] | 5 | 53 |
#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 >> 1); ++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() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
for (int i = 0; i <= (y >> 1); ++i) {
if (2 * i + 4 * (x - i) == 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())
answer = "No"
for i in range(x + 1):
b = x - i
if a * 2 + b * 4 == y:
answer = "Yes"
print(answer)
| x, y = map(int, input().split())
answer = "No"
for i in range(x + 1):
j = x - i
if i * 2 + j * 4 == y:
answer = "Yes"
print(answer)
| [["-", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["+", 0, 7, 8, 196, 0, 1, 0, 662, 31, 22], ["-", 0, 57, 15, 666, 0, 657, 31, 657, 31, 22], ["+", 0, 57, 15, 666, 0, 657, 31, 657, 31, 22], ["-", 0, 57, 15, 666, 0, 657, 12, 657, 31, 22], ["+", 0, 57, 15, 666, 0, 657, 12, 657, 31, 22]] | 5 | 56 |
import java.util.Scanner;
// import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
String s = "No";
if (y % 2 == 0) {
y /= 2;
for (int i = 0; i < x; i++) {
if (2 * i... | import java.util.Scanner;
// import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int y = sc.nextInt();
String s = "No";
if (y % 2 == 0) {
y /= 2;
for (int i = 0; i <= x; i++) {
if (2 * ... | [["-", 0, 57, 64, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 57, 64, 196, 0, 7, 15, 16, 17, 19]] | 3 | 124 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fill fill_n
#define pf push_front
#define pb push_back
#define FOR(i, l, r) for (int i = l; i < r; i++)
#define ROF(i, r, l) for (int i = r; i >= l; i--)
#define comp(v) (v).begin(), (v).end()
#define ff first
#define ss second
#define infile ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fill fill_n
#define pf push_front
#define pb push_back
#define FOR(i, l, r) for (int i = l; i < r; i++)
#define ROF(i, r, l) for (int i = r; i >= l; i--)
#define comp(v) (v).begin(), (v).end()
#define ff first
#define ss second
#define infile ... | [["-", 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 | 331 |
#include <bits/stdc++.h>
using namespace std;
#define INF 1e9
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ALL(x) (x).begin(), (x).end()
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
template <typename T1, typename T2> inline void chmin(T1 &a, T2 b) {
if (... | #include <bits/stdc++.h>
using namespace std;
#define INF 1e9
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define ALL(x) (x).begin(), (x).end()
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef pair<int, int> pii;
template <typename T1, typename T2> inline void chmin(T1 &a, T2 b) {
if (... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 204 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, n) for (int i = a; i < n; i++)
#define per(i, a, n) for (int i = n - 1; i >= a; i--)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define fi first
#define se second
#define SZ(x) ((int)(x).size())
typedef vector<int> VI;
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, n) for (int i = a; i < n; i++)
#define per(i, a, n) for (int i = n - 1; i >= a; i--)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define fi first
#define se second
#define SZ(x) ((int)(x).size())
typedef vector<int> VI;
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 265 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int p = i * 2;
int q = (x - i) * 4;
if (p + q == y) {
cout << "Yes";
break;
}
}
cout << "No";
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int p = i * 2;
int q = (x - i) * 4;
if (p + q == y) {
cout << "Yes";
return 0;
}
}
cout << "No";
}
| [["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 13]] | 1 | 81 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define ll long long
const int mod = 1e9 + 7;
const ll INF = 1e14;
void solve() {
int x, y;
cin >> x >> y;
if (((4 * x - y >= 0 ? 4 * x - y : 1) % 2 == 0) &&
((y - 2 * x >= 0 ? y - 2 * x : 1) % 2 == 0))
cout << "YES";
else
cou... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
#define ll long long
const int mod = 1e9 + 7;
const ll INF = 1e14;
void solve() {
int x, y;
cin >> x >> y;
if (((4 * x - y >= 0 ? 4 * x - y : 1) % 2 == 0) &&
((y - 2 * x >= 0 ? y - 2 * x : 1) % 2 == 0))
cout << "Yes";
else
cou... | [["-", 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 | 132 |
#include <bits/stdc++.h>
#define ALL(obj) begin(obj), end(obj)
#define debug(x) cerr << #x << ": " << x << '\n'
using namespace std;
template <class T> vector<T> make_vec(size_t a) { return vector<T>(a); }
template <class T, class... Ts> auto make_vec(size_t a, Ts... ts) {
return vector<decltype(make_vec<T>(ts...))>(... | #include <bits/stdc++.h>
#define ALL(obj) begin(obj), end(obj)
#define debug(x) cerr << #x << ": " << x << '\n'
using namespace std;
template <class T> vector<T> make_vec(size_t a) { return vector<T>(a); }
template <class T, class... Ts> auto make_vec(size_t a, Ts... ts) {
return vector<decltype(make_vec<T>(ts...))>(... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 259 |
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <list>
#include <map>
#include <vector>
using namespace std;
int main(void) {
int X, Y;
cin >> X >> Y;
for (int i = 0; i < Y; ++i) {
if (2 * i + 4 * (X - i) == Y) {
cout << "Yes";
return 0;
}
}
cout <<... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <list>
#include <map>
#include <vector>
using namespace std;
int main(void) {
int X, Y;
cin >> X >> Y;
for (int i = 0; i <= X; ++i) {
if (2 * i + 4 * (X - i) == Y) {
cout << "Yes";
return 0;
}
}
cout <... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 88 |
#include <algorithm>
#include <cmath>
#include <ctype.h>
#include <iostream>
#include <map>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int tmp = 0;
for (int i = 1; i <= X; i++) {
int tmp = 2 * i + 4 * (X - i);
if (tmp == Y) {
... | #include <algorithm>
#include <cmath>
#include <ctype.h>
#include <iostream>
#include <map>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int tmp = 0;
for (int i = 0; i <= X; i++) {
int tmp = 2 * i + 4 * (X - i);
if (tmp == Y) {
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 100 |
X, Y = map(int, input().split())
ans = 'No'
for i in range(X):
if 2*i + 4*(X-i) == Y:
ans = 'Yes'
break
print(ans) | X, Y = map(int, input().split())
ans = 'No'
for i in range(X+1):
if 2*i + 4*(X-i) == Y:
ans = 'Yes'
break
print(ans) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 54 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define int long long
signed main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= 100; i++) {
for (int j = 0; j <= 100; j++) {
if (i +... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define int long long
signed main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= 100; i++) {
for (int j = 0; j <= 100; j++) {
if (i +... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 114 |
#include <iostream>
int main() {
int A, B;
scanf("%d%d", &A, &B);
if ((A * 2 <= B) && (B <= A * 4) && (B % 2 == 1))
printf("Yes");
else
printf("No");
}
| #include <iostream>
int main() {
int A, B;
scanf("%d%d", &A, &B);
if ((A * 2 <= B) && (B <= A * 4) && (B % 2 == 0))
printf("Yes");
else
printf("No");
}
| [["-", 15, 339, 51, 16, 12, 23, 0, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 12, 13]] | 1 | 67 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.