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())
flag = False
for i in range(X):
if 2 * (i + 1) + 4 * (X - i - 1) == Y:
flag = True
print('Yes' if flag else 'No') | X,Y = map(int,input().split())
flag = False
for i in range(X + 1):
if 2 * (i) + 4 * (X - i) == Y:
flag = True
print('Yes' if flag else 'No') | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 657, 31, 657, 12, 23, 0, 657, 17, 72], ["-", 0, 657, 31, 657, 12, 23, 0, 657, 12, 612], ["-", 0, 657, 12, 657, 12, 23, 0, 657, 17, 33], ["-", 0, 657, 12, 657, 12, 23, 0, 657, 12, 612]] | 5 | 63 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int X, Y;
cin >> X >> Y;
for (int c = 0; c <= 100; ++c) {
for (int t = 0; t <= 100; ++t) {
if ((c + t) == X && (2 * c + 4 * t) == Y) {
cout << "YES" << endl;
return 0;
}
}
}
cout << "NO" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int X, Y;
cin >> X >> Y;
for (int c = 0; c <= 100; ++c) {
for (int t = 0; t <= 100; ++t) {
if ((c + t) == X && (2 * c + 4 * t) == Y) {
cout << "Yes" << endl;
return 0;
}
}
}
cout << "No" << endl;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 99 |
x,y=map(int,input().split())
for i in range(1000):
if 2*i==y-2*x:
if i>x:
print("NO")
quit()
else:
print("YES")
quit()
print("NO") | x,y=map(int,input().split())
for i in range(1000):
if 2*i==y-2*x:
if i>x:
print("No")
quit()
else:
print("Yes")
quit()
print("No") | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 66 |
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();
for (int i = 0; i <= x; i++) {
int a = 2 * i;
int b = 4 * (x - i);
if (a + b == y)
System.out.print("Yes");
... | 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();
for (int i = 0; i <= x; i++) {
int a = 2 * i;
int b = 4 * (x - i);
if (a + b == y) {
System.out.print("Yes");
... | [["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]] | 3 | 119 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
if ((y - x * 2) <= x && (y - x * 2) >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 0) {
if ((y - x * 2) / 2 <= x && (y - x * 2) / 2 >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
} | [["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 85], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 85], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13]] | 1 | 87 |
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
int x, y;
cin >> x >> y;
int flag = 0;
for (int i = 0; i < x; i++) {
if ((4 * i) + (2 * (x - i)) == y) {
flag = 1;
}
}
if (flag)... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
int x, y;
cin >> x >> y;
int flag = 0;
for (int i = 0; i <= x; i++) {
if ((4 * i) + (2 * (x - i)) == y) {
flag = 1;
}
}
if (flag... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 113 |
<?php
fscanf(STDIN, "%d %d", $x, $y);
$flg = false;
for ($i = 0; $i <= 100; $i++) {
for ($j = 0; $j <= 100; $j++) {
if ($i + $j > $x) continue;
$tmp = 2 * $i + 4 * $j;
if ($tmp == $y) {
$flg = true;
break 2;
}
}
}
echo $flg ? 'Yes' : 'No', PHP_EOL;
| <?php
fscanf(STDIN, "%d %d", $x, $y);
$flg = false;
for ($i = 0; $i <= 100; $i++) {
for ($j = 0; $j <= 100; $j++) {
if ($i + $j != $x) continue;
$tmp = 2 * $i + 4 * $j;
if ($tmp == $y) {
$flg = true;
break 2;
}
}
}
echo $flg ? 'Yes' : 'No', PHP_EOL;
| [["-", 0, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 0, 9, 0, 57, 15, 23, 0, 16, 17, 79]] | 6 | 115 |
x,y =[int(x) for x in input().split()]
t = (y - 2*x)
if t >=0 and t%2 == 0 and x - t >=0 :
print('Yes')
else:
print('No')
# y = 4*t + 2*(x - t)
# y = 2*t + 2 *x
# t = (y - 2*x)//2
# t >= 0 and t integer
# x = t + c
# y = 4*t + 2*(x - t)
# y = 2*t + 2*x
# 2*t = y - 2*x
# and c = x - t
| x,y =[int(x) for x in input().split()]
t = (y - 2*x)
if t >=0 and t%2 == 0 and x - t//2 >=0 :
print('Yes')
else:
print('No')
# y = 4*t + 2*(x - t)
# y = 2*t + 2 *x
# t = (y - 2*x)//2
# t >= 0 and t integer
# x = t + c
# y = 4*t + 2*(x - t)
# y = 2*t + 2*x
# 2*t = y - 2*x
# and c = x - t
| [["+", 15, 679, 12, 666, 0, 657, 12, 657, 17, 676], ["+", 15, 679, 12, 666, 0, 657, 12, 657, 12, 612]] | 5 | 69 |
#include "bits/stdc++.h"
using namespace std;
using ll = long long;
#define print(n) cout << n << endl
#define rep(i, a, n) for (ll i = a; i < n; i++)
#define ALL(s) s.begin(), s.end()
#define P pair<ll, ll>
#define vl vector<ll>
#define vi vector<int>
#define vvl vector<vector<ll>>
#define vvi vector<vector<int>>
cons... | #include "bits/stdc++.h"
using namespace std;
using ll = long long;
#define print(n) cout << n << endl
#define rep(i, a, n) for (ll i = a; i < n; i++)
#define ALL(s) s.begin(), s.end()
#define P pair<ll, ll>
#define vl vector<ll>
#define vi vector<int>
#define vvl vector<vector<ll>>
#define vvi vector<vector<int>>
cons... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 784 |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
FastReader s = new FastReader();
int a = s.nextInt();
int b = s.nextInt();
if (4 * a >= b && b >= 2 * a && (4 ... | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) {
FastReader s = new FastReader();
int a = s.nextInt();
int b = s.nextInt();
if (4 * a >= b && b >= 2 * a && (4 ... | [["-", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 64, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["-", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 75, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 306 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define INF (int)(1e9)
#define MAXX 1.1529215e+18
#define inf 999999
#define EPS (1e-7)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, k, n) for (int i = (k); i < (int)(n); i++)
#define ALL(a) a.begin(),... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define INF (int)(1e9)
#define MAXX 1.1529215e+18
#define inf 999999
#define EPS (1e-7)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, k, n) for (int i = (k); i < (int)(n); i++)
#define ALL(a) a.begin(),... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 269 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define dbg puts("It's Just Begining.Wait For The End!!!!!\n")
#define CHECK(x) cout << (#x) << " is " << (x) << "\n";
#define endl printf("\n")
typedef pair<ll, ll> pii;
#define pb push_back
#define ms(a, b) memset(a, b, sizeof(a))
#define in(x) scanf(... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define dbg puts("It's Just Begining.Wait For The End!!!!!\n")
#define CHECK(x) cout << (#x) << " is " << (x) << "\n";
#define endl printf("\n")
typedef pair<ll, ll> pii;
#define pb push_back
#define ms(a, b) memset(a, b, sizeof(a))
#define in(x) scanf(... | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 219 |
x, y = map(int, input().split())
for i in range(1, x+1):
j = x - i
if y == (i*2 + j*4):
print("Yes")
exit()
print("No") | x, y = map(int, input().split())
for i in range(x+1):
j = x - i
if y == (i*2 + j*4):
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 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 1; i < (n); ++i)
const int INF = 1001001001;
using ll = long long;
using P = pair<ll, ll>;
using Graph = vector<string>;
Graph field;
queue<P> q;
int main() {
int a, b;
cin >> a >> b;
rep(i, a + 1) {
if (i * 2 + (a - i) * 4 == b) {
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
const int INF = 1001001001;
using ll = long long;
using P = pair<ll, ll>;
using Graph = vector<string>;
Graph field;
queue<P> q;
int main() {
int a, b;
cin >> a >> b;
rep(i, a + 1) {
if (i * 2 + (a - i) * 4 == b) {
... | [["-", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59]] | 1 | 118 |
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define inf 1000000007
#define fr first
#define sc second
#define eps 1e-9
#define clr(a) memset(a, 0, sizeof(a))
#define sz(x) x.size()
#define sni(x) scanf("%d", &x)
#define snl(x) scanf("%lld", &x)
#define snc(x) scanf("%c", &c);
#define rep(n) for ... |
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define inf 1000000007
#define fr first
#define sc second
#define eps 1e-9
#define clr(a) memset(a, 0, sizeof(a))
#define sz(x) x.size()
#define sni(x) scanf("%d", &x)
#define snl(x) scanf("%lld", &x)
#define snc(x) scanf("%c", &c);
#define rep(n) for ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 838 |
x,y=map(int, input().split())
a="No"
for i in range(x):
if y==x*4-i*2:
a="Yes"
break
print(a) | x,y=map(int, input().split())
a="No"
for i in range(x+1):
if y==x*4-i*2:
a="Yes"
break
print(a) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 50 |
import sys
input = sys.stdin.readline
def main():
X,Y = map(int, input().split())
for i in range(1,X+1):
if (i*2 + (X-i)*4) == Y:
print("Yes")
break
else:
print("No")
if __name__ == '__main__':
main() | import sys
input = sys.stdin.readline
def main():
X,Y = map(int, input().split())
for i in range(0,X+1):
if (i*2 + (X-i)*4) == Y:
print("Yes")
break
else:
print("No")
if __name__ == '__main__':
main() | [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 84 |
x, y = list(map(int, input().split()))
for i in range(1, x+1):
if 2*i + 4*(x-i) == y:
print('Yes')
exit()
print('No') | x, y = list(map(int, input().split()))
for i in range(0, x+1):
if 2*i + 4*(x-i) == 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 | 61 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int N, Y;
cin >> N, Y;
string str = "No";
for (int i = 0; i < N; i++) {
if (Y == i * 2 + (N - i) * 4) {
str = "Yes";
break;
}
}
cout << str << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int N, Y;
cin >> N >> Y;
string str = "No";
for (int i = 0; i <= N; i++) {
if (Y == i * 2 + (N - i) * 4) {
str = "Yes";
break;
}
}
cout << str << endl;
} | [["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 78 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define m0(x) memset(x, -1, sizeof(x))
const int INF = 1e9 + 1;
const ll MOD = 1e9 + 7;
const double PI = 3.141592653589793;
int main(... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define m0(x) memset(x, -1, sizeof(x))
const int INF = 1e9 + 1;
const ll MOD = 1e9 + 7;
const double PI = 3.141592653589793;
int main(... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 138 |
import re
import sys
from bisect import bisect, bisect_left, insort, insort_left
from collections import Counter, defaultdict, deque
from copy import deepcopy
from decimal import Decimal
from itertools import (
accumulate, combinations, combinations_with_replacement, groupby,
permutations, product)
from math im... | import re
import sys
from bisect import bisect, bisect_left, insort, insort_left
from collections import Counter, defaultdict, deque
from copy import deepcopy
from decimal import Decimal
from itertools import (
accumulate, combinations, combinations_with_replacement, groupby,
permutations, product)
from math im... | [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 222 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef long double ldb;
typedef pair<ll, ll> pll;
template <typename T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_or... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef long double ldb;
typedef pair<ll, ll> pll;
template <typename T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_or... | [["+", 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, 33], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 415 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int t = 1;
// cin >> t;
while (t--) {
int i = 0, x = 0, y = 0;
cin >> x >> y;
if (y % 2 == 0 && 2 * x <= y && y <= 4 * x) {
cout << "YES" << endl;
} else
cout << "NO" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int t = 1;
// cin >> t;
while (t--) {
int i = 0, x = 0, y = 0;
cin >> x >> y;
if (y % 2 == 0 && 2 * x <= y && y <= 4 * x) {
cout << "Yes" << endl;
} else
cout << "No" << endl;
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 83 |
#include "bits/stdc++.h"
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int x, y;
cin >> x >> y;
if (y - 2 * x < 0 or y - 2 * x % 2 == 1) {
cout << "No" << endl;
} else {
if (4 * x - y < 0 or 4 * x - y % 2 == 1) {
... | #include "bits/stdc++.h"
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
int x, y;
cin >> x >> y;
if (y - 2 * x < 0 or (y - 2 * x) % 2 == 1) {
cout << "No" << endl;
} else {
if (4 * x - y < 0 or (4 * x - y) % 2 == 1) {
... | [["+", 51, 16, 12, 16, 31, 16, 31, 23, 0, 24], ["+", 51, 16, 12, 16, 31, 16, 31, 23, 0, 25]] | 1 | 126 |
x,y=map(int,input().split())
ans="No"
if (y-2*x)%2==0 and (y-2*x)/2<=x:
ans="Yes"
print(ans) | x,y=map(int,input().split())
ans="No"
if (y-2*x)%2==0 and 0<=(y-2*x)/2<=x:
ans="Yes"
print(ans) | [["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 612], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19]] | 5 | 55 |
many, feet = gets.chomp.split(" ").map(&:to_i)
flag = false
for i in 0..many do
foot = 2 * i + 4 * (many - i)
if foot == feet
flag = true
break
end
end
if flag
puts "YES"
else
puts "NO"
end | many, feet = gets.chomp.split(" ").map(&:to_i)
flag = false
for i in 0..many do
foot = 2 * i + 4 * (many - i)
if foot == feet
flag = true
break
end
end
if flag
puts "Yes"
else
puts "No"
end | [["-", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 65 |
x,y=map(int, input().split())
z = (y - 2*x)
if (y - 2*x)%2 == 0 and z <= x and z >= 0:
print('Yes')
else:
print('No')
| x,y=map(int, input().split())
b = (y - 2*x)/2
if (y - 2*x)%2 == 0 and b <= x and b >= 0:
print('Yes')
else:
print('No')
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 17, 85], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["-", 0, 57, 15, 679, 31, 679, 12, 666, 0, 22], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 0, 22], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 0... | 5 | 60 |
//<editor-fold> DEFINES
#include <bits/stdc++.h>
using namespace std;
#define lll bigint
#define PF push_front
#define watch_shid \
Stopwatch WATCH; \
WATCH.start()
#define mayn main
#define lint ... | //<editor-fold> DEFINES
#include <bits/stdc++.h>
using namespace std;
#define lll bigint
#define PF push_front
#define watch_shid \
Stopwatch WATCH; \
WATCH.start()
#define mayn main
#define lint ... | [["-", 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 | 10,345 |
# coding: utf-8
# Your code here!
X,Y = map(int, input().split())
i=1
while i<=X:
KAME=X-i
TURU=i
if (KAME*4)+(TURU*2)==Y:
print("Yes")
quit()
i+=1
print("No") | # coding: utf-8
# Your code here!
X,Y = map(int, input().split())
i=0
while i<=X:
KAME=X-i
TURU=i
if (KAME*4)+(TURU*2)==Y:
print("Yes")
quit()
i+=1
print("No") | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612]] | 5 | 67 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll x, y;
string ans = "NO";
cin >> x >> y;
if (y % 2 != 0)
cout << ans << endl;
else {
ll y1 = (y / 2 - x);
ll x1 = (2 * x - (y / 2));
if (y1 >= 0 and x1 >= 0) {
ans = "Yes";
}
cout << ans << endl;
... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll x, y;
string ans = "No";
cin >> x >> y;
if (y % 2 != 0)
cout << ans << endl;
else {
ll y1 = ((y / 2) - x);
ll x1 = ((2 * x) - (y / 2));
if (y1 >= 0 and x1 >= 0) {
ans = "Yes";
}
cout << ans << en... | [["-", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 8, 9, 0, 43, 49, 50, 51, 5, 0, 6], ["+", 0, 9, 0, 43, 49, 50, 51, 23, 0, 24], ["+", 49, 50, 51, 23, 0, 16, 31, 23, 0, 25]] | 1 | 103 |
#!python3.8
# -*- coding: utf-8 -*-
# abc170/abc170_b
import sys
s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n... | #!python3.8
# -*- coding: utf-8 -*-
# abc170/abc170_b
import sys
s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n... | [["+", 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], ["+", 8, 196, 0, 57, 15, 679, 12, 666, 667, 19]] | 5 | 182 |
x,y=map(int, input().split())
for turu in range(x):
kame=x-turu
asi=kame*4+turu*2
if asi == y:
print('Yes')
exit()
print('No') | x,y=map(int, input().split())
for turu in range(x+1):
kame=x-turu
asi=kame*4+turu*2
if asi == 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 | 58 |
import java.math.*;
import java.util.*;
import java.util.function.*;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int X = s.nextInt();
int Y = s.nextInt();
if ((Y - 2 * X) >= 0 && (2 * X - 0.5 * Y) > -0 && Y % 2 == 0 &&
(Y - 2 * X) % 2 == 0)... | import java.math.*;
import java.util.*;
import java.util.function.*;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int X = s.nextInt();
int Y = s.nextInt();
if ((Y - 2 * X) >= 0 && (2 * X - 0.5 * Y) >= 0 && Y % 2 == 0 &&
(Y - 2 * X) % 2 == 0)... | [["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["-", 31, 16, 31, 16, 12, 16, 12, 91, 17, 33], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20]] | 3 | 138 |
x, y = [int(i) for i in input().split()]
i = 0
ans = "No"
while i < x:
if 2 * (x + i) == y:
ans = "Yes"
break
else:
i += 1
print(ans)
| x, y = [int(i) for i in input().split()]
i = 0
ans = "No"
while i <= x:
if 2 * (x + i) == y:
ans = "Yes"
break
else:
i += 1
print(ans)
| [["-", 36, 36, 0, 656, 0, 52, 15, 666, 667, 18], ["+", 36, 36, 0, 656, 0, 52, 15, 666, 667, 19]] | 5 | 59 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int ans = 0;
for (int i = 0; i < X + 1; i++) {
if (Y == 4 * X - 2 * i) {
ans++;
}
}
if (ans == 0) {
cout << "NO" << endl;
} else {
cout << "YES" << 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 + 1; i++) {
if (Y == 4 * X - 2 * i) {
ans++;
}
}
if (ans == 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 90 |
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
string ans = "No";
for (int i = 0; i < x; i++) {
if (i * 4 + (x - i) * 2 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
string ans = "No";
for (int i = 0; i <= x; i++) {
if (i * 4 + (x - i) * 2 == y) {
ans = "Yes";
break;
}
}
cout << ans << endl;
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 81 |
x,y=map(int,input().split())
for i in range(100+1):
if i*2+(x-i)*4==y:
print("Yes")
break
else:
print("No") | x,y=map(int,input().split())
for i in range(x+1):
if i*2+(x-i)*4==y:
print("Yes")
break
else:
print("No") | [["-", 0, 7, 12, 652, 3, 4, 0, 657, 31, 612], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22]] | 5 | 56 |
#include <bits/stdc++.h>
#include <iostream>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
/*vector<Type> v;
vector<Type> v();
vector<Type> v(n);
vector<Type> v(n, d);
vector<vector<Type>> vv;
vector<vector<Type>> vv();
vector<vector<Type>> vv(n);
vector<vector<Type>> vv(n, vector<Type>(m));
vector... | #include <bits/stdc++.h>
#include <iostream>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
/*vector<Type> v;
vector<Type> v();
vector<Type> v(n);
vector<Type> v(n, d);
vector<vector<Type>> vv;
vector<vector<Type>> vv();
vector<vector<Type>> vv(n);
vector<vector<Type>> vv(n, vector<Type>(m));
vector... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 86 |
#include <iostream>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool flg = false;
rep(i, X) {
if (i * 2 + (X - i) * 4 == Y) {
cout << "Yes";
flg = true;
break;
}
}
if (!flg)
cout << "No";
return 0;
} | #include <iostream>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool flg = false;
rep(i, X + 1) {
if (i * 2 + (X - i) * 4 == Y) {
cout << "Yes";
flg = true;
break;
}
}
if (!flg)
cout << "No";
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 | 88 |
n, m = gets.chomp.split(" ").map(&:to_i)
y = 2 * n - m / 2.0
x = n - y
if x.to_i == x && y.to_i == y && x >= 0 && y >= 0
puts "YES"
else
puts "NO"
end
| n, m = gets.chomp.split(" ").map(&:to_i)
y = 2 * n - m / 2.0
x = n - y
if x.to_i == x && y.to_i == y && x >= 0 && y >= 0
puts "Yes"
else
puts "No"
end
| [["-", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 64 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define FOR(i, a, n) for (ll i = a; i < (ll)(n); i++)
int main() {
int X, Y;
cin >> X >> Y;
for (int i = 1; i <= X; i++) {
for (int j = X - i; i + j <= X; j++) {
... | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define FOR(i, a, n) for (ll i = a; i < (ll)(n); i++)
int main() {
int X, Y;
cin >> X >> Y;
for (int i = 0; i <= X; i++) {
for (int j = X - i; i + j <= X; j++) {
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 117 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (y % 2 == 1) {
cout << "No" << endl;
} else if (x <= y && 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 (y % 2 == 1) {
cout << "No" << endl;
} else if (2 * x <= y && y <= 2 * 2 * x) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [["+", 15, 339, 51, 16, 31, 16, 31, 16, 31, 13], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 48], ["+", 51, 16, 12, 16, 12, 16, 31, 16, 31, 13], ["+", 51, 16, 12, 16, 12, 16, 31, 16, 17, 48]] | 1 | 75 |
import java.math.*;
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();
if (Y % 2 != 0) {
System.out.println("NO");
} else if ((Y > 4 * X) || (Y < 2 * X)) {
System.out.printl... | import java.math.*;
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();
if (Y % 2 != 0) {
System.out.println("No");
} else if ((Y > 4 * X) || (Y < 2 * X)) {
System.out.printl... | [["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]] | 3 | 127 |
x, y = gets.chomp.split.map(&:to_i)
turtles = (y - 2 * x)/2.0
cranes = x - turtles
if turles.to_i != turtles || turtles > 100 || turtles < 0 || cranes > 100 || cranes < 0
puts "No"
else
puts "Yes"
end | x, y = gets.chomp.split.map(&:to_i)
turtles = (y - 2 * x)/2.0
cranes = x - turtles
if turtles.to_i != turtles || turtles > 100 || turtles < 0 || cranes > 100 || cranes < 0
puts "No"
else
puts "Yes"
end | [["-", 31, 738, 31, 738, 31, 738, 31, 652, 486, 22], ["+", 31, 738, 31, 738, 31, 738, 31, 652, 486, 22]] | 4 | 63 |
#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
#define co(x) cout << x;
#define coe(x) cout << x << endl;
int main() {
int X, Y;
cin >> X >> Y;
if (Y % 2 == 0 && (X * 2 <= Y && Y <= X * 4)) {
coe("YES")
} else
... | #include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
#define co(x) cout << x;
#define coe(x) cout << x << endl;
int main() {
int X, Y;
cin >> X >> Y;
if (Y % 2 == 0 && (X * 2 <= Y && Y <= X * 4)) {
coe("Yes")
} else
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 87 |
#include <iostream>
using namespace std;
int main() {
int x, y, xx;
cin >> x >> y;
xx = 2 * x;
y = y - xx;
if (y >= 0 & y % 2 == 0 & y / 2 <= x) {
cout << "yes";
} else {
cout << "no";
}
} | #include <iostream>
using namespace std;
int main() {
int x, y, xx;
cin >> x >> y;
xx = 2 * x;
y = y - xx;
if (y >= 0 & y % 2 == 0 & y / 2 <= x) {
cout << "Yes";
} else {
cout << "No";
}
} | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 72 |
#include <bits/stdc++.h>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using namespace std;
int main() {
... | #include <bits/stdc++.h>
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
using namespace std;
int main() {
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
typedef long long Int;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int x, y;
cin >> x >> y;
bool ok = false;
for (int i = 0; i <= x; i++) {
if (y == (i * 2) + (x - i) * 4) {
ok = true;
break;
}
}
cout << (ok ? "Yes" : "... | #include <bits/stdc++.h>
using namespace std;
typedef long long Int;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int x, y;
cin >> x >> y;
bool ok = false;
for (int i = 0; i <= x; i++) {
if (y == (i * 2) + (x - i) * 4) {
ok = true;
break;
}
}
cout << (ok ? "Yes" : "... | [["-", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 31, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 99 |
// 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 <algorithm>
#include <cmath>
#include <cstdio>
#inc... |
// 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 <algorithm>
#include <cmath>
#include <cstdio>
#inc... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 185 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 1; i < x; i++) {
int sum = 0;
sum = i * 2 + (x - i) * 4;
if (sum == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
int sum = 0;
sum = i * 2 + (x - i) * 4;
if (sum == 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], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 85 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
for (int i = 0; i <= X; i++) {
int j = X - i;
if (i * 4 + j * 2 == Y) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
for (int i = 0; i <= X; i++) {
int j = X - i;
if (i * 4 + j * 2 == Y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 79 |
#include <bits/stdc++.h>
using namespace std;
// useful library
int long long gcd(int long long a, int long long b) {
return b ? gcd(b, a % b) : a;
} //最大公約数
int long long lcm(int long long a, int long long b) {
return a / gcd(a, b) * b;
} //最小公倍数
int long long GetDigit(int long long num) {
int long long digit = ... | #include <bits/stdc++.h>
using namespace std;
// useful library
int long long gcd(int long long a, int long long b) {
return b ? gcd(b, a % b) : a;
} //最大公約数
int long long lcm(int long long a, int long long b) {
return a / gcd(a, b) * b;
} //最小公倍数
int long long GetDigit(int long long num) {
int long long digit = ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 51, 16, 31, 16, 12, 16, 12, 2, 63, 22]] | 1 | 243 |
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using namespace std;
bool tsurukame(int head, int reg) {
int turu = head;
int kame = 0;
bool a ... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
using namespace std;
bool tsurukame(int head, int reg) {
int turu = head;
int kame = 0;
bool a ... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 20]] | 1 | 146 |
x,y = map(int,input().split())
ans = 0
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())
ans = 0
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 | 66 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define REP(i, m, n) for (int i = (m); i < (n); i++)
#define rep(i, n) REP(i, 0, n)
#define pb push_back
#define all(a) a.begin(), a.end()
#define rall(c) (c).rbegin(), (c).rend()
#define mp make_pair
#define endl '\n'
#define fi first
#define se secon... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define REP(i, m, n) for (int i = (m); i < (n); i++)
#define rep(i, n) REP(i, 0, n)
#define pb push_back
#define all(a) a.begin(), a.end()
#define rall(c) (c).rbegin(), (c).rend()
#define mp make_pair
#define endl '\n'
#define fi first
#define se secon... | [["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 13], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 48]] | 1 | 159 |
#include <bits/stdc++.h> //全てのヘッダファイルをインクルード
//ループ
#define REP(i, n) for (int i = 0; i < n; i++) //普通のループ
#define REPR(i, n) for (int i = n; i >= 0; i--) //逆ループ
#define FOR(i, m, n) for (int i = m; i < n; i++) //最初の数値を指定したループ
//型名省略
typedef long long ll;
//配列要素数
static const int MAX = 200000;
//値
static const ll MX... | #include <bits/stdc++.h> //全てのヘッダファイルをインクルード
//ループ
#define REP(i, n) for (int i = 0; i < n; i++) //普通のループ
#define REPR(i, n) for (int i = n; i >= 0; i--) //逆ループ
#define FOR(i, m, n) for (int i = m; i < n; i++) //最初の数値を指定したループ
//型名省略
typedef long long ll;
//配列要素数
static const int MAX = 200000;
//値
static const ll MX... | [["+", 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 | 178 |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MOD1 1000000007
#define MOD2 998244353
#define LIMIT1 200002
#define LIMIT2 500002
typedef long long ll;
typedef long double ld;
typedef const void cv;
#define rep(i, n) for ((i) = 0; (i) < (n); (i)++)
#define per(i, n) for ((i) = (n)-... | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MOD1 1000000007
#define MOD2 998244353
#define LIMIT1 200002
#define LIMIT2 500002
typedef long long ll;
typedef long double ld;
typedef const void cv;
#define rep(i, n) for ((i) = 0; (i) < (n); (i)++)
#define per(i, n) for ((i) = (n)-... | [["-", 15, 23, 0, 16, 31, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 19], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 17, 20], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 67]] | 0 | 623 |
#include <bits/stdc++.h>
#define debug(a) cout << #a ": " << a << endl
#define IOS ios::sync_with_stdio(false), cin.tie(0)
using namespace std;
typedef long long ll;
int cnt[10];
int main(void) {
IOS;
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
int two = i * 2, four = (x - i) * 3;
if (two + ... | #include <bits/stdc++.h>
#define debug(a) cout << #a ": " << a << endl
#define IOS ios::sync_with_stdio(false), cin.tie(0)
using namespace std;
typedef long long ll;
int cnt[10];
int main(void) {
IOS;
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
int two = i * 2, four = (x - i) * 4;
if (two + ... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13]] | 1 | 111 |
(x, y) = [int(s) for s in input().split()]
ans = 'NO'
if 2 * x <= y <= 4 * x and y % 2 == 0:
ans = 'YES'
print(ans)
| (x, y) = [int(s) for s in input().split()]
ans = 'No'
if 2 * x <= y <= 4 * x and y % 2 == 0:
ans = 'Yes'
print(ans)
| [["-", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 0, 656, 0, 1, 0, 662, 12, 557, 0, 6], ["-", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6], ["+", 64, 196, 0, 1, 0, 662, 12, 557, 0, 6]] | 5 | 53 |
#define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
//マクロ
#define REP(i, n) for (int i = 0; i < (int)(n); ++i)
#define REPS(i, n) for (int i = 1; i <= (int)(n); ++i)... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
//マクロ
#define REP(i, n) for (int i = 0; i < (int)(n); ++i)
#define REPS(i, n) for (int i = 1; i <= (int)(n); ++i)... | [["-", 15, 339, 51, 16, 31, 16, 12, 16, 31, 13], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 31, 13]] | 1 | 368 |
import sys
input = sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
x, y = MI()
if y % 2 == 1:
print("No")
sys.exit()
y = y // 2
if y > x * 2 and y < x:
print("No")
sys.exit()
print("Yes") | import sys
input = sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
x, y = MI()
if y % 2 == 1:
print("No")
sys.exit()
y = y // 2
if y > x * 2 or y < x:
print("No")
sys.exit()
print("Yes") | [["-", 36, 36, 0, 656, 0, 57, 15, 679, 17, 355], ["+", 36, 36, 0, 656, 0, 57, 15, 679, 17, 354]] | 5 | 118 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
int ans = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
for (int j = 0; j <= x; j++) {
if (i + j <= x) {
if (i * 4 + j * 2 == y) {
ans = 1;
break;
}
}
}
}
if (ans) {
cout << "... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
int ans = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
for (int j = 0; j <= x; j++) {
if (i + j == x) {
if (i * 4 + j * 2 == y) {
ans = 1;
break;
}
}
}
}
if (ans) {
cout << "... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 113 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vi = vector<int>;
#define _GLIBCXX_DEBUG
#define IO_STREAM \
cin.tie(0); \
ios::sync_with_std... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vi = vector<int>;
#define _GLIBCXX_DEBUG
#define IO_STREAM \
cin.tie(0); \
ios::sync_with_std... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 175 |
x,y = map(int,input().split())
for i in range(x):
kame = i
tsuru = x-i
ashi = i*4 + tsuru*2
# print(kame,tsuru,ashi)
if ashi == y:
print("Yes")
exit()
print("No") | x,y = map(int,input().split())
for i in range(x+1):
kame = i
tsuru = x-i
ashi = kame*4 + tsuru*2
# print(kame,tsuru,ashi)
if ashi == 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, 1, 0, 662, 12, 657, 31, 657, 31, 22], ["+", 0, 1, 0, 662, 12, 657, 31, 657, 31, 22]] | 5 | 62 |
#include <bits/stdc++.h>
using namespace std;
///------------input------------//
#define fi freopen("in.txt", "r", stdin)
#define fo freopen("out.txt", "w", stdout)
#define sc1(a) scanf("%lld", &a)
#define sc3(a, b, c) scanf("%lld%lld%lld", &a, &b, &c)
#define sc2(a, b) scanf("%lld%lld", &a, &b)
#define scar(arr, n) ... | #include <bits/stdc++.h>
using namespace std;
///------------input------------//
#define fi freopen("in.txt", "r", stdin)
#define fo freopen("out.txt", "w", stdout)
#define sc1(a) scanf("%lld", &a)
#define sc3(a, b, c) scanf("%lld%lld%lld", &a, &b, &c)
#define sc2(a, b) scanf("%lld%lld", &a, &b)
#define scar(arr, n) ... | [["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 60], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 79]] | 1 | 1,591 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define all(v) v.begin(), v.end()
//
int main() {
int x, y;
cin >> x >> y;
rep(i, x + 1) {
if (2 * i + 4 * (x - i) == y) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define all(v) v.begin(), v.end()
//
int main() {
int x, y;
cin >> x >> y;
rep(i, x + 1) {
if (2 * i + 4 * (x - i) == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 86 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<bool> vb;
typedef vector<vl> vvl;
typedef vector<vi> vvi;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<pll> vpll;
typedef vector<pii> vpii;
typedef vector<vpll> vvpl... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<bool> vb;
typedef vector<vl> vvl;
typedef vector<vi> vvi;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<pll> vpll;
typedef vector<pii> vpii;
typedef vector<vpll> vvpl... | [["+", 15, 339, 51, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 217 |
# 整数の入力
# スペース区切りの整数の入力
X, Y = map(int, input().split())
def myfunc(X, Y):
for tsuru in range(101):
turtle = X - tsuru
legs = turtle * 4 + tsuru * 2
if legs == Y:
return "Yes"
return "No"
print(myfunc(X,Y)) | X, Y = map(int, input().split())
def myfunc(X, Y):
for tsuru in range(X+1):
turtle = X - tsuru
legs = turtle * 4 + tsuru * 2
if legs == Y:
return "Yes"
return "No"
print(myfunc(X,Y)) | [["-", 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 | 70 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll mod = 1e9 + 0LL;
ll MOD = 1e18 + 0LL;
#define line printf("\n")
double pi = acos(-1);
ll md = 1000000007;
ll gcd(ll a, ll b) {
// if(b>a) swap(a,b);
return b == 0 ? abs(a) : gcd(b, a % b);
}
ll poW(ll a, ll n) {
if (n == 0)
return 1;
i... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll mod = 1e9 + 0LL;
ll MOD = 1e18 + 0LL;
#define line printf("\n")
double pi = acos(-1);
ll md = 1000000007;
ll gcd(ll a, ll b) {
// if(b>a) swap(a,b);
return b == 0 ? abs(a) : gcd(b, a % b);
}
ll poW(ll a, ll n) {
if (n == 0)
return 1;
i... | [["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 25], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 253 |
import sys
x, y = map(int, input().split())
#鶴a匹、亀x-a匹とする
for a in range(1, x + 1):
if y == 4 * x - 2 * a:
print('Yes')
sys.exit()
print('No') | import sys
x, y = map(int, input().split())
#鶴a匹、亀x-a匹とする
for a in range(x + 1):
if y == 4 * x - 2 * a:
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, 21]] | 5 | 59 |
#include <bits/stdc++.h>
using namespace std;
signed main() {
int a, b;
scanf("%d %d", &a, &b);
int mn = a * 2, mx = a * 4;
if (mn <= b && mx >= b && b % 2 == 0)
puts("YES");
else
puts("NO");
} | #include <bits/stdc++.h>
using namespace std;
signed main() {
int a, b;
scanf("%d %d", &a, &b);
int mn = a * 2, mx = a * 4;
if (mn <= b && mx >= b && b % 2 == 0)
puts("Yes");
else
puts("No");
}
| [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 74 |
#include <iostream>
#include <string>
using namespace std;
#define yes "Yes"
#define no "No"
// int m,n;
// int i,j,k,l;
// int a,b,c,d,e,f,g;
// int sum,total;
// long long int ;
// float ;
// double ;
// char a[101],b[101],s[101],t[101],u[101];
int main() {
int x, y, i, j, k;
cin >> x;
cin >> y;
for (size_t ... | #include <iostream>
#include <string>
using namespace std;
#define yes "Yes"
#define no "No"
// int m,n;
// int i,j,k,l;
// int a,b,c,d,e,f,g;
// int sum,total;
// long long int ;
// float ;
// double ;
// char a[101],b[101],s[101],t[101],u[101];
int main() {
int x, y, i, j, k;
cin >> x;
cin >> y;
for (size_t ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 102 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const long long MOD_NUMBER = 1000000007;
const double PI = 3.14159265358979323846;
int main() {
ll x, y;
cin >> x >> y;
if (4 * x < y || y % 2) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const long long MOD_NUMBER = 1000000007;
const double PI = 3.14159265358979323846;
int main() {
ll x, y;
cin >> x >> y;
if (4 * x < y || y % 2 || y < 2 * x) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| [["+", 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 | 75 |
#include <bits/stdc++.h>
using namespace std;
#define ull unsigned long long
#define ll long long
#define ld long double
#define endl << "\n"
#define sp << " "
#define spp << " " <<
#define allv(v) v.begin(), v.end()
#define lmax 9223372036854775807
#define lmin -9223372036854775807
#define lopi() for (i = 0; i < n; +... | #include <bits/stdc++.h>
using namespace std;
#define ull unsigned long long
#define ll long long
#define ld long double
#define endl << "\n"
#define sp << " "
#define spp << " " <<
#define allv(v) v.begin(), v.end()
#define lmax 9223372036854775807
#define lmin -9223372036854775807
#define lopi() for (i = 0; i < n; +... | [["-", 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 | 182 |
#!/usr/bin/env python3
X, Y = [int(s) for s in input().split()]
if Y % 2 != 0:
print('No')
low = Y // 4 + (Y % 4 != 0)
high = Y // 2
if low <= X <= high:
print('Yes')
else:
print('No')
| #!/usr/bin/env python3
X, Y = [int(s) for s in input().split()]
if Y % 2 != 0:
print('No')
exit()
low = Y // 4 + (Y % 4 != 0)
high = Y // 2
if low <= X <= high:
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 | 73 |
// love yjl forever
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pii pair<int, int>
#define mp make_pair
#define pb push_back
#define fi first
#define se second
const int INF = 0x3f3f3f3f;
int n, m;
int main() {
/* freopen("","r",stdin);
freopen("","w",stdout);*/
int i;
cin... | // love yjl forever
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pii pair<int, int>
#define mp make_pair
#define pb push_back
#define fi first
#define se second
const int INF = 0x3f3f3f3f;
int n, m;
int main() {
/* freopen("","r",stdin);
freopen("","w",stdout);*/
int i;
cin... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 109 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i <= (n); i++)
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool flag = 0;
rep(i, Y) {
if (4 * X - 2 * i == Y) {
int K = X - i;
if (i + K == X) {
flag = 1;
}
}
}
if (flag) {
cout << "Yes" << endl;... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i <= (n); i++)
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool flag = 0;
rep(i, X) {
if (4 * X - 2 * i == Y) {
int K = X - i;
if (i + K == X) {
flag = 1;
}
}
}
if (flag) {
cout << "Yes" << endl;... | [["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 78]] | 1 | 107 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int t = a * 2;
int k = a * 4;
if (b >= t && t <= k && b % 2 == 0) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
int t = a * 2;
int k = a * 4;
if (b >= t && b <= k && b % 2 == 0) {
cout << "Yes" << endl;
}
else {
cout << "No" << endl;
}
} | [["-", 15, 339, 51, 16, 31, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 31, 22]] | 1 | 74 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int x, y;
cin >> x >> y;
bool ok = false;
for (int i = 1; i <= x; ++i) {
if (2 * i + 4 * (x - i) == y)
ok = true;
}
if (ok)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int x, y;
cin >> x >> y;
bool ok = false;
for (int i = 0; i <= x; ++i) {
if (2 * i + 4 * (x - i) == y)
ok = true;
}
if (ok)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 94 |
X,Y = list(map(int,input().split()))
flag = 0
for x in range(1,X+1):
if 4 * X - 2 * x == Y:
flag = 1
if X == 1 and Y == 2:
flag = 1
if X == 1 and Y == 4:
flag = 1
if flag == 1:
print('Yes')
else:
print('No')
| X,Y = list(map(int,input().split()))
flag = 0
for x in range(0,X+1):
if 4 * X - 2 * x == Y:
flag = 1
break
if X == 1 and Y == 2:
flag = 1
if X == 1 and Y == 4:
flag = 1
if flag == 1:
print('Yes')
else:
print('No') | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]] | 5 | 91 |
import sys
X,Y = map(int,input().split())
for a in range(X):
kame = a+1
tsuru = X-kame
if kame * 2 + tsuru * 4 == Y:
print("Yes")
sys.exit()
print("No")
| import sys
X,Y = map(int,input().split())
for a in range(X+1):
kame = a
tsuru = X-kame
if kame * 4 + tsuru * 2 == Y:
print("Yes")
sys.exit()
print("No")
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 72], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612], ["-", 0, 57, 15, 666, 0, 657, 31, 657, 12, 612], ["+", 0, 57, 15, 666, 0, 657, 31, 657, 12, 612], ["-", 0, 57, 15, 666, 0, 657, 12, 657, ... | 5 | 64 |
package main
import (
"bufio"
"fmt"
"io"
"os"
"sort"
"strconv"
)
var (
x, y int
)
func main() {
x = readi()
y = readi()
for i := 1; i <= x; i++ {
turu := i
kame := x - i
if y == (turu*2 + kame*4) {
fmt.Println("Yes")
return
}
}
fmt.Println("No")
}
/*-------------------utilities----------... | package main
import (
"bufio"
"fmt"
"io"
"os"
"sort"
"strconv"
)
var (
x, y int
)
func main() {
x = readi()
y = readi()
for i := 0; i <= x; i++ {
turu := i
kame := x - i
if y == (turu*2 + kame*4) {
fmt.Println("Yes")
return
}
}
fmt.Println("No")
}
/*-------------------utilities----------... | [["-", 0, 7, 0, 430, 10, 431, 12, 432, 0, 433], ["+", 0, 7, 0, 430, 10, 431, 12, 432, 0, 433]] | 7 | 946 |
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
using namespace std;
#define pi 3.14159265358979
int main() {
int x, total;
cin >> x >> total;
rep(kame, x) {
int... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < n; i++)
using ll = long long;
using namespace std;
#define pi 3.14159265358979
int main() {
int x, total;
cin >> x >> total;
rep(kame, x + 1) {
... | [["+", 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 | 126 |
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define repk(i, k, n) for (ll i = k; i < (ll)(n); ++i)
#define MOD 1000000007
typedef long long ll;
using namespace std;
int ans, cnt;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int X, Y;
cin >> X >> Y;
rep(i, 1000) {
... | #include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define repk(i, k, n) for (ll i = k; i < (ll)(n); ++i)
#define MOD 1000000007
typedef long long ll;
using namespace std;
int ans, cnt;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int X, Y;
cin >> X >> Y;
rep(i, X + 1) {... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 31, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 117 |
#include <stdio.h>
#include <stdlib.h>
int main() {
int x, y;
scanf("%i %i", &x, &y);
if (y % 2 == 1 || x * 4 < y || x * 2 > y) {
puts("NO");
return 0;
} else {
for (int i = 0; i <= x; i++) {
if (y - i * 4 - 2 * (x - i) == 0) {
puts("YES");
return 0;
}
}
}
puts("... | #include <stdio.h>
#include <stdlib.h>
int main() {
int x, y;
scanf("%i %i", &x, &y);
if (y % 2 == 1 || x * 4 < y || x * 2 > y) {
puts("No");
return 0;
} else {
for (int i = 0; i <= x; i++) {
if (y - i * 4 - 2 * (x - i) == 0) {
puts("Yes");
return 0;
}
}
}
puts("... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 119 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, n;
cin >> a >> n;
for (int i = 0; i <= a; i++) {
if (4 * i + 2 * (a - i) == n) {
cout << "YES";
return 0;
}
}
cout << "NO" << endl;
} | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int a, n;
cin >> a >> n;
for (int i = 0; i <= a; i++) {
if ((4 * i) + 2 * (a - i) == n) {
cout << "Yes";
return 0;
}
}
cout << "No" << endl;
} | [["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 24], ["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 25], ["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 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 | 76 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int x, y, asi, husoku;
cin >> x >> y;
rep(i, x) {
asi = (2 * (x - i)) + 4 * i;
if (asi == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i <= (int)(n); i++)
int main() {
int x, y, asi;
cin >> x >> y;
rep(i, x) {
asi = (2 * (x - i)) + 4 * i;
if (asi == y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22]] | 1 | 89 |
xy = gets.chomp.split
x = xy[0].to_i
y = xy[1].to_i
result = false
if y.even? && y <= x * 4
(1..x).each do |i|
j = x - i
if i * 2 + j * 4 == y
result = true
break
end
end
end
puts result ? "Yes" : "No"
| xy = gets.chomp.split
x = xy[0].to_i
y = xy[1].to_i
result = false
if y.even? && y <= x * 4
(0..x).each do |i|
j = x - i
if i * 2 + j * 4 == y
result = true
break
end
end
end
puts result ? "Yes" : "No"
| [["-", 64, 749, 0, 652, 486, 739, 0, 475, 756, 612], ["+", 64, 749, 0, 652, 486, 739, 0, 475, 756, 612]] | 4 | 79 |
X, Y = map(int, input().split())
if Y % 2 == 0:
if 4 * X > Y and 2*X < Y:
print("Yes")
else:
print("No")
else:
print("No")
| X, Y = map(int, input().split())
if Y % 2 == 0:
if 4 * X >= Y and 2*X <= Y:
print("Yes")
else:
print("No")
else:
print("No")
| [["-", 64, 196, 0, 57, 15, 679, 31, 666, 667, 47], ["+", 64, 196, 0, 57, 15, 679, 31, 666, 667, 20], ["-", 64, 196, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 64, 196, 0, 57, 15, 679, 12, 666, 667, 19]] | 5 | 58 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
int x, y, four, legs, lastlegs;
bool flag = true;
cin >> x >> y;
four = y / 4;
for (int i = four; i >= 0; i--) {
legs = 4 * i;
lastlegs = y - legs;
if (lastlegs % 2 == 0) {
if (... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
int main() {
int x, y, four, legs, lastlegs;
bool flag = true;
cin >> x >> y;
four = y / 4;
for (int i = four; i >= 0; i--) {
legs = 4 * i;
lastlegs = y - legs;
if (lastlegs % 2 == 0) {
if (... | [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 122 |
x, y = map(int, input().split())
a = (2 + 2 * x - y) / 2
b = (y - 2 * x) / 2
if a >= 0 and b >= 0 and a % 1 == 0 and b % 1 == 0:
print('Yes')
else:
print('No') | x, y = map(int, input().split())
a = (4 * x - y) / 2
b = (y - 2 * x) / 2
if a >= 0 and b >= 0 and a % 1 == 0 and b % 1 == 0:
print('Yes')
else:
print('No') | [["-", 12, 657, 31, 23, 0, 657, 31, 657, 31, 612], ["-", 12, 657, 31, 23, 0, 657, 31, 657, 17, 72], ["-", 31, 23, 0, 657, 31, 657, 12, 657, 31, 612], ["+", 12, 657, 31, 23, 0, 657, 31, 657, 31, 612]] | 5 | 75 |
L = [int(i) for i in input().split()]
flag=0
for i in range(L[0]):
if L[1]-i*2-(L[0]-i)*4==0:
print("Yes")
flag=1
break
if flag==0:
print("No") | L = [int(i) for i in input().split()]
flag=0
for i in range(L[0]+1):
# print(L[1]-i*2-(L[0]-i)*4)
if L[1]-i*2-(L[0]-i)*4==0:
print("Yes")
flag=1
break
# if L[1]<i*2+(L[0]-i)*4:
# print("df")
# break
if flag==0:
print("No") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 76 |
import sys
import math
import collections
import decimal
import itertools
from collections import deque
from functools import reduce
import heapq
#n = int(input())
x, y = map(int, sys.stdin.readline().split())
#s = input()
#x = list(map(int, sys.stdin.readline().split()))
if 2 ** x > y:
print("No")
sys.e... | import sys
import math
import collections
import decimal
import itertools
from collections import deque
from functools import reduce
import heapq
#n = int(input())
x, y = map(int, sys.stdin.readline().split())
#s = input()
#x = list(map(int, sys.stdin.readline().split()))
if 2 * x > y:
print("No")
sys.ex... | [["-", 0, 656, 0, 57, 15, 666, 0, 657, 17, 578], ["+", 0, 656, 0, 57, 15, 666, 0, 657, 17, 48]] | 5 | 100 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
typedef long long ll;
#define PI 3.14159265359
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define mp make_pair
#define all(v) v.begin... |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
typedef long long ll;
#define PI 3.14159265359
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define mp make_pair
#define all(v) v.begin... | [["+", 51, 16, 12, 23, 0, 16, 31, 23, 0, 24], ["-", 51, 16, 12, 23, 0, 16, 31, 16, 17, 72], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 17, 48], ["+", 51, 16, 12, 23, 0, 16, 31, 23, 0, 25]] | 1 | 803 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int a = 2 * X - Y / 2;
int b = Y / 2 - X;
if (Y % 2 == 0 && a >= 0 && b >= 0) {
cout << "YES" << endl;
} else
cout << "NO" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int a = 2 * X - Y / 2;
int b = Y / 2 - X;
if (Y % 2 == 0 && a >= 0 && b >= 0) {
cout << "Yes" << endl;
} else
cout << "No" << endl;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 78 |
x, y = map(int, input().split())
if (4*x >= y and y%2 == 0):
print("Yes")
else:
print("No") | x, y = map(int, input().split())
if (4*x >= y >= 2*x and y % 2 == 0):
print("Yes")
else:
print("No")
| [["+", 0, 57, 15, 23, 0, 679, 31, 666, 667, 20], ["+", 15, 23, 0, 679, 31, 666, 0, 657, 31, 612], ["+", 15, 23, 0, 679, 31, 666, 0, 657, 17, 48], ["+", 15, 23, 0, 679, 31, 666, 0, 657, 12, 22]] | 5 | 45 |
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <typeinfo>
#include <vector>
using ... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <typeinfo>
#include <vector>
using ... | [["+", 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 | 141 |
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int a = x;
int b = 0;
int ans = 0;
if (y % 2 == 1) {
cout << "No" << endl;
} else {
for (int i = 0; i < x; i++) {
if ((a * 2 + b * 4) == y) {
ans++;
cout << "Y... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int a = x;
int b = 0;
int ans = 0;
if (y % 2 == 1) {
cout << "No" << endl;
} else {
for (int i = 0; i <= x; i++) {
if ((a * 2 + b * 4) == y) {
ans++;
cout << "... | [["-", 75, 76, 0, 9, 0, 7, 15, 16, 17, 18], ["+", 75, 76, 0, 9, 0, 7, 15, 16, 17, 19]] | 1 | 130 |
x,y =map(int,input().split())
p=0
for i in range(x):
t=i
k=x-t
tashi=4*t
kashi=2*k
if tashi+kashi==y:
p=1
print('Yes')
break
if p==0:
print('No') | x,y =map(int,input().split())
p=0
for i in range(x+1):
t=i
k=x-t
tashi=2*t
kashi=4*k
if tashi+kashi==y:
p=1
print('Yes')
break
if p==0:
print('No')
| [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 31, 612], ["+", 8, 196, 0, 1, 0, 662, 12, 657, 31, 612]] | 5 | 73 |
/*
* Project: AtCoder Beginners Contest 170 B - Crane and Turtle
* Author: toms74209200 <https://github.com/toms74209200>
*
* Created on 2020/06/14
* Copyright (c) 2020 toms74209200
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
#include <cstdio>
using ... | /*
* Project: AtCoder Beginners Contest 170 B - Crane and Turtle
* Author: toms74209200 <https://github.com/toms74209200>
*
* Created on 2020/06/14
* Copyright (c) 2020 toms74209200
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
*/
#include <cstdio>
using ... | [["-", 51, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 12, 22]] | 1 | 130 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.