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 |
|---|---|---|---|---|---|---|---|
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x == 4 || x == 6 || x == 9 || x == 11) {
x = 1;
} else if (x == 2) {
x = 0;
} else {
x = 2;
}
if (y == 4 || y == 6 || y == 9 || y == 11) {
y = 1;
} else if (x == 2) {
y = 0;
} else {
y =... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x == 4 || x == 6 || x == 9 || x == 11) {
x = 1;
} else if (x == 2) {
x = 0;
} else {
x = 2;
}
if (y == 4 || y == 6 || y == 9 || y == 11) {
y = 1;
} else if (y == 2) {
y = 0;
} else {
y =... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,276 | 1,377,277 | u830237447 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x == 4 && x == 6 && x == 9 && x == 11) {
x = 1;
} else if (x == 2) {
x = 0;
} else {
x = 2;
}
if (y == 4 && y == 6 && y == 9 && y == 11) {
y = 1;
} else if (y == 2) {
y = 0;
} else {
y =... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
if (x == 4 || x == 6 || x == 9 || x == 11) {
x = 1;
} else if (x == 2) {
x = 0;
} else {
x = 2;
}
if (y == 4 || y == 6 || y == 9 || y == 11) {
y = 1;
} else if (y == 2) {
y = 0;
} else {
y =... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 1,377,278 | 1,377,277 | u830237447 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int a, b;
int x, y;
cin >> a >> b;
if (a == 2)
x = 1;
else if (a == 4 || a == 6 || a == 9 || a == 11) {
x = 2;
} else {
x = 3;
}
if (b == 2)
y = 1;
else if (b == 4 || b == ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int a, b;
int x, y;
cin >> a >> b;
if (a == 2)
x = 1;
else if (a == 4 || a == 6 || a == 9 || a == 11) {
x = 2;
} else {
x = 3;
}
if (b == 2)
y = 1;
else if (b == 4 || b == ... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 1,377,287 | 1,377,288 | u091552241 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(i) sort((i).begin(), (i).end())
constexpr int INF = 2000000000;
constexpr int mod = 1000000007;
int main() {
int x, y;
cin >> x >> y;
int ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(i) sort((i).begin(), (i).end())
constexpr int INF = 2000000000;
constexpr int mod = 1000000007;
int main() {
int x, y;
cin >> x >> y;
int ... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,377,289 | 1,377,290 | u813559924 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a == 2 && b == 2) {
cout << "Yes" << endl;
} else if ((a == 1 || a == 3 || a == 5 || a == 7 || a == 8 || a == 10 ||
a == 12) &&
a == 1 ||
(b == 3 || b == 5 || b == 7 || b == 8 ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
if (a == 2 && b == 2) {
cout << "Yes" << endl;
} else if ((a == 1 || a == 3 || a == 5 || a == 7 || a == 8 || a == 10 ||
a == 12) &&
(b == 1 || b == 3 || b == 5 || b == 7 || b == 8 || b == 10 ||
... | [
"control_flow.branch.if.condition.change"
] | 1,377,293 | 1,377,294 | u351012095 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b;
if (a == b) {
c = 1;
} else if (a == 2) {
c = 0;
} else if (a == 4 || a == 6 || a == 9 || a == 11) {
if (b == 4 || b == 6 || b == 9 || b == 11)
c = 1;
else
c = 0;
} else {
if (b == 1 |... | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b;
if (a == b) {
c = 1;
} else if (a == 2) {
c = 0;
} else if (a == 4 || a == 6 || a == 9 || a == 11) {
if (b == 4 || b == 6 || b == 9 || b == 11)
c = 1;
else
c = 0;
} else {
if (b == 1 |... | [
"control_flow.branch.if.condition.change"
] | 1,377,307 | 1,377,308 | u512624048 | cpp |
p03711 | #include <algorithm>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <string.h>
#include <vector>
using namespace std;
int main() {
int s[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 21, 2, 1};
int x, y;
cin >> x >> y;
cout << (s[x] == s[y] ? "Yes" : "No") << endl;
return 0;
} | #include <algorithm>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <map>
#include <string.h>
#include <vector>
using namespace std;
int main() {
int s[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
cout << (s[x] == s[y] ? "Yes" : "No") << endl;
return 0;
} | [
"literal.number.change"
] | 1,377,309 | 1,377,310 | u927933718 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); ++(i))
#define rrep(i, n) for (int(i) = (n)-1; (i) >= 0; --(i)) // Reversi rep
#define nfor(i, a, b) for (int(i) = (a); (i) < (b); ++(i)) // Natural for
#define rfor(i, a, b) for (int(i) = (b); (i) >= (a); --(i)) // Reversi ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int(i) = 0; (i) < (n); ++(i))
#define rrep(i, n) for (int(i) = (n)-1; (i) >= 0; --(i)) // Reversi rep
#define nfor(i, a, b) for (int(i) = (a); (i) < (b); ++(i)) // Natural for
#define rfor(i, a, b) for (int(i) = (b); (i) >= (a); --(i)) // Reversi ... | [] | 1,377,315 | 1,377,316 | u801513186 | cpp |
p03711 | #define DEBUG 1
#include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
using ull = unsigned long lon... | #define DEBUG 1
#include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
using ull = unsigned long lon... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,377,319 | 1,377,320 | u426683236 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int zx, zy;
if (x == 4 || x == 6 || x == 9 || x == 11) {
zx = 0;
} else if (x == 2) {
zx = 1;
} else {
zx = 2;
}
if (y == 4 || y == 6 || y == 9 || y == 11) {
zy = 0;
} else if (x == 2) {
zy = 1;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int zx, zy;
if (x == 4 || x == 6 || x == 9 || x == 11) {
zx = 0;
} else if (x == 2) {
zx = 3;
} else {
zx = 2;
}
if (y == 4 || y == 6 || y == 9 || y == 11) {
zy = 0;
} else if (y == 2) {
zy = 1;
... | [
"literal.number.change",
"assignment.value.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,330 | 1,377,331 | u191085802 | cpp |
p03711 | #include <stdio.h>
int main(void) {
int a[7] = {1, 3, 5, 7, 8, 10, 12}, x, y, i, c, d, e, f;
int b[4] = {4, 6, 9, 11};
scanf("%d %d", &x, &y);
if (x == 2) {
printf("No\n");
} else {
c = 0;
d = 0;
for (i = 0; i < 4; i++) {
if (x == b[i]) {
c = 1;
}
if (y == b[i]) {
... | #include <stdio.h>
int main(void) {
int a[7] = {1, 3, 5, 7, 8, 10, 12}, x, y, i, c, d, e, f;
int b[4] = {4, 6, 9, 11};
scanf("%d %d", &x, &y);
if (x == 2 || y == 2) {
printf("No\n");
} else {
c = 0;
d = 0;
for (i = 0; i < 4; i++) {
if (x == b[i]) {
c = 1;
}
if (y == b... | [
"control_flow.branch.if.condition.change"
] | 1,377,337 | 1,377,338 | u529423542 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int mod = 1000000007;
int main() {
ios::sync_with_stdio(false);
int a[13] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}, b, c;
cin >> b >> c;
if (b == c)
cout << "Yes";
else
cout << "No";
}
| #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int mod = 1000000007;
int main() {
ios::sync_with_stdio(false);
int a[13] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1}, b, c;
cin >> b >> c;
if (a[b] == a[c])
cout << "Yes";
else
cout << "No";
}
| [
"control_flow.branch.if.condition.change"
] | 1,377,353 | 1,377,354 | u151855078 | cpp |
p03711 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, n) for (int i = (int)(n); i >= 0; i--)
#define repm(i, m, n) for (int i = (int)(m); i < (int)(n); i++)
#define repmr(i, m, n) for (int i = (int)(n); i >= (int)(m); i--)
#define all(x) (x).begin(), (x).end()
#define inf 2e9
u... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, n) for (int i = (int)(n); i >= 0; i--)
#define repm(i, m, n) for (int i = (int)(m); i < (int)(n); i++)
#define repmr(i, m, n) for (int i = (int)(n); i >= (int)(m); i--)
#define all(x) (x).begin(), (x).end()
#define inf 2e9
u... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,359 | 1,377,360 | u917101497 | cpp |
p03711 | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <iomanip>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pi;
typedef pair<ll, l... | #pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <iomanip>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pi;
typedef pair<ll, l... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,371 | 1,377,372 | u422558819 | cpp |
p03711 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x, y;
map<int, int> m;
m[1] = 1;
m[2] = 3;
m[3] = 1;
m[4] = 2;
m... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
map<int, int> m;
m[1] = 1;
m[2] = 3;
m[3] = 1;
m[4] = 2;
... | [] | 1,377,375 | 1,377,376 | u855985627 | cpp |
p03711 | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define rep(i, j, n) for (int i = j; i < n; i++)
#define out(ans) cout << ans << endl;
const long long mod = 1e9 + 7;
int main() {
int x, y;
cin >> x >> y;
int g[12] = {0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
cout << (g[x - 1] == g[y - 1] ? "... | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
#define rep(i, j, n) for (int i = j; i < n; i++)
#define out(ans) cout << ans << endl;
const long long mod = 1e9 + 7;
int main() {
int x, y;
cin >> x >> y;
int g[12] = {0, 2, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0};
cout << (g[x - 1] == g[y - 1] ? "... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,377,381 | 1,377,382 | u139458416 | 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;
if (group[x + 1] == group[y + 1]) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int group[] = {0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
int x, y;
cin >> x >> y;
if (group[x] == group[y]) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [
"expression.operation.binary.remove"
] | 1,377,401 | 1,377,402 | u565624841 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = (int)(0); i < (int)(n); ++i)
#define reps(i, n) for (int i = (int)(1); i <= (int)(n); ++i)
#define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--)
#define rreps(i, n) for (int i = ((int)(n)); i > 0; i--)
#define irep(i, m, n) for (int i = ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = (int)(0); i < (int)(n); ++i)
#define reps(i, n) for (int i = (int)(1); i <= (int)(n); ++i)
#define rrep(i, n) for (int i = ((int)(n)-1); i >= 0; i--)
#define rreps(i, n) for (int i = ((int)(n)); i > 0; i--)
#define irep(i, m, n) for (int i = ... | [] | 1,377,405 | 1,377,406 | u530107518 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
int a[] = {1, 3, 5, 7, 8, 10, 12};
int b[] = {4, 6, 9, 11};
for (int i = 0; i < 7; i++) {
if (x == a[i])
x = 100;
if (y == a[i])
y = 100;
}
for (int i = 0;... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int x, y;
cin >> x >> y;
int a[] = {1, 3, 5, 7, 8, 10, 12};
int b[] = {4, 6, 9, 11};
for (int i = 0; i < 7; i++) {
if (x == a[i])
x = 100;
if (y == a[i])
y = 100;
}
for (int i = 0;... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,407 | 1,377,408 | u126833093 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
int x, y;
cin >> x >> y;
if (x == 2 || y == 2)
cout << "No" << endl;
else {
int a, b;
if (x == 4 || x == 6 || x == 9 || x == 11)
a++;
if (y == 4 || y == 6 || y == 9 || y == 11)
b++;
if (a == b)
... | #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
int x, y;
cin >> x >> y;
if (x == 2 || y == 2)
cout << "No" << endl;
else {
int a = 0, b = 0;
if (x == 4 || x == 6 || x == 9 || x == 11)
a++;
if (y == 4 || y == 6 || y == 9 || y == 11)
b++;
if (a... | [
"variable_declaration.value.change"
] | 1,377,411 | 1,377,412 | u095453583 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define INF 999999999
#define rep(i, n) for (int i = 0; i < n; i++)
#define pb(n) push_back(n)
#define Sort(n) sort(n.begin(), n.end())
#define Rev(n) reverse(n.begin(), n.end())
#define Out(S) cout << S << endl
#define Vecpr vector<pair<lli, lli>>... | #include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define INF 999999999
#define rep(i, n) for (int i = 0; i < n; i++)
#define pb(n) push_back(n)
#define Sort(n) sort(n.begin(), n.end())
#define Rev(n) reverse(n.begin(), n.end())
#define Out(S) cout << S << endl
#define Vecpr vector<pair<lli, lli>>... | [] | 1,377,415 | 1,377,416 | u618604643 | cpp |
p03708 | #include <bits/stdc++.h>
#define mset(a, b) memset(a, b, sizeof a)
#define mcpy(a, b) memcpy(a, b, sizeof b)
#define lb(x) ((x) & (-(x)))
#define inf 0x3f3f3f3f
#define N 500010
using namespace std;
typedef long long ll;
ll l, r, ans;
int i, j, k;
int main() {
// l=rand()%57+1,r=rand()%57+1;
// while(l>=r-1)l=rand(... | #include <bits/stdc++.h>
#define mset(a, b) memset(a, b, sizeof a)
#define mcpy(a, b) memcpy(a, b, sizeof b)
#define lb(x) ((x) & (-(x)))
#define inf 0x3f3f3f3f
#define N 500010
using namespace std;
typedef long long ll;
ll l, r, ans;
int i, j, k;
int main() {
// l=rand()%57+1,r=rand()%57+1;
// while(l>=r-1)l=rand(... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,377,417 | 1,377,418 | u053596739 | cpp |
p03708 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
using namespace std;
typedef long long LL;
inline LL merge(LL a, LL b, LL c, LL d) {
return b - a + 1 + d - c + 1 - max(0LL, min(b, d) - ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
using namespace std;
typedef long long LL;
inline LL merge(LL a, LL b, LL c, LL d) {
return b - a + 1 + d - c + 1 - max(0LL, min(b, d) - ... | [
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 1,377,421 | 1,377,422 | u014125471 | cpp |
p03708 | #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
#define REP(i, a, b) for (int i = (a), i##end = (b); i < i##end; ++i)
#define DREP(i, a, b) for (int i = (a - 1), i##end = (b); i >= i##end; --i)
template <typenam... | #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
#define REP(i, a, b) for (int i = (a), i##end = (b); i < i##end; ++i)
#define DREP(i, a, b) for (int i = (a - 1), i##end = (b); i >= i##end; --i)
template <typenam... | [
"assignment.change",
"literal.number.type.widen.change"
] | 1,377,423 | 1,377,424 | u999891524 | cpp |
p03708 | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
LL A, B;
int main() {
cin >> A >> B;
if (A == B)
return puts("1"), 0;
int w, k;
for (w = 61; ((1LL << w) & A) == ((1LL << w) & B); w--)
;
A &= (1LL << (w + 1)) - 1, B &= (1LL << (w + 1)) - 1;
LL ans = (1 << (w + 1)) - A;
for (k =... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
LL A, B;
int main() {
cin >> A >> B;
if (A == B)
return puts("1"), 0;
int w, k;
for (w = 61; ((1LL << w) & A) == ((1LL << w) & B); w--)
;
A &= (1LL << (w + 1)) - 1, B &= (1LL << (w + 1)) - 1;
LL ans = (1LL << (w + 1)) - A;
for (k... | [
"literal.number.type.widen.change"
] | 1,377,425 | 1,377,426 | u430023097 | cpp |
p03708 | #include <algorithm>
#include <cstdio>
#include <vector>
using namespace std;
typedef long long i64;
typedef pair<i64, i64> pii;
#define fi first
#define se second
int main() {
i64 a, b;
vector<pii> seg;
scanf("%lld%lld", &a, &b);
seg.push_back(pii(a, b));
i64 lst = a - 1, sum = 0;
i64 cur = 0;
for (in... | #include <algorithm>
#include <cstdio>
#include <vector>
using namespace std;
typedef long long i64;
typedef pair<i64, i64> pii;
#define fi first
#define se second
int main() {
i64 a, b;
vector<pii> seg;
scanf("%lld%lld", &a, &b);
seg.push_back(pii(a, b));
i64 lst = a - 1, sum = 0;
i64 cur = 0;
for (in... | [] | 1,377,427 | 1,377,428 | u197797239 | cpp |
p03708 | /*
_ _ _______ _ _
| | / / | _____| | | / /
| | / / | | | | / /
| |/ / | |_____ | |/ /
| |\ \ | _____| | |\ \
| | \ \ | | | | \ \
| | \ \ | |_____ | | \ \
|_| \_\ |_______| |_| \_\
*/
/*#include <iostream>
#include <algorithm>
#include <assert.h>*/
#include <cmath>
#incl... | /*
_ _ _______ _ _
| | / / | _____| | | / /
| | / / | | | | / /
| |/ / | |_____ | |/ /
| |\ \ | _____| | |\ \
| | \ \ | | | | \ \
| | \ \ | |_____ | | \ \
|_| \_\ |_______| |_| \_\
*/
/*#include <iostream>
#include <algorithm>
#include <assert.h>*/
#include <cmath>
#incl... | [
"literal.number.change",
"variable_declaration.value.change",
"call.arguments.change"
] | 1,377,431 | 1,377,430 | u664950429 | cpp |
p03708 | #include <bits/stdc++.h>
using namespace std;
const long long MAX_BIT = 60;
long long a, b, ans;
int main() {
ios_base::sync_with_stdio(false);
cin.tie();
cout.tie();
cin >> a >> b;
long long mostBit = 0ll;
for (long long bit = MAX_BIT; bit >= 0ll; bit--) {
if ((a & (1ll << bit)) + (b & (1ll << bi... | #include <bits/stdc++.h>
using namespace std;
const long long MAX_BIT = 60;
long long a, b, ans;
int main() {
ios_base::sync_with_stdio(false);
cin.tie();
cout.tie();
cin >> a >> b;
long long mostBit = 0ll;
for (long long bit = MAX_BIT; bit >= 0ll; bit--) {
if ((a & (1ll << bit)) + (b & (1ll << bi... | [
"call.add",
"call.arguments.change"
] | 1,377,432 | 1,377,433 | u744779253 | cpp |
p03708 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll a, b, res;
int main() {
// ios_base::sync_with_stdio(0); cin.tie(0);
// freopen("in.txt","r",stdin);
cin >> a >> b;
int r;
if (a == b) {
cout << 1 << endl;
return 0;
}
// cout<<a<<b<<endl;
for (int t = 61; t >= 0; t--) {
... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll a, b, res;
int main() {
// ios_base::sync_with_stdio(0); cin.tie(0);
// freopen("in.txt","r",stdin);
cin >> a >> b;
int r;
if (a == b) {
cout << 1 << endl;
return 0;
}
// cout<<a<<b<<endl;
for (int t = 61; t >= 0; t--) {
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,377,434 | 1,377,435 | u847020002 | cpp |
p03708 | #include <bits/stdc++.h>
#define debug(x) cout << #x " = " << x;
#define st first
#define nd second
#define all(x) (x).begin(), (x).end()
using namespace std;
using namespace placeholders;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> PII;
typedef pair<ll, ll> PLL;
template <class T>... | #include <bits/stdc++.h>
#define debug(x) cout << #x " = " << x;
#define st first
#define nd second
#define all(x) (x).begin(), (x).end()
using namespace std;
using namespace placeholders;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> PII;
typedef pair<ll, ll> PLL;
template <class T>... | [] | 1,377,436 | 1,377,437 | u636639720 | cpp |
p03708 | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
LL A, B;
LL solve() {
if (A == B)
return 1;
LL key;
for (LL i = 60; i >= 0; i--) {
if ((A >> i & 1) != (B >> i & 1)) {
key = i;
break;
}
}
LL key0 = -1;
for (LL i = key - 1; i >= 0; i--) {
if (B >> i & 1) {
... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
LL A, B;
LL solve() {
if (A == B)
return 1;
LL key;
for (LL i = 60; i >= 0; i--) {
if ((A >> i & 1) != (B >> i & 1)) {
key = i;
break;
}
}
LL key0 = -1;
for (LL i = key - 1; i >= 0; i--) {
if (B >> i & 1) {
... | [
"literal.number.type.widen.change"
] | 1,377,438 | 1,377,439 | u454658584 | cpp |
p03708 | #include <bits/stdc++.h>
using namespace std;
#define maxn 100100
#define ll long long
ll a, b;
int aa[maxn];
int bb[maxn];
int n;
ll len(ll l, ll r) { return max(0LL, r - l + 1); }
int main() {
cin >> a >> b;
if (a == b) {
puts("1");
exit(0);
}
while (b > 0) {
bb[n++] = b & 1;
b >>= 1;
}
re... | #include <bits/stdc++.h>
using namespace std;
#define maxn 100100
#define ll long long
ll a, b;
int aa[maxn];
int bb[maxn];
int n;
ll len(ll l, ll r) { return max(0LL, r - l + 1); }
int main() {
cin >> a >> b;
if (a == b) {
puts("1");
exit(0);
}
while (b > 0) {
bb[n++] = b & 1;
b >>= 1;
}
re... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 1,377,440 | 1,377,441 | u040109969 | cpp |
p03708 | /** @Date : 2017-05-30 21:31:45
* @FileName: C 位运算 范围.cpp
* @Platform: Windows
* @Author : Lweleth (SoungEarlf@gmail.com)
* @Link : https://github.com/
* @Version : $Id$
*/
#include <bits/stdc++.h>
#define LL long long
#define PII pair<int, int>
#define MP(x, y) make_pair((x), (y))
#define fi first
#define... | /** @Date : 2017-05-30 21:31:45
* @FileName: C 位运算 范围.cpp
* @Platform: Windows
* @Author : Lweleth (SoungEarlf@gmail.com)
* @Link : https://github.com/
* @Version : $Id$
*/
#include <bits/stdc++.h>
#define LL long long
#define PII pair<int, int>
#define MP(x, y) make_pair((x), (y))
#define fi first
#define... | [
"assignment.value.change",
"expression.operation.binary.change"
] | 1,377,445 | 1,377,446 | u882293891 | cpp |
p03708 | #include "bits/stdc++.h"
using namespace std;
long long a, b;
long long k;
long long intersect(long long a, long long b, long long l, long long r) {
return max(0LL, min(r, b) - max(l, a) + 1LL);
}
long long getor(long long l, long long r) {
long long res = l;
for (int i = 0; i < 60; ++i) {
if ((l | (1LL << i)... | #include "bits/stdc++.h"
using namespace std;
long long a, b;
long long k;
long long intersect(long long a, long long b, long long l, long long r) {
return max(0LL, min(r, b) - max(l, a) + 1LL);
}
long long getor(long long l, long long r) {
long long res = 0;
for (int i = 0; i < 60; ++i) {
if ((l | (1LL << i)... | [
"variable_declaration.value.change",
"identifier.replace.remove",
"literal.replace.add",
"control_flow.return.add",
"control_flow.return.0.add"
] | 1,377,447 | 1,377,448 | u635303504 | cpp |
p03708 | #include "bits/stdc++.h"
using namespace std;
long long a, b;
long long k;
long long intersect(long long a, long long b, long long l, long long r) {
return max(0LL, min(r, b) - max(l, a) + 1LL);
}
long long getor(long long l, long long r) {
long long res = 0;
for (int i = 0; i <= 60; ++i) {
if ((l | (1LL << i... | #include "bits/stdc++.h"
using namespace std;
long long a, b;
long long k;
long long intersect(long long a, long long b, long long l, long long r) {
return max(0LL, min(r, b) - max(l, a) + 1LL);
}
long long getor(long long l, long long r) {
long long res = 0;
for (int i = 0; i < 60; ++i) {
if ((l | (1LL << i)... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 1,377,449 | 1,377,448 | u635303504 | cpp |
p03708 | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
typedef long long ll;
inline void read(ll &x) {
x = 0;
char ch;
bool flag = false;
while (ch = getchar(), ch < '!')
;
if (ch == '-')
ch = getchar(), flag = true;
while (x = 10 * x + ch - '0', ch = getchar(), ch > '!')
... | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
typedef long long ll;
inline void read(ll &x) {
x = 0;
char ch;
bool flag = false;
while (ch = getchar(), ch < '!')
;
if (ch == '-')
ch = getchar(), flag = true;
while (x = 10 * x + ch - '0', ch = getchar(), ch > '!')
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,377,451 | 1,377,452 | u304961585 | cpp |
p03708 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define rep(i, a, b) for (int i = a; i <= b; i++)
#define per(i, a, b) for (int i = a; i >= b; i--)
#define debug(x) ... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define rep(i, a, b) for (int i = a; i <= b; i++)
#define per(i, a, b) for (int i = a; i >= b; i--)
#define debug(x) ... | [
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 1,377,453 | 1,377,454 | u021294378 | cpp |
p03708 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define MOD 1000000007LL
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main(void) {
ll a, b;
scanf("%lld%... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define MOD 1000000007LL
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
int main(void) {
ll a, b;
scanf("%lld%... | [
"literal.number.change",
"variable_declaration.value.change"
] | 1,377,455 | 1,377,456 | u854869949 | cpp |
p03708 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, N) for (int i = 0; i < (int)N; i++)
int main() {
ll a, b, ans;
cin >> a >> b;
if (a == b) {
cout << 1 << endl;
return 0;
}
int r = 60;
ll one = 1;
while ((a & (one << (r - 1))) == (b & (one << (r - 1))))
r--;... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, N) for (int i = 0; i < (int)N; i++)
int main() {
ll a, b, ans;
cin >> a >> b;
if (a == b) {
cout << 1 << endl;
return 0;
}
int r = 60;
ll one = 1;
while ((a & (one << (r - 1))) == (b & (one << (r - 1))))
r--;... | [
"control_flow.loop.condition.change"
] | 1,377,457 | 1,377,458 | u058252012 | cpp |
p03708 | #include <bits/stdc++.h>
#define ll long long
int main() {
ll a, b;
scanf("%lld%lld", &a, &b);
int sit = -1;
for (int i = 60; ~i; --i) {
if ((a >> i & 1) != (b >> i & 1)) {
sit = i;
break;
} else {
if (a >> i & 1) {
a ^= 1ll << i;
b ^= 1ll << i;
}
}
}
if ... | #include <bits/stdc++.h>
#define ll long long
int main() {
ll a, b;
scanf("%lld%lld", &a, &b);
int sit = -1;
for (int i = 60; ~i; --i) {
if ((a >> i & 1) != (b >> i & 1)) {
sit = i;
break;
} else {
if (a >> i & 1) {
a ^= 1ll << i;
b ^= 1ll << i;
}
}
}
if ... | [
"control_flow.loop.for.initializer.change",
"expression.operation.binary.change"
] | 1,377,459 | 1,377,460 | u981966125 | cpp |
p03708 | #include <bits/stdc++.h>
#define ll long long
int main() {
ll a, b;
scanf("%lld%lld", &a, &b);
int sit = -1;
for (int i = 60; ~i; --i) {
if ((a >> i & 1) != (b >> i & 1)) {
sit = i;
break;
} else {
if (a >> i & 1) {
a ^= 1ll << i;
b ^= 1ll << i;
}
}
}
if ... | #include <bits/stdc++.h>
#define ll long long
int main() {
ll a, b;
scanf("%lld%lld", &a, &b);
int sit = -1;
for (int i = 60; ~i; --i) {
if ((a >> i & 1) != (b >> i & 1)) {
sit = i;
break;
} else {
if (a >> i & 1) {
a ^= 1ll << i;
b ^= 1ll << i;
}
}
}
if ... | [
"expression.operation.binary.change"
] | 1,377,461 | 1,377,460 | u981966125 | cpp |
p03708 | #include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long ll;
const int maxn = 63;
ll pow2[maxn];
int main() {
// freopen("D.in","r",stdin);
ll a, b;
scanf("%lld%lld", &a, &b);
if (a == b) {
puts("1");
return 0;
}
pow2[0] = 1LL;
for (int i ... | #include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long ll;
const int maxn = 63;
ll pow2[maxn];
int main() {
// freopen("D.in","r",stdin);
ll a, b;
scanf("%lld%lld", &a, &b);
if (a == b) {
puts("1");
return 0;
}
pow2[0] = 1LL;
for (int i ... | [
"literal.number.change",
"variable_declaration.value.change"
] | 1,377,462 | 1,377,463 | u239717955 | cpp |
p03708 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
#define X first
#define Y second
const int N = 2e3 + 10;
ll solve(ll L, ll R) {
int st = 61;
if (L == R)
return 1;
while ((L & (1LL << st)) == (R & (1LL << st))) {
L &= ~(1LL << st);
R &= ~(1LL << st);
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> ii;
#define X first
#define Y second
const int N = 2e3 + 10;
ll solve(ll L, ll R) {
int st = 61;
if (L == R)
return 1;
while ((L & (1LL << st)) == (R & (1LL << st))) {
L &= ~(1LL << st);
R &= ~(1LL << st);
... | [
"literal.number.type.widen.change"
] | 1,377,464 | 1,377,465 | u596976719 | cpp |
p03708 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
int main() {
long long a, b;
cin >> a >> b;
if (a == b) {
cout << 1 << endl;
return 0;
}
long long a1 = a;
long long b1 = b;
bool v1[100] = {}, v2[100]... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
int main() {
long long a, b;
cin >> a >> b;
if (a == b) {
cout << 1 << endl;
return 0;
}
long long a1 = a;
long long b1 = b;
bool v1[100] = {}, v2[100]... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 1,377,466 | 1,377,467 | u007610006 | cpp |
p03708 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
using namespace std;
typedef unsigned long long ll;
int main() {
ll a, b;
scanf("%lld%lld", &a, &b);
if (a == b) {
puts("1");
return 0;
}
if (a > b) {
puts("0");
... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
using namespace std;
typedef long long ll;
int main() {
// freopen("in.txt", "r", stdin);
// freopen("g.txt", "w", stdout);
ll a, b;
scanf("%lld%lld", &a, &b);
// cerr<<(1LL << ... | [
"variable_declaration.type.narrow.change",
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"assignment.value.change",
"expression.operation.binary.change",
"literal.number.type.widen.change"
] | 1,377,468 | 1,377,469 | u409459566 | cpp |
p03708 | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
int main() {
LL i, j, a, b, ans = 0;
scanf("%lld%lld", &a, &b);
if (a == b)
return 0 * puts("1");
for (i = 60; i >= 0; --i) {
if ((b >> i & 1) ^ (a >> i & 1))
break;
if (a >> i & 1)
a ^= 1LL << i;
}
for (j = i - 1; ... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
int main() {
LL i, j, a, b, ans = 0;
scanf("%lld%lld", &a, &b);
if (a == b)
return 0 * puts("1");
for (i = 60; i >= 0; --i) {
if ((b >> i & 1) ^ (a >> i & 1))
break;
if (a >> i & 1)
a ^= 1LL << i;
}
for (j = i - 1; ... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 1,377,470 | 1,377,471 | u407458523 | cpp |
p03708 | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
int main() {
LL a, b, top, top2, ans = 0;
bool flag = false;
scanf("%lld%lld", &a, &b);
if (a == b)
return 0 * puts("1");
for (int i = 60; i >= 0; --i) {
if (b >> i & 1 && !(a >> i & 1)) {
top = i;
break;
}
if (a ... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
int main() {
LL a, b, top, top2, ans = 0;
bool flag = false;
scanf("%lld%lld", &a, &b);
if (a == b)
return 0 * puts("1");
for (LL i = 60; i >= 0; --i) {
if (b >> i & 1 && !(a >> i & 1)) {
top = i;
break;
}
if (a >... | [
"control_flow.loop.for.initializer.change",
"variable_declaration.type.change",
"literal.number.type.widen.change"
] | 1,377,472 | 1,377,473 | u407458523 | cpp |
p03708 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cstdio>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cstdio>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include... | [
"variable_declaration.type.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 1,377,479 | 1,377,478 | u798181098 | cpp |
p03708 | #include <bits/stdc++.h>
using namespace std;
const int N = 200008;
int a[N], b[N], ta, tb;
int main() {
cin.sync_with_stdio(0);
long long A, B;
cin >> A >> B;
if (A == B) {
cout << 1 << endl;
return 0;
}
if (A > B)
swap(A, B);
ta = tb = 0;
while (A) {
a[ta++] = A % 2;
A >>= 1;
}
... | #include <bits/stdc++.h>
using namespace std;
const int N = 200008;
int a[N], b[N], ta, tb;
int main() {
cin.sync_with_stdio(0);
long long A, B;
cin >> A >> B;
if (A == B) {
cout << 1 << endl;
return 0;
}
if (A > B)
swap(A, B);
ta = tb = 0;
while (A) {
a[ta++] = A % 2;
A >>= 1;
}
... | [
"literal.number.change",
"variable_declaration.value.change"
] | 1,377,480 | 1,377,481 | u338858061 | cpp |
p03708 | #include <bits/stdc++.h>
#define LL long long
using namespace std;
LL solve(LL l, LL r, LL mx) {
if (l == r)
return l <= mx ? 1 : 0;
LL top = 1;
while (top <= r)
top <<= 1;
top >>= 1;
if (l == 0)
return min(top << 1, mx);
LL ret = top - l;
if ((l | top) > r)
ret += max(0LL, min(mx, (top ... | #include <bits/stdc++.h>
#define LL long long
using namespace std;
LL solve(LL l, LL r, LL mx) {
if (l == r)
return l <= mx ? 1 : 0;
LL top = 1;
while (top <= r)
top <<= 1;
top >>= 1;
if (l == 0)
return min(top << 1, mx + 1);
LL ret = top - l;
if ((l | top) > r)
ret += max(0LL, min(mx, (... | [
"expression.operation.binary.add"
] | 1,377,482 | 1,377,483 | u899515616 | cpp |
p03708 | #include <bits/stdc++.h>
#define LL long long
using namespace std;
LL solve(LL l, LL r, LL mx) {
if (l == r)
return l <= mx ? 1 : 0;
LL top = 1;
while (top <= r)
top <<= 1;
top >>= 1;
if (l == 0)
return min(top << 1, mx);
LL ret = top - l;
if ((l | top) > r)
ret += max(0LL, min(mx, (top ... | #include <bits/stdc++.h>
#define LL long long
using namespace std;
LL solve(LL l, LL r, LL mx) {
if (l == r)
return l <= mx ? 1 : 0;
LL top = 1;
while (top <= r)
top <<= 1;
top >>= 1;
if (l == 0)
return min(top << 1, mx + 1);
LL ret = top - l;
if ((l | top) > r)
ret += max(0LL, min(mx, (... | [
"call.arguments.change"
] | 1,377,484 | 1,377,483 | u899515616 | cpp |
p03708 | #include <bits/stdc++.h>
#define xx first
#define yy second
#define mp make_pair
#define pb push_back
#define fill(x, y) memset(x, y, sizeof x)
#define copy(x, y) memcpy(x, y, sizeof x)
using namespace std;
typedef long long LL;
typedef pair<int, int> pa;
inline int read() {
int sc = 0, f = 1;
char ch = getchar()... | #include <bits/stdc++.h>
#define xx first
#define yy second
#define mp make_pair
#define pb push_back
#define fill(x, y) memset(x, y, sizeof x)
#define copy(x, y) memcpy(x, y, sizeof x)
using namespace std;
typedef long long LL;
typedef pair<int, int> pa;
inline int read() {
int sc = 0, f = 1;
char ch = getchar()... | [
"literal.number.type.widen.change"
] | 1,377,492 | 1,377,493 | u877679608 | cpp |
p03708 | #include <bits/stdc++.h>
#define forn(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
using namespace std;
ll get(ll x) {
for (int i = 60; i >= 0; i--) {
if ((1LL << i) & x)
return i;
}
}
int main() {
// ios_base::sync_with_stdio(f... | #include <bits/stdc++.h>
#define forn(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
using namespace std;
ll get(ll x) {
for (int i = 60; i >= 0; i--) {
if ((1LL << i) & x)
return i;
}
return -1;
}
int main() {
// ios_base::sync... | [
"control_flow.return.add"
] | 1,377,494 | 1,377,495 | u928121696 | cpp |
p03708 | #include <iomanip>
#include <iostream>
//#include<cstdio>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <map>
#include <queue>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll A, B;
cin >> A >> B;
int i = 62;
while (i >= 0 && ((A & (1L << i)) == (B & (1L << i)))... | #include <iomanip>
#include <iostream>
//#include<cstdio>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <map>
#include <queue>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll A, B;
cin >> A >> B;
int i = 62;
while (i >= 0 && ((A & (1L << i)) == (B & (1L << i)))... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,377,496 | 1,377,497 | u534998883 | cpp |
p03708 | #include <iomanip>
#include <iostream>
//#include<cstdio>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <map>
#include <queue>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll A, B;
cin >> A >> B;
int i = 60;
while (i >= 0 && ((A & (1L << i)) == (B & (1L << i)))... | #include <iomanip>
#include <iostream>
//#include<cstdio>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <map>
#include <queue>
#include <vector>
using namespace std;
typedef long long ll;
int main() {
ll A, B;
cin >> A >> B;
int i = 62;
while (i >= 0 && ((A & (1L << i)) == (B & (1L << i)))... | [
"literal.number.change",
"variable_declaration.value.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,377,498 | 1,377,497 | u534998883 | cpp |
p03708 | #include <algorithm>
#include <iostream>
using namespace std;
typedef long long Int;
Int top(Int x) {
if (x == 0)
return 0;
Int res = 1;
while (x >= res * 2)
res *= 2;
return res;
}
Int solve(Int a, Int b) {
if (a == b)
return 1;
Int ta = top(a), tb = top(b);
if (ta == tb)
return solve(... | #include <algorithm>
#include <iostream>
using namespace std;
typedef long long Int;
Int top(Int x) {
if (x == 0)
return 0;
Int res = 1;
while (x >= res * 2)
res *= 2;
return res;
}
Int solve(Int a, Int b) {
if (a == b)
return 1;
Int ta = top(a), tb = top(b);
if (ta == tb)
return solve(... | [
"call.arguments.change",
"function.return_value.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 1,377,501 | 1,377,502 | u299869545 | cpp |
p03708 | // {{{ by shik
// #include <stdio.h>
#include <bits/stdc++.h>
#include <unistd.h>
#define SZ(x) ((int)(x).size())
#define ALL(x) begin(x), end(x)
#define REP(i, n) for (int i = 0; i < int(n); i++)
#define REP1(i, a, b) for (int i = (a); i <= int(b); i++)
#define FOR(it, c) for (auto it = (c).begin(); it != (c).end(); i... | // {{{ by shik
// #include <stdio.h>
#include <bits/stdc++.h>
#include <unistd.h>
#define SZ(x) ((int)(x).size())
#define ALL(x) begin(x), end(x)
#define REP(i, n) for (int i = 0; i < int(n); i++)
#define REP1(i, a, b) for (int i = (a); i <= int(b); i++)
#define FOR(it, c) for (auto it = (c).begin(); it != (c).end(); i... | [
"control_flow.loop.condition.change",
"expression.operator.change",
"expression.operation.unary.add"
] | 1,377,503 | 1,377,504 | u280354208 | cpp |
p03708 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#define For(i, x, y) for (int i = x; i < y; i++)
#define pb push_b... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#define For(i, x, y) for (int i = x; i < y; i++)
#define pb push_b... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,505 | 1,377,506 | u254993344 | cpp |
p03708 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
typedef double db;
typedef long long ll;
typedef long double ld;
typedef vector<int> ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
typedef double db;
typedef long long ll;
typedef long double ld;
typedef vector<int> ... | [] | 1,377,507 | 1,377,508 | u255228814 | cpp |
p03708 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int(i) = 0; (i) < (int)(n); (i)++)
#define SZ(v) ((int)(v).size())
#define ALL(v) (v).begin(), (v).end()
#define one first
#define two second
typedef long long ll;
typedef pair<int, int> pi;
const int INF = 0x3f2f1f0f;
const ll LINF = 1ll * INF * IN... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int(i) = 0; (i) < (int)(n); (i)++)
#define SZ(v) ((int)(v).size())
#define ALL(v) (v).begin(), (v).end()
#define one first
#define two second
typedef long long ll;
typedef pair<int, int> pi;
const int INF = 0x3f2f1f0f;
const ll LINF = 1ll * INF * IN... | [
"literal.number.change",
"variable_declaration.value.change",
"function.return_value.change"
] | 1,377,509 | 1,377,510 | u682764246 | cpp |
p03708 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int64_t a, b;
cin >> a >> b;
if (a == b) {
cout << 1 << endl;
quick_exit(0);
}
int j = 0;
for (int i = 63; i >= 0; i--) {
if ... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int64_t a, b;
cin >> a >> b;
if (a == b) {
cout << 1 << endl;
quick_exit(0);
}
int j = 0;
for (int i = 63; i >= 0; i--) {
if ... | [
"literal.number.change",
"variable_declaration.value.change"
] | 1,377,511 | 1,377,512 | u215860196 | cpp |
p03708 | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define CIN_ONLY if (1)
struct cww {
cww() {
CIN_ONLY {
ios::sync_with_stdio(false);
cin.tie(0);
}
}
} star;
#define fin "\n"
#define FOR(i, bg, ed) for (int i = (bg); i < (ed); i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(v... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define CIN_ONLY if (1)
struct cww {
cww() {
CIN_ONLY {
ios::sync_with_stdio(false);
cin.tie(0);
}
}
} star;
#define fin "\n"
#define FOR(i, bg, ed) for (int i = (bg); i < (ed); i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(v... | [] | 1,377,515 | 1,377,516 | u613658617 | cpp |
p03709 | #include <algorithm>
#include <cstdio>
const int N = 2e5 + 3, M = 1e9 + 7;
struct node {
int x, v;
} a[N];
struct segment {
int l, r;
} c[N];
bool Cmpa(const node &a, const node &b) { return a.x < b.x; }
bool Cmpc(const segment &a, const segment &b) { return a.r < b.r; }
int n, b[N], f[N];
int main() {
int s, t, ... | #include <algorithm>
#include <cstdio>
const int N = 2e5 + 3, M = 1e9 + 7;
struct node {
int x, v;
} a[N];
struct segment {
int l, r;
} c[N];
bool Cmpa(const node &a, const node &b) { return a.x < b.x; }
bool Cmpc(const segment &a, const segment &b) { return a.r < b.r; }
int n, b[N], f[N];
int main() {
int s, t, ... | [
"control_flow.loop.for.condition.change"
] | 1,377,519 | 1,377,520 | u634195985 | cpp |
p03709 | #include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
#define pb push_back
#define pii pair<int, int>
#define F first
#define S second
#define endl '\n'
#define int long long
#define sync \
ios_base::sync_with_stdio(false); ... | #include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
#define pb push_back
#define pii pair<int, int>
#define F first
#define S second
#define endl '\n'
#define int long long
#define sync \
ios_base::sync_with_stdio(false); ... | [
"assignment.change"
] | 1,377,523 | 1,377,524 | u469104695 | cpp |
p03709 | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
const int N = 2e5 + 100, MOD = 1000 * 1000 * 1000 + 7;
int n, m, dp[N], v[N], maxi[N], mini[N], fen[N]; // fen)
int Z = 1;
pii p[N];
int sum(int a, int b) {
a += b;
if (a < 0)
a += MOD;
else if (a >= MOD)
a -= MOD;
return a;
}
... | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
const int N = 2e5 + 100, MOD = 1000 * 1000 * 1000 + 7;
int n, m, dp[N], v[N], maxi[N], mini[N], fen[N]; // fen)
int Z = 1;
pii p[N];
int sum(int a, int b) {
a += b;
if (a < 0)
a += MOD;
else if (a >= MOD)
a -= MOD;
return a;
}
... | [
"call.arguments.change"
] | 1,377,529 | 1,377,530 | u163061394 | cpp |
p03709 | #include <bits/stdc++.h>
#define mo 1000000007
#define pi 3.1415926535898
#define eps 1e-9
using namespace std;
long long read() {
long long xx = 0, flagg = 1;
char ch = getchar();
while ((ch < '0' || ch > '9') && ch != '-')
ch = getchar();
if (ch == '-') {
flagg = -1;
ch = getchar();
}
while (c... | #include <bits/stdc++.h>
#define mo 1000000007
#define pi 3.1415926535898
#define eps 1e-9
using namespace std;
long long read() {
long long xx = 0, flagg = 1;
char ch = getchar();
while ((ch < '0' || ch > '9') && ch != '-')
ch = getchar();
if (ch == '-') {
flagg = -1;
ch = getchar();
}
while (c... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 1,377,535 | 1,377,536 | u816734014 | cpp |
p03709 | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstring>
using namespace std;
inline int read(int f = 1, int x = 0, char ch = ' ') {
while (!isdigit(ch = getchar()))
if (ch == '-')
f = -1;
while (isdigit(ch))
x = x * 10 + ch - '0', ch = getchar();
return f * x;
}
const int N = 2e5... | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstring>
using namespace std;
inline int read(int f = 1, int x = 0, char ch = ' ') {
while (!isdigit(ch = getchar()))
if (ch == '-')
f = -1;
while (isdigit(ch))
x = x * 10 + ch - '0', ch = getchar();
return f * x;
}
const int N = 2e5... | [
"call.arguments.change"
] | 1,377,548 | 1,377,549 | u056219032 | cpp |
p03709 | #include <bits/stdc++.h>
using namespace std;
#define MOD (1000000007)
const int N = 5e5 + 10;
int h[N], l[N], r[N];
vector<int> L[N];
int x[N], v[N], a[N];
bool cmp(const int &a, const int &b) { return v[a] < v[b]; }
int f[N], S[N];
int main() {
ios::sync_with_stdio(false), cin.tie(0);
int n, m;
cin >> n;
f... | #include <bits/stdc++.h>
using namespace std;
#define MOD (1000000007)
const int N = 5e5 + 10;
int h[N], l[N], r[N];
vector<int> L[N];
int x[N], v[N], a[N];
bool cmp(const int &a, const int &b) { return v[a] < v[b]; }
int f[N], S[N];
int main() {
ios::sync_with_stdio(false), cin.tie(0);
int n, m;
cin >> n;
fo... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,377,551 | 1,377,552 | u188777898 | cpp |
p03709 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i, a, b) for (int i = (a), _end_ = (b); i <= _end_; i++)
#define DREP(i, a, b) for (int i = (a), _end_ = (b); i >= _end_; i--)
#define EREP(i, a) for (int i = start[(a)]; i; i = e[i].next)
template <class T> inline void chkmax(T &a, T b) {
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i, a, b) for (int i = (a), _end_ = (b); i <= _end_; i++)
#define DREP(i, a, b) for (int i = (a), _end_ = (b); i >= _end_; i--)
#define EREP(i, a) for (int i = start[(a)]; i; i = e[i].next)
template <class T> inline void chkmax(T &a, T b) {
... | [
"control_flow.loop.condition.change"
] | 1,377,553 | 1,377,554 | u057222094 | cpp |
p03709 | #include <algorithm>
#include <cstdio>
using namespace std;
int gi() {
int x = 0, w = 1;
char ch = getchar();
while ((ch < '0' || ch > '9') && ch != '-')
ch = getchar();
if (ch == '-')
w = 0, ch = getchar();
while (ch >= '0' && ch <= '9')
x = (x << 3) + (x << 1) + ch - '0', ch = getchar();
retur... | #include <algorithm>
#include <cstdio>
using namespace std;
int gi() {
int x = 0, w = 1;
char ch = getchar();
while ((ch < '0' || ch > '9') && ch != '-')
ch = getchar();
if (ch == '-')
w = 0, ch = getchar();
while (ch >= '0' && ch <= '9')
x = (x << 3) + (x << 1) + ch - '0', ch = getchar();
retur... | [
"control_flow.loop.condition.change"
] | 1,377,557 | 1,377,558 | u459210307 | cpp |
p03709 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
using namespace std;
const int N = 5e5 + 10, mo = 1e9 + 7;
int tr[N * 4];
int f[N];
struct aa {
int x, y, id;
} a[N], b[N];
bool cmp1(aa x, aa y) { return x.x < y.x; }
bool cmp2(aa x, aa y) { return x.y < y.y; }
bool cmp3(aa x, aa y) { return ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
using namespace std;
const int N = 5e5 + 10, mo = 1e9 + 7;
int tr[N * 4];
int f[N];
struct aa {
int x, y, id;
} a[N], b[N];
bool cmp2(aa x, aa y) { return x.x < y.x; }
bool cmp1(aa x, aa y) { return x.y < y.y; }
bool cmp3(aa x, aa y) { return ... | [
"identifier.change"
] | 1,377,563 | 1,377,564 | u074032072 | cpp |
p03709 | #include <bits/stdc++.h>
const int N = 500005, M = 1000000007;
using namespace std;
int n, x, y, b[N], c[N];
struct seg {
int a, b;
} l[N], s[N];
bool operator<(seg x, seg y) { return x.b == y.b ? x.a < y.a : x.b < y.b; }
int main() {
scanf("%d", &n);
for (int i = 0; i < n; i++)
scanf("%d%d", c + i, &l[i].b),... | #include <bits/stdc++.h>
const int N = 500005, M = 1000000007;
using namespace std;
int n, x, y, b[N], c[N];
struct seg {
int a, b;
} l[N], s[N];
bool operator<(seg x, seg y) { return x.b == y.b ? x.a < y.a : x.b < y.b; }
int main() {
scanf("%d", &n);
for (int i = 0; i < n; i++)
scanf("%d%d", c + i, &l[i].b),... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one",
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 1,377,569 | 1,377,570 | u067825483 | cpp |
p03709 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <queue>
#include <vector>
#define LL long long
#define LD long double
using namespace std;
const int NN = 200000 + 117;
const int MM = 100000 + 117;
const int mod = 1e9 + 7;
int read() {
int fl =... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <queue>
#include <vector>
#define LL long long
#define LD long double
using namespace std;
const int NN = 200000 + 117;
const int MM = 100000 + 117;
const int mod = 1e9 + 7;
int read() {
int fl =... | [
"call.arguments.change"
] | 1,377,577 | 1,377,578 | u634654042 | cpp |
p03709 | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7, N = 201000;
namespace {
int Add(int x, int y) { return (x += y) >= MOD ? x - MOD : x; }
int Dec(int x, int y) { return (x -= y) < 0 ? x + MOD : x; }
} // namespace
int n, tmp[N], l[N], r[N], f[N], s[N];
pair<int, int> a[N];
vector<int> vec[N];
i... | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7, N = 201000;
namespace {
int Add(int x, int y) { return (x += y) >= MOD ? x - MOD : x; }
int Dec(int x, int y) { return (x -= y) < 0 ? x + MOD : x; }
} // namespace
int n, tmp[N], l[N], r[N], f[N], s[N];
pair<int, int> a[N];
vector<int> vec[N];
i... | [
"assignment.value.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,377,581 | 1,377,582 | u361139004 | cpp |
p03709 | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
const int N = 200005;
const int mod = 1e9 + 7;
typedef pair<int, int> pi;
int n, ans;
int z[N];
int l[N], r[N];
int f[N], s[N];
double t[N];
pi q[N];
struct node {
int x, v, pos, l, r;
} a[N];
bool cmp_v(node a, node b) { return a.v > b.v;... | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
const int N = 200005;
const int mod = 1e9 + 7;
typedef pair<int, int> pi;
int n, ans;
int z[N];
int l[N], r[N];
int f[N], s[N];
double t[N];
pi q[N];
struct node {
int x, v, pos, l, r;
} a[N];
bool cmp_v(node a, node b) { return a.v > b.v;... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 1,377,583 | 1,377,584 | u606943431 | cpp |
p03709 | /*
题意:
平面上有$n$个点,每个点都有一个位置$x_i$,和向右的速度$v_i$
现在要求你对其中的一些点进行染色,当一个点被染色后,在无限距离内与它相遇的点也会被染色
问在可能的$2^n$种染色方案中,有多少种染色方案可以使得最后的点全部被染色
Sol
非常好的dp题。
首先考虑若点$i$被染色后,哪些点会被染色
最显然的两种情况
1. $x_j < x_i$且$v_j > v_i$
2. $x_j > x_i$且$v_j < v_i$
当然还有其他的情况,因为题目中的“染色”是一个连锁反应,也就是说$a$被染色,$a$又遇到了$b$,那么$b$也会被染色
实际上,当我们把所有点按速度从大到小排序。
对... | /*
题意:
平面上有$n$个点,每个点都有一个位置$x_i$,和向右的速度$v_i$
现在要求你对其中的一些点进行染色,当一个点被染色后,在无限距离内与它相遇的点也会被染色
问在可能的$2^n$种染色方案中,有多少种染色方案可以使得最后的点全部被染色
Sol
非常好的dp题。
首先考虑若点$i$被染色后,哪些点会被染色
最显然的两种情况
1. $x_j < x_i$且$v_j > v_i$
2. $x_j > x_i$且$v_j < v_i$
当然还有其他的情况,因为题目中的“染色”是一个连锁反应,也就是说$a$被染色,$a$又遇到了$b$,那么$b$也会被染色
实际上,当我们把所有点按速度从大到小排序。
对... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 1,377,587 | 1,377,588 | u049278965 | cpp |
p03709 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
#define N 200005
#define ll long long
#define mod 1000000007
struct node {
int x, v, l, r;
} a[N];
int n, maxx[N], f[N], sum[N];
int find(int i, int... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
#define N 200005
#define ll long long
#define mod 1000000007
struct node {
int x, v, l, r;
} a[N];
int n, maxx[N], f[N], sum[N];
int find(int i, int... | [
"call.add",
"literal.number.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change",
"call.arguments.add"
] | 1,377,589 | 1,377,590 | u058288007 | cpp |
p03709 | #include <bits/stdc++.h>
#define sqr(x) ((x) * (x))
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define ld long double
#define vi vector<int>
#define pii pair<int, int>
#define pb push_back
#define mp make_pair
#define debuge cerr << "isok" << endl
#define debug(x) cerr << #x << "=" << x... | #include <bits/stdc++.h>
#define sqr(x) ((x) * (x))
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define ld long double
#define vi vector<int>
#define pii pair<int, int>
#define pb push_back
#define mp make_pair
#define debuge cerr << "isok" << endl
#define debug(x) cerr << #x << "=" << x... | [
"literal.number.change",
"assignment.value.change"
] | 1,377,602 | 1,377,603 | u309605945 | cpp |
p03709 | ///////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
// _oo0oo_ //
// o8888888o //
// 88" . "88 ------ hzt1 //
// ... | ///////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
// _oo0oo_ //
// o8888888o //
// 88" . "88 ------ hzt1 //
// ... | [
"identifier.change",
"call.function.change",
"assignment.value.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one",
"literal.number.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,377,604 | 1,377,605 | u027781635 | cpp |
p03709 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <sta... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <sta... | [
"identifier.change",
"call.arguments.change"
] | 1,377,644 | 1,377,645 | u319223598 | cpp |
p03709 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <sta... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <sta... | [
"literal.number.change",
"variable_declaration.value.change",
"identifier.change",
"call.arguments.change"
] | 1,377,646 | 1,377,645 | u319223598 | cpp |
p03709 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
#define mp make_pair
#define pb push_back
#define ll long long
#define maxN 200011
#define mod 1000000007
int n, i;
pair<int, int> ninja[maxN];
pair<int, int> ord[maxN];
vector<int> ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
#define mp make_pair
#define pb push_back
#define ll long long
#define maxN 200011
#define mod 1000000007
int n, i;
pair<int, int> ninja[maxN];
pair<int, int> ord[maxN];
vector<int> ... | [
"literal.number.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 1,377,653 | 1,377,654 | u218169014 | cpp |
p03709 | #include <bits/stdc++.h>
#define sqr(x) ((x) * (x))
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define ld long double
#define vi vector<int>
#define pii pair<int, int>
#define pb push_back
#define mp make_pair
#define debuge cerr << "isok" << endl
#define debug(x) cerr << #x << "=" << x... | #include <bits/stdc++.h>
#define sqr(x) ((x) * (x))
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define ld long double
#define vi vector<int>
#define pii pair<int, int>
#define pb push_back
#define mp make_pair
#define debuge cerr << "isok" << endl
#define debug(x) cerr << #x << "=" << x... | [
"literal.number.change",
"assignment.value.change"
] | 1,377,667 | 1,377,668 | u488167351 | cpp |
p03710 | #include <bits/stdc++.h>
using namespace std;
#define M 1005
#define MOD 1000000007
#define lim 1e18
#define ll long long
#define mp make_pair
#define fi first
#define se second
int k = 1, T, mx;
ll x, y, res, fib[M];
vector<pair<ll, ll>> exellent[M];
inline ll read() {
ll x = 0, f = 1;
char ch = getchar();
... | #include <bits/stdc++.h>
using namespace std;
#define M 1005
#define MOD 1000000007
#define lim 1e18
#define ll long long
#define mp make_pair
#define fi first
#define se second
int k = 1, T, mx;
ll x, y, res, fib[M];
vector<pair<ll, ll>> exellent[M];
inline ll read() {
ll x = 0, f = 1;
char ch = getchar();
... | [
"expression.unary.arithmetic.add"
] | 1,377,675 | 1,377,676 | u654862026 | cpp |
p03710 | #include <bits/stdc++.h>
#define EB emplace_back
typedef long long ll;
typedef std::pair<ll, ll> pr;
typedef std::vector<pr> vector;
const int mod = 1000000007;
int q;
ll A, B, f[89];
vector G[89];
int main() {
int i;
ll ans = 0;
for (f[1] = f[2] = 1, i = 3; i < 89; ++i)
f[i] = f[i - 1] + f[i - 2];
G[2].... | #include <bits/stdc++.h>
#define EB emplace_back
typedef long long ll;
typedef std::pair<ll, ll> pr;
typedef std::vector<pr> vector;
const int mod = 1000000007;
int q;
ll A, B, f[89];
vector G[89];
int main() {
int i;
ll ans = 0;
for (f[1] = f[2] = 1, i = 3; i < 89; ++i)
f[i] = f[i - 1] + f[i - 2];
G[2].... | [] | 1,377,692 | 1,377,693 | u357974633 | cpp |
p03710 | // Relive your past life.
// Face your demons.
// The past is never dead,it is not even past.
// The memories are not only the key to the past but...also to the future.
// coded in Rusty Lake
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso64... | // Relive your past life.
// Face your demons.
// The past is never dead,it is not even past.
// The memories are not only the key to the past but...also to the future.
// coded in Rusty Lake
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso64... | [
"expression.operation.binary.add"
] | 1,377,701 | 1,377,702 | u728472449 | cpp |
p03710 | #include <bits/stdc++.h>
#define Fst first
#define Snd second
#define RG register
#define mp make_pair
#define mem(a, b) memset(a, b, sizeof(a))
using namespace std;
typedef long long LL;
typedef long double LD;
typedef unsigned int UI;
typedef unsigned long long ULL;
template <typename T> inline void read(T &x) {
ch... | #include <bits/stdc++.h>
#define Fst first
#define Snd second
#define RG register
#define mp make_pair
#define mem(a, b) memset(a, b, sizeof(a))
using namespace std;
typedef long long LL;
typedef long double LD;
typedef unsigned int UI;
typedef unsigned long long ULL;
template <typename T> inline void read(T &x) {
ch... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.branch.while.replace.add",
"control_flow.loop.if.replace.remove"
] | 1,377,703 | 1,377,704 | u065333757 | cpp |
p03710 | #include <bits/stdc++.h>
#define ll long long
#define mo 1000000007
#define pll pair<ll, ll>
using namespace std;
ll f[105];
vector<pll> s[105];
void dfs(int x, ll a, ll b) {
if (x > 88)
return;
if (b >= f[x + 1])
return;
s[x].push_back(pll(a, b));
dfs(x + 1, b, b + a);
dfs(x + 1, b, b * 2 + a);
}
int... | #include <bits/stdc++.h>
#define ll long long
#define mo 1000000007
#define pll pair<ll, ll>
using namespace std;
ll f[105];
vector<pll> s[105];
void dfs(int x, ll a, ll b) {
if (x > 88)
return;
if (b > f[x + 1])
return;
s[x].push_back(pll(a, b));
dfs(x + 1, b, b + a);
dfs(x + 1, b, b * 2 + a);
}
int ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,377,708 | 1,377,709 | u743451419 | cpp |
p03710 | #include <bits/stdc++.h>
using namespace std;
#define dig(...) fprintf(stderr, __VA_ARGS__)
typedef long long LL;
const int mod = 1e9 + 7;
const int maxn = 105;
const int N = 85;
int T;
LL f[maxn];
vector<pair<LL, LL>> excel[maxn];
void Init() {
scanf("%d", &T);
f[0] = 1;
f[1] = 1;
for (int i = 2; i <= N +... | #include <bits/stdc++.h>
using namespace std;
#define dig(...) fprintf(stderr, __VA_ARGS__)
typedef long long LL;
const int mod = 1e9 + 7;
const int maxn = 105;
const int N = 85;
int T;
LL f[maxn];
vector<pair<LL, LL>> excel[maxn];
void Init() {
scanf("%d", &T);
f[0] = 1;
f[1] = 1;
for (int i = 2; i <= N +... | [
"assignment.add",
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 1,377,725 | 1,377,726 | u075011595 | cpp |
p03710 | // Copyright (C) 2017 __debug.
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; version 3
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; with... | // Copyright (C) 2017 __debug.
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
// published by the Free Software Foundation; version 3
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; with... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,377,727 | 1,377,728 | u480392922 | cpp |
p03711 | #include <iostream>
using namespace std;
int main() {
int num1[7] = {1, 3, 5, 7, 8, 10, 12};
int num2[4] = {4, 6, 9, 11};
int num3[1] = {2};
int x, y;
while (cin >> x >> y) {
int f = 0;
for (int i = 0; i < 7; i++) {
if (x == num1[i]) {
for (int j = 0; j < 7; j++) {
if (y == nu... | #include <iostream>
using namespace std;
int main() {
int num1[7] = {1, 3, 5, 7, 8, 10, 12};
int num2[4] = {4, 6, 9, 11};
int num3[1] = {2};
int x, y;
while (cin >> x >> y) {
int f = 0;
for (int i = 0; i < 7; i++) {
if (x == num1[i]) {
for (int j = 0; j < 7; j++) {
if (y == num... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,731 | 1,377,732 | u353919145 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) rep2(i, 0, n)
#define rep2(i, m, n) for (ll i = m; i < (n); i++)
using ll = long long;
using pii = pair<int, int>;
using Vi = vector<int>;
int main() {
int x, y;
cin >> x >> y;
bool b = false;
if (x == 2) {
if (y == 2) {
b = true;
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) rep2(i, 0, n)
#define rep2(i, m, n) for (ll i = m; i < (n); i++)
using ll = long long;
using pii = pair<int, int>;
using Vi = vector<int>;
int main() {
int x, y;
cin >> x >> y;
bool b = false;
if (x == 2) {
if (y == 2) {
b = true;
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,733 | 1,377,734 | u126936481 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) rep2(i, 0, n)
#define rep2(i, m, n) for (ll i = m; i < (n); i++)
using ll = long long;
using pii = pair<int, int>;
using Vi = vector<int>;
int main() {
int x, y;
cin >> x >> y;
bool b = false;
if (x == 2) {
if (y == 2) {
b = true;
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) rep2(i, 0, n)
#define rep2(i, m, n) for (ll i = m; i < (n); i++)
using ll = long long;
using pii = pair<int, int>;
using Vi = vector<int>;
int main() {
int x, y;
cin >> x >> y;
bool b = false;
if (x == 2) {
if (y == 2) {
b = true;
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,377,735 | 1,377,734 | u126936481 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) rep2(i, 0, n)
#define rep2(i, m, n) for (ll i = m; i < (n); i++)
using ll = long long;
using pii = pair<int, int>;
using Vi = vector<int>;
int main() {
int x, y;
cin >> x >> y;
bool b = false;
if (x == 2) {
if (y == 2) {
b = true;
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) rep2(i, 0, n)
#define rep2(i, m, n) for (ll i = m; i < (n); i++)
using ll = long long;
using pii = pair<int, int>;
using Vi = vector<int>;
int main() {
int x, y;
cin >> x >> y;
bool b = false;
if (x == 2) {
if (y == 2) {
b = true;
... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"misc.opposites"
] | 1,377,736 | 1,377,734 | u126936481 | cpp |
p03711 | #include <bits/stdc++.h>
#define REP(i, a, b) for (int i = a; i < b; i++)
#define REP_(i, a, b) for (int i = a; i <= b; i++)
#define sl(n) scanf("%lld", &n);
#define si(n) scanf("%d", &n);
#define RepAll(a) for (auto x : a)
#define cout(ans) cout << ans << endl;
typedef long long ll;
using namespace std;
int slove(int... | #include <bits/stdc++.h>
#define REP(i, a, b) for (int i = a; i < b; i++)
#define REP_(i, a, b) for (int i = a; i <= b; i++)
#define sl(n) scanf("%lld", &n);
#define si(n) scanf("%d", &n);
#define RepAll(a) for (auto x : a)
#define cout(ans) cout << ans << endl;
typedef long long ll;
using namespace std;
int slove(int... | [
"control_flow.branch.if.condition.change"
] | 1,377,749 | 1,377,750 | u863370423 | cpp |
p03711 | #include <iostream>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> a{0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1};
if (a[x] == a[y])
cout << "Yes"
<< "\n";
else
cout << "No"
<< "\n";
return 0;
} | #include <iostream>
#include <vector>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
vector<int> a{0, 1, 3, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1};
if (a[x] == a[y])
cout << "Yes"
<< "\n";
else
cout << "No"
<< "\n";
return 0;
} | [] | 1,377,754 | 1,377,755 | u114396358 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int x, y;
int main() {
cin >> x >> y;
if (x == 1 || x == 3 || x == 5 || x == 7 || x == 8 || x == 11 || x == 12) {
if (y == 1 || y == 3 || y == 5 || y == 7 || y == 8 || y == 11 || y == 12) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
... | #include <bits/stdc++.h>
using namespace std;
int x, y;
int main() {
cin >> x >> y;
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) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 1,377,756 | 1,377,757 | u089230684 | cpp |
p03711 | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
vector<int> v1, v2, v3;
int main() {
int x, y;
v1.push_back(1);
v1.push_back(3);
v1.push_back(5);
v1.push_back(7);
v1.push_back(8);
v1.push_back(10);
v1.push_back(1... | #include <algorithm>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
vector<int> v1, v2, v3;
int main() {
int x, y;
v1.push_back(1);
v1.push_back(3);
v1.push_back(5);
v1.push_back(7);
v1.push_back(8);
v1.push_back(10);
v1.push_back(1... | [
"literal.number.change",
"call.arguments.change"
] | 1,377,760 | 1,377,761 | u089230684 | cpp |
p03711 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
int main() {
std::ios_base::sync_with_stdio(0);
cin.tie(NULL);
cout.tie(0);
int x, y;
cin >> x >> y;
if ((x == 1 || x == 3 || x == 5 || x == 7 || x == 8 || x == 10 || x == 12) &&
... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
int main() {
std::ios_base::sync_with_stdio(0);
cin.tie(NULL);
cout.tie(0);
int x, y;
cin >> x >> y;
if ((x == 1 || x == 3 || x == 5 || x == 7 || x == 8 || x == 10 || x == 12) &&
... | [
"control_flow.branch.if.condition.change"
] | 1,377,764 | 1,377,765 | u236584137 | cpp |
p03711 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int gx = 0;
int gy = 0;
if (x == 4 || x == 6 || x == 9 || x == 11) {
gx = 1;
}
if (y == 4 || y == 6 || y == 9 || y == 11) {
gy = 1;
}
if (x == 2) {
gx == 2;
}
if (y == 2) {
gy == 2;
}
if (gx ==... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
int gx = 0;
int gy = 0;
if (x == 4 || x == 6 || x == 9 || x == 11) {
gx = 1;
}
if (y == 4 || y == 6 || y == 9 || y == 11) {
gy = 1;
}
if (x == 2) {
gx = 2;
}
if (y == 2) {
gy = 2;
}
if (gx == g... | [
"expression.operation.compare.replace.remove",
"assignment.replace.add",
"misc.typo"
] | 1,377,770 | 1,377,771 | u758405447 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.