Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
9 values
p03129
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << (a > (b + 1) / 2 ? "YES" : "NO") << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << (a > (b - 1) * 2 ? "YES" : "NO") << endl; }
[ "misc.opposites", "expression.operator.arithmetic.change", "control_flow.loop.for.condition.change", "io.output.change" ]
930,763
930,764
u991713078
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << (a > b * 2 - 1 ? "YES" : "NO") << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << (a > (b - 1) * 2 ? "YES" : "NO") << endl; }
[ "expression.operation.binary.remove" ]
930,765
930,764
u991713078
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << (a > b ? "YES" : "NO") << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; cout << (a > (b - 1) * 2 ? "YES" : "NO") << endl; }
[ "expression.operation.binary.add" ]
930,766
930,764
u991713078
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main(void) { int n, k; cin >> n >> k; int count = 1; for (int i = 1; i <= n; i += 2) { count++; } if (count >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; int main(void) { int n, k; cin >> n >> k; int count = 0; for (int i = 1; i <= n; i += 2) { count++; } if (count >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "literal.number.change", "variable_declaration.value.change" ]
930,767
930,768
u485821416
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0)->sync_with_stdio(false); int n, k; cin >> n >> k; bool ok = false; if (k == 1) ok = true; else if (n % 2) { if (n / 2 > k) ok = true; } else { if (n / 2 >= k) ok = true; } if (ok) cout << "YES" << '\n'; else cout << "NO" << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(0)->sync_with_stdio(false); int n, k; cin >> n >> k; bool ok = false; if (k == 1) ok = true; else if (n % 2) { if (n / 2 + 1 >= k) ok = true; } else { if (n / 2 >= k) ok = true; } if (ok) cout << "YES" << '\n'; else cout << "NO" << '\n'; return 0; }
[ "control_flow.branch.if.condition.change" ]
930,771
930,772
u596385287
cpp
p03129
#include <algorithm> #include <climits> #include <cmath> #include <iostream> #include <string> #include <utility> #include <vector> using namespace std; int main() { int n, k; cin >> n >> k; if (((n + 1) / 2) - k >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <algorithm> #include <climits> #include <cmath> #include <iostream> #include <string> #include <utility> #include <vector> using namespace std; int main() { int n, k; cin >> n >> k; if (((n + 1) / 2) - k >= 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,776
930,777
u239409893
cpp
p03129
#include <algorithm> #include <climits> #include <cmath> #include <iostream> #include <string> #include <utility> #include <vector> using namespace std; int main() { int n, k; cin >> n >> k; if ((n + 1) / 2 - k >= 0) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <algorithm> #include <climits> #include <cmath> #include <iostream> #include <string> #include <utility> #include <vector> using namespace std; int main() { int n, k; cin >> n >> k; if (((n + 1) / 2) - k >= 0) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,778
930,777
u239409893
cpp
p03129
#include <algorithm> #include <functional> #include <iostream> #include <queue> #include <set> #include <string> #include <vector> #define DB cerr << "D" << endl #define pb push_back using namespace std; using ll = long long; using ld = long double; const int INF = 1e9; const ll LINF = 1e18; const double dINF = 1e18; const ld ldINF = 1e18; const double EPS = 1e-6; template <typename T, typename U, typename O> void caut(T a, U b, O c) { cout << "(" << a << "," << b << "," << c << ") "; } template <typename T, typename U> void caut(T a, U b) { cout << "(" << a << "," << b << ") "; } template <typename T> void caut(T a) { cout << "(" << a << ") "; } using P = pair<double, int>; const ll M = 1e9 + 7; void add(ll &x, ll y) { x += y; x %= M; } void chmax(ll &x, ll y) { if (x < y) x = y; } int main() { int n, k; cin >> n >> k; if (n >= 2 * k - 1) cout << "Yes" << endl; else cout << "No" << endl; } // ・配列の大きさok? ・priority_queueはgreater? ・debug消した? // ・落ち着いて。提出まで4分待ってね……WJ……1/10……2/10…… // Thank you for making problems and running the contest
#include <algorithm> #include <functional> #include <iostream> #include <queue> #include <set> #include <string> #include <vector> #define DB cerr << "D" << endl #define pb push_back using namespace std; using ll = long long; using ld = long double; const int INF = 1e9; const ll LINF = 1e18; const double dINF = 1e18; const ld ldINF = 1e18; const double EPS = 1e-6; template <typename T, typename U, typename O> void caut(T a, U b, O c) { cout << "(" << a << "," << b << "," << c << ") "; } template <typename T, typename U> void caut(T a, U b) { cout << "(" << a << "," << b << ") "; } template <typename T> void caut(T a) { cout << "(" << a << ") "; } using P = pair<double, int>; const ll M = 1e9 + 7; void add(ll &x, ll y) { x += y; x %= M; } void chmax(ll &x, ll y) { if (x < y) x = y; } int main() { int n, k; cin >> n >> k; if (n >= 2 * k - 1) cout << "YES" << endl; else cout << "NO" << endl; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,779
930,780
u548163222
cpp
p03129
#include <algorithm> #include <cctype> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <istream> #include <map> #include <math.h> #include <set> #include <sstream> #include <string> #include <vector> // cout << fixed << setprecision(20) << *** << endl; #define rep(i, N) for (int i = 0; i < (int)N; ++i) typedef long long ll; using namespace std; int main() { ll A, B; cin >> A >> B; if (A % 2 == 0) { if ((A / 2) * 2 >= B) cout << "YES" << endl; else cout << "NO" << endl; } else { if ((A / 2) + 1 >= B) cout << "YES" << endl; else cout << "NO" << endl; } }
#include <algorithm> #include <cctype> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <istream> #include <map> #include <math.h> #include <set> #include <sstream> #include <string> #include <vector> // cout << fixed << setprecision(20) << *** << endl; #define rep(i, N) for (int i = 0; i < (int)N; ++i) typedef long long ll; using namespace std; int main() { ll A, B; cin >> A >> B; if (A % 2 == 0) { if ((A / 2) >= B) cout << "YES" << endl; else cout << "NO" << endl; } else { if ((A / 2) + 1 >= B) cout << "YES" << endl; else cout << "NO" << endl; } }
[ "expression.operation.binary.remove" ]
930,783
930,784
u230139835
cpp
p03129
#include <bits/stdc++.h> #define all(v) v.begin(), v.end() #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; struct point { int x; int y; }; int i, j, k, count1 = 0, count2 = 0; int main() { int n, k; cin >> n >> k; cout << (n >= (k - 1) * 2 ? "YES" : "NO") << endl; }
#include <bits/stdc++.h> #define all(v) v.begin(), v.end() #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; struct point { int x; int y; }; int i, j, k, count1 = 0, count2 = 0; int main() { int n, k; cin >> n >> k; cout << (n >= k * 2 - 1 ? "YES" : "NO") << endl; }
[ "expression.operation.binary.add" ]
930,785
930,786
u225660136
cpp
p03129
#include <bits/stdc++.h> using namespace std; struct Fast { Fast() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); } } fast; long long mod = 1000000007; long long modpow(long long m, long long n) { if (n == 0) return 1; if (n % 2 == 0) { long long t = modpow(m, n / 2); return (t * t) % mod; } else { return (modpow(m, n - 1) * m) % mod; } } void yes() { cout << "Yes" << endl; exit(0); } void no() { cout << "No" << endl; exit(0); } #define REP(i, n) for (long long i = 0; i < (n); i++) struct LCA { vector<vector<int>> par; vector<int> d; int n; LCA(vector<vector<int>> graph, int root) { n = graph.size(); par.resize(n, vector<int>(30)); d.resize(n, 0); function<void(int, int, int)> dfs = [&](int c, int p, int depth) { d[c] = depth; par[c][0] = p; for (auto ch : graph[c]) { if (ch != p) dfs(ch, c, depth + 1); } }; dfs(0, 0, 0); for (int j = 1; j < 30; j++) { REP(i, n) { par[i][j] = par[par[i][j - 1]][j - 1]; } } } int getdistance(int u, int v) { return (d[u] + d[v]) - 2 * (d[query(u, v)]); } int query(int u, int v) { if (d[u] > d[v]) { swap(u, v); } for (int i = 29; 0 <= i; i--) { if (d[u] <= d[par[v][i]]) { v = par[v][i]; } } /* LCA */ for (int i = 29; 0 <= i; i--) { if (par[v][i] != par[u][i]) { v = par[v][i]; u = par[u][i]; } } if (u == v) { return u; } else { return par[v][0]; } } }; struct UnionFind { vector<int> parent, size; UnionFind(int n) { parent.resize(n, -1); size.resize(n, 1); } void unite(int x, int y) { if (same(x, y)) { return; } x = root(x); y = root(y); if (size[x] <= size[y]) { swap(x, y); } parent[y] = x; size[x] += size[y]; } bool same(int x, int y) { return (root(x) == root(y)); } int root(int x) { while (parent[x] != -1) { x = parent[x]; } return x; } int getsize(int x) { return size[root(x)]; } }; int n, m; vector<vector<int>> graph; void aoj(vector<int> bs) { REP(i, bs.size() - 1) { cout << bs[i] << " "; } cout << bs[bs.size() - 1] << endl; } signed main() { int n, k; cin >> n >> k; if (k <= n / 2 + 1) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; struct Fast { Fast() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); } } fast; long long mod = 1000000007; long long modpow(long long m, long long n) { if (n == 0) return 1; if (n % 2 == 0) { long long t = modpow(m, n / 2); return (t * t) % mod; } else { return (modpow(m, n - 1) * m) % mod; } } void yes() { cout << "Yes" << endl; exit(0); } void no() { cout << "No" << endl; exit(0); } #define REP(i, n) for (long long i = 0; i < (n); i++) struct LCA { vector<vector<int>> par; vector<int> d; int n; LCA(vector<vector<int>> graph, int root) { n = graph.size(); par.resize(n, vector<int>(30)); d.resize(n, 0); function<void(int, int, int)> dfs = [&](int c, int p, int depth) { d[c] = depth; par[c][0] = p; for (auto ch : graph[c]) { if (ch != p) dfs(ch, c, depth + 1); } }; dfs(0, 0, 0); for (int j = 1; j < 30; j++) { REP(i, n) { par[i][j] = par[par[i][j - 1]][j - 1]; } } } int getdistance(int u, int v) { return (d[u] + d[v]) - 2 * (d[query(u, v)]); } int query(int u, int v) { if (d[u] > d[v]) { swap(u, v); } for (int i = 29; 0 <= i; i--) { if (d[u] <= d[par[v][i]]) { v = par[v][i]; } } /* LCA */ for (int i = 29; 0 <= i; i--) { if (par[v][i] != par[u][i]) { v = par[v][i]; u = par[u][i]; } } if (u == v) { return u; } else { return par[v][0]; } } }; struct UnionFind { vector<int> parent, size; UnionFind(int n) { parent.resize(n, -1); size.resize(n, 1); } void unite(int x, int y) { if (same(x, y)) { return; } x = root(x); y = root(y); if (size[x] <= size[y]) { swap(x, y); } parent[y] = x; size[x] += size[y]; } bool same(int x, int y) { return (root(x) == root(y)); } int root(int x) { while (parent[x] != -1) { x = parent[x]; } return x; } int getsize(int x) { return size[root(x)]; } }; int n, m; vector<vector<int>> graph; void aoj(vector<int> bs) { REP(i, bs.size() - 1) { cout << bs[i] << " "; } cout << bs[bs.size() - 1] << endl; } signed main() { int n, k; cin >> n >> k; if (k <= (n + 1) / 2) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
930,789
930,790
u687204015
cpp
p03129
#include <algorithm> #include <assert.h> #include <bitset> #include <complex> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef pair<int, int> P; typedef long long ll; typedef long double ld; const int inf = 1e9 + 7; const ll longinf = 1LL << 60; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) #define rep(i, n) REP(i, 0, n) #define F first #define S second const int mx = 1000010; const ll mod = 1e9 + 7; int main() { int n, k; cin >> n >> k; if ((n + 1) / 2 >= k) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <algorithm> #include <assert.h> #include <bitset> #include <complex> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef pair<int, int> P; typedef long long ll; typedef long double ld; const int inf = 1e9 + 7; const ll longinf = 1LL << 60; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) #define rep(i, n) REP(i, 0, n) #define F first #define S second const int mx = 1000010; const ll mod = 1e9 + 7; int main() { int n, k; cin >> n >> k; if ((n + 1) / 2 >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,795
930,796
u980909653
cpp
p03129
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; int main() { int N, K; cin >> N >> K; if (N % 2 == 0) { if (N / 2 == K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { if (N / 2 + 1 == K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; int main() { int N, K; cin >> N >> K; if (N % 2 == 0) { if (N / 2 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { if (N / 2 + 1 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
930,810
930,811
u629548179
cpp
p03129
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; int main() { int N, K; cin >> N >> K; if (N % 2 == 0) { if (N / 2 == K) { cout << "Yes" << endl; } else { cout << "No" << endl; } } else { if (N / 2 + 1 == K) { cout << "Yes" << endl; } else { cout << "No" << endl; } } }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; using ll = long long; int main() { int N, K; cin >> N >> K; if (N % 2 == 0) { if (N / 2 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { if (N / 2 + 1 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,812
930,811
u629548179
cpp
p03129
#include <bits/stdc++.h> using namespace std; #define pb push_back #define fi first #define se second #define mp make_pair #define all(x) (x).begin(), (x).end() #define rep(i, n) for (int i = 0; i < (n); ++i) #define repp(i, a, b) for (int i = a; i <= (b); ++i) #define repr(i, a, b) for (int i = a; i >= (b); --i) #define bit(n) (1LL << (n)) #define len(x) ((ll)(x).size()) #define debug(var) cout << "[" << #var << "]\n" << var << endl #define int long long typedef long long ll; const int INF = 1001001001001001001ll; const ll LINF = 1001001001001001001ll; const int MOD = 1000000007; const double EPS = 1e-9; template <typename T> ostream &operator<<(ostream &s, const vector<T> &v) { int len = v.size(); for (int i = 0; i < len; ++i) { s << v[i]; if (i < len - 1) s << ' '; } return s; } template <typename T> ostream &operator<<(ostream &s, const vector<vector<T>> &vv) { int len = vv.size(); for (int i = 0; i < len; ++i) { s << vv[i]; if (i != len - 1) s << '\n'; } return s; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } __attribute__((constructor)) void initial() { cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(15); } signed main() { int N, K; cin >> N >> K; int k = (N + 2) / 2; bool ok = k >= K; if (ok) cout << "YES\n"; else cout << "NO\n"; }
#include <bits/stdc++.h> using namespace std; #define pb push_back #define fi first #define se second #define mp make_pair #define all(x) (x).begin(), (x).end() #define rep(i, n) for (int i = 0; i < (n); ++i) #define repp(i, a, b) for (int i = a; i <= (b); ++i) #define repr(i, a, b) for (int i = a; i >= (b); --i) #define bit(n) (1LL << (n)) #define len(x) ((ll)(x).size()) #define debug(var) cout << "[" << #var << "]\n" << var << endl #define int long long typedef long long ll; const int INF = 1001001001001001001ll; const ll LINF = 1001001001001001001ll; const int MOD = 1000000007; const double EPS = 1e-9; template <typename T> ostream &operator<<(ostream &s, const vector<T> &v) { int len = v.size(); for (int i = 0; i < len; ++i) { s << v[i]; if (i < len - 1) s << ' '; } return s; } template <typename T> ostream &operator<<(ostream &s, const vector<vector<T>> &vv) { int len = vv.size(); for (int i = 0; i < len; ++i) { s << vv[i]; if (i != len - 1) s << '\n'; } return s; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } __attribute__((constructor)) void initial() { cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(15); } signed main() { int N, K; cin >> N >> K; int k = (N + 1) / 2; bool ok = k >= K; if (ok) cout << "YES\n"; else cout << "NO\n"; }
[ "literal.number.change", "expression.operation.binary.change" ]
930,815
930,816
u995725911
cpp
p03129
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; int main() { int n, k; cin >> n >> k; if (n / 2 + 1 < k) cout << "NO" << endl; else cout << "YES" << endl; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; int main() { int n, k; cin >> n >> k; if ((n - 1) / 2 + 1 < k) cout << "NO" << endl; else cout << "YES" << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
930,817
930,818
u754114382
cpp
p03129
#include <bits/stdc++.h> using namespace std; typedef long long ll; int gcd(int a, int b) { return b != 0 ? gcd(b, a % b) : a; } // MAX int lcm(int a, int b) { return a * b / gcd(a, b); } // MIN main() { int n, k; cin >> n >> k; int che = n - (n % 2); if (che >= k) cout << "YES" << endl; else cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int gcd(int a, int b) { return b != 0 ? gcd(b, a % b) : a; } // MAX int lcm(int a, int b) { return a * b / gcd(a, b); } // MIN main() { int n, k; cin >> n >> k; int che = n - n / 2; if (che >= k) cout << "YES" << endl; else cout << "NO" << endl; }
[ "expression.operator.arithmetic.change", "expression.operation.binary.change" ]
930,819
930,820
u157433024
cpp
p03129
#include <bits/stdc++.h> using ll = long long; using namespace std; const int INFint = 2e9 + 1; const ll INFll = 2e18 + 1; ll MOD = 1e9 + 7; ll gcd(ll a, ll b) { return __gcd(a, b); } //最大公約数 ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } //最小公倍数 int main() { int N, K; cin >> N >> K; if ((N + 1) / 2 >= K) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using ll = long long; using namespace std; const int INFint = 2e9 + 1; const ll INFll = 2e18 + 1; ll MOD = 1e9 + 7; ll gcd(ll a, ll b) { return __gcd(a, b); } //最大公約数 ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } //最小公倍数 int main() { int N, K; cin >> N >> K; if ((N + 1) / 2 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,823
930,824
u991846372
cpp
p03129
#include <bits/stdc++.h> using ll = long long; using namespace std; const int INFint = 2e9 + 1; const ll INFll = 2e18 + 1; ll MOD = 1e9 + 7; ll gcd(ll a, ll b) { return __gcd(a, b); } //最大公約数 ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } //最小公倍数 int main() { int N, K; cin >> N >> K; if (N + 1 / 2 >= K) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <bits/stdc++.h> using ll = long long; using namespace std; const int INFint = 2e9 + 1; const ll INFll = 2e18 + 1; ll MOD = 1e9 + 7; ll gcd(ll a, ll b) { return __gcd(a, b); } //最大公約数 ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } //最小公倍数 int main() { int N, K; cin >> N >> K; if ((N + 1) / 2 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,825
930,824
u991846372
cpp
p03129
#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) #define FORR(i, m, n) for (int i = (m); i >= (n); --i) #define equals(a, b) (fabs((a) - (b)) < EPS) using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; const ll mod = 1000000007; // const ll mod = 998244353; const int inf = 1e9 + 10; const ll INF = 1e18; const ld EPS = 1e-10; const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1}; const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1}; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (a > b) { a = b; return 1; } return 0; } int main() { ios::sync_with_stdio(false); cin.tie(0); cout << fixed << setprecision(25); int n, k; cin >> n >> k; cout << ((n + 1) / 2 <= k ? "YES" : "NO") << '\n'; return 0; }
#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) #define FORR(i, m, n) for (int i = (m); i >= (n); --i) #define equals(a, b) (fabs((a) - (b)) < EPS) using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; const ll mod = 1000000007; // const ll mod = 998244353; const int inf = 1e9 + 10; const ll INF = 1e18; const ld EPS = 1e-10; const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1}; const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1}; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (a > b) { a = b; return 1; } return 0; } int main() { ios::sync_with_stdio(false); cin.tie(0); cout << fixed << setprecision(25); int n, k; cin >> n >> k; cout << ((n + 1) / 2 >= k ? "YES" : "NO") << '\n'; return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "io.output.change" ]
930,831
930,832
u759721333
cpp
p03129
#include <algorithm> #include <iostream> #include <string> int main() { int N, K; std::cin >> N >> K; std::cout << ((N + 1) / 2 >= K ? "Yes" : "No") << std::endl; }
#include <algorithm> #include <iostream> #include <string> int main() { int N, K; std::cin >> N >> K; std::cout << ((N + 1) / 2 >= K ? "YES" : "NO") << std::endl; }
[ "literal.string.change", "literal.string.case.change", "expression.operation.binary.change" ]
930,838
930,839
u821432765
cpp
p03129
#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 N, K; cin >> N, K; if (N % 2 == 0) { if (N / 2 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { if ((N / 2) + 1 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } return 0; } /*compile g++ code.cpp ./a.out run*/
#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 N, K; cin >> N >> K; if (N % 2 == 0) { if (N / 2 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { if ((N / 2) + 1 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } return 0; } /*compile g++ code.cpp ./a.out run*/
[]
930,853
930,854
u767481489
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int N, K; cin >> N >> K; cout << (((N + 1) / 2 >= K) ? "Yes" : "No") << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int N, K; cin >> N >> K; cout << (((N + 1) / 2 >= K) ? "YES" : "NO") << endl; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,855
930,856
u217508499
cpp
p03129
#include <array> #include <bits/stdc++.h> using namespace std; using ULL = unsigned long long; using UL = unsigned; using LL = long long; #define rep(i, n) for (UL i = 0; i < (n); i++) struct Problem { void Solve() { UL N, K; cin >> N >> K; if ((N + 1) / 2 < K) cout << "No" << endl; else cout << "Yes" << endl; } Problem(); }; int main() { unique_ptr<Problem> p(new Problem()); p->Solve(); return 0; } Problem::Problem() { cout << fixed << setprecision(10); }
#include <array> #include <bits/stdc++.h> using namespace std; using ULL = unsigned long long; using UL = unsigned; using LL = long long; #define rep(i, n) for (UL i = 0; i < (n); i++) struct Problem { void Solve() { UL N, K; cin >> N >> K; if ((N + 1) / 2 < K) cout << "NO" << endl; else cout << "YES" << endl; } Problem(); }; int main() { unique_ptr<Problem> p(new Problem()); p->Solve(); return 0; } Problem::Problem() { cout << fixed << setprecision(10); }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,866
930,867
u331948661
cpp
p03129
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using vl = vector<ll>; template <class T> using vc = vector<T>; template <class T> using vvc = vector<vector<T>>; const ll MOD = 1e9 + 7; const ll INF = 1e16; const ld EPS = 1e-11; const ld PI = acos(-1.0L); #define eb emplace_back #define all(x) (x).begin(), (x).end() #define rep(i, n) for (ll i = 0; i < (n); i++) #define repr(i, n) for (ll i = (n)-1; i >= 0; i--) #define repe(i, l, r) for (ll i = (l); i < (r); i++) #define reper(i, l, r) for (ll i = (r)-1; i >= (l); i--) template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; } void init() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(15); } //--------------------------------------------------------------------------------// int main() { init(); ll N, K; cin >> N >> K; cout << ((N + 1) / 2 <= K ? "YES" : "NO") << endl; }
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using vl = vector<ll>; template <class T> using vc = vector<T>; template <class T> using vvc = vector<vector<T>>; const ll MOD = 1e9 + 7; const ll INF = 1e16; const ld EPS = 1e-11; const ld PI = acos(-1.0L); #define eb emplace_back #define all(x) (x).begin(), (x).end() #define rep(i, n) for (ll i = 0; i < (n); i++) #define repr(i, n) for (ll i = (n)-1; i >= 0; i--) #define repe(i, l, r) for (ll i = (l); i < (r); i++) #define reper(i, l, r) for (ll i = (r)-1; i >= (l); i--) template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; } void init() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(15); } //--------------------------------------------------------------------------------// int main() { init(); ll N, K; cin >> N >> K; cout << (K <= (N + 1) / 2 ? "YES" : "NO") << endl; }
[ "expression.operation.binary.remove" ]
930,872
930,873
u722535636
cpp
p03129
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define REP(i, d, n) for (int i = (d); i < (n); ++i) #define all(v) v.begin(), v.end() using ll = long long; using P = pair<int, int>; int main() { int n, k; cin >> n >> k; if (n <= k && (n + 1) / 2 >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (n); ++i) #define REP(i, d, n) for (int i = (d); i < (n); ++i) #define all(v) v.begin(), v.end() using ll = long long; using P = pair<int, int>; int main() { int n, k; cin >> n >> k; if (n >= k && (n + 1) / 2 >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
930,876
930,875
u561143568
cpp
p03129
#include "bits/stdc++.h" using namespace std; typedef long long int ll; typedef pair<ll, ll> pi; typedef pair<pair<ll, ll>, ll> pii; vector<ll> vec; vector<vector<ll>> vec2; ll MOD = 1000000007; ll INF = 1145141919454519; //問題読み間違えた... int main() { ll N, K; cin >> N >> K; //奇数同士を選ぶと最大の選び方ができる if (N / 2 + 1 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include "bits/stdc++.h" using namespace std; typedef long long int ll; typedef pair<ll, ll> pi; typedef pair<pair<ll, ll>, ll> pii; vector<ll> vec; vector<vector<ll>> vec2; ll MOD = 1000000007; ll INF = 1145141919454519; //問題読み間違えた... int main() { ll N, K; cin >> N >> K; //奇数同士を選ぶと最大の選び方ができる if (N / 2 + N % 2 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
930,877
930,878
u048791623
cpp
p03129
#include "bits/stdc++.h" using namespace std; typedef long long int ll; typedef pair<ll, ll> pi; typedef pair<pair<ll, ll>, ll> pii; vector<ll> vec; vector<vector<ll>> vec2; ll MOD = 1000000007; ll INF = 1145141919454519; int main() { ll N, K; cin >> N >> K; if (N - 1 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include "bits/stdc++.h" using namespace std; typedef long long int ll; typedef pair<ll, ll> pi; typedef pair<pair<ll, ll>, ll> pii; vector<ll> vec; vector<vector<ll>> vec2; ll MOD = 1000000007; ll INF = 1145141919454519; //問題読み間違えた... int main() { ll N, K; cin >> N >> K; //奇数同士を選ぶと最大の選び方ができる if (N / 2 + N % 2 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "control_flow.branch.if.condition.change" ]
930,879
930,878
u048791623
cpp
p03129
#include <bits/stdc++.h> using namespace std; #define lp(start, finish) for (int i = start; i < finish; i++) #define read freopen("input.txt", "r", stdin); #define fast ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); int main() { // read int n, k; cin >> n >> k; int gap = 0; lp(1, n + 1) { gap++; i++; } if (gap == k) cout << "YES\n"; else cout << "NO\n"; return 0; }
#include <bits/stdc++.h> using namespace std; #define lp(start, finish) for (int i = start; i < finish; i++) #define read freopen("input.txt", "r", stdin); #define fast ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); int main() { // read int n, k; cin >> n >> k; int gap = 0; lp(1, n + 1) { gap++; i++; } if (gap >= k) cout << "YES\n"; else cout << "NO\n"; return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
930,882
930,883
u369847413
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int n, k; cin >> n >> k; string ans = "NO"; if ((n / 2) + (n % 2) <= k) { ans = "YES"; } cout << ans << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n, k; cin >> n >> k; string ans = "NO"; if ((n / 2) + (n % 2) >= k) { ans = "YES"; } cout << ans << endl; return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
930,884
930,885
u323864528
cpp
p03129
#include <bits/stdc++.h> using namespace std; #define rep(i, j, n) for (int i = (int)(j); i < (int)(n); i++) #define REP(i, j, n) for (int i = (int)(j); i <= (int)(n); i++) #define MOD 1000000007 #define int long long #define ALL(a) (a).begin(), (a).end() #define vi vector<int> #define vii vector<vi> #define pii pair<int, int> #define priq priority_queue<int> #define disup(A, key) distance(A.begin(), upper_bound(ALL(A), (int)(key))) #define dislow(A, key) distance(A.begin(), lower_bound(ALL(A), (int)(key))) #define tii tuple<int, int, int> signed main() { int N, K; cin >> N >> K; string ans = "YES"; if ((N + 1) / 2 >= K) ans = "NO"; cout << ans << endl; }
#include <bits/stdc++.h> using namespace std; #define rep(i, j, n) for (int i = (int)(j); i < (int)(n); i++) #define REP(i, j, n) for (int i = (int)(j); i <= (int)(n); i++) #define MOD 1000000007 #define int long long #define ALL(a) (a).begin(), (a).end() #define vi vector<int> #define vii vector<vi> #define pii pair<int, int> #define priq priority_queue<int> #define disup(A, key) distance(A.begin(), upper_bound(ALL(A), (int)(key))) #define dislow(A, key) distance(A.begin(), lower_bound(ALL(A), (int)(key))) #define tii tuple<int, int, int> signed main() { int N, K; cin >> N >> K; string ans = "YES"; if ((N + 1) / 2 < K) ans = "NO"; cout << ans << endl; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
930,886
930,887
u347057617
cpp
p03129
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author champon */ #include <fstream> #include <iostream> #include <bits/stdc++.h> using namespace std; #define ll long long #define inf 9e18 #define ceill(a, b) (a + b - 1) / b #define ok cout << "ok" << endl; #define sp << " " << ll mod = 1e9 + 7; void ans(bool b, ostream &out = cout) { out << (b ? "Yes" : "No") << endl; } void ans2(bool b, ostream &out = cout) { out << (b ? "YES" : "NO") << endl; } template <typename T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <typename T> inline bool chmin(T &a, T b) { if (b < a) { a = b; return true; } return false; } template <typename A, size_t N, typename T> void Fill(A (&array)[N], const T &val) { fill((T *)array, (T *)(array + N), val); } int dx[] = {1, 0, -1, 0, 1, -1, 1, -1}; int dy[] = {0, 1, 0, -1, 1, -1, -1, 1}; #ifndef INCLUDE_DEBUG_HPP #define INCLUDE_DEBUG_HPP class debug { public: template <typename T> void vdeb(T vec); template <typename T1, typename T2> void adeb(T1 *arr, T2 n); template <typename T> void mdeb(T mp); }; #endif // INCLUDE_DEBUG_HPP template <typename T> void debug::vdeb(T vec) { cout << "#vector set debug" << endl; for (auto vv : vec) cout << vv << " "; cout << endl; } template <typename T1, typename T2> void debug::adeb(T1 *arr, T2 n) { cout << "#adebug" << endl; for (int i = 0; i <= n; i++) cout << arr[i] << " "; cout << endl; } template <typename T> void debug::mdeb(T mp) { cout << "#map pair debug" << endl; for (auto const &m : mp) cout << m.first sp m.second << endl; } debug dbg; class AAntiAdjacency { public: void solve(std::istream &in, std::ostream &out) { int n, k; in >> n >> k; ans2(k <= n - 1, out); } }; int main() { AAntiAdjacency solver; std::istream &in(std::cin); std::ostream &out(std::cout); solver.solve(in, out); return 0; }
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author champon */ #include <fstream> #include <iostream> #include <bits/stdc++.h> using namespace std; #define ll long long #define inf 9e18 #define ceill(a, b) (a + b - 1) / b #define ok cout << "ok" << endl; #define sp << " " << ll mod = 1e9 + 7; void ans(bool b, ostream &out = cout) { out << (b ? "Yes" : "No") << endl; } void ans2(bool b, ostream &out = cout) { out << (b ? "YES" : "NO") << endl; } template <typename T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <typename T> inline bool chmin(T &a, T b) { if (b < a) { a = b; return true; } return false; } template <typename A, size_t N, typename T> void Fill(A (&array)[N], const T &val) { fill((T *)array, (T *)(array + N), val); } int dx[] = {1, 0, -1, 0, 1, -1, 1, -1}; int dy[] = {0, 1, 0, -1, 1, -1, -1, 1}; #ifndef INCLUDE_DEBUG_HPP #define INCLUDE_DEBUG_HPP class debug { public: template <typename T> void vdeb(T vec); template <typename T1, typename T2> void adeb(T1 *arr, T2 n); template <typename T> void mdeb(T mp); }; #endif // INCLUDE_DEBUG_HPP template <typename T> void debug::vdeb(T vec) { cout << "#vector set debug" << endl; for (auto vv : vec) cout << vv << " "; cout << endl; } template <typename T1, typename T2> void debug::adeb(T1 *arr, T2 n) { cout << "#adebug" << endl; for (int i = 0; i <= n; i++) cout << arr[i] << " "; cout << endl; } template <typename T> void debug::mdeb(T mp) { cout << "#map pair debug" << endl; for (auto const &m : mp) cout << m.first sp m.second << endl; } debug dbg; class AAntiAdjacency { public: void solve(std::istream &in, std::ostream &out) { int n, k; in >> n >> k; ans2(k <= ceill(n, 2), out); } }; int main() { AAntiAdjacency solver; std::istream &in(std::cin); std::ostream &out(std::cout); solver.solve(in, out); return 0; }
[ "call.add", "call.arguments.change" ]
930,888
930,889
u026620445
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int n, k; cin >> n >> k; int s = 1; int cou = 1; while (1) { if (cou == k || s > n) { if (s > n) { cout << "No" << endl; } else { cout << "Yes" << endl; } break; } s += 2; cou++; } }
#include <bits/stdc++.h> using namespace std; int main() { int n, k; cin >> n >> k; int s = 1; int cou = 1; while (1) { if (cou == k || s > n) { if (s > n) { cout << "NO" << endl; } else { cout << "YES" << endl; } break; } s += 2; cou++; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,890
930,891
u457483230
cpp
p03129
#include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <queue> #include <stack> typedef long long int ll; typedef long double ld; using namespace std; int main() { ll n, k; cin >> n >> k; ll flag; if (n % 2 == 0) { flag = n / 2; } else { flag = n / 2 + 1; } if (flag <= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <queue> #include <stack> typedef long long int ll; typedef long double ld; using namespace std; int main() { ll n, k; cin >> n >> k; ll flag; if (n % 2 == 0) { flag = n / 2; } else { flag = n / 2 + 1; } if (flag >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
930,894
930,895
u473023730
cpp
p03129
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; i++) using ll = long long; int main() { int n, k; cin >> n >> k; cout << (n / 2 <= k ? "YES" : "NO") << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; i++) using ll = long long; int main() { int n, k; cin >> n >> k; cout << ((n + 1) / 2 >= k ? "YES" : "NO") << endl; return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "io.output.change" ]
930,896
930,897
u970690920
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (a + 1 >= b) { cout << "YES"; } else cout << "NO"; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (a + 1 >= b * 2) { cout << "YES"; } else cout << "NO"; }
[ "control_flow.branch.if.condition.change" ]
930,908
930,909
u222643545
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (a + 1 >= b) { cout << "Yes"; } else cout << "No"; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (a + 1 >= b * 2) { cout << "YES"; } else cout << "NO"; }
[ "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,910
930,909
u222643545
cpp
p03129
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { int N, K; cin >> N >> K; cout << ((N + 1) / 2 > K ? "YES" : "No") << endl; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; int main() { int N, K; cin >> N >> K; cout << ((N + 1) / 2 >= K ? "YES" : "NO") << endl; }
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "io.output.change", "literal.string.change", "literal.string.case.change" ]
930,911
930,912
u620626180
cpp
p03129
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) #define ll long long using namespace std; int main() { int n, k; cin >> n >> k; if ((n + 1) / 2 == k) cout << "YES"; else cout << "NO"; return 0; }
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) #define ll long long using namespace std; int main() { int n, k; cin >> n >> k; if ((n + 1) / 2 >= k) cout << "YES"; else cout << "NO"; return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
930,921
930,922
u021358975
cpp
p03129
#include <algorithm> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <string> #include <vector> #define CHMAX(a, b) a = std::max(a, b) #define CHMIN(a, b) a = std::min(a, b) #define CHABS(a) a = std::abs(a) #define COUT(a) std::cout << a << std::endl #define CERR(a) std::cerr << a << std::endl #define FOR(n) for (lli i = 0; i < n; i++) using namespace std; using lli = long long int; using pll = pair<lli, lli>; using tlll = tuple<lli, lli, lli>; using vll = vector<lli>; lli mod197 = 1000000007LL; lli INF = 10000000000000; // ax + by = gcd(a,b) 最大公約数 template <typename T> T extgcd(T a, T b, T &x, T &y) { T d = a; if (b != 0) { d = extgcd(b, a % b, y, x); y -= (a / b) * x; } else { x = 1; y = 0; } return d; } int main(void) { int n, k; cin >> n >> k; COUT(((n + 1) / 2 >= k ? "Yes" : "No")); return 0; }
#include <algorithm> #include <cmath> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <string> #include <vector> #define CHMAX(a, b) a = std::max(a, b) #define CHMIN(a, b) a = std::min(a, b) #define CHABS(a) a = std::abs(a) #define COUT(a) std::cout << a << std::endl #define CERR(a) std::cerr << a << std::endl #define FOR(n) for (lli i = 0; i < n; i++) using namespace std; using lli = long long int; using pll = pair<lli, lli>; using tlll = tuple<lli, lli, lli>; using vll = vector<lli>; lli mod197 = 1000000007LL; lli INF = 10000000000000; // ax + by = gcd(a,b) 最大公約数 template <typename T> T extgcd(T a, T b, T &x, T &y) { T d = a; if (b != 0) { d = extgcd(b, a % b, y, x); y -= (a / b) * x; } else { x = 1; y = 0; } return d; } int main(void) { int n, k; cin >> n >> k; COUT(((n + 1) / 2 >= k ? "YES" : "NO")); return 0; }
[ "literal.string.change", "literal.string.case.change", "call.arguments.change" ]
930,925
930,926
u155216115
cpp
p03129
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll MOD = 1000000007; ll INF = 100000000; double PI = 3.1415926535; template <typename T> void remove(std::vector<T> &vector, unsigned int index) { vector.erase(vector.begin() + index); } using Graph = vector<vector<pair<ll, ll>>>; int main() { int N, K; cin >> N >> K; if (1 + (K - 1) * 2 <= N) { cout << "Yes" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll MOD = 1000000007; ll INF = 100000000; double PI = 3.1415926535; template <typename T> void remove(std::vector<T> &vector, unsigned int index) { vector.erase(vector.begin() + index); } using Graph = vector<vector<pair<ll, ll>>>; int main() { int N, K; cin >> N >> K; if (1 + (K - 1) * 2 <= N) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,931
930,932
u393754572
cpp
p03129
#include <algorithm> #include <bits/stdc++.h> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstring> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string.h> #include <string> #include <utility> #include <vector> using namespace std; using ll = long long; #define ALL(a) (a).begin(), (a).end() #define FOR(i, a, b) for (long long int i = (a); i <= (b); i++) #define RFOR(i, a, b) for (long long int i = (a); i >= (b); i--) #define MOD 1000000007 #define LLONG_MAXs 9223372036854775800 / 2 #define ALL(a) (a).begin(), (a).end() #include <cmath> #include <iostream> using namespace std; bool isPrimeNum(ll x) { // 素数である場合 true を返す if (x <= 1) { // 1以下である場合は素数でないことがすぐにわかる return false; } // sqrt( double型 ) は引数の平方根を double型で返すので、int型でキャスト int n = (int)sqrt((double)x); for (int i = 2; i <= n; i++) { if (x % i == 0) { // 割り切る整数がある場合、即判定終了 return false; } } return true; // 割り切る整数がない場合、素数である } ll myPow(ll x, ll n, ll m) { if (n == 0) return 1; if (n % 2 == 0) return myPow(x * x % m, n / 2, m); else return x * myPow(x, n - 1, m) % m; } constexpr ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } constexpr ll lcm(ll a, ll b) { return a * b / gcd(a, b); } constexpr ll abs(ll a, ll b) { if (a >= b) return a - b; if (a < b) return b - a; } constexpr double dabs(double a, double b) { if (a >= b) return a - b; if (a < b) return b - a; } constexpr ll min(ll a, ll b) { if (a >= b) return b; if (a < b) return a; } constexpr ll max(ll a, ll b) { if (a >= b) return a; if (a < b) return b; } int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; int dx8[8] = {1, 0, -1, 0, 1, -1, 1, -1}; int dy8[8] = {0, 1, 0, -1, 1, 1, -1, -1}; class UnionFind { public: //親の番号を格納する。親だった場合は-(その集合のサイズ) vector<int> Parent; //作るときはParentの値を全て-1にする //こうすると全てバラバラになる UnionFind(int N) { Parent = vector<int>(N, -1); } // Aがどのグループに属しているか調べる int root(int A) { if (Parent[A] < 0) return A; return Parent[A] = root(Parent[A]); } //自分のいるグループの頂点数を調べる int size(int A) { return -Parent[root(A)]; //親をとってきたい] } bool issame(int x, int y) { return root(x) == root(y); } // AとBをくっ付ける bool connect(int A, int B) { // AとBを直接つなぐのではなく、root(A)にroot(B)をくっつける A = root(A); B = root(B); if (A == B) { //すでにくっついてるからくっ付けない return false; } //大きい方(A)に小さいほう(B)をくっ付けたい //大小が逆だったらひっくり返しちゃう。 if (size(A) < size(B)) swap(A, B); // Aのサイズを更新する Parent[A] += Parent[B]; // Bの親をAに変更する Parent[B] = A; return true; } }; long long fac[510000], finv[510000], inv[510000]; // テーブルを作る前処理 void COMinit() { fac[0] = fac[1] = 1; finv[0] = finv[1] = 1; inv[1] = 1; for (int i = 2; i < 510000; i++) { fac[i] = fac[i - 1] * i % MOD; inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD; finv[i] = finv[i - 1] * inv[i] % MOD; } } // 二項係数計算 long long COM(int n, int k) { if (n < k) return 0; if (n < 0 || k < 0) return 0; return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD; } long long modinv(long long a, long long m) { long long b = m, u = 1, v = 0; while (b) { long long t = a / b; a -= t * b; swap(a, b); u -= t * v; swap(u, v); } u %= m; if (u < 0) u += m; return u; } string replaceAll(string &replacedStr, string from, string to) { unsigned int pos = replacedStr.find(from); int toLen = to.length(); if (from.empty()) { return replacedStr; } while ((pos = replacedStr.find(from, pos)) != std::string::npos) { replacedStr.replace(pos, from.length(), to); pos += toLen; } return replacedStr; } void yn(bool flag) { if (flag) { cout << "Yes" << endl; } else { cout << "No" << endl; } return; } void YN(bool flag) { if (flag) { cout << "YES" << endl; } else { cout << "NO" << endl; } return; } std::vector<ll> enum_div(ll n) // nの約数を列挙 { std::vector<ll> ret; for (ll i = 1; i * i <= n; ++i) { if (n % i == 0) { ret.push_back(i); if (i != 1 && i * i != n) { ret.push_back(n / i); } } } ret.push_back(n); return ret; } void Ssort(int no, char *month[]) { int i, j; char *temp; for (i = 0; i < no; i++) { for (j = i + 1; j < no; j++) { if (strcmp((month[i]), (month[j])) > 0) { temp = *(month + i); *(month + i) = *(month + j); *(month + j) = temp; } } } } // グラフセット struct Edge { ll to; // 辺の行き先 ll weight; // 辺の重み Edge(int t, int w) : to(t), weight(w) {} }; // using Graph = vector<vector<Edge>>; using Graph = vector<vector<int>>; // cout<<std::setprecision(30) int main() { ll A, B, C, D; ll X[10000] = {}; ll ans = 0; string S, S2; cin >> A >> B; YN(A / 2 >= B); return 0; }
#include <algorithm> #include <bits/stdc++.h> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstring> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string.h> #include <string> #include <utility> #include <vector> using namespace std; using ll = long long; #define ALL(a) (a).begin(), (a).end() #define FOR(i, a, b) for (long long int i = (a); i <= (b); i++) #define RFOR(i, a, b) for (long long int i = (a); i >= (b); i--) #define MOD 1000000007 #define LLONG_MAXs 9223372036854775800 / 2 #define ALL(a) (a).begin(), (a).end() #include <cmath> #include <iostream> using namespace std; bool isPrimeNum(ll x) { // 素数である場合 true を返す if (x <= 1) { // 1以下である場合は素数でないことがすぐにわかる return false; } // sqrt( double型 ) は引数の平方根を double型で返すので、int型でキャスト int n = (int)sqrt((double)x); for (int i = 2; i <= n; i++) { if (x % i == 0) { // 割り切る整数がある場合、即判定終了 return false; } } return true; // 割り切る整数がない場合、素数である } ll myPow(ll x, ll n, ll m) { if (n == 0) return 1; if (n % 2 == 0) return myPow(x * x % m, n / 2, m); else return x * myPow(x, n - 1, m) % m; } constexpr ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } constexpr ll lcm(ll a, ll b) { return a * b / gcd(a, b); } constexpr ll abs(ll a, ll b) { if (a >= b) return a - b; if (a < b) return b - a; } constexpr double dabs(double a, double b) { if (a >= b) return a - b; if (a < b) return b - a; } constexpr ll min(ll a, ll b) { if (a >= b) return b; if (a < b) return a; } constexpr ll max(ll a, ll b) { if (a >= b) return a; if (a < b) return b; } int dx[4] = {1, 0, -1, 0}; int dy[4] = {0, 1, 0, -1}; int dx8[8] = {1, 0, -1, 0, 1, -1, 1, -1}; int dy8[8] = {0, 1, 0, -1, 1, 1, -1, -1}; class UnionFind { public: //親の番号を格納する。親だった場合は-(その集合のサイズ) vector<int> Parent; //作るときはParentの値を全て-1にする //こうすると全てバラバラになる UnionFind(int N) { Parent = vector<int>(N, -1); } // Aがどのグループに属しているか調べる int root(int A) { if (Parent[A] < 0) return A; return Parent[A] = root(Parent[A]); } //自分のいるグループの頂点数を調べる int size(int A) { return -Parent[root(A)]; //親をとってきたい] } bool issame(int x, int y) { return root(x) == root(y); } // AとBをくっ付ける bool connect(int A, int B) { // AとBを直接つなぐのではなく、root(A)にroot(B)をくっつける A = root(A); B = root(B); if (A == B) { //すでにくっついてるからくっ付けない return false; } //大きい方(A)に小さいほう(B)をくっ付けたい //大小が逆だったらひっくり返しちゃう。 if (size(A) < size(B)) swap(A, B); // Aのサイズを更新する Parent[A] += Parent[B]; // Bの親をAに変更する Parent[B] = A; return true; } }; long long fac[510000], finv[510000], inv[510000]; // テーブルを作る前処理 void COMinit() { fac[0] = fac[1] = 1; finv[0] = finv[1] = 1; inv[1] = 1; for (int i = 2; i < 510000; i++) { fac[i] = fac[i - 1] * i % MOD; inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD; finv[i] = finv[i - 1] * inv[i] % MOD; } } // 二項係数計算 long long COM(int n, int k) { if (n < k) return 0; if (n < 0 || k < 0) return 0; return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD; } long long modinv(long long a, long long m) { long long b = m, u = 1, v = 0; while (b) { long long t = a / b; a -= t * b; swap(a, b); u -= t * v; swap(u, v); } u %= m; if (u < 0) u += m; return u; } string replaceAll(string &replacedStr, string from, string to) { unsigned int pos = replacedStr.find(from); int toLen = to.length(); if (from.empty()) { return replacedStr; } while ((pos = replacedStr.find(from, pos)) != std::string::npos) { replacedStr.replace(pos, from.length(), to); pos += toLen; } return replacedStr; } void yn(bool flag) { if (flag) { cout << "Yes" << endl; } else { cout << "No" << endl; } return; } void YN(bool flag) { if (flag) { cout << "YES" << endl; } else { cout << "NO" << endl; } return; } std::vector<ll> enum_div(ll n) // nの約数を列挙 { std::vector<ll> ret; for (ll i = 1; i * i <= n; ++i) { if (n % i == 0) { ret.push_back(i); if (i != 1 && i * i != n) { ret.push_back(n / i); } } } ret.push_back(n); return ret; } void Ssort(int no, char *month[]) { int i, j; char *temp; for (i = 0; i < no; i++) { for (j = i + 1; j < no; j++) { if (strcmp((month[i]), (month[j])) > 0) { temp = *(month + i); *(month + i) = *(month + j); *(month + j) = temp; } } } } // グラフセット struct Edge { ll to; // 辺の行き先 ll weight; // 辺の重み Edge(int t, int w) : to(t), weight(w) {} }; // using Graph = vector<vector<Edge>>; using Graph = vector<vector<int>>; // cout<<std::setprecision(30) int main() { ll A, B, C, D; ll X[10000] = {}; ll ans = 0; string S, S2; cin >> A >> B; YN((A + 1) / 2 >= B); return 0; }
[ "call.arguments.change" ]
930,933
930,934
u043443359
cpp
p03129
#include <bits/stdc++.h> #define fi first #define se second #define mp make_pair #define pb push_back using namespace std; typedef long long ll; const int maxn = 205; signed main(void) { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int N, K; cin >> N >> K; int l = 1; while (K--) l += 2; if (l <= N) cout << "YES"; else cout << "NO"; }
#include <bits/stdc++.h> #define fi first #define se second #define mp make_pair #define pb push_back using namespace std; typedef long long ll; const int maxn = 205; signed main(void) { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int N, K; cin >> N >> K; int l = 1; --K; while (K--) l += 2; if (l <= N) cout << "YES"; else cout << "NO"; }
[ "expression.unary.arithmetic.add" ]
930,941
930,942
u506628560
cpp
p03129
#include <algorithm> #include <iomanip> #include <iostream> #include <limits.h> #include <map> #include <numeric> #include <string> #include <vector> using namespace std; typedef long long ll; typedef pair<ll, ll> pll; #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() const bool DEBAG = false; int main() { int n, k; cin >> n >> k; if (1 + 2 * (k - 1) <= n) cout << "Yes" << endl; else cout << "No" << endl; }
#include <algorithm> #include <iomanip> #include <iostream> #include <limits.h> #include <map> #include <numeric> #include <string> #include <vector> using namespace std; typedef long long ll; typedef pair<ll, ll> pll; #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() const bool DEBAG = false; int main() { int n, k; cin >> n >> k; if (1 + 2 * (k - 1) <= n) cout << "YES" << endl; else cout << "NO" << endl; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,943
930,944
u412550879
cpp
p03129
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int> P; #define mod 1000000007 #define INF (1LL << 60) #define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define repi(itr, ds) for (auto itr = ds.begin(); itr != ds.end(); itr++) #define YES puts("YES") #define Yes puts("Yes") #define NO puts("NO") #define No puts("No") int gcd(int a, int b) { return b ? gcd(b, a % b) : a; } const int dx[4] = {1, 0, -1, 0}; const int dy[4] = {0, 1, 0, -1}; #if 1 //------------- // DUMPマクロ // https://www.creativ.xyz/dump-cpp-652/ // vector template <typename T> istream &operator>>(istream &is, vector<T> &vec) { for (T &x : vec) is >> x; return is; } // pair template <typename T, typename U> ostream &operator<<(ostream &os, pair<T, U> &pair_var) { os << "(" << pair_var.first << ", " << pair_var.second << ")"; return os; } // vector template <typename T> ostream &operator<<(ostream &os, const vector<T> &vec) { os << "{"; for (int i = 0; i < vec.size(); i++) { os << vec[i] << (i + 1 == vec.size() ? "" : ", "); } os << "}"; return os; } // map template <typename T, typename U> ostream &operator<<(ostream &os, map<T, U> &map_var) { os << "{"; repi(itr, map_var) { os << *itr; itr++; if (itr != map_var.end()) os << ", "; itr--; } os << "}"; return os; } // set template <typename T> ostream &operator<<(ostream &os, set<T> &set_var) { os << "{"; repi(itr, set_var) { os << *itr; itr++; if (itr != set_var.end()) os << ", "; itr--; } os << "}"; return os; } #define DUMPOUT cerr void dump_func() { DUMPOUT << endl; } template <class Head, class... Tail> void dump_func(Head &&head, Tail &&...tail) { DUMPOUT << head; if (sizeof...(Tail) > 0) { DUMPOUT << ", "; } dump_func(std::move(tail)...); } #ifdef DEBUG #define DEB #define dump(...) \ DUMPOUT << " " << string(#__VA_ARGS__) << ": " \ << "[" << to_string(__LINE__) << ":" << __FUNCTION__ << "]" << endl \ << " ", \ dump_func(__VA_ARGS__) #else #define DEB if (false) #define dump(...) #endif #endif signed main() { int N, K; cin >> N >> K; if (N <= 2 * K - 1) YES; else NO; return 0; }
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int> P; #define mod 1000000007 #define INF (1LL << 60) #define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define repi(itr, ds) for (auto itr = ds.begin(); itr != ds.end(); itr++) #define YES puts("YES") #define Yes puts("Yes") #define NO puts("NO") #define No puts("No") int gcd(int a, int b) { return b ? gcd(b, a % b) : a; } const int dx[4] = {1, 0, -1, 0}; const int dy[4] = {0, 1, 0, -1}; #if 1 //------------- // DUMPマクロ // https://www.creativ.xyz/dump-cpp-652/ // vector template <typename T> istream &operator>>(istream &is, vector<T> &vec) { for (T &x : vec) is >> x; return is; } // pair template <typename T, typename U> ostream &operator<<(ostream &os, pair<T, U> &pair_var) { os << "(" << pair_var.first << ", " << pair_var.second << ")"; return os; } // vector template <typename T> ostream &operator<<(ostream &os, const vector<T> &vec) { os << "{"; for (int i = 0; i < vec.size(); i++) { os << vec[i] << (i + 1 == vec.size() ? "" : ", "); } os << "}"; return os; } // map template <typename T, typename U> ostream &operator<<(ostream &os, map<T, U> &map_var) { os << "{"; repi(itr, map_var) { os << *itr; itr++; if (itr != map_var.end()) os << ", "; itr--; } os << "}"; return os; } // set template <typename T> ostream &operator<<(ostream &os, set<T> &set_var) { os << "{"; repi(itr, set_var) { os << *itr; itr++; if (itr != set_var.end()) os << ", "; itr--; } os << "}"; return os; } #define DUMPOUT cerr void dump_func() { DUMPOUT << endl; } template <class Head, class... Tail> void dump_func(Head &&head, Tail &&...tail) { DUMPOUT << head; if (sizeof...(Tail) > 0) { DUMPOUT << ", "; } dump_func(std::move(tail)...); } #ifdef DEBUG #define DEB #define dump(...) \ DUMPOUT << " " << string(#__VA_ARGS__) << ": " \ << "[" << to_string(__LINE__) << ":" << __FUNCTION__ << "]" << endl \ << " ", \ dump_func(__VA_ARGS__) #else #define DEB if (false) #define dump(...) #endif #endif signed main() { int N, K; cin >> N >> K; if (N >= 2 * K - 1) YES; else NO; return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
930,945
930,946
u592610268
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main(void) { int a, b; cin >> a >> b; if (a / 2 > b) { cout << "YES"; } else { cout << "NO"; } }
#include <bits/stdc++.h> using namespace std; int main(void) { int a, b; cin >> a >> b; if ((a + 1) / 2 >= b) { cout << "YES"; } else { cout << "NO"; } }
[ "control_flow.branch.if.condition.change", "expression.operator.compare.change" ]
930,947
930,948
u259356079
cpp
p03129
#include <bits/stdc++.h> #define REP(i, n) for (ll i = 0; i < (ll)n; i++) #define FOR(i, a, b) for (ll i = (a); i < (ll)b; i++) #define ALL(obj) (obj).begin(), (obj).end() #define INF (1ll << 60) #define sz(x) int(x.size()) using namespace std; typedef long long ll; using vl = vector<ll>; using vvl = vector<vl>; typedef double db; typedef string str; typedef pair<ll, ll> p; constexpr int MOD = 1000000007; using ll = long long; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } void print(const std::vector<int> &v) { std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; }); std::cout << std::endl; } int main() { int N, K; cin >> N >> K; if (N % 2 == 1) N++; if (K < N / 2) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <bits/stdc++.h> #define REP(i, n) for (ll i = 0; i < (ll)n; i++) #define FOR(i, a, b) for (ll i = (a); i < (ll)b; i++) #define ALL(obj) (obj).begin(), (obj).end() #define INF (1ll << 60) #define sz(x) int(x.size()) using namespace std; typedef long long ll; using vl = vector<ll>; using vvl = vector<vl>; typedef double db; typedef string str; typedef pair<ll, ll> p; constexpr int MOD = 1000000007; using ll = long long; template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } void print(const std::vector<int> &v) { std::for_each(v.begin(), v.end(), [](int x) { std::cout << x << " "; }); std::cout << std::endl; } int main() { int N, K; cin >> N >> K; if (N % 2 == 1) N++; if (K <= N / 2) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
930,953
930,954
u824337972
cpp
p03129
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, N) for (int i = 0; i < (int)N; i++) const ll MOD = pow(10, 9) + 7; const ll LLINF = pow(2, 61) - 1; const int INF = pow(2, 29) - 1; int main() { int N, K; cin >> N >> K; string result = ((N + 1) / 2 <= K) ? "YES" : "NO"; cout << result << endl; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, N) for (int i = 0; i < (int)N; i++) const ll MOD = pow(10, 9) + 7; const ll LLINF = pow(2, 61) - 1; const int INF = pow(2, 29) - 1; int main() { int N, K; cin >> N >> K; string result = ((N + 1) / 2 >= K) ? "YES" : "NO"; cout << result << endl; return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
930,957
930,958
u680707192
cpp
p03129
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; int cnt = n / 2 + n % 2; if (cnt >= k) { cout << "Yes"; } else { cout << "No"; } return 0; }
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; int cnt = n / 2 + n % 2; if (cnt >= k) { cout << "YES"; } else { cout << "NO"; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,959
930,960
u960687982
cpp
p03129
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; if ((int)(n * 0.5 + 0.5) >= k) { cout << "Yes\n"; } else { cout << "No\n"; } return 0; }
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; if ((int)(n * 0.5 + 0.5) >= k) { cout << "YES\n"; } else { cout << "NO\n"; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,961
930,962
u912087911
cpp
p03129
#include <bits/stdc++.h> using namespace std; #define INF ((1 << 30) - 1) // int32_t #define MOD 1000000007 #define MOD2 #define all(a) (a).begin(), (a).end() #define mkp make_pair #define pb push_back typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; int main() { bool flag = false; ll ans = 0, sum = 0; int n, k; cin >> n >> k; if (k > (n + 1) / 2) flag = false; else flag = true; // cout <<fixed<<setprecision(16)<< << endl; // cout << ans << endl; if (flag) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define INF ((1 << 30) - 1) // int32_t #define MOD 1000000007 #define MOD2 #define all(a) (a).begin(), (a).end() #define mkp make_pair #define pb push_back typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; int main() { bool flag = false; ll ans = 0, sum = 0; int n, k; cin >> n >> k; if (k > (n + 1) / 2) flag = false; else flag = true; // cout <<fixed<<setprecision(16)<< << endl; // cout << ans << endl; if (flag) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,968
930,969
u355424600
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int N, K; cin >> N >> K; if (N < (2 * K - 1)) { cout << "No" << endl; } else { cout << "Yes" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int N, K; cin >> N >> K; if (N < (2 * K - 1)) { cout << "NO" << endl; } else { cout << "YES" << endl; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,970
930,971
u747415691
cpp
p03129
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <fstream> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef vector<int> vint; typedef pair<int, int> pint; typedef vector<long long> vlong; #define rep(i, n) REP(i, 0, n) #define all(v) v.begin(), v.end() #define REP(i, x, n) for (int i = x; i < n; i++) #define INF 2e9 signed main() { cin.tie(0); ios::sync_with_stdio(false); int n, k; cin >> n >> k; cout << ((k * 2 <= n + 1) ? "Yes" : "No"); return (0); }
#include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <fstream> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef vector<int> vint; typedef pair<int, int> pint; typedef vector<long long> vlong; #define rep(i, n) REP(i, 0, n) #define all(v) v.begin(), v.end() #define REP(i, x, n) for (int i = x; i < n; i++) #define INF 2e9 signed main() { cin.tie(0); ios::sync_with_stdio(false); int n, k; cin >> n >> k; cout << ((k * 2 <= n + 1) ? "YES" : "NO"); return (0); }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,972
930,973
u132033278
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(NULL); ios::sync_with_stdio(false); int a, b; cin >> a >> b; if (a > b) { cout << "YES" << '\n'; } else cout << "NO" << '\n'; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { cin.tie(NULL); ios::sync_with_stdio(false); int a, b; cin >> a >> b; if (a >= b * 2 - 1) { cout << "YES" << '\n'; } else cout << "NO" << '\n'; return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
930,974
930,975
u623468376
cpp
p03129
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define pb push_back #define mp make_pair #define fi first #define se second #define be begin() #define en end() #define le length() #define all(x) (x).begin(), (x).end() #define rep(i, n) for (__typeof(n) i = 0; i < n; i++) #define repo(i, n) for (__typeof(n) i = 1; i <= n; i++) #define eps 1e-6 #define pi 3.141592653589793 #define c(a) cout << a << "\n"; #define a(a) \ for (auto i : a) \ cout << i << " "; typedef vector<int> vii; typedef vector<ll> vll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; const int MOD = 1e9 + 7; const int INF = 1e9; int main() { ll n, k; cin >> n >> k; if ((1 + (2 * k)) <= n) c("YES") else c("NO") }
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define pb push_back #define mp make_pair #define fi first #define se second #define be begin() #define en end() #define le length() #define all(x) (x).begin(), (x).end() #define rep(i, n) for (__typeof(n) i = 0; i < n; i++) #define repo(i, n) for (__typeof(n) i = 1; i <= n; i++) #define eps 1e-6 #define pi 3.141592653589793 #define c(a) cout << a << "\n"; #define a(a) \ for (auto i : a) \ cout << i << " "; typedef vector<int> vii; typedef vector<ll> vll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; const int MOD = 1e9 + 7; const int INF = 1e9; int main() { ll n, k; cin >> n >> k; if ((1 + (2 * (k - 1))) <= n) c("YES") else c("NO") }
[ "control_flow.branch.if.condition.change" ]
930,976
930,977
u062908837
cpp
p03129
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; i++) #define reps(i, s, n) for (int i = (s), i##_len = (n); i < i##_len; i++) #define rrep(i, n) for (int i = (n)-1; i >= 0; i--) #define rreps(i, e, n) for (int i = (n)-1; i >= (e); i--) #define all(x) (x).begin(), (x).end() #define sz(x) ((int)(x).size()) #define uniq(x) (x).erase(unique((x).begin(), (x).end()), (x).end()) int main() { cin.tie(0); ios::sync_with_stdio(false); int n, k; cin >> n >> k; if ((n - k) >= 1) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; i++) #define reps(i, s, n) for (int i = (s), i##_len = (n); i < i##_len; i++) #define rrep(i, n) for (int i = (n)-1; i >= 0; i--) #define rreps(i, e, n) for (int i = (n)-1; i >= (e); i--) #define all(x) (x).begin(), (x).end() #define sz(x) ((int)(x).size()) #define uniq(x) (x).erase(unique((x).begin(), (x).end()), (x).end()) int main() { cin.tie(0); ios::sync_with_stdio(false); int n, k; cin >> n >> k; if ((n - 2 * (k - 1)) >= 1) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[ "control_flow.branch.if.condition.change" ]
930,983
930,984
u225581241
cpp
p03129
#include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <string> #include <typeinfo> #include <unordered_map> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #define FOR(i, a) for (auto i : a) #define pb push_back #define all(in) in.begin(), in.end() #define shosu(x) fixed << setprecision(x) #define show1d(v) \ rep(i, v.size()) cout << " " << v[i]; \ cout << endl << endl; #define show2d(v) \ rep(i, v.size()) { \ rep(j, v[i].size()) cout << " " << v[i][j]; \ cout << endl; \ } \ cout << endl; using namespace std; typedef long long ll; typedef int Def; typedef pair<Def, Def> pii; typedef vector<Def> vi; typedef vector<vi> vvi; typedef vector<pii> vp; typedef vector<vp> vvp; typedef vector<string> vs; typedef vector<double> vd; typedef vector<vd> vvd; typedef pair<Def, pii> pip; typedef vector<pip> vip; template <typename A, typename B> bool cmin(A &a, const B &b) { return a > b ? (a = b, true) : false; } template <typename A, typename B> bool cmax(A &a, const B &b) { return a < b ? (a = b, true) : false; } const double PI = acos(-1); const double EPS = 1e-9; Def inf = sizeof(Def) == sizeof(long long) ? 2e18 : 1e9 + 10; int dx[] = {0, 1, 0, -1}; int dy[] = {1, 0, -1, 0}; int main(int argc, char *argv[]) { int n, k, ans; cin >> n >> k; if (n % 2 == 0) { ans = n / 2; } else { ans = n / 2 + 1; } if (k >= ans) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <string> #include <typeinfo> #include <unordered_map> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #define FOR(i, a) for (auto i : a) #define pb push_back #define all(in) in.begin(), in.end() #define shosu(x) fixed << setprecision(x) #define show1d(v) \ rep(i, v.size()) cout << " " << v[i]; \ cout << endl << endl; #define show2d(v) \ rep(i, v.size()) { \ rep(j, v[i].size()) cout << " " << v[i][j]; \ cout << endl; \ } \ cout << endl; using namespace std; typedef long long ll; typedef int Def; typedef pair<Def, Def> pii; typedef vector<Def> vi; typedef vector<vi> vvi; typedef vector<pii> vp; typedef vector<vp> vvp; typedef vector<string> vs; typedef vector<double> vd; typedef vector<vd> vvd; typedef pair<Def, pii> pip; typedef vector<pip> vip; template <typename A, typename B> bool cmin(A &a, const B &b) { return a > b ? (a = b, true) : false; } template <typename A, typename B> bool cmax(A &a, const B &b) { return a < b ? (a = b, true) : false; } const double PI = acos(-1); const double EPS = 1e-9; Def inf = sizeof(Def) == sizeof(long long) ? 2e18 : 1e9 + 10; int dx[] = {0, 1, 0, -1}; int dy[] = {1, 0, -1, 0}; int main(int argc, char *argv[]) { int n, k, ans; cin >> n >> k; if (n % 2 == 0) { ans = n / 2; } else { ans = n / 2 + 1; } if (k <= ans) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
930,985
930,986
u180077477
cpp
p03129
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define ALL(a) (a).begin(), (a).end() const ll mod = 1e9 + 7; int main() { int n, k; cin >> n >> k; n++; if (n / 2 >= k) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define ALL(a) (a).begin(), (a).end() const ll mod = 1e9 + 7; int main() { int n, k; cin >> n >> k; n++; if (n / 2 >= k) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,987
930,988
u207048881
cpp
p03129
#include <algorithm> #include <cmath> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <utility> #include <vector> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } int main() { int N, K; cin >> N >> K; if ((N + 1) / 2 <= K) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
#include <algorithm> #include <cmath> #include <cstdio> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <utility> #include <vector> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; using ll = long long; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } int main() { int N, K; cin >> N >> K; if ((N + 1) / 2 >= K) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
930,991
930,992
u608258653
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (b * 2 <= a) { cout << "YES\n"; } else { cout << "NO\n"; } }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (b * 2 - 1 <= a) { cout << "YES\n"; } else { cout << "NO\n"; } }
[ "control_flow.branch.if.condition.change" ]
930,993
930,994
u652908807
cpp
p03129
#include <algorithm> #include <cassert> #include <cfenv> #include <cmath> #include <functional> #include <iostream> #include <vector> using ll = unsigned long long; using namespace std; int main() { int n, k; cin >> n >> k; int m = (k - 1) * 2 + 1; if (m <= n) { cout << "Yes" << endl; } else { cout << "No" << endl; } }
#include <algorithm> #include <cassert> #include <cfenv> #include <cmath> #include <functional> #include <iostream> #include <vector> using ll = unsigned long long; using namespace std; int main() { int n, k; cin >> n >> k; int m = (k - 1) * 2 + 1; if (m <= n) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
930,997
930,998
u759162415
cpp
p03129
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <istream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> #define rep0(i, n) for (int i = 0; i < (n); ++i) #define rep1(i, n) for (int i = 1; i < (n); ++i) #define REP(i, a, b) for (int i = a; i < (b); ++i) const long long INF = 1000000007; typedef long long ll; using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } bool comp(pair<int, int> a, pair<int, int> b) { if (a.second != b.second) { return a.second < b.second; } else { return a.first < b.first; } } int main() { cin.tie(0); ios::sync_with_stdio(false); /* / / / */ int a, b; cin >> a >> b; if (((2 * b) - 1) <= a) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <istream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> #define rep0(i, n) for (int i = 0; i < (n); ++i) #define rep1(i, n) for (int i = 1; i < (n); ++i) #define REP(i, a, b) for (int i = a; i < (b); ++i) const long long INF = 1000000007; typedef long long ll; using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } bool comp(pair<int, int> a, pair<int, int> b) { if (a.second != b.second) { return a.second < b.second; } else { return a.first < b.first; } } int main() { cin.tie(0); ios::sync_with_stdio(false); /* / / / */ int a, b; cin >> a >> b; if (((2 * b) - 1) <= a) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[ "literal.string.change", "io.output.change" ]
930,999
931,000
u820341516
cpp
p03129
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <istream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> #define rep0(i, n) for (int i = 0; i < (n); ++i) #define rep1(i, n) for (int i = 1; i < (n); ++i) #define REP(i, a, b) for (int i = a; i < (b); ++i) const long long INF = 1000000007; typedef long long ll; using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } bool comp(pair<int, int> a, pair<int, int> b) { if (a.second != b.second) { return a.second < b.second; } else { return a.first < b.first; } } int main() { cin.tie(0); ios::sync_with_stdio(false); /* / / / */ int a, b; cin >> a >> b; if ((2 * b - 1) <= a) { cout << "Yes" << endl; } else { cout << "No" << endl; } return 0; }
#include <algorithm> #include <cmath> #include <cstdlib> #include <iostream> #include <istream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdio.h> #include <string> #include <vector> #define rep0(i, n) for (int i = 0; i < (n); ++i) #define rep1(i, n) for (int i = 1; i < (n); ++i) #define REP(i, a, b) for (int i = a; i < (b); ++i) const long long INF = 1000000007; typedef long long ll; using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } bool comp(pair<int, int> a, pair<int, int> b) { if (a.second != b.second) { return a.second < b.second; } else { return a.first < b.first; } } int main() { cin.tie(0); ios::sync_with_stdio(false); /* / / / */ int a, b; cin >> a >> b; if (((2 * b) - 1) <= a) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[ "control_flow.branch.if.condition.change", "literal.string.change", "literal.string.case.change", "io.output.change" ]
931,001
931,000
u820341516
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int N, K; cin >> N >> K; int tmp = 1; for (int i = 0; i < K; i++) { tmp += 2; } if (tmp <= N) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int N, K; cin >> N >> K; int tmp = 1; for (int i = 1; i < K; i++) { tmp += 2; } if (tmp <= N) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
931,010
931,011
u273355214
cpp
p03129
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() int main() { cin.tie(0); ios::sync_with_stdio(false); // start int n, k; cin >> n >> k; cout << (n / 2 + 1 <= k ? "YES" : "NO") << endl; // end return 0; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() int main() { cin.tie(0); ios::sync_with_stdio(false); // start int n, k; cin >> n >> k; cout << (k * 2 - 1 <= n ? "YES" : "NO") << endl; // end return 0; }
[ "misc.opposites", "expression.operator.arithmetic.change", "control_flow.loop.for.condition.change", "io.output.change", "identifier.change" ]
931,012
931,013
u376234649
cpp
p03129
#include <bits/stdc++.h> #include <chrono> #define watch(x) cout << (#x) << " is " << (x) << endl #define eps 1e-9 typedef long long ll; using namespace std; const int N = 1e5; int a[N + 5]; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n, k; cin >> n >> k; if (k > n || k % 2) cout << "NO"; else cout << "YES"; return 0; }
#include <bits/stdc++.h> #include <chrono> #define watch(x) cout << (#x) << " is " << (x) << endl #define eps 1e-9 typedef long long ll; using namespace std; const int N = 1e5; int a[N + 5]; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n, k; cin >> n >> k; if (k > (n + 1) / 2) cout << "NO"; else cout << "YES"; return 0; }
[ "control_flow.branch.if.condition.change" ]
931,027
931,028
u409343817
cpp
p03129
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define PI 3.1415926535897932384626433 #define mod 1000000007 int gcd(int a, int b) { return b ? gcd(b, a % b) : a; } int lcm(int a, int b) { return a * b / gcd(a, b); } int main() { int n, k; cin >> n >> k; if (n - 1 >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define PI 3.1415926535897932384626433 #define mod 1000000007 int gcd(int a, int b) { return b ? gcd(b, a % b) : a; } int lcm(int a, int b) { return a * b / gcd(a, b); } int main() { int n, k; cin >> n >> k; if (k * 2 - 1 <= n) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
931,037
931,038
u167755809
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int n, k; cin >> n >> k; if (n >= 2 * k + 1) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int n, k; cin >> n >> k; if (n >= 2 * k - 1) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "misc.opposites", "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
931,039
931,040
u244626757
cpp
p03129
#include <algorithm> #include <bits/stdc++.h> #include <bitset> #include <cmath> #include <functional> #include <iomanip> #include <ios> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; #define mp make_pair; #define pb push_back; #define rep(i, n) for (int i = 0; i < n; i++) #define rep1(i, n) for (int i = 1; i <= (int)(n); i++) int main() { ios::sync_with_stdio(false); cin.tie(0); int N, K; cin >> N >> K; if ((N + 1) / 2 >= K) { cout << "Yes" << endl; } else cout << "No" << endl; return 0; }
#include <algorithm> #include <bits/stdc++.h> #include <bitset> #include <cmath> #include <functional> #include <iomanip> #include <ios> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; #define mp make_pair; #define pb push_back; #define rep(i, n) for (int i = 0; i < n; i++) #define rep1(i, n) for (int i = 1; i <= (int)(n); i++) int main() { ios::sync_with_stdio(false); cin.tie(0); int N, K; cin >> N >> K; if ((N + 1) / 2 >= K) { cout << "YES" << endl; } else cout << "NO" << endl; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
931,051
931,052
u949755084
cpp
p03129
#include <stdio.h> int main(void) { int N, K; scanf("%d%d", &N, &K); int A; A = N + 1; if (N % 2 == 0) { if (N / 2 >= K) { printf("Yes"); } else printf("No"); } else { if (A / 2 >= K) { printf("Yes"); } else printf("No"); } return 0; }
#include <stdio.h> int main(void) { int N, K; scanf("%d%d", &N, &K); int A; A = N + 1; if (N % 2 == 0) { if (N / 2 >= K) { printf("YES"); } else printf("NO"); } else { if (A / 2 >= K) { printf("YES"); } else printf("NO"); } return 0; }
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
931,061
931,062
u956941456
cpp
p03129
// https://atcoder.jp/contests/yahoo-procon2019-qual/tasks/yahoo_procon2019_qual_a?lang=en #include <algorithm> #include <cstdio> #include <iostream> #include <string> using namespace std; int main(void) { int N, K; cin >> N; cin >> K; int odd = N % 2; if (K <= (N / 2 + odd)) cout << "Yes"; else cout << "No"; }
#include <algorithm> #include <cstdio> #include <iostream> #include <string> using namespace std; int main(void) { int N, K; cin >> N; cin >> K; int odd = N % 2; // cout << odd; if (K <= (N / 2 + odd)) cout << "YES"; else cout << "NO"; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
931,063
931,064
u594294012
cpp
p03129
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define SORT(v, n) sort(v, v + n); #define VSORT(v) sort(v.begin(), v.end()) #define VRSORT(v) sort(v.rbegin(), v.rend()) #define ll long long #define pb(a) push_back(a) #define INF 1000000000 #define MOD 1000000007 using namespace std; typedef pair<int, int> P; typedef pair<ll, ll> LP; typedef pair<int, P> PP; typedef pair<ll, LP> LPP; typedef vector<unsigned int> vec; typedef vector<vec> mat; // typedef tuple<ll, ll, ll> T; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } void add(ll &a, ll b) { a = (a + b) % MOD; } int dy[] = {0, 0, 1, -1, 0}; int dx[] = {1, -1, 0, 0, 0}; int main() { cin.tie(0); ios::sync_with_stdio(false); int n, k; cin >> n >> k; int ans = n / k + (n % 2 == 1); (ans >= k) ? cout << "YES" : cout << "NO"; }
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < n; i++) #define SORT(v, n) sort(v, v + n); #define VSORT(v) sort(v.begin(), v.end()) #define VRSORT(v) sort(v.rbegin(), v.rend()) #define ll long long #define pb(a) push_back(a) #define INF 1000000000 #define MOD 1000000007 using namespace std; typedef pair<int, int> P; typedef pair<ll, ll> LP; typedef pair<int, P> PP; typedef pair<ll, LP> LPP; typedef vector<unsigned int> vec; typedef vector<vec> mat; // typedef tuple<ll, ll, ll> T; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return true; } return false; } void add(ll &a, ll b) { a = (a + b) % MOD; } int dy[] = {0, 0, 1, -1, 0}; int dx[] = {1, -1, 0, 0, 0}; int main() { cin.tie(0); ios::sync_with_stdio(false); int n, k; cin >> n >> k; int ans = n / 2 + (n % 2 == 1); (ans >= k) ? cout << "YES" : cout << "NO"; }
[ "identifier.replace.remove", "literal.replace.add", "expression.operation.binary.change" ]
931,085
931,086
u493750228
cpp
p03129
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; int max_k = (n + 1) / 2; if (k < max_k) cout << "NO" << endl; else cout << "YES" << endl; return 0; }
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; int max_k = (n + 1) / 2; if (k > max_k) cout << "NO" << endl; else cout << "YES" << endl; return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
931,090
931,091
u089032001
cpp
p03129
#include <iostream> using namespace std; int main(void) { int n, k; cin >> n >> k; if (n / 2 >= k) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int n, k; cin >> n >> k; if ((n + 1) / 2 >= k) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
931,104
931,105
u141004837
cpp
p03129
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define reps(i, f, n) for (int i = (f); i < (n); i++) const int MOD = 1e9 + 7; const int INF = 1e9; const ll INFF = 1e18; int main(int argc, char const *argv[]) { int n, k; cin >> n >> k; if ((n + 1) / 2 <= k) printf("YES\n"); else printf("NO\n"); return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, n) for (int i = 0; i < (n); i++) #define reps(i, f, n) for (int i = (f); i < (n); i++) const int MOD = 1e9 + 7; const int INF = 1e9; const ll INFF = 1e18; int main(int argc, char const *argv[]) { int n, k; cin >> n >> k; if ((n + 1) / 2 >= k) printf("YES\n"); else printf("NO\n"); return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
931,108
931,109
u029876051
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int n, k; cin >> n >> k; int x = 1 * 2 * (k - 1); if (x <= n) cout << "YES" << endl; else cout << "NO" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int n, k; cin >> n >> k; int x = 1 + 2 * (k - 1); if (x <= n) cout << "YES" << endl; else cout << "NO" << endl; }
[ "expression.operator.arithmetic.change", "expression.operation.binary.change" ]
931,110
931,111
u546943614
cpp
p03129
#define _CRT_SECURE_NO_WARNINGS #include "bits/stdc++.h" #ifdef _DEBUG #define DBG(n) n #else #define DBG(n) #endif #define INF 1e9 #define INFLL 1e18 #define EPS 1e-9 #define MOD 1000000007 #define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i) #define REP1(i, n) for (ll i = 1, i##_len = (n); i <= i##_len; ++i) #define REPR(i, n) for (ll i = (n)-1; i >= 0; --i) #define REPR1(i, n) for (ll i = (n); i > 0; --i) #define REPC(i, obj) for (auto i : obj) #define ALL(obj) (obj).begin(), (obj).end() #define SETP(n) cout << fixed << setprecision(n) #define VV(T, h, w) move(vector<vector<T>>(h, move(vector<T>(w)))) #define VVI(T, h, w, i) move(vector<vector<T>>(h, move(vector<T>(w, i)))) using namespace std; using ll = long long; template <typename T = ll> inline T in() { T ret; cin >> ret; return ret; } int main() { ll n = in(), k = in(); cout << (k <= (n + 1) / 2 ? "Yes" : "No") << endl; }
#define _CRT_SECURE_NO_WARNINGS #include "bits/stdc++.h" #ifdef _DEBUG #define DBG(n) n #else #define DBG(n) #endif #define INF 1e9 #define INFLL 1e18 #define EPS 1e-9 #define MOD 1000000007 #define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i) #define REP1(i, n) for (ll i = 1, i##_len = (n); i <= i##_len; ++i) #define REPR(i, n) for (ll i = (n)-1; i >= 0; --i) #define REPR1(i, n) for (ll i = (n); i > 0; --i) #define REPC(i, obj) for (auto i : obj) #define ALL(obj) (obj).begin(), (obj).end() #define SETP(n) cout << fixed << setprecision(n) #define VV(T, h, w) move(vector<vector<T>>(h, move(vector<T>(w)))) #define VVI(T, h, w, i) move(vector<vector<T>>(h, move(vector<T>(w, i)))) using namespace std; using ll = long long; template <typename T = ll> inline T in() { T ret; cin >> ret; return ret; } int main() { ll n = in(), k = in(); cout << (k <= (n + 1) / 2 ? "YES" : "NO") << endl; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
931,117
931,118
u388817534
cpp
p03129
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef pair<P, ll> Pll; typedef pair<P, P> PP; #define rep(i, a, n) for (int i = a; i < n; i++) #define LINF (ll)1e17 #define INF 1e9 #define MOD 1e9 + 7 #define sMOD 1e5 #define fs first #define sc second ll gcd(ll a, ll b) { if (!b) return a; return gcd(b, a % b); } signed main() { ll n, k, memo = 0; cin >> n >> k; memo = n / 2; if (memo < k) cout << "NO" << endl; else cout << "YES" << endl; return 0; }
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef pair<P, ll> Pll; typedef pair<P, P> PP; #define rep(i, a, n) for (int i = a; i < n; i++) #define LINF (ll)1e17 #define INF 1e9 #define MOD 1e9 + 7 #define sMOD 1e5 #define fs first #define sc second ll gcd(ll a, ll b) { if (!b) return a; return gcd(b, a % b); } signed main() { ll n, k, memo = 0; cin >> n >> k; memo = (n + 1) / 2; if (memo < k) cout << "NO" << endl; else cout << "YES" << endl; return 0; }
[]
931,121
931,122
u129134470
cpp
p03129
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef double d; ll n, k; int main() { ios::sync_with_stdio(false); cin.tie(NULL); cin >> n >> k; if (n >= k * 3 + 1) cout << "YES"; else cout << "NO"; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef double d; ll n, k; int main() { ios::sync_with_stdio(false); cin.tie(NULL); cin >> n >> k; if (n >= k * 2 - 1) cout << "YES"; else cout << "NO"; return 0; }
[]
931,125
931,126
u327144291
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int N, K; cin >> N >> K; if ((N + 1) / 2 >= K) cout << "YES"; else cout << "No"; }
#include <bits/stdc++.h> using namespace std; int main() { int N, K; cin >> N >> K; if ((N + 1) / 2 >= K) cout << "YES"; else cout << "NO"; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
931,127
931,128
u890354065
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main(void) { int N, K; cin >> N >> K; if (K <= (N + 1) / 2) cout << "Yes" << endl; else cout << "No" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main(void) { int N, K; cin >> N >> K; if (K <= (N + 1) / 2) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
931,131
931,132
u069450081
cpp
p03129
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; int num = n % 2 ? n / 2 + 1 : n / 2; if (num < k) { cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; int num = n % 2 ? n / 2 + 1 : n / 2; if (num < k) { cout << "NO" << endl; } else { cout << "YES" << endl; } return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
931,139
931,140
u865604924
cpp
p03129
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; if (n / 2 + 1 >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; if ((n + 1) / 2 >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[ "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
931,143
931,144
u376079344
cpp
p03129
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; if (n / 2.0 >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; if ((n + 1) / 2 >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[ "control_flow.branch.if.condition.change", "literal.number.change" ]
931,145
931,144
u376079344
cpp
p03129
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; if (n / 2 >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; if ((n + 1) / 2 >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } return 0; }
[ "control_flow.branch.if.condition.change" ]
931,146
931,144
u376079344
cpp
p03129
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int n, k; cin >> n >> k; if ((n / 2) + 1 >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { int n, k; cin >> n >> k; if ((n + 1) / 2 >= k) { cout << "YES" << endl; } else { cout << "NO" << endl; } }
[ "control_flow.branch.if.condition.change" ]
931,153
931,154
u846686917
cpp
p03129
#include <iostream> using namespace std; int main() { unsigned char N, K; cin >> N >> K; if (K <= (N + 1) / 2) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
#include <iostream> using namespace std; int main() { int N, K; cin >> N >> K; if (K <= (N + 1) / 2) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
[ "variable_declaration.type.primitive.change", "variable_declaration.type.narrow.change" ]
931,157
931,158
u693212819
cpp
p03129
// g++ -std=c++11 a.cpp #include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <string> #include <typeinfo> #include <unordered_map> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #define FOR(i, a) for (auto i : a) #define pb push_back #define all(in) in.begin(), in.end() #define shosu(x) fixed << setprecision(x) #define show1d(v) \ { \ rep(_, v.size()) cout << " " << v[_]; \ puts(""); \ } #define show2d(v) \ { rep(__, v.size()) show1d(v[__]); } using namespace std; // kaewasuretyuui typedef long long ll; #define int ll typedef int Def; typedef pair<Def, Def> pii; typedef vector<Def> vi; typedef vector<vi> vvi; typedef vector<pii> vp; typedef vector<vp> vvp; typedef vector<string> vs; typedef vector<double> vd; typedef vector<vd> vvd; typedef pair<Def, pii> pip; typedef vector<pip> vip; #define mt make_tuple typedef tuple<int, int, int, int> tp; typedef vector<tp> vt; template <typename A, typename B> bool cmin(A &a, const B &b) { return a > b ? (a = b, true) : false; } template <typename A, typename B> bool cmax(A &a, const B &b) { return a < b ? (a = b, true) : false; } // template<class C>constexpr int size(const C &c){return (int)c.size();} // template<class T,size_t N> constexpr int size(const T // (&xs)[N])noexcept{return (int)N;} const double PI = acos(-1); const double EPS = 1e-9; Def inf = sizeof(Def) == sizeof(long long) ? 2e18 : 1e9 + 10; // int dx[]={0,1,0,-1}; // int dy[]={1,0,-1,0};//RDLU #define yes puts("YES") #define no puts("NO") signed main() { ios::sync_with_stdio(false); cin.tie(0); int n, m; cin >> n >> m; if ((n + 1) / 2 <= m) yes; else no; }
// g++ -std=c++11 a.cpp #include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <string> #include <typeinfo> #include <unordered_map> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #define FOR(i, a) for (auto i : a) #define pb push_back #define all(in) in.begin(), in.end() #define shosu(x) fixed << setprecision(x) #define show1d(v) \ { \ rep(_, v.size()) cout << " " << v[_]; \ puts(""); \ } #define show2d(v) \ { rep(__, v.size()) show1d(v[__]); } using namespace std; // kaewasuretyuui typedef long long ll; #define int ll typedef int Def; typedef pair<Def, Def> pii; typedef vector<Def> vi; typedef vector<vi> vvi; typedef vector<pii> vp; typedef vector<vp> vvp; typedef vector<string> vs; typedef vector<double> vd; typedef vector<vd> vvd; typedef pair<Def, pii> pip; typedef vector<pip> vip; #define mt make_tuple typedef tuple<int, int, int, int> tp; typedef vector<tp> vt; template <typename A, typename B> bool cmin(A &a, const B &b) { return a > b ? (a = b, true) : false; } template <typename A, typename B> bool cmax(A &a, const B &b) { return a < b ? (a = b, true) : false; } // template<class C>constexpr int size(const C &c){return (int)c.size();} // template<class T,size_t N> constexpr int size(const T // (&xs)[N])noexcept{return (int)N;} const double PI = acos(-1); const double EPS = 1e-9; Def inf = sizeof(Def) == sizeof(long long) ? 2e18 : 1e9 + 10; // int dx[]={0,1,0,-1}; // int dy[]={1,0,-1,0};//RDLU #define yes puts("YES") #define no puts("NO") signed main() { ios::sync_with_stdio(false); cin.tie(0); int n, m; cin >> n >> m; if ((n + 1) / 2 >= m) yes; else no; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
931,165
931,166
u010004797
cpp
p03129
#include <algorithm> #include <math.h> #include <queue> #include <stack> #include <stdio.h> #include <string.h> #include <vector> #define ll long long using namespace std; #define DIV 998244353 int main() { int n, k; scanf("%d %d", &n, &k); if (k >= (n + 1) / 2) printf("YES\n"); else printf("NO\n"); }
#include <algorithm> #include <math.h> #include <queue> #include <stack> #include <stdio.h> #include <string.h> #include <vector> #define ll long long using namespace std; #define DIV 998244353 int main() { int n, k; scanf("%d %d", &n, &k); if (k <= (n + 1) / 2) printf("YES\n"); else printf("NO\n"); }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
931,169
931,170
u866617792
cpp
p03129
#include <iostream> using namespace std; int main() { int N, K; cin >> N >> K; if (N <= K) cout << "NO" << endl; else cout << "YES" << endl; return 0; }
#include <iostream> using namespace std; int main() { int N, K; cin >> N >> K; if (N < 2 * K - 1) cout << "NO" << endl; else cout << "YES" << endl; return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
931,173
931,174
u994577348
cpp
p03129
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (1 + (b - 1) * 2 <= a) cout << "Yes"; else cout << "No"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; if (1 + (b - 1) * 2 <= a) cout << "YES"; else cout << "NO"; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
931,193
931,194
u425701555
cpp
p03129
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; if (n - 1 < k) cout << "NO"; else cout << "YES"; }
#include <iostream> using namespace std; int main() { int n, k; cin >> n >> k; if ((n + 1) / 2 < k) cout << "NO"; else cout << "YES"; }
[ "control_flow.branch.if.condition.change", "misc.opposites", "expression.operator.arithmetic.change" ]
931,201
931,202
u808738521
cpp
p03129
#include <bits/stdc++.h> #define fi first #define se second #define rep(i, n) for (int i = 0; i < (n); ++i) #define rrep(i, n) for (int i = 1; i <= (n); ++i) #define drep(i, n) for (int i = (n)-1; i >= 0; --i) #define srep(i, s, t) for (int i = s; i < t; ++i) #define rng(a) a.begin(), a.end() #define pb push_back #define sz(x) (int)(x).size() using namespace std; typedef long long int ll; typedef pair<int, int> P; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<P> vp; const ll LINF = 1001002003004005006ll; const int INF = 1001001001; int main() { int n, k; cin >> n >> k; k--; if (n >= 2 * k + 1) { cout << "Yes" << endl; return 0; } cout << "No" << endl; return 0; }
#include <bits/stdc++.h> #define fi first #define se second #define rep(i, n) for (int i = 0; i < (n); ++i) #define rrep(i, n) for (int i = 1; i <= (n); ++i) #define drep(i, n) for (int i = (n)-1; i >= 0; --i) #define srep(i, s, t) for (int i = s; i < t; ++i) #define rng(a) a.begin(), a.end() #define pb push_back #define sz(x) (int)(x).size() using namespace std; typedef long long int ll; typedef pair<int, int> P; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<P> vp; const ll LINF = 1001002003004005006ll; const int INF = 1001001001; int main() { int n, k; cin >> n >> k; k--; if (n >= 2 * k + 1) { cout << "YES" << endl; return 0; } cout << "NO" << endl; return 0; }
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
931,205
931,206
u578035814
cpp
p03129
#include <iostream> using namespace std; int main() { int N, K; cin >> N >> K; if (N % 2 == 0) { if (N / 2 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { if (N / 2 + 1 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int N, K; cin >> N >> K; if (N % 2 == 0) { if (N / 2 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } else { if (N / 2 + 1 >= K) { cout << "YES" << endl; } else { cout << "NO" << endl; } } return 0; }
[ "literal.string.change", "io.output.change" ]
931,207
931,208
u360564214
cpp
p03129
#include <algorithm> #include <bits/stdc++.h> #include <bitset> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <set> #include <vector> #define mp make_pair #define pb push_back #define fi first #define se second #define IL inline using namespace std; typedef long long LL; typedef unsigned int U; typedef unsigned long long LLU; typedef pair<int, int> PII; typedef long double LD; IL LL read() { LL x = 0, f = 1; char ch = getchar(); while (ch < '0' || ch > '9') { if (ch == '-') f = -1; ch = getchar(); } while (ch >= '0' && ch <= '9') { x = (x << 1) + (x << 3) + (ch ^ 48); ch = getchar(); } return x * f; } #define io read() int n, k, x; int main() { n = io; k = io; x = (n + 1) / 2; if (n >= k) { puts("YES"); } else { puts("NO"); } return 0; }
#include <algorithm> #include <bits/stdc++.h> #include <bitset> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <set> #include <vector> #define mp make_pair #define pb push_back #define fi first #define se second #define IL inline using namespace std; typedef long long LL; typedef unsigned int U; typedef unsigned long long LLU; typedef pair<int, int> PII; typedef long double LD; IL LL read() { LL x = 0, f = 1; char ch = getchar(); while (ch < '0' || ch > '9') { if (ch == '-') f = -1; ch = getchar(); } while (ch >= '0' && ch <= '9') { x = (x << 1) + (x << 3) + (ch ^ 48); ch = getchar(); } return x * f; } #define io read() int n, k, x; int main() { n = io; k = io; x = (n + 1) / 2; if (x >= k) { puts("YES"); } else { puts("NO"); } return 0; }
[ "identifier.change", "control_flow.branch.if.condition.change" ]
931,211
931,212
u595215321
cpp
p03129
#include <algorithm> #include <climits> #include <iostream> #include <set> #include <string> #include <vector> #define MAX 1000000007 using namespace std; #define ll long long #define dbg if (0) #define ISRANGE(val, lo, hi) ((lo <= val) && (val < hi)) int main() { ll n, k; cin >> n >> k; if (n / 2 >= k) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
#include <algorithm> #include <climits> #include <iostream> #include <set> #include <string> #include <vector> #define MAX 1000000007 using namespace std; #define ll long long #define dbg if (0) #define ISRANGE(val, lo, hi) ((lo <= val) && (val < hi)) int main() { ll n, k; cin >> n >> k; if ((n + 1) / 2 >= k) cout << "YES" << endl; else cout << "NO" << endl; return 0; }
[ "control_flow.branch.if.condition.change" ]
931,213
931,214
u828752458
cpp
p03129
#include <bits/stdc++.h> using namespace std; #define X first #define Y second #define pb push_back typedef double db; typedef long long ll; typedef pair<int, int> P; int n, k; int main() { scanf("%d%d", &n, &k); puts(n <= 2 * k - 1 ? "YES" : "NO"); return 0; }
#include <bits/stdc++.h> using namespace std; #define X first #define Y second #define pb push_back typedef double db; typedef long long ll; typedef pair<int, int> P; int n, k; int main() { scanf("%d%d", &n, &k); puts(n >= 2 * k - 1 ? "YES" : "NO"); return 0; }
[ "misc.opposites", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "call.arguments.change", "expression.operation.binary.change", "io.output.change" ]
931,220
931,221
u182914272
cpp
p03129
// Author: Jinhai Chen #include <algorithm> #include <cstdio> #include <cstring> #include <iostream> using namespace std; const int INF = 0x3f3f3f3f; typedef long long ll; int main() { #ifdef CJHCJH // freopen("data.in","r",stdin); #endif ios::sync_with_stdio(false); int n, k; cin >> n >> k; if (k * 2 - 1 <= n) puts("YES"); else puts("No"); return 0; }
// Author: Jinhai Chen #include <algorithm> #include <cstdio> #include <cstring> #include <iostream> using namespace std; const int INF = 0x3f3f3f3f; typedef long long ll; int main() { #ifdef CJHCJH // freopen("data.in","r",stdin); #endif ios::sync_with_stdio(false); int n, k; cin >> n >> k; if (k * 2 - 1 <= n) puts("YES"); else puts("NO"); return 0; }
[ "literal.string.change", "literal.string.case.change", "call.arguments.change", "io.output.change" ]
931,222
931,223
u645239706
cpp
p03129
#include <bits/stdc++.h> using namespace std; // repetition #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) for (int i = 0; i < (n); ++i) #define euc_dis(x, y) sqrt(x *x + y * y) #define MOD 1e9 + 7 #define sp ' ' using ll = long long; ll mod(ll a, ll b) { return (a % b + b) % b; } ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } ll lcm(ll a, ll b) { return a * b / gcd(a, b); } void Yes() { cout << "Yes" << endl; } void No() { cout << "No" << endl; } void Judge(bool b) { b ? Yes() : No(); } void YES() { cout << "YES" << endl; } void NO() { cout << "NO" << endl; } void JUDGE(bool b) { b ? YES() : NO(); } ll powMod(ll b, ll e, ll m) { ll r = 1; while (e > 0) { if (e & 1) r = (r % m) * (b % m) % m; b = (b % m) * (b % m) % m; e >>= 1; } return r; } double distance(ll x1, ll y1, ll x2, ll y2) { return sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); } template <typename T> void ppp(T n) { cout << n << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); int n, k; cin >> n >> k; JUDGE(n / 2 + 1 >= k); return 0; }
#include <bits/stdc++.h> using namespace std; // repetition #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) for (int i = 0; i < (n); ++i) #define euc_dis(x, y) sqrt(x *x + y * y) #define MOD 1e9 + 7 #define sp ' ' using ll = long long; ll mod(ll a, ll b) { return (a % b + b) % b; } ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } ll lcm(ll a, ll b) { return a * b / gcd(a, b); } void Yes() { cout << "Yes" << endl; } void No() { cout << "No" << endl; } void Judge(bool b) { b ? Yes() : No(); } void YES() { cout << "YES" << endl; } void NO() { cout << "NO" << endl; } void JUDGE(bool b) { b ? YES() : NO(); } ll powMod(ll b, ll e, ll m) { ll r = 1; while (e > 0) { if (e & 1) r = (r % m) * (b % m) % m; b = (b % m) * (b % m) % m; e >>= 1; } return r; } double distance(ll x1, ll y1, ll x2, ll y2) { return sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); } template <typename T> void ppp(T n) { cout << n << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); int n, k; cin >> n >> k; JUDGE((n + 1) / 2 >= k); return 0; }
[ "call.arguments.change", "expression.operation.binary.remove" ]
931,231
931,232
u306142032
cpp
p03129
#include <cstdio> #include <cstdlib> #include <cstring> using namespace std; int n, k; int main() { scanf("%d%d", &n, &k); if (k >= (n + 1) / 2) { printf("YES"); } else { printf("NO"); } return 0; }
#include <cstdio> #include <cstdlib> #include <cstring> using namespace std; int n, k; int main() { scanf("%d%d", &n, &k); if (k > (n + 1) / 2) { printf("NO"); } else { printf("YES"); } return 0; }
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
931,233
931,234
u396278429
cpp