buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REP1(i, n) for (int i = 1; i <= (n); i++)
#define REPD(i, a, b) for (int i = (a); i < (b); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef ve... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); i++)
#define REP1(i, n) for (int i = 1; i <= (n); i++)
#define REPD(i, a, b) for (int i = (a); i < (b); i++)
#define ALL(v) (v).begin(), (v).end()
using namespace std;
typedef long long ll;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef ve... | [["-", 51, 16, 31, 16, 12, 16, 12, 16, 12, 22], ["+", 51, 16, 31, 16, 12, 16, 12, 16, 12, 22]] | 1 | 461 |
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();
sc.close();
for (int i = 1; i <= X; i++) {
if (2 * i + 4 * (X - i) == Y) {
System.out.println("Yes");
return;
... | 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();
sc.close();
for (int i = 0; i <= X; i++) {
if (2 * i + 4 * (X - i) == Y) {
System.out.println("Yes");
return;
... | [["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499]] | 3 | 117 |
X, Y = map(int, input().split())
fl = 0
for i in range(X):
tsuru = X - i
if(i*4+tsuru*2 == Y):
fl = 1
break
if(fl == 1):
print("Yes")
else:
print("No") | X, Y = map(int, input().split())
fl = 0
for i in range(X+1):
tsuru = X - i
if(i*4+tsuru*2 == Y):
fl = 1
break
if(fl == 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 | 70 |
package main
import (
"bufio"
"fmt"
"math"
"os"
"strconv"
"strings"
"flag"
"runtime"
"runtime/pprof"
)
var magic = 1000000007
var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file")
var memprofile = flag.String("memprofile", "", "write mem profile to file")
func solve() {
io := NewIo(... | package main
import (
"bufio"
"fmt"
"math"
"os"
"strconv"
"strings"
"flag"
"runtime"
"runtime/pprof"
)
var magic = 1000000007
var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file")
var memprofile = flag.String("memprofile", "", "write mem profile to file")
func solve() {
io := NewIo(... | [["-", 8, 196, 0, 7, 0, 430, 15, 16, 17, 18], ["+", 8, 196, 0, 7, 0, 430, 15, 16, 17, 19]] | 7 | 2,254 |
from collections import defaultdict
it = lambda: list(map(int, input().strip().split()))
INF = float('inf')
def solve():
X, Y = it()
if Y % 2:
return False
return 4 * X >= Y
if __name__ == '__main__':
if not solve():
print('No')
else:
print('Yes') | from collections import defaultdict
it = lambda: list(map(int, input().strip().split()))
INF = float('inf')
def solve():
X, Y = it()
if Y % 2:
return False
return 4 * X >= Y >= 2 * X
if __name__ == '__main__':
if not solve():
print('No')
else:
print('Yes') | [["+", 0, 14, 8, 196, 0, 37, 0, 666, 667, 20], ["+", 8, 196, 0, 37, 0, 666, 0, 657, 31, 612], ["+", 8, 196, 0, 37, 0, 666, 0, 657, 17, 48], ["+", 8, 196, 0, 37, 0, 666, 0, 657, 12, 22]] | 5 | 87 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define fr(i, n) for (long long i = 0; i < (n); ++i)
#define Fr(i, n) for (long long i = 1; i <= (n); ++i)
#define ifr(i, n) for (long long i = (n)-1; i >= 0; --i)
#define iFr(i, n) for (long long i = (n); i > 0; --i)
using Graph = vector<vector<int>>;... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define fr(i, n) for (long long i = 0; i < (n); ++i)
#define Fr(i, n) for (long long i = 1; i <= (n); ++i)
#define ifr(i, n) for (long long i = (n)-1; i >= 0; --i)
#define iFr(i, n) for (long long i = (n); i > 0; --i)
using Graph = vector<vector<int>>;... | [["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 12, 13], ["-", 51, 16, 31, 16, 12, 16, 12, 16, 31, 13], ["+", 51, 16, 31, 16, 12, 16, 12, 16, 31, 13]] | 1 | 119 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
for (int i = 0; i < 100; i++)
for (int n = 0; n < 100; n++)
if (i + n == a && i * 2 + n * 4 == b) {
cout << "YES";
return 0;
}
cout << "NO";
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
for (int i = 0; i < 100; i++)
for (int n = 0; n < 100; n++)
if (i + n == a && i * 2 + n * 4 == b) {
cout << "Yes";
return 0;
}
cout << "No";
return 0;
}
| [["-", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 89 |
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
if (y == i * 2 + (x - i) * 4) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
if (y == i * 2 + (x - i) * 4) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
return 0;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 79 |
X, Y = map(int, input().split())
if (2*X <= Y <= 4*X) & (Y%2==0):
print('YES')
else:
print('NO') | X, Y = map(int, input().split())
if (2*X <= Y <= 4*X) & (Y%2==0):
print('Yes')
else:
print('No') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 51 |
X, Y = map(int, input().split())
if Y % 2 == 2 or Y - 2*X < 0 or 4 * X - Y < 0:
print('No')
else:
print('Yes')
| X, Y = map(int, input().split())
if Y % 2 == 1 or Y - 2*X < 0 or 4 * X - Y < 0:
print('No')
else:
print('Yes')
| [["-", 0, 57, 15, 679, 31, 679, 31, 666, 0, 612], ["+", 0, 57, 15, 679, 31, 679, 31, 666, 0, 612]] | 5 | 53 |
# coding:utf-8
x, y = map(int, input().split())
for i in range(1, x + 1):
leg = i * 2 + (x - i) * 4
if leg == y:
print('Yes')
exit()
print('No')
| # coding:utf-8
x, y = map(int, input().split())
for i in range(0, x + 1):
leg = i * 2 + (x - i) * 4
if leg == 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 | 62 |
#include <algorithm>
#include <iomanip> // setprecisionを使用するのに必要 cout << fixed << setprecision(15) << p でpを小数点以下15桁表示
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
#define REPD(i, a, b) f... | #include <algorithm>
#include <iomanip> // setprecisionを使用するのに必要 cout << fixed << setprecision(15) << p でpを小数点以下15桁表示
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
#define REPD(i, a, b) f... | [["-", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59], ["+", 36, 36, 36, 36, 0, 30, 0, 112, 51, 59]] | 1 | 170 |
#include <algorithm>
#include <cassert>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const ll mod = 1... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const ll mod = 1... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 224 |
#!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(X: int, Y: int):
for i in range(1,X+1):
if i*2 + 4*(X-i) == Y:
print(YES)
exit()
print(NO)
exit()
return
# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools ... | #!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(X: int, Y: int):
for i in range(0,X+1):
if i*2 + 4*(X-i) == Y:
print(YES)
exit()
print(NO)
exit()
return
# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools ... | [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 139 |
x, y = map(int, input().split())
for i in range(x):
if 2*i + 4*(x-i) == y:
print("Yes")
quit()
print("No")
| x, y = map(int, input().split())
for i in range(x+1):
if 2*i + 4*(x-i) == y:
print("Yes")
quit()
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"
#define int long long
#define endl '\n'
using namespace std;
typedef long long ll;
typedef long double ld;
#define db(x) cerr << #x << ": " << x << '\n';
#define read(a) \
int a; ... | #include "bits/stdc++.h"
#define int long long
#define endl '\n'
using namespace std;
typedef long long ll;
typedef long double ld;
#define db(x) cerr << #x << ": " << x << '\n';
#define read(a) \
int a; ... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 305 |
x,y=map(int,input().split())
asi=x*2
for i in range(x):
if asi==y:
print("Yes")
exit()
asi+=2
print("No") | x,y=map(int,input().split())
asi=x*2
for i in range(x+1):
if asi==y:
print("Yes")
exit()
asi+=2
print("No") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 52 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, k = 0;
cin >> x >> y;
for (int i = 0; i < x; i++) {
if (4 * i + 2 * (x - i) == y) {
k = -1;
}
}
if (k == -1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, k = 0;
cin >> x >> y;
for (int i = 0; i <= x; i++) {
if (4 * i + 2 * (x - i) == y) {
k = -1;
}
}
if (k == -1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 91 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <string>
#include <unordered_map>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
using namespace std;
template <class T> vector<T> make_vec(size_t a) { return vector<T>(a); }
template <cl... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <string>
#include <unordered_map>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
using namespace std;
template <class T> vector<T> make_vec(size_t a) { return vector<T>(a); }
template <cl... | [["+", 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 | 170 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
// print(fixed << setprecision(10));
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define repk(i, n, k) for (ll i = k; i < (n); i++)
#define all(n) n.begin(), n.end()
#define print(n) cout << n << endl
double PI = acos(-1.0);
int INF = 1e9;
ll LINF ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
// print(fixed << setprecision(10));
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define repk(i, n, k) for (ll i = k; i < (n); i++)
#define all(n) n.begin(), n.end()
#define print(n) cout << n << endl
double PI = acos(-1.0);
int INF = 1e9;
ll LINF ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 109], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 67]] | 1 | 149 |
#include <stdio.h>
int main(void) {
int x, y;
scanf("%d%d", &x, &y);
y -= 2 * x;
puts(y < 0 || y > 2 * x ? "No" : "Yes");
} | #include <stdio.h>
int main(void) {
int x, y;
scanf("%d%d", &x, &y);
y -= 2 * x;
puts(y < 0 || y > 2 * x || y % 2 ? "No" : "Yes");
} | [["+", 0, 2, 3, 4, 0, 41, 15, 16, 17, 106], ["+", 3, 4, 0, 41, 15, 16, 12, 16, 31, 22], ["+", 3, 4, 0, 41, 15, 16, 12, 16, 17, 109], ["+", 3, 4, 0, 41, 15, 16, 12, 16, 12, 13]] | 0 | 54 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
scanf("%d%d", &x, &y);
for (int i = 1; i <= x; i++) {
int L = i * 2 + (x - i) * 4;
if (L == y) {
printf("Yes");
return 0;
}
}
printf("No");
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
scanf("%d%d", &x, &y);
for (int i = 0; i <= x; i++) {
int L = i * 2 + (x - i) * 4;
if (L == y) {
printf("Yes");
return 0;
}
}
printf("No");
}
| [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 86 |
#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;
#define li long
#define ll long long
#define ull unsigned long long
#define ff first
#define ss second
#define pii pair<int, int>
#define pli pair<li, li>
#define pll p... | #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;
#define li long
#define ll long long
#define ull unsigned long long
#define ff first
#define ss second
#define pii pair<int, int>
#define pli pair<li, li>
#define pll p... | [["-", 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 | 342 |
x,y=map(int,input().split())
for i in range(1,x+1):
if 2*i+4*(x-i)==y:
print("Yes")
quit()
print("No") | x,y=map(int,input().split())
for i in range(x+1):
if 2*i+4*(x-i)==y:
print("Yes")
quit()
print("No") | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 58 |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define fst first
#define snd second
#define sz(X) (int)(X).size()
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define fornr(i, n) for (int i = int(n) - 1; i >= 0; i--)
#define forab(i, a, b) for (int i = int(a); i < int(b... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define fst first
#define snd second
#define sz(X) (int)(X).size()
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define fornr(i, n) for (int i = int(n) - 1; i >= 0; i--)
#define forab(i, a, b) for (int i = int(a); i < int(b... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 187 |
#include <bits/stdc++.h>
using namespace std;
#define mk make_pair
#define pb push_back
typedef long long lld;
typedef pair<lld, lld> pr;
typedef priority_queue<lld> max_heap;
typedef priority_queue<lld, vector<lld>, greater<lld>> min_heap;
lld const mod = 1e9 + 7;
lld power(lld x, lld y) {
lld res = 1;
while (y... | #include <bits/stdc++.h>
using namespace std;
#define mk make_pair
#define pb push_back
typedef long long lld;
typedef pair<lld, lld> pr;
typedef priority_queue<lld> max_heap;
typedef priority_queue<lld, vector<lld>, greater<lld>> min_heap;
lld const mod = 1e9 + 7;
lld power(lld x, lld y) {
lld res = 1;
while (y... | [["-", 12, 16, 12, 16, 31, 23, 0, 16, 12, 13], ["+", 12, 16, 12, 16, 31, 23, 0, 16, 12, 22]] | 1 | 382 |
x,y = map(int, input().split())
for i in range(1,101):
for j in range(1,101):
if i+j == x and i*2+j*4==y:
print("Yes")
exit()
print("No")
| x,y = map(int, input().split())
for i in range(101):
for j in range(101):
if i+j == x and i*2+j*4==y:
print("Yes")
exit()
print("No")
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 68 |
#include <bits/stdc++.h>
#include <stdio.h>
#define ll long long
#define fr(i, p, n) for (ll i = p; i < n; i++)
#define fr1(i, p, n) for (ll i = p; i >= n; i--)
#define FAST \
ios::sync_with_stdio(0); ... | #include <bits/stdc++.h>
#include <stdio.h>
#define ll long long
#define fr(i, p, n) for (ll i = p; i < n; i++)
#define fr1(i, p, n) for (ll i = p; i >= n; i--)
#define FAST \
ios::sync_with_stdio(0); ... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 167 |
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << (2 * x <= y && y <= 4 * x && y % 2 == 0 ? "YES" : "NO");
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
cout << (2 * x <= y && y <= 4 * x && y % 2 == 0 ? "Yes" : "No");
return 0;
}
| [["-", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 64, 5, 0, 6], ["-", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6], ["+", 0, 16, 12, 23, 0, 41, 75, 5, 0, 6]] | 1 | 56 |
// itne me hi thakk gaye?
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("-O3")
#define ll long long
#define ull unsigned long long
using ld = long double;
const ll mod = 1e9 + 7;
const ll inf = 1e18;
const ll rk = 256;
const ll mod2 = 998244353;
const ld PI = 3.141592653589793;
#define pb push_back... | // itne me hi thakk gaye?
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("-O3")
#define ll long long
#define ull unsigned long long
using ld = long double;
const ll mod = 1e9 + 7;
const ll inf = 1e18;
const ll rk = 256;
const ll mod2 = 998244353;
const ld PI = 3.141592653589793;
#define pb push_back... | [["+", 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, 67], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 463 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = int64_t;
int main() {
int x, y;
cin >> x >> y;
bool is_ok = false;
for (int i = 1; i <= x; ++i) {
if (i * 2 + (x - i) * 4 == y)
is_ok = true;
}
if (is_ok)
cout << "Yes" << endl;
else
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = int64_t;
int main() {
int x, y;
cin >> x >> y;
bool is_ok = false;
for (int i = 0; i <= x; ++i) {
if (i * 2 + (x - i) * 4 == y)
is_ok = true;
}
if (is_ok)
cout << "Yes" << endl;
else
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 98 |
X, Y = map(int, input().split())
for a in range(X + 1) :
b = X - a
if 2 * a + 4 * b == Y :
print('YES')
break
else :
print('NO') | X, Y = map(int, input().split())
for a in range(X + 1) :
b = X - a
if 2 * a + 4 * b == Y :
print('Yes')
break
else :
print('No') | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 57 |
i = input().split()
i = [int(j) for j in i]
flg = 0
for a in range(i[0]):
if 2*a+4*(i[0]-a)==i[1]:
print("Yes")
flg = 1
if flg==0:
print("No") | i = input().split()
i = [int(j) for j in i]
flg = 0
for a in range(i[0]+1):
if 2*a+4*(i[0]-a)==i[1]:
print("Yes")
flg = 1
if flg==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 |
#include <bits/stdc++.h>
using namespace std;
#ifdef FIO
const int S = 1 << 21;
char p0[S], *p1, *p2;
#ifndef ZXY
#define getchar() \
(p2 == p1 && (p2 = (p1 = p0) + fread(p0, 1, S, stdin)) == p1 ? EOF : *p1++)
#endif
inline int read() {
static int x, c;
... | #include <bits/stdc++.h>
using namespace std;
#ifdef FIO
const int S = 1 << 21;
char p0[S], *p1, *p2;
#ifndef ZXY
#define getchar() \
(p2 == p1 && (p2 = (p1 = p0) + fread(p0, 1, S, stdin)) == p1 ? EOF : *p1++)
#endif
inline int read() {
static int x, c;
... | [["-", 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 | 168 |
#include <bits/stdc++.h>
#define endl '\n'
#define pb push_back
#define mp make_pair
#define MOD 1000000007
#define cont continue
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const i... | #include <bits/stdc++.h>
#define endl '\n'
#define pb push_back
#define mp make_pair
#define MOD 1000000007
#define cont continue
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const i... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 48], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 160 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x + 2 <= y && x * 4 >= y && x % 2 == 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x * 2 <= y && x * 4 >= y && y % 2 == 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 72], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["-", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22]] | 1 | 60 |
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pil pair<int, ll>
#define pli pair<ll, int>
#define ppi pair<pii, int>
#define pip pair<int, pii>
#define ppp pair<pii, pii>
#define pdd pair<double, double>
#define f first
#define s second
#d... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pil pair<int, ll>
#define pli pair<ll, int>
#define ppi pair<pii, int>
#define pip pair<int, pii>
#define ppp pair<pii, pii>
#define pdd pair<double, double>
#define f first
#define s second
#d... | [["-", 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 | 239 |
from sys import stdin
def main():
input = stdin.readline
X,Y = map(int,input().split())
max_ashi = X * 4
min_ashi = X * 2
if (Y <= max_ashi) & (min_ashi <= Y) & (Y % 2 == 0):
print("YES")
else:
print("NO")
if __name__ == "__main__":
main() | from sys import stdin
def main():
input = stdin.readline
X,Y = map(int,input().split())
max_ashi = X * 4
min_ashi = X * 2
if (Y <= max_ashi) & (min_ashi <= Y) & (Y % 2 == 0):
print("Yes")
else:
print("No")
if __name__ == "__main__":
main() | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 85 |
#include "bits/stdc++.h"
using namespace std;
int main() {
long long X, Y;
cin >> X >> Y;
if (Y % 2 != 0)
cout << "NO" << endl;
else {
for (long long i = 0; i <= X; i++) {
if (i * 2 + (X - i) * 4 == Y) {
cout << "YES" << endl;
return 0;
}
}
cout << "NO" << endl;
}
}... | #include "bits/stdc++.h"
using namespace std;
int main() {
long long X, Y;
cin >> X >> Y;
if (Y % 2 != 0)
cout << "No" << endl;
else {
for (long long i = 0; i <= X; i++) {
if (i * 2 + (X - i) * 4 == Y) {
cout << "Yes" << endl;
return 0;
}
}
cout << "No" << endl;
}
}... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 99 |
#include <bits/stdc++.h>
using namespace std;
inline int ctoi(char c) {
if (c < '0' || '9' < c)
throw invalid_argument("ctoi error");
return c - '0';
}
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, k, n) for (int i = (int)(k); i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
tem... | #include <bits/stdc++.h>
using namespace std;
inline int ctoi(char c) {
if (c < '0' || '9' < c)
throw invalid_argument("ctoi error");
return c - '0';
}
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, k, n) for (int i = (int)(k); i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
tem... | [["-", 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 | 264 |
x,y=map(int,input().split())
if (y-2*x)%2==0 and (y-2*x)>=0:
print("Yes")
else:print("No") | x,y=map(int,input().split())
if (y-2*x)%2==0 and x>=(y-2*x)//2>=0:
print("Yes")
else:print("No") | [["+", 0, 656, 0, 57, 15, 679, 12, 666, 0, 22], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 676], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 612]] | 5 | 53 |
#include <bits/stdc++.h>
#define INF 0x3f3f3f3f
#define rep(i, a, n) for (int i = (a); i < (n); i++)
#define per(i, a, n) for (int i = (a); i > (n); i--)
typedef long long ll;
const int maxn = 2e5 + 5;
const int mod = 1e9 + 7;
using namespace std;
void solve() {
ll x, y;
cin >> x >> y;
rep(i, 0, x) {
if (2 *... | #include <bits/stdc++.h>
#define INF 0x3f3f3f3f
#define rep(i, a, n) for (int i = (a); i < (n); i++)
#define per(i, a, n) for (int i = (a); i > (n); i--)
typedef long long ll;
const int maxn = 2e5 + 5;
const int mod = 1e9 + 7;
using namespace std;
void solve() {
ll x, y;
cin >> x >> y;
rep(i, 0, x + 1) {
if ... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 163 |
x,y = map(int,input().split())
for i in range(x):
if (i+1)*2 + (x-i-1)*4 == y:
print("Yes")
exit()
print("No") | x,y = map(int,input().split())
for i in range(x+1):
if (i)*2 + (x-i)*4 == y:
print("Yes")
exit()
print("No") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612], ["-", 0, 657, 31, 657, 31, 23, 0, 657, 17, 72], ["-", 0, 657, 31, 657, 31, 23, 0, 657, 12, 612], ["-", 0, 657, 12, 657, 31, 23, 0, 657, 17, 33], ["-", 0, 657, 12, 657, 31, 23, 0, 657, 12, 612]] | 5 | 60 |
#include "bits/stdc++.h"
// Begin Header {{{
using namespace std;
#ifndef DEBUG
#define dump(...)
#endif
#define all(x) x.begin(), x.end()
#define rep(i, b, e) for (intmax_t i = (b), i##_limit = (e); i < i##_limit; ++i)
#define reps(i, b, e) \
for (intmax_t ... | #include "bits/stdc++.h"
// Begin Header {{{
using namespace std;
#ifndef DEBUG
#define dump(...)
#endif
#define all(x) x.begin(), x.end()
#define rep(i, b, e) for (intmax_t i = (b), i##_limit = (e); i < i##_limit; ++i)
#define reps(i, b, e) \
for (intmax_t ... | [["-", 15, 339, 51, 16, 12, 16, 31, 16, 17, 72], ["+", 51, 16, 12, 16, 31, 16, 12, 16, 17, 48]] | 1 | 906 |
X, Y = map(int, input().split())
for a in range(101):
b = X - a
if 2 * a + 4 * b == Y:
print('Yes')
exit()
print('No') | X, Y = map(int, input().split())
for a in range(X+1):
b = X - a
if 2 * a + 4 * b == Y:
print('Yes')
exit()
print('No') | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 55 |
def resolve():
x, y = map(int, input().split())
for i in range(1, x + 1):
j = x - i
if 2 * i + 4 * j == y:
print("Yes")
return
print("No")
if __name__ == '__main__':
resolve()
| def resolve():
x, y = map(int, input().split())
for i in range(x + 1):
j = x - i
if 2 * i + 4 * j == y:
print("Yes")
return
print("No")
if __name__ == '__main__':
resolve()
| [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 72 |
X, Y = map(int, input().split())
for i in range(1, X+1):
if i*2+(X-i)*4 == Y:
print('Yes')
exit(0)
print('No')
| X, Y = map(int, input().split())
for i in range(X+1):
if i*2+(X-i)*4 == Y:
print('Yes')
exit(0)
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;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
#define all(x) x.begin(), x.end()
#define rep(i, j, n) for (int i = j; i < (int)(n); i++)
#define _GLIBCXX_DEBUG
#define MOD 1000000007
temp... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
#define all(x) x.begin(), x.end()
#define rep(i, j, n) for (int i = j; i < (int)(n); i++)
#define _GLIBCXX_DEBUG
#define MOD 1000000007
temp... | [["-", 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 | 224 |
#include <bits/stdc++.h>
// __builtin_ctz : no of trailing zeros
#define int long long
#define ll long long
#define pp pair<int, int>
#define mod 1000000007
#define trace(x) cerr << #x << ": " << x << " " << endl
#define trace2(x, y) cerr << #x << ": " << x << " | " << #y << ": " << y << endl
#define trace3(x, y, z) ... | #include <bits/stdc++.h>
// __builtin_ctz : no of trailing zeros
#define int long long
#define ll long long
#define pp pair<int, int>
#define mod 1000000007
#define trace(x) cerr << #x << ": " << x << " " << endl
#define trace2(x, y) cerr << #x << ": " << x << " | " << #y << ": " << y << endl
#define trace3(x, y, z) ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60]] | 1 | 301 |
x, y = gets.split.map(&:to_i)
(1..x).each do |xx|
if xx * 2 + (x-xx)* 4 == y
puts 'Yes'
exit
end
end
puts 'No' | x, y = gets.split.map(&:to_i)
(0..x).each do |xx|
if xx * 2 + (x-xx)* 4 == y
puts 'Yes'
exit
end
end
puts 'No' | [["-", 0, 493, 0, 652, 486, 739, 0, 475, 756, 612], ["+", 0, 493, 0, 652, 486, 739, 0, 475, 756, 612]] | 4 | 49 |
#include <bits/stdc++.h>
using namespace std;
typedef int64_t ll;
typedef long double ld;
const ll MOD = 1000000007;
const ll MODA = 998244353;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
long long gcd(long long a, long long b) {
ll gcdmax = max(a, b);
ll gcdmin = min(a, b);
while (true) {
if (gcdmax %... | #include <bits/stdc++.h>
using namespace std;
typedef int64_t ll;
typedef long double ld;
const ll MOD = 1000000007;
const ll MODA = 998244353;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
long long gcd(long long a, long long b) {
ll gcdmax = max(a, b);
ll gcdmin = min(a, b);
while (true) {
if (gcdmax %... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 623 |
#import numpy as np
import sys, math
from itertools import permutations, combinations
from collections import defaultdict, Counter, deque
from math import factorial#, gcd
from bisect import bisect_left #bisect_left(list, value)
sys.setrecursionlimit(10**7)
enu = enumerate
MOD = 10**9+7
def input(): return sys.stdin.rea... | #import numpy as np
import sys, math
from itertools import permutations, combinations
from collections import defaultdict, Counter, deque
from math import factorial#, gcd
from bisect import bisect_left #bisect_left(list, value)
sys.setrecursionlimit(10**7)
enu = enumerate
MOD = 10**9+7
def input(): return sys.stdin.rea... | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 144 |
#include <bits/stdc++.h>
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define vec_input(v) \
for (auto it = v.begin(); it != v.end(); it++) { \
cin >... | #include <bits/stdc++.h>
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define vec_input(v) \
for (auto it = v.begin(); it != v.end(); it++) { \
cin >... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 0, 7, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 15, 339, 51, 16, 31, 16, 31, 23, 0, 25], ["+", 15, 339, 51, 16, 12, 16, 31, 23, 0, 24], ["+", 15, 339, 51, 16, 12, 16, 31, 23, 0, 25]] | 1 | 812 |
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e5 + 5;
const long long mod = 1e9 + 7;
int x, y;
void solve() {
for (int i = 0; i <= x; i++) {
int curr = i * 2;
int rem = (x - i) * 4;
if (curr + rem == y) {
cout << "YES\n";
return;
}
}
cout << "NO\n";
}
int main() {
... | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e5 + 5;
const long long mod = 1e9 + 7;
int x, y;
void solve() {
for (int i = 0; i <= x; i++) {
int curr = i * 2;
int rem = (x - i) * 4;
if (curr + rem == y) {
cout << "Yes\n";
return;
}
}
cout << "No\n";
}
int main() {
... | [["-", 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 | 127 |
// clear adj and visited vector declared globally after each test case
// check for long long overflow
// while adding and subs check if mod becomes -ve
// while using an integer directly in a builtin function add ll
// Mod wale question mein last mein if dalo ie. Ans<0 then ans+=mod;
// Dont keep array name as size or... | // clear adj and visited vector declared globally after each test case
// check for long long overflow
// while adding and subs check if mod becomes -ve
// while using an integer directly in a builtin function add ll
// Mod wale question mein last mein if dalo ie. Ans<0 then ans+=mod;
// Dont keep array name as size or... | [["-", 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 | 317 |
X,Y = map(int,input().split())
for kame in range(1,X+1):
hiki = X-kame
asi = Y-2*kame
if hiki*4==asi:
print("Yes")
exit()
print("No")
| X,Y = map(int,input().split())
for kame in range(X+1):
hiki = X-kame
asi = Y-2*kame
if hiki*4==asi:
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 | 62 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, ini, n) for (int i = ini; i < n; i++)
#define _rep(i, ini, n) for (int i = ini; i >= n; i--)
#define ToEnd(a) a.begin(), a.end()
uint64_t MOD = 1000000007;
int main() {
int x, y;
cin >> x >> y;
string ans = "No";
rep(i, 1, x + 1) {
if (2 * i + 4... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, ini, n) for (int i = ini; i < n; i++)
#define _rep(i, ini, n) for (int i = ini; i >= n; i--)
#define ToEnd(a) a.begin(), a.end()
uint64_t MOD = 1000000007;
int main() {
int x, y;
cin >> x >> y;
string ans = "No";
rep(i, 0, x + 1) {
if (2 * i + 4... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 102 |
x,y=map(int,input().split())
if y%2==0 and y//2-x>0 and 2*x-y//2>0:
print('Yes')
else:
print('No') | x,y=map(int,input().split())
if y%2==0 and y//2-x>=0 and 2*x-y//2>=0:
print('Yes')
else:
print('No') | [["-", 0, 57, 15, 679, 31, 679, 12, 666, 667, 47], ["+", 0, 57, 15, 679, 31, 679, 12, 666, 667, 20], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20]] | 5 | 55 |
X, Y = map(int, input().split())
f = False
for x in range(X):
y = X - x
if x * 4 + y * 2 == Y:
f = True
break
print("Yes" if f else "No") | X, Y = map(int, input().split())
f = False
for x in range(X + 1):
y = X - x
if x * 4 + y * 2 == Y:
f = True
break
print("Yes" if f else "No") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 59 |
x,y = map(int, input().split())
for t in range(101):
k = x-t
if y==t*2+k*4:
print("Yes")
exit()
print("No") | x,y = map(int, input().split())
for t in range(x+1):
k = x-t
if y==t*2+k*4:
print("Yes")
exit()
print("No") | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 31, 22], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 55 |
X,Y=map(int,input().split() )
flag="No"
for i in range(X):
if(4*i+2*(X-i)==Y):
flag="Yes"
print(flag) | X,Y=map(int,input().split() )
flag="No"
for i in range(X+1):
if(4*i+2*(X-i)==Y):
flag="Yes"
print(flag) | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 55 |
#include <bits/stdc++.h>
#define rep(i, cc, n) for (int i = cc; i <= n; ++i)
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int c = X, t = 0;
bool ans = false;
while (0 < c) {
if (2 * c + 4 * t == Y) {
cout << "Yes" << endl;
return 0;
} else {
c--, t++;
}
}
cou... | #include <bits/stdc++.h>
#define rep(i, cc, n) for (int i = cc; i <= n; ++i)
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
int c = X, t = 0;
while (0 <= c) {
if (2 * c + 4 * t == Y) {
cout << "Yes" << endl;
return 0;
} else {
c--, t++;
}
}
cout << "No" << endl;
... | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 147], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19]] | 1 | 100 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int an, legs;
scanf("%d %d", &an, &legs);
if (legs % 2 == 0 && an * 2 <= legs && an * 4 >= legs)
printf("YES");
else
printf("NO");
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int an, legs;
scanf("%d %d", &an, &legs);
if (legs % 2 == 0 && an * 2 <= legs && an * 4 >= legs)
printf("Yes");
else
printf("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 | 65 |
def resolve():
X, Y = map(int, input().split())
for i in range(1, X+1):
turu = 2*i
kame = 4*(X-i)
tot = turu + kame
if tot == Y:
print("Yes")
return
else:
print("No")
if __name__ == "__main__":
resolve()
|
def resolve():
X, Y = map(int, input().split())
for i in range(X+1):
turu = 2*i
kame = 4*(X-i)
tot = turu + kame
if tot == Y:
print("Yes")
return
else:
print("No")
if __name__ == "__main__":
resolve() | [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 82 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll x, y;
cin >> x >> y;
for (ll i = 1; i <= 100; i++) {
ll t = i * 2;
ll r = (x - i) * 4;
if (t + r == y) {
cout << "Yes"
<< "\n";
return 0;
}
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
ll x, y;
cin >> x >> y;
for (ll i = 0; i <= x; i++) {
ll t = i * 2;
ll r = (x - i) * 4;
if (t + r == y) {
cout << "Yes"
<< "\n";
return 0;
}
}
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 112 |
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
INF = 1000000000000
x,y = LI()
flg = False
for i in range(x+1):
val = 2 * i... | import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
INF = 1000000000000
x,y = LI()
flg = False
for i in range(x+1):
val = 2 * i... | [["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6]] | 5 | 158 |
X,Y = (int(x) for x in input().split())
flag = 0
for i in range(X):
if 2 * i + 4 * (X-i) == Y:
flag = 1
break
if flag == 0:
print('No')
else:
print('Yes') | X,Y = (int(x) for x in input().split())
flag = 0
for i in range(X+1):
if 2 * i + 4 * (X-i) == Y:
flag = 1
break
if flag == 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 | 69 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
x, y = map(int, input().split())
for i in range(1, x + 1):
j = x - i
if i * 2 + j * 4 == y:
print("Yes")
return
print("No")
if __name__ == '__main__':
main()
| #!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
x, y = map(int, input().split())
for i in range(x + 1):
j = x - i
if i * 2 + j * 4 == y:
print("Yes")
return
print("No")
if __name__ == '__main__':
main()
| [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 74 |
//#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll, ll>>
#define VVL vector<vector<ll>>
#define VVP ve... | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll, ll>>
#define VVL vector<vector<ll>>
#define VVP ve... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 150 |
if __name__ == "__main__":
x,y = map(int,input().split())
flag = 0
for i in range(x) :
if i * 4 + (x - i) * 2 == y :
print("Yes")
flag = 1
break
if flag == 0 :
print("No") | if __name__ == "__main__":
x,y = map(int,input().split())
flag = 0
for i in range(x + 1) :
if i * 4 + (x - i) * 2 == y :
print("Yes")
flag = 1
break
if flag == 0 :
print("No") | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 70 |
#include <bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool b = false;
for (int i = 1; i <= X; i++) {
int n = 2 * i + 4 * (X - i);
if (n == Y)
b = true;
}
cout << (b ? "Yes" : "No") << endl;
} | #include <bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool b = false;
for (int i = 0; i <= X; i++) {
int n = 2 * i + 4 * (X - i);
if (n == Y)
b = true;
}
cout << (b ? "Yes" : "No") << endl;
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 88 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
// int/long: -2,147,483,648 - 2,147,483,647 (-2^31 <= int < 2^31)
// long/long long: -9,223,372,036,854,775,808 - 9,223,372,036,854,775,807
// (-2^63 <= long < 2^63)
#define INF (1 << 30)
// 1,073,741,824
//= 536,870,912 *2
#define M... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
// int/long: -2,147,483,648 - 2,147,483,647 (-2^31 <= int < 2^31)
// long/long long: -9,223,372,036,854,775,808 - 9,223,372,036,854,775,807
// (-2^63 <= long < 2^63)
#define INF (1 << 30)
// 1,073,741,824
//= 536,870,912 *2
#define M... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 139 |
x , y = map(int,input().split())
bool = False
for i in range(0, x):
leg = 2 * i + 4 *(x -i)
if leg == y :
bool = True
if bool == True:
print('Yes')
else:
print('No') | x , y = map(int,input().split())
bool = False
for i in range(0, x+1):
leg = 2 * i + 4 *(x -i)
if leg == y :
bool = True
if bool == True:
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 | 69 |
a,b = map(int, input().split())
if 2*a <= b <= 4*b and b%2==0:
print('Yes')
else:
print('No') | a,b = map(int, input().split())
if 2*a <= b <= 4*a and b%2==0:
print('Yes')
else:
print('No') | [["-", 0, 57, 15, 679, 31, 666, 0, 657, 12, 22], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 12, 22]] | 5 | 47 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define MOD 1000000007
#define ALL(v) v.begin(), v.end()
#define ALLR(v) v.rbegin(), v.rend()
typedef long long ll;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1}... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define PI 3.14159265359
#define MOD 1000000007
#define ALL(v) v.begin(), v.end()
#define ALLR(v) v.rbegin(), v.rend()
typedef long long ll;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1}... | [["+", 51, 16, 12, 16, 31, 16, 12, 16, 17, 85], ["+", 51, 16, 12, 16, 31, 16, 12, 16, 12, 13]] | 1 | 223 |
X, Y =map(int, input().split())
if (Y-2*X)%2 == 0 and Y < 4*X+1:
print("Yes")
else:
print("No") | X, Y =map(int, input().split())
if (Y-2*X)%2 == 0 and 2*X-1 < Y < 4*X+1:
print("Yes")
else:
print("No") | [["+", 15, 679, 12, 666, 0, 657, 31, 657, 31, 612], ["+", 15, 679, 12, 666, 0, 657, 31, 657, 17, 48], ["+", 15, 679, 12, 666, 0, 657, 31, 657, 12, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 17, 33], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 612], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18]] | 5 | 51 |
x,y = map(int, input().split())
ans="No"
for i in range(1,x+1):
if y==i*2+(x-i)*4:
ans="Yes"
break
print(ans) | x,y = map(int, input().split())
ans="No"
for i in range(0,x+1):
if y==i*2+(x-i)*4:
ans="Yes"
break
print(ans)
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 58 |
x,y=map(int, input().split())
for i in range(x):
for j in range(x):
if i+j==x and 2*i+4*j==y:
print("Yes")
exit()
print("No")
| x,y=map(int, input().split())
for i in range(x+1):
for j in range(x+1):
if i+j==x and 2*i+4*j==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 | 64 |
(X,Y) = map(int,input().split())
for i in range(X):
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, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 58 |
X, Y = map(int, input().split())
for i in range(1, X+1):
num = i*2 + (X-i)*4
if num == Y:
print("Yes")
exit(0)
print("No") | X, Y = map(int, input().split())
for i in range(0, X+1):
num = i*2 + (X-i)*4
if num == Y:
print("Yes")
exit(0)
print("No") | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 62 |
import sys
x, y = map(int, input().split())
for i in range(1, x + 1):
j = x - i
if y == i * 2 + j * 4:
print("Yes")
sys.exit(0)
print("No")
| import sys
x, y = map(int, input().split())
for i in range(0, x + 1):
j = x - i
if y == i * 2 + j * 4:
print("Yes")
sys.exit(0)
print("No")
| [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 64 |
#include <bits/stdc++.h>
#define rep(i, n) for (long long int i = 0; i < n; i++)
#define _rep(i, m, n) for (long long int i = m; i < n; i++)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int MAX_N = 100010;
const ll mod = 1000000007;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1,... | #include <bits/stdc++.h>
#define rep(i, n) for (long long int i = 0; i < n; i++)
#define _rep(i, m, n) for (long long int i = m; i < n; i++)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int MAX_N = 100010;
const ll mod = 1000000007;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1,... | [["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 33]] | 1 | 208 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<ii> vii;
main() {
int x, y;
cin >> x >> y;
if (y & 1)
cout << "No";
else {
if (y >= (2 * x) || y <= (4 * x))
cout << "Yes";
else
cout << "No";
}
} | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<ii> vii;
main() {
int x, y;
cin >> x >> y;
if (y & 1)
cout << "No";
else {
if (y >= (2 * x) && y <= (4 * x))
cout << "Yes";
else
cout << "No";
}
} | [["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 89 |
x,y=map(int, input().split())
if y>2*x and 4*x>y:
if (y-2*x)%2==0 and (4*x-y)%2==0:
print("Yes")
else:
print("No")
else:
print("No") | x,y=map(int, input().split())
if y>=2*x and 4*x>=y:
if (y-2*x)%2==0 and (4*x-y)%2==0:
print("Yes")
else:
print("No")
else:
print("No") | [["-", 0, 656, 0, 57, 15, 679, 31, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 31, 666, 667, 20], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 47], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 20]] | 5 | 76 |
#include <bits/stdc++.h>
using namespace std;
#define M 200005
#define MOD 1000000007
#define PI 3.14159265358979323846
#define ep emplace_back
#define mk make_pair
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
typedef long long int lli;
typedef unsigned long long int ulli;
typedef pa... | #include <bits/stdc++.h>
using namespace std;
#define M 200005
#define MOD 1000000007
#define PI 3.14159265358979323846
#define ep emplace_back
#define mk make_pair
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
typedef long long int lli;
typedef unsigned long long int ulli;
typedef pa... | [["+", 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 | 138 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define ar array
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int x, y;
cin >> x >> y;
for (int a = 1; a < x; a++) {
int b = x - a;
if (2 * a + 4 * b == y) {
cout << "Yes\n";
return 0... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define ar array
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int x, y;
cin >> x >> y;
for (int a = 0; a <= x; a++) {
int b = x - a;
if (2 * a + 4 * b == y) {
cout << "Yes\n";
return ... | [["-", 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 | 100 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define rep(i, a, b) for (i = a; i < b; i++)
ll int large = (ll int)1e18;
ll int mod = (ll int)1e9 + 7;
ll int mod_exp(ll int x, ll int n) {
ll int result = 1;
while (n > 0) {
if (n % 2 == 1)
result = (result * x) % m... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define rep(i, a, b) for (i = a; i < b; i++)
ll int large = (ll int)1e18;
ll int mod = (ll int)1e9 + 7;
ll int mod_exp(ll int x, ll int n) {
ll int result = 1;
while (n > 0) {
if (n % 2 == 1)
result = (result * x) % m... | [["-", 12, 23, 0, 16, 12, 23, 0, 16, 12, 13], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 12, 22]] | 1 | 236 |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int X = scanner.nextInt();
int Y = scanner.nextInt();
scanner.close();
int Turtle = (Y - X * 2) / 2;
if (Turtle < 0) {
System.out.println("No");
retu... | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int X = scanner.nextInt();
int Y = scanner.nextInt();
scanner.close();
int Turtle = (Y - X * 2) / 2;
if (Turtle < 0 || Turtle > X) {
System.out.println("No... | [["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 12, 22]] | 3 | 136 |
/*
* WelcomeToAtCoder.cpp
*
* Created on: 2020/02/19
* Author: black
*/
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <list>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 1; i <= x; ++i) {
if... | /*
* WelcomeToAtCoder.cpp
*
* Created on: 2020/02/19
* Author: black
*/
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <list>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
for (int i = 0; i <= x; ++i) {
if... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 92 |
#include <bits/stdc++.h>
#define pb push_back
#define vii vector<int>
#define task "RESORT"
#define pll pair<ll, ll>
#define pii pair<ll, pair<ll, ll>>
#define fi first
#define se second
using ll = long long;
using ld = long double;
using ull = unsigned long long;
const int mod = 1e9 + 7;
using namespace std;
const in... | #include <bits/stdc++.h>
#define pb push_back
#define vii vector<int>
#define task "RESORT"
#define pll pair<ll, ll>
#define pii pair<ll, pair<ll, ll>>
#define fi first
#define se second
using ll = long long;
using ld = long double;
using ull = unsigned long long;
const int mod = 1e9 + 7;
using namespace std;
const in... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 262 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = 1; i < (int)(n); i++)
#define dunk(n) cout << n << endl
#define all(a) (a).begin(), (a).end()
typedef pair<int, int> P;
typedef long long ll;
int main() {
int x, y... | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = 1; i < (int)(n); i++)
#define dunk(n) cout << n << endl
#define all(a) (a).begin(), (a).end()
typedef pair<int, int> P;
typedef long long ll;
int main() {
int x, y... | [["+", 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 | 113 |
x, y = map(int, input().split())
def hantei(x, y):
for i in range(1, x+1):
if 2 * i + 4 * (x - i) == y:
return True
return False
if hantei(x, y) == True:
print('Yes')
else:
print('No') | x, y = map(int, input().split())
def hantei(x, y):
for i in range(0, x+1):
if 2 * i + 4 * (x - i) == y:
return True
return False
if hantei(x, y) == True:
print('Yes')
else:
print('No') | [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 79 |
#include <bits/stdc++.h>
//#include<cstdio>
//#pragma GCC optimize("Ofast,unroll-loops,no-stack-protector,fast-math")
/*
inline int read(){
int res=0; char ch=getchar_unlocked();
while(ch<'0'||ch>'9') ch=getchar_unlocked();
while(ch>='0'&&ch<='9')
res=(res<<3)+(res<<1)+(ch^48),ch=getchar_unlocke... | #include <bits/stdc++.h>
//#include<cstdio>
//#pragma GCC optimize("Ofast,unroll-loops,no-stack-protector,fast-math")
/*
inline int read(){
int res=0; char ch=getchar_unlocked();
while(ch<'0'||ch>'9') ch=getchar_unlocked();
while(ch>='0'&&ch<='9')
res=(res<<3)+(res<<1)+(ch^48),ch=getchar_unlocke... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 140 |
#include <bits/stdc++.h>
// debug
#define vecprint(v) \
rep(i, v.size()) cout << v[i] << " "; \
cout << endl;
#define setprint(s) \
for (auto i = s.begin(); ... | #include <bits/stdc++.h>
// debug
#define vecprint(v) \
rep(i, v.size()) cout << v[i] << " "; \
cout << endl;
#define setprint(s) \
for (auto i = s.begin(); ... | [["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 48], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 12, 13]] | 1 | 256 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = (0); i < (n); ++i)
#define ALL(obj) (obj).begin(), (obj).end()
#define DEBUG(val) cout << #val << " : " << val << endl
#define MOD 1000000007
int main() {
int x, y;
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) for (int i = (0); i < (n); ++i)
#define ALL(obj) (obj).begin(), (obj).end()
#define DEBUG(val) cout << #val << " : " << val << endl
#define MOD 1000000007
int main() {
int x, y;
... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 111 |
#include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define pii acos(-1)
#define fo(i0n) for (i = 0; i < n; i++)
#define fo(i1n) for (i = 1; i <= n; i++)
#define fo(j0n) for (j = 0; j < n; j++)
#define fo(j1n) for (j = 1; j <= n; j++)
#define fast() ... | #include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define pii acos(-1)
#define fo(i0n) for (i = 0; i < n; i++)
#define fo(i1n) for (i = 1; i <= n; i++)
#define fo(j0n) for (j = 0; j < n; j++)
#define fo(j1n) for (j = 1; j <= n; j++)
#define fast() ... | [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13]] | 1 | 284 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr long long MOD = 1000000007;
constexpr long long INF = 1LL << 60;
const long double PI = acosl(-1.0);
constexpr long double EPS = 1e-11;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr long long MOD = 1000000007;
constexpr long long INF = 1LL << 60;
const long double PI = acosl(-1.0);
constexpr long double EPS = 1e-11;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return ... | [["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 13], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 48]] | 1 | 181 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool nazo = false;
for (int i = 1; i <= X; i++) {
if (i * 2 + (X - i) * 4 == Y) {
nazo = true;
}
}
if (nazo) {
cout << "Yes";
} else {
cout << "No";
}
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y;
cin >> X >> Y;
bool nazo = false;
for (int i = 0; i <= X; i++) {
if (i * 2 + (X - i) * 4 == Y) {
nazo = true;
}
}
if (nazo) {
cout << "Yes";
} else {
cout << "No";
}
} | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 87 |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt(), y = sc.nextInt(), a, b, f = 0;
if (y % 2 == 0) {
System.out.println("No");
} else {
for (int i = 0; i <= x; i++) {
a = i;
b = x - i;... | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int x = sc.nextInt(), y = sc.nextInt(), a, b, f = 0;
if (y % 2 != 0) {
System.out.println("No");
} else {
for (int i = 0; i <= x; i++) {
a = i;
b = x - i;... | [["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 79]] | 3 | 161 |
X,Y = map(int, input().split())
flag=False
for x in range(1,X+1):
if (2*x+4*(X-x))==Y:
flag=True
break
if flag:
print("Yes")
else:
print("No") | X,Y = map(int, input().split())
flag=False
for x in range(0,X+1):
if (2*x+4*(X-x))==Y:
flag=True
break
if flag:
print("Yes")
else:
print("No") | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 69 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.