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 8
values |
|---|---|---|---|---|---|---|---|
p03705 | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef pair<int, int> pii;
#define fst first
#define snd second
#define pb push_back
template <typename T> bool chkmax(T &a, T b) { return a < b ? a = b, 1 : 0; }
template <typename T> bool chkmin(T &a, T b) { return a > b ? a = b, 1 : 0; }
const ... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef pair<int, int> pii;
#define fst first
#define snd second
#define pb push_back
template <typename T> bool chkmax(T &a, T b) { return a < b ? a = b, 1 : 0; }
template <typename T> bool chkmin(T &a, T b) { return a > b ? a = b, 1 : 0; }
const ... | [] | 1,376,278 | 1,376,279 | u999891524 | cpp |
p03705 | #include <bits/stdc++.h>
#define for0(i, n) for (int i = 0; i < n; i++)
#define for1(i, n) for (int i = 1; i <= n; i++)
#define pb push_back
#define mp make_pair
#define all(v) v.begin(), v.end()
#define V vector<int>
#define VP vector<pair<int, int>>
#define clr(A, x) memset(A, x, sizeof(A))
#define cpy(A, B) memcpy(A... | #include <bits/stdc++.h>
#define for0(i, n) for (int i = 0; i < n; i++)
#define for1(i, n) for (int i = 1; i <= n; i++)
#define pb push_back
#define mp make_pair
#define all(v) v.begin(), v.end()
#define V vector<int>
#define VP vector<pair<int, int>>
#define clr(A, x) memset(A, x, sizeof(A))
#define cpy(A, B) memcpy(A... | [
"call.add",
"call.arguments.change"
] | 1,376,288 | 1,376,289 | u663935973 | cpp |
p03705 | #include <iostream>
using namespace std;
int N, A, B;
int main() {
cin >> N >> A >> B;
if (A > B) {
cout << "0" << endl;
return 0;
}
if (N == 1) {
if (A == B) {
cout << "1" << endl;
return 0;
} else
cout << "0" << endl;
}
long long int ans = (B - A) * (N - 2) + 1;
cout <<... | #include <iostream>
using namespace std;
long long int N, A, B;
int main() {
cin >> N >> A >> B;
if (A > B) {
cout << "0" << endl;
return 0;
}
if (N == 1) {
if (A == B) {
cout << "1" << endl;
return 0;
} else
cout << "0" << endl;
return 0;
}
long long int ans = (B - A) ... | [
"variable_declaration.type.widen.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 1,376,292 | 1,376,291 | u287632390 | cpp |
p03702 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
const long long int mod = 1000000009;
const long long int INF = 1000000000;
const long long int MAX = 1000000000;
int main() {
long lo... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
const long long int mod = 1000000009;
const long long int INF = 1000000000;
const long long int MAX = 1000000000;
int main() {
long lo... | [
"call.add"
] | 1,376,309 | 1,376,310 | u985106134 | cpp |
p03702 | #include <cstdio>
int n, a, b, h[100000], i, l, m, r, x;
main() {
for (scanf("%d%d%d", &n, &a, &b), a -= b; i < n; l = 1, r = 1e9)
scanf("%d", h + i++);
while (l < r) {
m = (l + r) / 2;
for (x = i = 0; i < n; ++i)
h[i] > (long long)(m * b) ? x += (h[i] - m * b + a - 1) / a : 0;
x <= m ? r = m ... | #include <cstdio>
int n, a, b, h[100000], i, l, m, r;
long long x;
main() {
for (scanf("%d%d%d", &n, &a, &b), a -= b; i < n; l = 1, r = 1e9)
scanf("%d", h + i++);
while (l < r) {
m = (l + r) / 2;
for (x = i = 0; i < n; ++i)
h[i] > (long long)m *b ? x += (h[i] - m * b + a - 1) / a : 0;
x <= m ?... | [
"control_flow.loop.condition.change"
] | 1,376,342 | 1,376,341 | u265077879 | cpp |
p03702 | #include <cstdio>
#include <cstdlib>
#include <iostream>
#define ll long long
#define N 100086
#define inf 1000000000
using namespace std;
int n, h[N];
int A, B;
bool jud(ll k) {
ll cnt = 0;
for (int i = 1; i <= n; i++) {
ll tmp = h[i] - k * B;
if (tmp < 0)
continue;
ll num = tmp / A;
cnt += (... | #include <cstdio>
#include <cstdlib>
#include <iostream>
#define ll long long
#define N 100086
#define inf 1000000000
using namespace std;
int n, h[N];
int A, B;
bool jud(ll k) {
ll cnt = 0;
for (int i = 1; i <= n; i++) {
ll tmp = h[i] - k * B;
if (tmp < 0)
continue;
ll num = tmp / A;
cnt += (... | [
"assignment.add"
] | 1,376,343 | 1,376,344 | u550756195 | cpp |
p03702 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, n) for (int i = 0; i < (n); i++)
#define MEM(a, x) memset(a, x, sizeof(a))
#define ALL(a) a.begin(), a.end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end())
typedef long long ll;
int n;
ll a, b, dif;
ll h[100005];
bool C(ll x) {
if (h[n - 1] <= x * b)
... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, n) for (int i = 0; i < (n); i++)
#define MEM(a, x) memset(a, x, sizeof(a))
#define ALL(a) a.begin(), a.end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end())
typedef long long ll;
int n;
ll a, b, dif;
ll h[100005];
bool C(ll x) {
if (h[n - 1] <= x * b)
... | [
"variable_declaration.remove",
"identifier.change",
"io.output.change"
] | 1,376,366 | 1,376,367 | u950925609 | cpp |
p03702 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define rep(n) for (int i = 0; i < n; i++)
#define repp(j, n) for (int j = 0; j < n; j++)
#define reppp(i, m, n) for (int i ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define rep(n) for (int i = 0; i < n; i++)
#define repp(j, n) for (int j = 0; j < n; j++)
#define reppp(i, m, n) for (int i ... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 1,376,370 | 1,376,371 | u514150021 | cpp |
p03702 | #include <iostream>
typedef long long in;
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
in a, b, diff, h[123456], mid, l, r, temp, t = 0;
int n;
cin >> n >> a >> b;
diff = a - b;
l = 1;
r = 10e9 + 10;
in res = r;
for (int i = 0; i < n; i++)
cin >> h[i];
while (r - l > ... | #include <iostream>
typedef long long in;
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
in a, b, diff, h[123456], mid, l, r, temp, t = 0;
int n;
cin >> n >> a >> b;
diff = a - b;
l = 1;
r = 10e9 + 10;
in res = r;
for (int i = 0; i < n; i++)
cin >> h[i];
while (l <= r) ... | [
"expression.operation.binary.remove"
] | 1,376,391 | 1,376,392 | u569632613 | cpp |
p03702 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string.h>
#include <string>
#include <vector>
using namespa... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string.h>
#include <string>
#include <vector>
using namespa... | [
"assignment.add"
] | 1,376,398 | 1,376,399 | u398581483 | cpp |
p03702 | #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, a, b;
scanf("%d%d%d", &n, &a, &b);
a -= b;
vector<int> d(n);
rep(i, n) cin >> d[i];
int l = 0, r = 1e8;
while (l + 1 < r) {
ll c = (l + r) >> 1;
ll t... | #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, a, b;
scanf("%d%d%d", &n, &a, &b);
a -= b;
vector<int> d(n);
rep(i, n) cin >> d[i];
ll l = 0, r = 1e10;
while (l + 1 < r) {
ll c = (l + r) >> 1;
ll t... | [
"variable_declaration.type.change",
"literal.number.change",
"variable_declaration.value.change"
] | 1,376,419 | 1,376,420 | u482544950 | cpp |
p03702 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int n;
ll a, b, h[100000];
int can(ll k) {
ll s = 0;
for (int i = 0; i < n; i++) {
s += max(0LL, ((h[i] - a * k) + b - 1) / b);
if (s > k)
return 0;
}
return 1;
}
int main() {
scanf("%d%lld%lld", &n, &a, &b);
b -= a;
for ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int n;
ll a, b, h[100000];
int can(ll k) {
ll s = 0;
for (int i = 0; i < n; i++) {
s += max(0LL, ((h[i] - a * k) + b - 1) / b);
if (s > k)
return 0;
}
return 1;
}
int main() {
scanf("%d%lld%lld", &n, &b, &a);
b -= a;
for ... | [
"identifier.change",
"call.arguments.change"
] | 1,376,502 | 1,376,503 | u089329978 | cpp |
p03702 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
const int N = 1e5 + 1e3 + 7;
const long long M = 1e10 + 1e3 + 7;
long long n, a, b, h[N], ans, dam, k, hh[N];
bool can(long long m) {
ans = 0;
memset(hh, 0, sizeof(hh));
for (int i = 1; i <= n; ... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
const int N = 1e5 + 1e3 + 7;
const long long M = 1e10 + 1e3 + 7;
long long n, a, b, h[N], ans, dam, k, hh[N];
bool can(long long m) {
ans = 0;
memset(hh, 0, sizeof(hh));
for (int i = 1; i <= n; ... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,376,556 | 1,376,557 | u569427587 | cpp |
p03702 | #include <cmath>
#include <cstdio>
#define ll long long
#define N 100010
using namespace std;
double n, A, B;
double c[N], h[N];
bool judge(double x) {
for (int i = 1; i <= n; i++) {
c[i] = h[i] - x * B;
}
double ret = 0;
for (int i = 1; i <= n; i++) {
if (c[i] > 0) {
ret += ceil(c[i] / (A - B))... | #include <cmath>
#include <cstdio>
#define ll long long
#define N 100010
using namespace std;
double n, A, B;
double c[N], h[N];
bool judge(double x) {
for (int i = 1; i <= n; i++) {
c[i] = h[i] - x * B;
}
double ret = 0;
for (int i = 1; i <= n; i++) {
if (c[i] > 0) {
ret += ceil(c[i] / (A - B))... | [
"variable_declaration.type.change",
"literal.number.change",
"variable_declaration.value.change"
] | 1,376,568 | 1,376,569 | u663639206 | cpp |
p03707 | #include <bits/stdc++.h>
using namespace std;
const int N = 2005;
int f[N][N], n, m, q, h[N][N], w[N][N], a[N][N];
int main() {
scanf("%d%d%d", &n, &m, &q);
for (int i = 1; i <= n; ++i)
for (int j = 1; j <= m; ++j) {
scanf("%1d", &a[i][j]);
f[i][j] = a[i][j];
if (a[i][j]) {
if (a[i ... | #include <bits/stdc++.h>
using namespace std;
const int N = 2005;
int f[N][N], n, m, q, h[N][N], w[N][N], a[N][N];
int main() {
scanf("%d%d%d", &n, &m, &q);
for (int i = 1; i <= n; ++i)
for (int j = 1; j <= m; ++j) {
scanf("%1d", &a[i][j]);
f[i][j] = a[i][j];
if (a[i][j]) {
if (a[i ... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 1,376,587 | 1,376,588 | u621109093 | cpp |
p03707 |
//累積和「テスト
//けすな
#if 1
#include <algorithm>
#include <array>
#include <assert.h>
#include <cstdint>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_ma... |
#if 1
#include <algorithm>
#include <array>
#include <assert.h>
#include <cstdint>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <uno... | [
"assignment.change"
] | 1,376,589 | 1,376,590 | u935586669 | cpp |
p03707 | #include <bits/stdc++.h>
#define N 2050
using namespace std;
int n, m, q, mp[N][N], ps[N][N], ex[N][N], ey[N][N];
char s[N];
inline int rd() {
int x = 0, f = 1;
char ch = getchar();
while (ch > '9' || ch < '0') {
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = (... | #include <bits/stdc++.h>
#define N 2050
using namespace std;
int n, m, q, mp[N][N], ps[N][N], ex[N][N], ey[N][N];
char s[N];
inline int rd() {
int x = 0, f = 1;
char ch = getchar();
while (ch > '9' || ch < '0') {
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = (... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,376,591 | 1,376,592 | u430023097 | cpp |
p03707 | #include <stdio.h>
const int maxn = 2005;
int e[2][maxn][maxn], a[maxn][maxn];
char s[maxn][maxn];
int main() {
int n, m, Q, i, j;
scanf("%d%d%d", &n, &m, &Q);
for (i = 1; i <= n; i++) {
scanf("%s", s[i] + 1);
for (j = 1; j <= m; j++) {
a[i][j] = a[i - 1][j] + a[i][j - 1] - a[i - 1][j - 1] + s[i][j]... | #include <stdio.h>
const int maxn = 2005;
int e[2][maxn][maxn], a[maxn][maxn];
char s[maxn][maxn];
int main() {
int n, m, Q, i, j;
scanf("%d%d%d", &n, &m, &Q);
for (i = 1; i <= n; i++) {
scanf("%s", s[i] + 1);
for (j = 1; j <= m; j++) {
a[i][j] = a[i - 1][j] + a[i][j - 1] - a[i - 1][j - 1] + s[i][j]... | [
"identifier.change",
"control_flow.loop.condition.change"
] | 1,376,610 | 1,376,611 | u991119969 | cpp |
p03705 | #include "bits/stdc++.h"
using namespace std;
#ifdef _DEBUG
#include "dump.hpp"
#else
#define dump(...)
#endif
#define int long long
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define rrep(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define all(c) begin(c), end(c)
const int INF =
sizeof(int) == sizeof(lo... | #include "bits/stdc++.h"
using namespace std;
#ifdef _DEBUG
#include "dump.hpp"
#else
#define dump(...)
#endif
#define int long long
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define rrep(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define all(c) begin(c), end(c)
const int INF =
sizeof(int) == sizeof(lo... | [
"call.add",
"call.arguments.change"
] | 1,376,612 | 1,376,613 | u631007830 | cpp |
p03707 | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 2000 + 3;
int n, m, q, ps[MAXN][MAXN], e[2][MAXN][MAXN], x[2], y[2];
string s[MAXN];
int main() {
cin >> n >> m >> q;
for (int i = 0; i < n; i++) {
cin >> s[i];
for (auto &j : s[i])
j -= '0';
}
for (int i = 1; i <= n; i++)
for ... | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 2000 + 3;
int n, m, q, ps[MAXN][MAXN], e[2][MAXN][MAXN], x[2], y[2];
string s[MAXN];
int main() {
cin >> n >> m >> q;
for (int i = 0; i < n; i++) {
cin >> s[i];
for (auto &j : s[i])
j -= '0';
}
for (int i = 1; i <= n; i++)
for ... | [
"expression.operation.binary.add"
] | 1,376,638 | 1,376,639 | u596342425 | cpp |
p03707 | #include <algorithm>
#include <cstring>
#include <iostream>
using namespace std;
const int N = 2005;
string str;
int n, m, q, a[N][N], v[N][N], e[N][N], s[N][N], up[N][N], lf[N][N];
int main() {
cin >> n >> m >> q;
for (int i = 1; i <= n; i++) {
cin >> str;
for (int j = 0; j < m; j++)
a[i][j + 1] = st... | #include <algorithm>
#include <cstring>
#include <iostream>
using namespace std;
const int N = 2005;
string str;
int n, m, q, a[N][N], v[N][N], e[N][N], s[N][N], up[N][N], lf[N][N];
int main() {
cin >> n >> m >> q;
for (int i = 1; i <= n; i++) {
cin >> str;
for (int j = 0; j < m; j++)
a[i][j + 1] = st... | [
"assignment.value.change",
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 1,376,664 | 1,376,665 | u940778741 | cpp |
p03705 | #include <algorithm>
#include <iostream>
#include <vector>
#define reps(i, s, n) for ((i) = (s); (i) < (n); (i)++)
#define rep(i, n) reps(i, 0, n)
using ll = long long;
using namespace std;
int main() {
ll n, a, b, ans;
cin >> n >> a >> b;
ans = (b * n - b + a) - (a * n - a + b);
if (ans < 0)
ans = 0;
c... | #include <algorithm>
#include <iostream>
#include <vector>
#define reps(i, s, n) for ((i) = (s); (i) < (n); (i)++)
#define rep(i, n) reps(i, 0, n)
using ll = long long;
using namespace std;
int main() {
ll n, a, b, ans;
cin >> n >> a >> b;
// cout << b* n-b+a<<"," << a*n-a+b<<endl;
ans = (b * n - b + a) - (a... | [
"assignment.change"
] | 1,376,666 | 1,376,667 | u704411633 | cpp |
p03705 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> pint;
typedef vector<pint> vpint;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REP(i, n) for (int i = n - 1; i >= (0); i--)
#define reps(i, f, n) for (int i = (f); i < (n); i++)
#define each(i... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> pint;
typedef vector<pint> vpint;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REP(i, n) for (int i = n - 1; i >= (0); i--)
#define reps(i, f, n) for (int i = (f); i < (n); i++)
#define each(i... | [
"call.arguments.add",
"call.arguments.change"
] | 1,376,668 | 1,376,669 | u029876051 | cpp |
p03705 | /*
_ _ _______ _ _
| | / / | _____| | | / /
| | / / | | | | / /
| |/ / | |_____ | |/ /
| |\ \ | _____| | |\ \
| | \ \ | | | | \ \
| | \ \ | |_____ | | \ \
|_| \_\ |_______| |_| \_\
*/
/*#include <iostream>
#include <algorithm>
#include <assert.h>*/
#include <cmath>
#incl... | /*
_ _ _______ _ _
| | / / | _____| | | / /
| | / / | | | | / /
| |/ / | |_____ | |/ /
| |\ \ | _____| | |\ \
| | \ \ | | | | \ \
| | \ \ | |_____ | | \ \
|_| \_\ |_______| |_| \_\
*/
/*#include <iostream>
#include <algorithm>
#include <assert.h>*/
#include <cmath>
#incl... | [
"call.add",
"call.arguments.add"
] | 1,376,673 | 1,376,674 | u664950429 | cpp |
p03705 | #include <iostream>
using namespace std;
int main() {
int N, A, B;
cin >> N >> A >> B;
if (N == 1) {
if (A != B)
cout << "0\n";
else
cout << "1\n";
return 0;
}
if (A > B) {
cout << "0\n";
return 0;
}
cout << 1LL * (N - 2) * (B - A) + 1 << '\b';
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int N, A, B;
cin >> N >> A >> B;
if (N == 1) {
if (A != B)
cout << "0\n";
else
cout << "1\n";
return 0;
}
if (A > B) {
cout << "0\n";
return 0;
}
cout << 1LL * (N - 2) * (B - A) + 1 << '\n';
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 1,376,678 | 1,376,679 | u926441211 | cpp |
p03705 | #include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll n, a, b;
cin >> n >> a >> b;
if (n <= 0) {
cout << 0 << endl;
return 0;
}
if (a > b) {
cout << 0 << endl;
return 0;
}
if (a == b) {
cout << 1 << endl;
return 0;
}
if (a < b) {
... | #include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll n, a, b;
cin >> n >> a >> b;
if (n <= 0) {
cout << 0 << endl;
return 0;
}
if (a > b) {
cout << 0 << endl;
return 0;
}
if (a == b) {
cout << 1 << endl;
return 0;
}
if (a < b) {
... | [
"expression.operation.binary.remove"
] | 1,376,710 | 1,376,711 | u109105878 | cpp |
p03705 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
typedef long long int ll;
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <vector>
typedef long long int ll;
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i ... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,376,731 | 1,376,732 | u549743442 | cpp |
p03705 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define shosu(n) setprecision(n)
using namespace std;
int main() {
int N, A, B;
cin >> N >> A >> B;
if (A == B || N == 2)
cout << 1 << endl;
else if (A != B && N == 1 || A > B)
cout << 0 << endl;
else
cout << (B - A) * (N - 2... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define shosu(n) setprecision(n)
using namespace std;
int main() {
long long N, A, B;
cin >> N >> A >> B;
if (A == B || N == 2)
cout << 1 << endl;
else if (A != B && N == 1 || A > B)
cout << 0 << endl;
else
cout << (B - A) * ... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change"
] | 1,376,735 | 1,376,734 | u386294884 | cpp |
p03705 | #include <iostream>
#include <utility>
using namespace std;
int main() {
int N, A, B;
cin >> N >> A >> B;
int64_t ans = 0;
if (A > B) {
ans = 0;
} else if (N == 1) {
ans = (A == B) ? 1 : 0;
} else {
ans = (B - A) * (N - 1) + 1;
}
cout << ans << endl;
}
| #include <iostream>
#include <utility>
using namespace std;
int main() {
int64_t N, A, B;
cin >> N >> A >> B;
int64_t ans = 0;
if (A > B) {
ans = 0;
} else if (N == 1) {
ans = (A == B) ? 1 : 0;
} else {
ans = (B - A) * (N - 2) + 1;
}
cout << ans << endl;
} | [
"variable_declaration.type.primitive.change",
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 1,376,747 | 1,376,748 | u946912540 | cpp |
p03705 | #include <iostream>
using namespace std;
int main() {
long long int N, A, B, ans;
cin >> N >> A >> B;
if (A > B)
cout << "0" << endl;
else if (N == 1)
if (A != B)
cout << "0" << endl;
else
cout << "0" << endl;
else {
ans = (B - A) * (N - 2) + 1;
cout << ans << endl;
}
... | #include <iostream>
using namespace std;
int main() {
long long int N, A, B, ans;
cin >> N >> A >> B;
if (A > B)
cout << "0" << endl;
else if (N == 1)
if (A != B)
cout << "0" << endl;
else
cout << "1" << endl;
else {
ans = (B - A) * (N - 2) + 1;
cout << ans << endl;
}
... | [
"literal.string.change",
"io.output.change"
] | 1,376,750 | 1,376,751 | u443598374 | cpp |
p03705 | /* Success may not come to me immediately,
* but it will come definitely....
*/
#include <bits/stdc++.h>
//=====================================================================
using namespace std;
//=====================================================================
#define opt ... | /* Success may not come to me immediately,
* but it will come definitely....
*/
#include <bits/stdc++.h>
//=====================================================================
using namespace std;
//=====================================================================
#define opt ... | [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 1,376,783 | 1,376,784 | u712860984 | cpp |
p03705 | /* Success may not come to me immediately,
* but it will come definitely....
*/
#include <bits/stdc++.h>
//=====================================================================
using namespace std;
//=====================================================================
#define opt ... | /* Success may not come to me immediately,
* but it will come definitely....
*/
#include <bits/stdc++.h>
//=====================================================================
using namespace std;
//=====================================================================
#define opt ... | [
"literal.string.change",
"io.output.change"
] | 1,376,785 | 1,376,784 | u712860984 | cpp |
p03705 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
long long N, A, B;
cin >> N >> A >> B;
if (A == B)
cout << 1 << endl;
else if (A > B)
cout << 0 << endl;
else
cout << (B - A) * (N - 2) + 1 << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
long long N, A, B;
cin >> N >> A >> B;
if (A == B)
cout << 1 << endl;
else if (A > B || N == 1)
cout << 0 << endl;
else
cout << (B - A) * (N - 2) + 1 << endl;
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 1,376,808 | 1,376,809 | u241615199 | cpp |
p03705 | #include <stdio.h>
int main() {
long long a, b, n;
while (scanf("%lld%lld%lld", &n, &a, &b) != EOF) {
if (a > b)
printf("0\n");
else if (n == 1) {
if (a == b)
printf("1\n");
else
printf("0\n");
} else {
long long sum = (n - 2) * ((b - a) + 1);
printf("%lld\n... | #include <stdio.h>
int main() {
long long a, b, n;
while (scanf("%lld%lld%lld", &n, &a, &b) != EOF) {
if (a > b)
printf("0\n");
else if (n == 1) {
if (a == b)
printf("1\n");
else
printf("0\n");
} else {
long long sum = (n - 2) * ((b - a));
printf("%lld\n", s... | [
"expression.operation.binary.remove",
"misc.opposites",
"expression.operator.arithmetic.change",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 1,376,816 | 1,376,817 | u623736960 | cpp |
p03705 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll n, a, b;
cin >> n >> a >> b;
if (a > b || (a < b && n == 1)) {
cout << 0 << endl;
} else if (a == b && (a < b && n == 2)) {
cout << 1 << endl;
} else if (a < b && n >= 2) {
cout << (n - 1) * b + a - (n - 1) * a - b... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll n, a, b;
cin >> n >> a >> b;
if (a > b || (a < b && n == 1)) {
cout << 0 << endl;
} else if (a == b || (a < b && n == 2)) {
cout << 1 << endl;
} else if (a < b && n >= 2) {
// n = 1000000000,a=1,b=1000000000;
c... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,376,832 | 1,376,833 | u182281036 | cpp |
p03711 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int a, b;
bool ok;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin >> a >> b;
unordered_set<int> s1 = {1, 3, 5, 7, 8, 10, 12};
unordered_set<int> s2 = {4, 6, 9, 11};
unordered_set<int> s3 = {2};
if (s1.count(a) && s1.... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int a, b;
bool ok;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin >> a >> b;
unordered_set<int> s1 = {1, 3, 5, 7, 8, 10, 12};
unordered_set<int> s2 = {4, 6, 9, 11};
unordered_set<int> s3 = {2};
if (s1.count(a) && s1.... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,376,860 | 1,376,861 | u063318293 | cpp |
p03711 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int b[4] = {4, 6, 9, 11};
int x, y;
cin >> x >> y;
if (x == 2 || y == 2) {
printf("No\n");
}
else {
if ((x == b[0] || x == b[1] || x == b[2] || x == b[3]) &&
(y = b[0] || y == b[1] || y == b[2] || y == b[3])) {
... | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int b[4] = {4, 6, 9, 11};
int x, y;
cin >> x >> y;
if (x == 2 || y == 2) {
printf("No\n");
}
else {
if ((x == b[0] || x == b[1] || x == b[2] || x == b[3]) &&
(y == b[0] || y == b[1] || y == b[2] || y == b[3])) {
... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,376,882 | 1,376,883 | u093676545 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, n) for (int i = 1; i < n; i++)
#define P pair<int, int>
typedef long long ll;
const ll mod = 1e9 + 7;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return fals... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, n) for (int i = 1; i < n; i++)
#define P pair<int, int>
typedef long long ll;
const ll mod = 1e9 + 7;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return fals... | [
"literal.number.change"
] | 1,376,886 | 1,376,887 | u363936720 | cpp |
p03711 | #include <algorithm>
#include <cctype>
#include <cinttypes>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <set>
#include <stack>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
#define ceil(a, b) (!(a % b) ? a / b : a / b + 1)
#define all(a) (a).b... | #include <algorithm>
#include <cctype>
#include <cinttypes>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <set>
#include <stack>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
#define ceil(a, b) (!(a % b) ? a / b : a / b + 1)
#define all(a) (a).b... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,376,905 | 1,376,906 | u655389559 | cpp |
p03711 | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
ll MOD = 1000000007;
#define vec vector<int>
#define vecll vector<ll>
#define vecd vector<double>
#define vecst vector<string>
#define vecb vector<bool>
#define vec2(var, n, m) vector<vector<int>> var(n, vector<int>(m, 0))
#define vecb2(var, n, m) vec... | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
ll MOD = 1000000007;
#define vec vector<int>
#define vecll vector<ll>
#define vecd vector<double>
#define vecst vector<string>
#define vecb vector<bool>
#define vec2(var, n, m) vector<vector<int>> var(n, vector<int>(m, 0))
#define vecb2(var, n, m) vec... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change"
] | 1,376,907 | 1,376,908 | u929977034 | cpp |
p03711 | #include <algorithm>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <functional>
#include <iostream>
#include <limits>
#include <... | #include <algorithm>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <functional>
#include <iostream>
#include <limits>
#include <... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,376,921 | 1,376,922 | u708599234 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int X[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int A, B;
cin >> A >> B;
if (X[A] == X[B]) {
cout << "YES" << endl;
} else {
cout << "YES" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int X[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int A, B;
cin >> A >> B;
if (X[A] == X[B]) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,376,936 | 1,376,937 | u425231382 | cpp |
p03711 |
// Problem : A - Grouping
// Contest : AtCoder - AtCoder Beginner Contest 062
// URL : https://atcoder.jp/contests/abc062/tasks/abc062_a
// Memory Limit : 256 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
//#pragma GCC optimize("Ofast")
//#pragma GCC optimize ("unroll-loops... |
// Problem : A - Grouping
// Contest : AtCoder - AtCoder Beginner Contest 062
// URL : https://atcoder.jp/contests/abc062/tasks/abc062_a
// Memory Limit : 256 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
//#pragma GCC optimize("Ofast")
//#pragma GCC optimize ("unroll-loops... | [
"literal.number.change",
"assignment.variable.change",
"variable_access.subscript.index.change"
] | 1,376,949 | 1,376,950 | u768104057 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
#include <math.h>
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;
}
const int INF = 1001001001;
vector<pair<... | #include <bits/stdc++.h>
using namespace std;
#include <math.h>
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;
}
const int INF = 1001001001;
vector<pair<... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,376,953 | 1,376,954 | u209457657 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
const int64_t INF = 999999999;
int main() {
int x, y;
cin >> x >> y;
vector<int> t = {1, 3, 5, 7, 8, 12};
vector<int> k = {4, 6, 9, 11};
int h = 2;
if (x == 2 && y == 2) {
cout << "Yes" << endl;
return 0;
}
bool xx = false;
bool yy = false;
for... | #include <bits/stdc++.h>
using namespace std;
const int64_t INF = 999999999;
int main() {
int x, y;
cin >> x >> y;
vector<int> t = {1, 3, 5, 7, 8, 10, 12};
vector<int> k = {4, 6, 9, 11};
int h = 2;
if (x == 2 && y == 2) {
cout << "Yes" << endl;
return 0;
}
bool xx = false;
bool yy = false;
... | [] | 1,376,955 | 1,376,956 | u209457657 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
const int64_t INF = 999999999;
int main() {
int x, y;
cin >> x >> y;
vector<int> t = {1, 3, 5, 7, 8, 12};
vector<int> k = {4, 6, 9, 11};
int h = 2;
if (x == 2 && y == 2) {
cout << "Yes" << endl;
return 0;
}
bool xx = false;
bool yy = false;
for... | #include <bits/stdc++.h>
using namespace std;
const int64_t INF = 999999999;
int main() {
int x, y;
cin >> x >> y;
vector<int> t = {1, 3, 5, 7, 8, 10, 12};
vector<int> k = {4, 6, 9, 11};
int h = 2;
if (x == 2 && y == 2) {
cout << "Yes" << endl;
return 0;
}
bool xx = false;
bool yy = false;
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,376,957 | 1,376,956 | u209457657 | cpp |
p03711 | #include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <tuple>
#include <vector>
using namespace std;
typedef long long ll;
ll const INF = 1LL << 60;
int main() {
ll x, y;
cin >> x >> y;
set<ll> g1 = {... | #include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <tuple>
#include <vector>
using namespace std;
typedef long long ll;
ll const INF = 1LL << 60;
int main() {
ll x, y;
cin >> x >> y;
set<ll> g1 = {... | [] | 1,376,965 | 1,376,966 | u178536051 | cpp |
p03711 | #include <iostream>
#include <string>
int main() {
std::string a, b;
std::string group = "135781012";
std::cin >> a >> b;
if (a == "2" || b == "2")
std::cout << "No";
else if ((group.find(a) != std::string::npos) ^
(group.find(a) != std::string::npos))
std::cout << "No";
else
std::cou... | #include <iostream>
#include <string>
int main() {
std::string a, b;
std::string group = "135781012";
std::cin >> a >> b;
if (a == "2" || b == "2")
std::cout << "No";
else if ((group.find(a) != std::string::npos) ^
(group.find(b) != std::string::npos))
std::cout << "No";
else
std::cou... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,376,967 | 1,376,968 | u509384866 | cpp |
p03711 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long int ll;
int INF = 100100101;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int a, b;
cin >> a >> b;
int one[] = {1, 3, 5, 7, 8, 10, 12};
int two[] = {4, 6, 9, 11};
if (a =... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long int ll;
int INF = 100100101;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int a, b;
cin >> a >> b;
int one[] = {1, 3, 5, 7, 8, 10, 12};
int two[] = {4, 6, 9, 11};
if (a =... | [
"literal.string.change",
"io.output.change"
] | 1,376,975 | 1,376,976 | u415671616 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int group = 0;
switch (x) {
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
group = 1;
break;
case 4:
case 6:
case 9:
case 11:
group = 2;
break;
case 2:
group = 3;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int group = 0;
switch (x) {
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
group = 1;
break;
case 4:
case 6:
case 9:
case 11:
group = 2;
break;
case 2:
group = 3;
... | [
"identifier.change",
"control_flow.loop.for.condition.change"
] | 1,376,977 | 1,376,978 | u701527888 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); ++i)
#define chmax(a, b) a = max(a, b)
#define chmin(a, b) a = min(a, b)
#define fi first
#define se second
#define INF 1000000009
#define LLINF 1000000000000000009LL
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); ++i)
#define chmax(a, b) a = max(a, b)
#define chmin(a, b) a = min(a, b)
#define fi first
#define se second
#define INF 1000000009
#define LLINF 1000000000000000009LL
... | [
"literal.number.change",
"assignment.variable.change",
"variable_access.subscript.index.change"
] | 1,376,979 | 1,376,980 | u912752743 | cpp |
p03711 | #ifdef DEBUG
#else
#pragma GCC optimize("O3,no-stack-protector")
#pragma GCC optimize("unroll-loops")
#if __cplusplus < 201703L
#pragma GCC target("avx")
#else
#pragma GCC target("avx2")
#endif
#endif
// 実数の場合
// #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define _USE_MATH_DEFINE... | #ifdef DEBUG
#else
#pragma GCC optimize("O3,no-stack-protector")
#pragma GCC optimize("unroll-loops")
#if __cplusplus < 201703L
#pragma GCC target("avx")
#else
#pragma GCC target("avx2")
#endif
#endif
// 実数の場合
// #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#define _USE_MATH_DEFINE... | [] | 1,376,989 | 1,376,990 | u261538386 | cpp |
p03711 | #include <bits/stdc++.h>
#define rep(i, n) \
; \
for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
long double pi = acos(-1);
const... | #include <bits/stdc++.h>
#define rep(i, n) \
; \
for (int i = 0; i < (n); i++)
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
long double pi = acos(-1);
const... | [
"expression.operation.binary.add"
] | 1,376,991 | 1,376,992 | u239316561 | cpp |
p03711 | #define rep(i, n) for (int i = 0; i < (n); i++)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int MOD = 1000000007;
int groupNum(int num) {
if (num == 1 || num == 3 || num == 5 || num == 8 || num == 10 || num == 12) {
return 1;
} else if (num == 4 || num ==... | #define rep(i, n) for (int i = 0; i < (n); i++)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int MOD = 1000000007;
int groupNum(int num) {
if (num == 1 || num == 3 || num == 5 || num == 7 || num == 8 || num == 10 ||
num == 12) {
return 1;
} else if (... | [
"control_flow.branch.if.condition.change"
] | 1,376,993 | 1,376,994 | u475280305 | cpp |
p03711 | #include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#include <cassert>
#include <ciso646>
#include <cmath>
#include <complex>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#i... | #include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#include <cassert>
#include <ciso646>
#include <cmath>
#include <complex>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#i... | [
"literal.number.change"
] | 1,377,009 | 1,377,010 | u114137758 | cpp |
p03711 | // abc062_a
#include <bits/stdc++.h>
#ifdef LOCAL
#include "../cxx-prettyprint/prettyprint.hpp"
#endif
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;
#define REP(i, n) for (int(i) = 0; (i) < (int)(n); ++(i))
#define REPN(i, m, n) for (int(i) = m; (i) < (int)(n); +... | // abc062_a
#include <bits/stdc++.h>
#ifdef LOCAL
#include "../cxx-prettyprint/prettyprint.hpp"
#endif
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;
#define REP(i, n) for (int(i) = 0; (i) < (int)(n); ++(i))
#define REPN(i, m, n) for (int(i) = m; (i) < (int)(n); +... | [] | 1,377,023 | 1,377,024 | u614550445 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> A = {1, 3, 5, 7, 8, 10, 12};
vector<int> B = {4, 6, 9, 11};
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
if (find(A.begin(), A.end(), x) == find(A.begin(), A.end(), y)) {
cout << "Y... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> A = {1, 3, 5, 7, 8, 10, 12};
vector<int> B = {4, 6, 9, 11};
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
if (count(A.begin(), A.end(), x) == count(A.begin(), A.end(), y)) {
cout << ... | [
"identifier.change",
"call.function.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,377,025 | 1,377,026 | u555261053 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> A = {1, 3, 5, 7, 8, 10, 12};
vector<int> B = {6, 9, 11};
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
if (count(A.begin(), A.end(), x) == count(A.begin(), A.end(), y)) {
cout << "Ye... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> A = {1, 3, 5, 7, 8, 10, 12};
vector<int> B = {4, 6, 9, 11};
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
if (count(A.begin(), A.end(), x) == count(A.begin(), A.end(), y)) {
cout << ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,377,027 | 1,377,026 | u555261053 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> A = {1, 3, 5, 7, 8, 10, 12};
vector<int> B = {6, 9, 11};
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
if (count(A.begin(), A.end(), x) == count(A.begin(), A.end(), y)) {
cout << "YE... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> A = {1, 3, 5, 7, 8, 10, 12};
vector<int> B = {4, 6, 9, 11};
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
if (count(A.begin(), A.end(), x) == count(A.begin(), A.end(), y)) {
cout << ... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,377,028 | 1,377,026 | u555261053 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> A = {1, 3, 5, 7, 8, 10, 12};
vector<int> B = {4, 6, 9, 11};
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
if (find(A.begin(), A.end(), x) == find(A.begin(), A.end(), y)) {
cout << "Y... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> A = {1, 3, 5, 7, 8, 10, 12};
vector<int> B = {4, 6, 9, 11};
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
if (find(A.begin(), A.end(), x) == find(A.begin(), A.end(), y)) {
cout << "Y... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,377,025 | 1,377,029 | u555261053 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> A = {1, 3, 5, 7, 8, 10, 12};
vector<int> B = {6, 9, 11};
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
if (find(A.begin(), A.end(), x) == find(A.begin(), A.end(), y)) {
cout << "Yes"... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> A = {1, 3, 5, 7, 8, 10, 12};
vector<int> B = {4, 6, 9, 11};
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
if (find(A.begin(), A.end(), x) == find(A.begin(), A.end(), y)) {
cout << "Y... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,377,030 | 1,377,029 | u555261053 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
char xg, yg;
if (x == 4 || x == 6 || x == 9 || x == 11) {
xg = 'B';
}
if (x == 2) {
xg = 'C';
} else {
xg = 'A';
}
if (y == 4 || y == 6 || y == 9 || y == 11) {
yg = 'B';
}
if (y == 2) {
yg =... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
char xg, yg;
if (x == 4 || x == 6 || x == 9 || x == 11) {
xg = 'B';
} else if (x == 2) {
xg = 'C';
} else {
xg = 'A';
}
if (y == 4 || y == 6 || y == 9 || y == 11) {
yg = 'B';
} else if (y == 2) {
... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 1,377,031 | 1,377,032 | u555261053 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
array<int, 12> a{1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
a[x + 1] == a[y + 1] ? cout << "Yes" : cout << "No";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
array<int, 12> a{1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
a[x - 1] == a[y - 1] ? cout << "Yes" : cout << "No";
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"variable_access.subscript.index.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,377,033 | 1,377,034 | u582940224 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
array<int, 12> a{1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
a[x + 1] == a[y + 1] ? cout << "Yes" : cout << "NO";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
array<int, 12> a{1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
a[x - 1] == a[y - 1] ? cout << "Yes" : cout << "No";
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"variable_access.subscript.index.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"literal.string.change",
"literal.string.case.change"
] | 1,377,035 | 1,377,034 | u582940224 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
array<int, 12> a{1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
if (a[x + 1] == a[y + 1])
cout << "Yes";
cout << "No";
} | #include <bits/stdc++.h>
using namespace std;
int main() {
array<int, 12> a{1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
a[x - 1] == a[y - 1] ? cout << "Yes" : cout << "No";
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,377,036 | 1,377,034 | u582940224 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int table[] = {1, 3, 1, 2, 1, 2, 1, 8, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
cout << (table[x - 1] == table[y - 1] ? "Yes" : "No") << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int table[] = {1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
cout << (table[x - 1] == table[y - 1] ? "Yes" : "No") << endl;
return 0;
} | [
"literal.number.change"
] | 1,377,044 | 1,377,045 | u578969098 | cpp |
p03711 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
template <typename A, typename B> bool chmin(A &a, const B &b) {
return b < a && (a = b, true);
}
template <typename A, typename B> bool chmax(A &a, const B &b) {
return a < b && (a = b, true);
}
int... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
template <typename A, typename B> bool chmin(A &a, const B &b) {
return b < a && (a = b, true);
}
template <typename A, typename B> bool chmax(A &a, const B &b) {
return a < b && (a = b, true);
}
int... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 1,377,048 | 1,377,049 | u535565217 | cpp |
p03711 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <set>
#include <vector>
using namespace std;
int main() {
vector<int> v{1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int a, b;
cin >> a >> b;
if (v[a - 1] && v[b - 1]) {
cout << "Yes";
} else {
cout << "No";
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <set>
#include <vector>
using namespace std;
int main() {
vector<int> v{1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int a, b;
cin >> a >> b;
if (v[a - 1] == v[b - 1]) {
cout << "Yes";
} else {
cout << "No";
... | [
"control_flow.branch.if.condition.change"
] | 1,377,050 | 1,377,051 | u614159574 | cpp |
p03711 | #include <algorithm>
#include <iostream>
#include <vector>
typedef long long ll;
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int xg, yg;
if (x == 2)
xg = 3;
if (x == 4 || x == 6 || x == 9 || x == 11)
xg = 2;
else
xg = 1;
if (y == 2)
yg = 3;
if (y == 4 || y == 6 || y == 9 ... | #include <algorithm>
#include <iostream>
#include <vector>
typedef long long ll;
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int xg, yg;
if (x == 2)
xg = 3;
else if (x == 4 || x == 6 || x == 9 || x == 11)
xg = 2;
else
xg = 1;
if (y == 2)
yg = 3;
else if (y == 4 || y == 6 ... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 1,377,065 | 1,377,066 | u579644164 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
vector<int> v = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
if (v[x] == v[y]) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
} | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
vector<int> v = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
if (v[x] == v[y]) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,377,070 | 1,377,071 | u492660436 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
bool sameSet(int x, int y, const set<int> &s) {
return s.find(x) != s.end() && s.find(y) != s.end();
};
int main() {
int x, y;
cin >> x >> y;
set<int> s1{1, 3, 5, 6, 8, 10, 12}, s2{4, 6, 9, 11}, s3{2};
if (sameSet(x, y, s1) || sameSet(x, y, s2) || sameSet(x, y... | #include <bits/stdc++.h>
using namespace std;
bool sameSet(int x, int y, const set<int> &s) {
return s.find(x) != s.end() && s.find(y) != s.end();
};
int main() {
int x, y;
cin >> x >> y;
set<int> s1{1, 3, 5, 7, 8, 10, 12}, s2{4, 6, 9, 11}, s3{2};
if (sameSet(x, y, s1) || sameSet(x, y, s2) || sameSet(x, y... | [
"literal.number.change"
] | 1,377,074 | 1,377,075 | u006624099 | cpp |
p03711 | #include <bits/stdc++.h>
#include <cmath>
#include <math.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vvl = vector<vl>;
using vs = vector<string>;
using vvs = vector<vs>;
using vc = vector<char>;
using vvc = vector<vc>;
using vb = vector<boo... | #include <bits/stdc++.h>
#include <cmath>
#include <math.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vvl = vector<vl>;
using vs = vector<string>;
using vvs = vector<vs>;
using vc = vector<char>;
using vvc = vector<vc>;
using vb = vector<boo... | [] | 1,377,080 | 1,377,081 | u776056110 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
#define dhoom \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
typedef long ... | #include <bits/stdc++.h>
using namespace std;
#define dhoom \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
typedef long ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,097 | 1,377,098 | u708590262 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x == 2) {
if (y == 2)
cout << "Yes" << endl;
else
cout << "No" << endl;
} else if (x == 4 || x == 6 || x == 9 || x == 11) {
if (y == 4 || y == 6 || y == 9 || y == 11)
cout << "Yes" << endl;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x == 2) {
if (y == 2)
cout << "Yes" << endl;
else
cout << "No" << endl;
} else if (x == 4 || x == 6 || x == 9 || x == 11) {
if (y == 4 || y == 6 || y == 9 || y == 11)
cout << "Yes" << endl;
... | [
"expression.operation.binary.remove"
] | 1,377,099 | 1,377,100 | u513850599 | cpp |
p03711 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <vector>
using namespace std;
void solve() {
int x, y;
cin >> x >> y;
vector<int> v = {0, 2, 0, 1, 0, 1, 0, 1, 0, 1, 0};
if (v[x - 1] == v[y - 1])
cout << "Yes\n";
else
cout << "No\n";
... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <vector>
using namespace std;
void solve() {
int x, y;
cin >> x >> y;
vector<int> v = {0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
if (v[x - 1] == v[y - 1])
cout << "Yes\n";
else
cout << "No\n... | [] | 1,377,103 | 1,377,104 | u489302942 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if ((x || y) == 2)
cout << "No" << endl;
else if ((x - 1) % 7 % 2 == (y - 1) % 7 % 2)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x == 2 || y == 2)
cout << "No" << endl;
else if ((x - 1) % 7 % 2 == (y - 1) % 7 % 2)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [
"control_flow.branch.if.condition.change"
] | 1,377,105 | 1,377,106 | u740450466 | cpp |
p03711 | #include <bits/stdc++.h>
#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 all(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
#define bit(n) (1 << (n))
using namespace std;
typedef long long ll;
typede... | #include <bits/stdc++.h>
#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 all(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
#define bit(n) (1 << (n))
using namespace std;
typedef long long ll;
typede... | [
"io.output.change"
] | 1,377,113 | 1,377,114 | u115838990 | cpp |
p03711 | #include <iostream>
using namespace std;
int main() {
int a, b, c[] = {0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
cin >> a >> b;
cout << (c[a] == c[b] ? "Yes" : "No") << endl;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c[] = {-1, 0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
cin >> a >> b;
cout << (c[a] == c[b] ? "Yes" : "No") << endl;
}
| [] | 1,377,134 | 1,377,135 | u087801666 | cpp |
p03711 | #include <iostream>
#include <stdio.h>
//#include <bits/stdc++.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <float.h>
#include <iomanip>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#i... | #include <iostream>
#include <stdio.h>
//#include <bits/stdc++.h>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <float.h>
#include <iomanip>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#i... | [
"literal.number.change"
] | 1,377,142 | 1,377,143 | u516525290 | cpp |
p03711 | #include "bits/stdc++.h"
using namespace std;
int main() {
int judge[] = {1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
if (judge[x] == judge[y]) {
cout << "Yes" << endl;
return 0;
}
cout << "No" << endl;
return 0;
} | #include "bits/stdc++.h"
using namespace std;
int main() {
int judge[] = {1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
if (judge[x - 1] == judge[y - 1]) {
cout << "Yes" << endl;
return 0;
}
cout << "No" << endl;
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,377,144 | 1,377,145 | u906839513 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x == 2 || y == 2)
cout << "No" << endl;
else if (x == 1 || x == 3 || x == 5 || x == 7 || x == 8 || x == 10 ||
x == 12) {
if (y == 1 || y == 3 || y == 5 || y == 7 || y == 8 || y == 10 || y == 12)
cou... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x == 2 || y == 2)
cout << "No" << endl;
else if (x == 1 || x == 3 || x == 5 || x == 7 || x == 8 || x == 10 ||
x == 12) {
if (y == 1 || y == 3 || y == 5 || y == 7 || y == 8 || y == 10 || y == 12)
cou... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,152 | 1,377,153 | u433189059 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> vec = {0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
if (vec[x] == vec[y])
cout << "Yes";
else
cout << "No";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> vec = {0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
if (vec[x - 1] == vec[y - 1])
cout << "Yes";
else
cout << "No";
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,377,154 | 1,377,155 | u654949547 | cpp |
p03711 | #include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep3(i, m, n) for (int(i) = m; (i) <= (n); (i)++)
#define rep3rev(i, m, n) for (int(i) = m; (i) >= (n); (i)--)
#define all(a) (a.begin()), (a.end())
#define rall(a) (a.rbegin()), (a.rend())
#define fi first
#defi... | #include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep3(i, m, n) for (int(i) = m; (i) <= (n); (i)++)
#define rep3rev(i, m, n) for (int(i) = m; (i) >= (n); (i)--)
#define all(a) (a.begin()), (a.end())
#define rall(a) (a.rbegin()), (a.rend())
#define fi first
#defi... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,377,158 | 1,377,159 | u103557284 | cpp |
p03711 | #include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep3(i, m, n) for (int(i) = m; (i) <= (n); (i)++)
#define rep3rev(i, m, n) for (int(i) = m; (i) >= (n); (i)--)
#define all(a) (a.begin()), (a.end())
#define rall(a) (a.rbegin()), (a.rend())
#define fi first
#defi... | #include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define rep3(i, m, n) for (int(i) = m; (i) <= (n); (i)++)
#define rep3rev(i, m, n) for (int(i) = m; (i) >= (n); (i)--)
#define all(a) (a.begin()), (a.end())
#define rall(a) (a.rbegin()), (a.rend())
#define fi first
#defi... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 1,377,160 | 1,377,159 | u103557284 | cpp |
p03711 | #include <iostream>
using namespace std;
int c[13] = {0, 1, 3, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2};
int main() {
int a, b;
cin >> a >> b;
if (c[a] == c[b])
cout << "Yes";
else
cout << "No";
}
/*code in 90 seconds*/ | #include <iostream>
using namespace std;
int c[13] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int main() {
int a, b;
cin >> a >> b;
if (c[a] == c[b])
cout << "Yes";
else
cout << "No";
}
/*code in 90 seconds*/ | [] | 1,377,167 | 1,377,168 | u723721005 | cpp |
p03711 | #include <iostream>
using namespace std;
int main(void) {
static int A[7] = {1, 3, 5, 7, 8, 10, 12};
static int B[4] = {4, 6, 9, 11};
int x, y;
bool b_X = false;
bool b_Y = false;
cin >> x >> y;
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < 4; i++) {
if ... | #include <iostream>
using namespace std;
int main(void) {
static int A[7] = {1, 3, 5, 7, 8, 10, 12};
static int B[4] = {4, 6, 9, 11};
int x, y;
bool b_X = false;
bool b_Y = false;
cin >> x >> y;
// Cのパターンのとき
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
// Bのパターンのとき
for (in... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,171 | 1,377,172 | u963353562 | cpp |
p03711 | #include <iostream>
using namespace std;
int main(void) {
static int A[7] = {1, 3, 5, 7, 8, 10, 12};
static int B[4] = {4, 6, 9, 11};
int x, y;
bool b_X = false;
bool b_Y = false;
cin >> x >> y;
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < 4; i++) {
if ... | #include <iostream>
using namespace std;
int main(void) {
static int A[7] = {1, 3, 5, 7, 8, 10, 12};
static int B[4] = {4, 6, 9, 11};
int x, y;
bool b_X = false;
bool b_Y = false;
cin >> x >> y;
// Cのパターンのとき
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
// Bのパターンのとき
for (in... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,173 | 1,377,172 | u963353562 | cpp |
p03711 | #include <iostream>
using namespace std;
int main(void) {
static int A[7] = {1, 3, 5, 7, 8, 10, 12};
static int B[4] = {4, 6, 9, 11};
int x, y;
bool b_X = false;
bool b_Y = false;
cin >> x >> y;
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < 4; i++) {
if ... | #include <iostream>
using namespace std;
int main(void) {
static int A[7] = {1, 3, 5, 7, 8, 10, 12};
static int B[4] = {4, 6, 9, 11};
int x, y;
bool b_X = false;
bool b_Y = false;
cin >> x >> y;
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < 4; i++) {
if ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,171 | 1,377,174 | u963353562 | cpp |
p03711 | #include <iostream>
using namespace std;
int main(void) {
static int A[7] = {1, 3, 5, 7, 8, 10, 12};
static int B[4] = {4, 6, 9, 11};
int x, y;
bool b_X = false;
bool b_Y = false;
cin >> x >> y;
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < 4; i++) {
if ... | #include <iostream>
using namespace std;
int main(void) {
static int A[7] = {1, 3, 5, 7, 8, 10, 12};
static int B[4] = {4, 6, 9, 11};
int x, y;
bool b_X = false;
bool b_Y = false;
cin >> x >> y;
if (x == 2 || y == 2) {
cout << "No" << endl;
return 0;
}
for (int i = 0; i < 4; i++) {
if ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,173 | 1,377,174 | u963353562 | cpp |
p03711 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
ll gcd(ll x, ll y) {
if (y == 0)
return x;
else
return gcd(y, x % y);
}
ll lcm(ll x, ll y) { return x / gcd(x, y) * y; }
using namespace std;
int main() {
vector<int> a(12);
a = {1, 2, 1, 3, 1, 3, 1, 1, 3, 1,... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
typedef long long ll;
ll gcd(ll x, ll y) {
if (y == 0)
return x;
else
return gcd(y, x % y);
}
ll lcm(ll x, ll y) { return x / gcd(x, y) * y; }
using namespace std;
int main() {
vector<int> a(12);
a = {1, 2, 1, 3, 1, 3, 1, 1, 3, 1,... | [
"literal.number.change"
] | 1,377,175 | 1,377,176 | u738164318 | cpp |
p03711 | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#includ... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#includ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,185 | 1,377,186 | u809967037 | cpp |
p03711 | #include <iostream>
using namespace std;
int main() {
int x, y, i;
int a[] = {1, 3, 5, 7, 8, 10, 12}, b[] = {4, 6, 9, 11};
cin >> x >> y;
for (i = 0; i < 7; i++) {
if (x == a[i])
x = 100;
}
if (x != 100 && x != 2)
x == 101;
for (i = 0; i < 7; i++) {
if (y == a[i])
y = 100;
}
... | #include <iostream>
using namespace std;
int main() {
int x, y, i;
int a[] = {1, 3, 5, 7, 8, 10, 12}, b[] = {4, 6, 9, 11};
cin >> x >> y;
for (i = 0; i < 7; i++) {
if (x == a[i])
x = 100;
}
if (x != 100 && x != 2)
x = 101;
for (i = 0; i < 7; i++) {
if (y == a[i])
y = 100;
}
... | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 1,377,189 | 1,377,190 | u780122303 | cpp |
p03711 | #include <iostream>
using namespace std;
int main() {
int x, y, i;
int a[] = {1, 3, 5, 7, 8, 10, 12}, b[] = {4, 6, 9, 11};
cin >> x >> y;
for (i = 0; i < 7; i++) {
if (x == a[i])
x = 100;
}
if (x != 100 && x != 2)
x == 101;
for (i = 0; i < 7; i++) {
if (y == a[i])
y = 100;
}
... | #include <iostream>
using namespace std;
int main() {
int x, y, i;
int a[] = {1, 3, 5, 7, 8, 10, 12}, b[] = {4, 6, 9, 11};
cin >> x >> y;
for (i = 0; i < 7; i++) {
if (x == a[i])
x = 100;
}
if (x != 100 && x != 2)
x = 101;
for (i = 0; i < 7; i++) {
if (y == a[i])
y = 100;
}
... | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 1,377,191 | 1,377,190 | u780122303 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x == 2 && y == 2) {
cout << "Yes" << endl;
} else {
int a = 0, b = 0;
vector<int> group = {4, 6, 9, 11};
for (int i; i < 4; i++) {
if (group.at(i) == x) {
a = 1;
}
if (group.at(i) ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x == 2 || y == 2) {
cout << "No" << endl;
} else {
int a = 0, b = 0;
vector<int> group = {4, 6, 9, 11};
for (int i; i < 4; i++) {
if (group.at(i) == x) {
a = 1;
}
if (group.at(i)... | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 1,377,198 | 1,377,199 | u094191970 | cpp |
p03711 | //{{{
#include <bits/stdc++.h>
using namespace std;
const string truename = "Yes";
const string falsename = "No";
struct IoSetup {
IoSetup() {
cin.tie(nullptr);
// ios::sync_with_stdio(false);
cout << fixed << setprecision(10);
cerr << fixed << setprecision(10);
};
} ioSetup;
//{{{ rep rrep loop
... | //{{{
#include <bits/stdc++.h>
using namespace std;
const string truename = "Yes";
const string falsename = "No";
struct IoSetup {
IoSetup() {
cin.tie(nullptr);
// ios::sync_with_stdio(false);
cout << fixed << setprecision(10);
cerr << fixed << setprecision(10);
};
} ioSetup;
//{{{ rep rrep loop
... | [
"assignment.change",
"call.arguments.change"
] | 1,377,204 | 1,377,205 | u899220667 | cpp |
p03711 |
#include <iostream>
using namespace std;
int main() {
int group[] = {1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
cout << ((group[x] == group[y]) ? "Yes" : "No");
return 0;
}
|
#include <iostream>
using namespace std;
int main() {
int group[] = {1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
cout << ((group[x - 1] == group[y - 1]) ? "Yes" : "No");
return 0;
}
| [
"expression.operation.binary.add"
] | 1,377,208 | 1,377,209 | u673513296 | cpp |
p03711 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(a) (a).begin(), (a).end()
#define dunk(a) cout << (a) << endl
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
vector<int> a = {1, 3, 5, 7, 8, 10, 12};... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(a) (a).begin(), (a).end()
#define dunk(a) cout << (a) << endl
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
vector<int> a = {1, 3, 5, 7, 8, 10, 12};... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,377,210 | 1,377,211 | u274883254 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[7] = {1, 3, 5, 7, 8, 10, 12};
int b[4] = {4, 6, 9, 11};
int c[1] = {2};
int x, y;
cin >> x >> y;
int ga = 100, gb = 101, gc = 102;
for (int i = 0; i < 7; i++) {
if (x == a[i])
x = ga;
if (y == a[i])
x = ga;
}
for... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a[7] = {1, 3, 5, 7, 8, 10, 12};
int b[4] = {4, 6, 9, 11};
int c[1] = {2};
int x, y;
cin >> x >> y;
int ga = 100, gb = 101, gc = 102;
for (int i = 0; i < 7; i++) {
if (x == a[i])
x = ga;
if (y == a[i])
y = ga;
}
for... | [
"assignment.variable.change",
"identifier.change"
] | 1,377,245 | 1,377,246 | u294721290 | cpp |
p03711 |
/*****/
#include <algorithm>
#include <array>
#include <cmath>
#include <iomanip> //cout << fixed << setprecision(桁数);
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <stdexcept>
#include <string>
#include <vector>
//#define int long long
using namespace std;
using ll = long long;
usin... |
/*****/
#include <algorithm>
#include <array>
#include <cmath>
#include <iomanip> //cout << fixed << setprecision(桁数);
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <stdexcept>
#include <string>
#include <vector>
//#define int long long
using namespace std;
using ll = long long;
usin... | [
"literal.number.change"
] | 1,377,262 | 1,377,263 | u588369531 | cpp |
p03711 | #include <algorithm>
#include <iostream>
#include <set>
#include <vector>
using namespace std;
int main() {
int a[2];
cin >> a[0] >> a[1];
int data[2];
for (int i = 0; i < 2; i++) {
if (a[i] == 2)
data[i] = 3;
else if (a[i] == 4)
data[1] = 2;
else if (a[i] == 6)
data[1] = 2;
el... | #include <algorithm>
#include <iostream>
#include <set>
#include <vector>
using namespace std;
int main() {
int a[2];
cin >> a[0] >> a[1];
int data[2];
for (int i = 0; i < 2; i++) {
if (a[i] == 2)
data[i] = 3;
else if (a[i] == 4)
data[i] = 2;
else if (a[i] == 6)
data[i] = 2;
el... | [
"assignment.variable.change",
"identifier.replace.add",
"literal.replace.remove",
"variable_access.subscript.index.change"
] | 1,377,264 | 1,377,265 | u644568158 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.