Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p03866
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <queue> #include <stack> #include <string> #include <utility> #include <vector> typedef long long int ll; #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 <utility> #include <vector> typedef long long int ll; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, n) for (int i = 0; i < ...
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo", "call.add", "call.arguments.change" ]
1,475,192
1,475,191
u935586669
cpp
p03866
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(x) (x).begin(), (x).end() #define LL long long #define Pair pair<LL, LL> using namespace std; struct P { int x, y, r; }; struct edge { int to; long double cost; }; int N; vector<edge> G[1003]; long double d[1003]; void d...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (int)(n); i++) #define ALL(x) (x).begin(), (x).end() #define LL long long #define Pair pair<LL, LL> using namespace std; struct P { int x, y, r; }; struct edge { int to; long double cost; }; int N; vector<edge> G[1003]; long double d[1003]; void d...
[ "expression.operation.binary.add" ]
1,475,212
1,475,213
u555577504
cpp
p03866
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; #define REP(i, n) for (int(i) = 0; (i) < (int...
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; #define REP(i, n) for (int(i) = 0; (i) < (int...
[ "misc.opposites", "identifier.change" ]
1,475,216
1,475,217
u693386219
cpp
p03866
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> pii; typedef pair<double, double> pdd; typedef pair<int, pii> pipdd; typedef pair<int, double> pid; typedef pair<pii, pdd> ppiipdd; typedef pair<double, int> pdi; vector<ppiipdd> V; vector<pid> G[1010]; int N; double sx, sy, gx, gy; double D[1010];...
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> pii; typedef pair<double, double> pdd; typedef pair<int, pii> pipdd; typedef pair<int, double> pid; typedef pair<pii, pdd> ppiipdd; typedef pair<double, int> pdi; vector<ppiipdd> V; vector<pid> G[1010]; int N; double sx, sy, gx, gy; double D[1010]...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,475,224
1,475,225
u205655980
cpp
p03866
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, n) FOR(i, 0, n) #define ALL(v) (v).begin(), (v).end() template <typename A, typename B> inline bool chmax(A &a, B b) { if (a < b) { a = b; return 1; } return 0; } template <typename A, type...
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define REP(i, n) FOR(i, 0, n) #define ALL(v) (v).begin(), (v).end() template <typename A, typename B> inline bool chmax(A &a, B b) { if (a < b) { a = b; return 1; } return 0; } template <typename A, type...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
1,475,230
1,475,229
u105791541
cpp
p03866
#include <bits/stdc++.h> using namespace std; const int MAXN = 100005; const double INF = 3 * (1e9); bool taken[MAXN]; double d[MAXN]; struct point { int x, y, r; } p[MAXN]; double dist(point a, point b) { return max( 0.0, sqrt(double((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y))) - ...
#include <bits/stdc++.h> using namespace std; const int MAXN = 100005; const double INF = 3 * (1e9); bool taken[MAXN]; double d[MAXN]; struct point { long long x, y, r; } p[MAXN]; double dist(point a, point b) { return max( 0.0, sqrt(double((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y))) - ...
[ "variable_declaration.type.primitive.change", "variable_declaration.type.widen.change", "literal.number.change", "io.output.change" ]
1,475,235
1,475,236
u100442156
cpp
p03866
#include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define repl(i, a, b) for...
#include <algorithm> #include <bitset> #include <cassert> #include <cmath> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define repl(i, a, b) for...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,475,246
1,475,247
u910288980
cpp
p03866
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vl> vvl; typedef pair<ll, ll> pll; typedef vector<bool> vb; const ll oo = 0x3f3f3f3f3f3f3f3f; const double eps = 1e-12; #define sz(c) ll((c).size()) #define all(c) begin(c), end(c) #define FOR(i, a, b) for (ll i =...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vl> vvl; typedef pair<ll, ll> pll; typedef vector<bool> vb; const ll oo = 0x3f3f3f3f3f3f3f3f; const double eps = 1e-12; #define sz(c) ll((c).size()) #define all(c) begin(c), end(c) #define FOR(i, a, b) for (ll i =...
[ "assignment.value.change", "identifier.change" ]
1,475,263
1,475,264
u091970605
cpp
p03866
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vl> vvl; typedef pair<ll, ll> pll; typedef vector<bool> vb; const ll oo = 0x3f3f3f3f3f3f3f3f; const double eps = 1e-12; #define sz(c) ll((c).size()) #define all(c) begin(c), end(c) #define FOR(i, a, b) for (ll i =...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vl> vvl; typedef pair<ll, ll> pll; typedef vector<bool> vb; const ll oo = 0x3f3f3f3f3f3f3f3f; const double eps = 1e-12; #define sz(c) ll((c).size()) #define all(c) begin(c), end(c) #define FOR(i, a, b) for (ll i =...
[ "assignment.value.change", "identifier.change", "literal.number.change", "io.output.change" ]
1,475,265
1,475,264
u091970605
cpp
p03866
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vl> vvl; typedef pair<ll, ll> pll; typedef vector<bool> vb; const ll oo = 0x3f3f3f3f3f3f3f3f; const double eps = 1e-12; #define sz(c) ll((c).size()) #define all(c) begin(c), end(c) #define FOR(i, a, b) for (ll i =...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vl> vvl; typedef pair<ll, ll> pll; typedef vector<bool> vb; const ll oo = 0x3f3f3f3f3f3f3f3f; const double eps = 1e-12; #define sz(c) ll((c).size()) #define all(c) begin(c), end(c) #define FOR(i, a, b) for (ll i =...
[ "assignment.value.change", "identifier.change", "variable_declaration.type.widen.change", "literal.number.change", "io.output.change" ]
1,475,266
1,475,264
u091970605
cpp
p03866
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using nam...
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using nam...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,475,300
1,475,301
u316930130
cpp
p03866
#include <bits/stdc++.h> using namespace std; typedef unsigned int uint; typedef long long int ll; typedef unsigned long long int ull; #define debugv(v) \ printf("L%d %s => ", __LINE__, #v); \ for (auto e : v) { ...
#include <bits/stdc++.h> using namespace std; typedef unsigned int uint; typedef long long int ll; typedef unsigned long long int ull; #define debugv(v) \ printf("L%d %s => ", __LINE__, #v); \ for (auto e : v) { ...
[ "expression.operation.unary.add", "call.arguments.change" ]
1,475,306
1,475,307
u079330987
cpp
p03866
#include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <cstring> #include <map> #include <numeric> #include <set> #include <vector> using namespace std; typedef unsigned int uint; typedef long long LL; typedef pair<LL, LL> PLL; typedef vector<int> VI; typedef vector<LL> VL; typedef vector<...
#include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <cstring> #include <map> #include <numeric> #include <set> #include <vector> using namespace std; typedef unsigned int uint; typedef long long LL; typedef pair<LL, LL> PLL; typedef vector<int> VI; typedef vector<LL> VL; typedef vector<...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
1,475,318
1,475,319
u024464154
cpp
p03866
#include <algorithm> #include <array> #include <bitset> #include <cassert> #include <chrono> #include <complex> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_se...
#include <algorithm> #include <array> #include <bitset> #include <cassert> #include <chrono> #include <complex> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <random> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_se...
[ "io.output.change" ]
1,475,332
1,475,333
u640209154
cpp
p03867
#include <bits/stdc++.h> using namespace std; int a[2005], dp[2005]; int mod = 1e9 + 7; int binpow(int a, int b) { if (b == 0) return 1; int x = binpow(a, b / 2); x *= x; x %= mod; if (b % 2) return (x * a) % mod; else return x; } int main() { int n, k; cin >> n >> k; int cur = 0; for (i...
#include <bits/stdc++.h> using namespace std; #define int long long int a[2005], dp[2005]; int mod = 1e9 + 7; int binpow(int a, int b) { if (b == 0) return 1; int x = binpow(a, b / 2); x *= x; x %= mod; if (b % 2) return (x * a) % mod; else return x; } signed main() { int n, k; cin >> n >> k...
[ "variable_declaration.type.primitive.change" ]
1,475,340
1,475,341
u353919145
cpp
p03867
// C++(GCC 9.2.1) // 解き直し. // https://img.atcoder.jp/arc064/editorial.pdf #include <bits/stdc++.h> using namespace std; using LL = long long; #define repex(i, a, b, c) for (int i = a; i < b; i += c) #define repx(i, a, b) repex(i, a, b, 1) #define rep(i, n) repx(i, 0, n) #define repr(i, a, b) for (int i = a; i >= b; i--...
// C++(GCC 9.2.1) // 解き直し. // https://img.atcoder.jp/arc064/editorial.pdf // ① 1_27.txt, 1_28.txt, 1_30.txt, 1_31.txt で, WA版となったため, ロジック修正. // -> d[i] / 2 は d[i] * 500000004 % MOD に 修正 -> 最終的に, もとに戻した. // ② 1_27.txt で, WA版となったため, ロジック修正. // -> mPow の 第二引数が, 切り捨てだったものを, 切り上げに修正. #include <bits/stdc++.h> using namespace ...
[ "call.arguments.change" ]
1,475,342
1,475,343
u045643130
cpp
p03867
// C++(GCC 9.2.1) // 解き直し. // https://img.atcoder.jp/arc064/editorial.pdf #include <bits/stdc++.h> using namespace std; using LL = long long; #define repex(i, a, b, c) for (int i = a; i < b; i += c) #define repx(i, a, b) repex(i, a, b, 1) #define rep(i, n) repx(i, 0, n) #define repr(i, a, b) for (int i = a; i >= b; i--...
// C++(GCC 9.2.1) // 解き直し. // https://img.atcoder.jp/arc064/editorial.pdf // ① 1_27.txt, 1_28.txt, 1_30.txt, 1_31.txt で, WA版となったため, ロジック修正. // -> d[i] / 2 は d[i] * 500000004 % MOD に 修正. // ② 1_27.txt で, WA版となったため, ロジック修正. // mPow の 第二引数が, 切り捨てだったものを, 切り上げに修正. #include <bits/stdc++.h> using namespace std; using LL = lon...
[ "call.arguments.change" ]
1,475,344
1,475,345
u045643130
cpp
p03867
#include <algorithm> #include <cstdio> #define int long long #define mod 1000000007 int n, k, ans, dp[1001000], p[1001000], cnt; int quickpow(int x, int y) { if (y == 0) return 1; if (y == 1) return x; if (y % 2 == 0) return quickpow(x * x % mod, y / 2); if (y % 2 == 1) return quickpow(x * x % m...
#include <algorithm> #include <cstdio> #define int long long #define mod 1000000007 int n, k, ans, dp[1001000], p[1001000], cnt; int quickpow(int x, int y) { if (y == 0) return 1; if (y == 1) return x; if (y % 2 == 0) return quickpow(x * x % mod, y / 2); if (y % 2 == 1) return quickpow(x * x % m...
[ "expression.operator.arithmetic.change", "function.return_value.change", "expression.operation.binary.change" ]
1,475,354
1,475,355
u201399534
cpp
p03867
#include <algorithm> #include <cstdio> #include <vector> const int mo = 1e9 + 7; using namespace std; int pow(int x, int t) { int res = 1; while (t > 0) { if (t & 1) res = 1ll * res * x % mo; x = 1ll * x * x % mo; t >>= 1; } return res; } int n, k, dp[10001]; vector<int> p; int main() { scan...
#include <algorithm> #include <cstdio> #include <vector> const int mo = 1e9 + 7; using namespace std; int pow(int x, int t) { int res = 1; while (t > 0) { if (t & 1) res = 1ll * res * x % mo; x = 1ll * x * x % mo; t >>= 1; } return res; } int n, k, dp[10001]; vector<int> p; int main() { scan...
[ "assignment.change" ]
1,475,356
1,475,357
u867959763
cpp
p03867
// 0bd35dc5e428754fa574049b6be8efe0 #include <bits/stdc++.h> using namespace std; #define DEBUG(...) fprintf(stderr, __VA_ARGS__) #define mp make_pair #define fst first #define snd second #define SZ(u) ((int)(u).size()) #define ALL(u) (u).begin(), (u).end() inline void proc_status() { ifstream t("/proc/self/statu...
// 0bd35dc5e428754fa574049b6be8efe0 #include <bits/stdc++.h> using namespace std; #define DEBUG(...) fprintf(stderr, __VA_ARGS__) #define mp make_pair #define fst first #define snd second #define SZ(u) ((int)(u).size()) #define ALL(u) (u).begin(), (u).end() inline void proc_status() { ifstream t("/proc/self/statu...
[ "assignment.change" ]
1,475,365
1,475,366
u284781029
cpp
p03867
#include <bits/stdc++.h> #define MOD (1000000007) #define LL long long using namespace std; LL n, k, ans; vector<LL> v, f; LL Qpow(LL a, LL b) { LL ans = 1; while (b) { if (b & 1) ans = ans * a % MOD; a = a * a % MOD; b >>= 1; } return ans; } int main() { cin >> n >> k; for (int i = 1; ...
#include <bits/stdc++.h> #define MOD (1000000007) #define LL long long using namespace std; LL n, k, ans; vector<LL> v, f; LL Qpow(LL a, LL b) { LL ans = 1; while (b) { if (b & 1) ans = ans * a % MOD; a = a * a % MOD; b >>= 1; } return ans; } int main() { cin >> n >> k; for (int i = 1; ...
[ "expression.operation.binary.add" ]
1,475,369
1,475,370
u736934109
cpp
p03867
/*Program from Luvwgyx*/ #include <algorithm> #include <cmath> #include <cstdio> #include <cstring> using namespace std; const int mod = 1e9 + 7; const int maxn = 2e3 + 10; int n, k, tot, ans, a[maxn], f[maxn]; int read() { int x = 0, f = 1; char ch = getchar(); while (ch < '0' || ch > '9') { if (ch == '-') ...
/*Program from Luvwgyx*/ #include <algorithm> #include <cmath> #include <cstdio> #include <cstring> using namespace std; const int mod = 1e9 + 7; const int maxn = 2e3 + 10; int n, k, tot, ans, a[maxn], f[maxn]; int read() { int x = 0, f = 1; char ch = getchar(); while (ch < '0' || ch > '9') { if (ch == '-') ...
[ "assignment.change" ]
1,475,373
1,475,374
u302576580
cpp
p03867
#include <bits/stdc++.h> using namespace std; #define ll int #define llu unsigned long long #define ld double #define llu unsigned long long #define rep(i, x, y) for (int i = int(x); i < int(y); ++i) #define For(i, x, y) for (int i = int(x); i <= int(y); ++i) #define FOr(i, x, y) for (int i = int(x); i >= int(y); --i) ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define llu unsigned long long #define ld double #define llu unsigned long long #define rep(i, x, y) for (int i = int(x); i < int(y); ++i) #define For(i, x, y) for (int i = int(x); i <= int(y); ++i) #define FOr(i, x, y) for (int i = int(x); i >= int(y);...
[ "preprocessor.define.value.change" ]
1,475,375
1,475,376
u443701185
cpp
p03867
#include <bits/stdc++.h> using namespace std; const int mod = 1e9 + 7; int ans; int fastpow(int x, int a) { int ret = 1; while (a) { if (a & 1) ret = ret * 1LL * x % mod; x = x * 1LL * x % mod; a >>= 1; } return ret; } int ys[50005], yscnt; int xs[50005]; int main() { int n, k; cin >> n >...
#include <bits/stdc++.h> using namespace std; const int mod = 1e9 + 7; int ans; int fastpow(int x, int a) { int ret = 1; while (a) { if (a & 1) ret = ret * 1LL * x % mod; x = x * 1LL * x % mod; a >>= 1; } return ret; } int ys[50005], yscnt; int xs[50005]; int main() { int n, k; cin >> n >...
[ "expression.operation.binary.add" ]
1,475,385
1,475,386
u899515616
cpp
p03867
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> ii; typedef vector<int> vi; #define SZ(x) ((int)x.size()) const ll base = (ll)1e9 + 7; ll n, k, dp[5005]; vector<ll> d; ll fast_pw(ll x, ll y) { if (y == 0) return 1; if (y == 1) r...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> ii; typedef vector<int> vi; #define SZ(x) ((int)x.size()) const ll base = (ll)1e9 + 7; ll n, k, dp[5005]; vector<ll> d; ll fast_pw(ll x, ll y) { if (y == 0) return 1; if (y == 1) r...
[]
1,475,387
1,475,388
u773044472
cpp
p03868
#include <bits/stdc++.h> #define ft first #define sc second #define lb lower_bound #define ub upper_bound #define pb push_back #define pt(sth) cout << sth << "\n" #define moC(a, s, b) (a) = ((a)s(b) + MOD) % MOD using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef map<ll, ll> Map; static const ll ...
#include <bits/stdc++.h> #define ft first #define sc second #define lb lower_bound #define ub upper_bound #define pb push_back #define pt(sth) cout << sth << "\n" #define moC(a, s, b) (a) = ((a)s(b) + MOD) % MOD using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef map<ll, ll> Map; static const ll ...
[ "identifier.change" ]
1,475,391
1,475,392
u768152935
cpp
p03868
#include <bits/stdc++.h> using namespace std; int main() { int n; scanf("%d", &n); static int a[100000], b[100000]; for (int i = 0; i < n; i++) { scanf("%d", a + i); } for (int j = 0; j < n; j++) { scanf("%d", b + j); } sort(a, a + n); sort(b, b + n); long long ans = 1ll; const long long ...
#include <bits/stdc++.h> using namespace std; int main() { int n; scanf("%d", &n); static int a[100000], b[100000]; for (int i = 0; i < n; i++) { scanf("%d", a + i); } for (int j = 0; j < n; j++) { scanf("%d", b + j); } sort(a, a + n); sort(b, b + n); long long ans = 1ll; const long long ...
[ "identifier.change", "call.arguments.change", "io.output.change" ]
1,475,407
1,475,408
u102518931
cpp
p03868
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define MOD 1000000007 #define ADD(X, Y) ((X) = ((X) + (Y)) % MOD) typedef long lon...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define MOD 1000000007 #define ADD(X, Y) ((X) = ((X) + (Y)) % MOD) typedef long lon...
[ "literal.number.change", "call.arguments.change" ]
1,475,409
1,475,410
u359818550
cpp
p03868
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define MOD 1000000007 #define ADD(X, Y) ((X) = ((X) + (Y)) % MOD) typedef long lon...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define MOD 1000000007 #define ADD(X, Y) ((X) = ((X) + (Y)) % MOD) typedef long lon...
[ "literal.number.change", "call.arguments.change" ]
1,475,411
1,475,410
u359818550
cpp
p03879
#include <bits/stdc++.h> using namespace std; int main() { double x1, y1, x2, y2, x3, y3; cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; double u1 = x3 - x1; double v1 = y3 - y1; double u2 = x2 - x1; double v2 = y2 - y1; double u3 = x3 - x2; double v3 = y3 - y2; double a = sqrt(u1 * u1 + v1 * v1); double...
#include <bits/stdc++.h> using namespace std; int main() { double x1, y1, x2, y2, x3, y3; cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; double u1 = x3 - x1; double v1 = y3 - y1; double u2 = x2 - x1; double v2 = y2 - y1; double u3 = x3 - x2; double v3 = y3 - y2; double a = sqrt(u1 * u1 + v1 * v1); double...
[ "identifier.change", "expression.operation.binary.change", "expression.operation.binary.remove", "literal.number.change", "io.output.change" ]
1,475,423
1,475,424
u216849520
cpp
p03879
#include <bits/stdc++.h> using namespace std; int main() { double x1, y1, x2, y2, x3, y3; cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; double u1 = x3 - x1; double v1 = y3 - y1; double u2 = x2 - x1; double v2 = y2 - y1; double u3 = x3 - x2; double v3 = y3 - y2; double a = sqrt(u1 * u1 + v1 * v1); double...
#include <bits/stdc++.h> using namespace std; int main() { double x1, y1, x2, y2, x3, y3; cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; double u1 = x3 - x1; double v1 = y3 - y1; double u2 = x2 - x1; double v2 = y2 - y1; double u3 = x3 - x2; double v3 = y3 - y2; double a = sqrt(u1 * u1 + v1 * v1); double...
[ "identifier.change", "expression.operation.binary.change", "literal.number.change", "io.output.change" ]
1,475,425
1,475,424
u216849520
cpp
p03879
#include <bits/stdc++.h> using namespace std; int main() { double x1, y1, x2, y2, x3, y3; cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; double u1 = x3 - x1; double v1 = y3 - y1; double u2 = x2 - x1; double v2 = y2 - y1; double u3 = x3 - x2; double v3 = y3 - y2; double a = sqrt(u1 * u1 + v1 * v1); double...
#include <bits/stdc++.h> using namespace std; int main() { double x1, y1, x2, y2, x3, y3; cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; double u1 = x3 - x1; double v1 = y3 - y1; double u2 = x2 - x1; double v2 = y2 - y1; double u3 = x3 - x2; double v3 = y3 - y2; double a = sqrt(u1 * u1 + v1 * v1); double...
[ "identifier.change", "expression.operation.binary.change" ]
1,475,426
1,475,424
u216849520
cpp
p03879
#include <bits/stdc++.h> #define ll long long #define ull unsigned long long #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(a, b) for (int a = 0; a < (b); ++a) #define REP1(i, n) for (int i = 1; i <= (n); ++i) #define debug(x) cerr << #x << ": " << x << '\n' #define all(x) (x).begin(), (x).end() #def...
#include <bits/stdc++.h> #define ll long long #define ull unsigned long long #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(a, b) for (int a = 0; a < (b); ++a) #define REP1(i, n) for (int i = 1; i <= (n); ++i) #define debug(x) cerr << #x << ": " << x << '\n' #define all(x) (x).begin(), (x).end() #def...
[ "io.output.change" ]
1,475,427
1,475,428
u311671153
cpp
p03879
#include <bits/stdc++.h> using namespace std; double Helon(double a, double b, double c) { double s = (a + b + c) / 2; return sqrt(s * (s - a) * (s - b) * (s - c)); } int main() { double x1, y1, x2, y2, x3, y3; cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; double a = sqrt(pow(x2 - x1, 2.0) + pow(y2 - y1, 2.0))...
#include <bits/stdc++.h> using namespace std; double Helon(double a, double b, double c) { double s = (a + b + c) / 2; return sqrt(s * (s - a) * (s - b) * (s - c)); } int main() { double x1, y1, x2, y2, x3, y3; cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; double a = sqrt(pow(x2 - x1, 2.0) + pow(y2 - y1, 2.0))...
[ "call.arguments.change", "literal.number.change", "io.output.change" ]
1,475,431
1,475,432
u904123392
cpp
p03879
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (a > b) { a = b; return 1; } return 0; } #define _...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> P; template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <class T> bool chmin(T &a, const T &b) { if (a > b) { a = b; return 1; } return 0; } #define _...
[ "literal.number.change", "io.output.change" ]
1,475,433
1,475,434
u071692456
cpp
p03879
#include <bits/stdc++.h> using namespace std; #define pb push_back #define mp make_pair #define mt make_tuple #define fi first #define se second #define all(a) (a).begin(), (a).end() #define endl "\n" #define aim_cpo \ do { ...
#include <bits/stdc++.h> using namespace std; #define pb push_back #define mp make_pair #define mt make_tuple #define fi first #define se second #define all(a) (a).begin(), (a).end() #define endl "\n" #define aim_cpo \ do { ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
1,475,437
1,475,438
u660656117
cpp
p03879
// warm heart, wagging tail,and a smile just for you! // ███████████ // ███╬╬╬╬╬╬╬╬╬╬███ // ███╬╬╬╬╬████╬╬╬╬╬╬███ // ...
// warm heart, wagging tail,and a smile just for you! // ███████████ // ███╬╬╬╬╬╬╬╬╬╬███ // ███╬╬╬╬╬████╬╬╬╬╬╬███ // ...
[ "literal.number.change", "io.output.change" ]
1,475,441
1,475,440
u239493918
cpp
p03879
// warm heart, wagging tail,and a smile just for you! // ███████████ // ███╬╬╬╬╬╬╬╬╬╬███ // ███╬╬╬╬╬████╬╬╬╬╬╬███ // ...
// warm heart, wagging tail,and a smile just for you! // ███████████ // ███╬╬╬╬╬╬╬╬╬╬███ // ███╬╬╬╬╬████╬╬╬╬╬╬███ // ...
[ "literal.number.change", "variable_declaration.value.change", "io.output.change" ]
1,475,442
1,475,440
u239493918
cpp
p03879
/* ---------- STL Libraries ---------- */ // IO library #include <cstdio> #include <fstream> #include <iomanip> #include <ios> #include <iostream> // algorithm library #include <algorithm> #include <cmath> #include <numeric> #include <random> // container library #include <array> #include <bitset> #include <deque> #...
/* ---------- STL Libraries ---------- */ // IO library #include <cstdio> #include <fstream> #include <iomanip> #include <ios> #include <iostream> // algorithm library #include <algorithm> #include <cmath> #include <numeric> #include <random> // container library #include <array> #include <bitset> #include <deque> #...
[ "variable_declaration.type.primitive.change" ]
1,475,443
1,475,444
u059727354
cpp
p03879
/* ---------- STL Libraries ---------- */ // IO library #include <cstdio> #include <fstream> #include <iomanip> #include <ios> #include <iostream> // algorithm library #include <algorithm> #include <cmath> #include <numeric> #include <random> // container library #include <array> #include <bitset> #include <deque> #...
/* ---------- STL Libraries ---------- */ // IO library #include <cstdio> #include <fstream> #include <iomanip> #include <ios> #include <iostream> // algorithm library #include <algorithm> #include <cmath> #include <numeric> #include <random> // container library #include <array> #include <bitset> #include <deque> #...
[ "variable_declaration.type.primitive.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.number.change", "io.output.change" ]
1,475,445
1,475,444
u059727354
cpp
p03879
#include "algorithm" #include "bitset" #include "cmath" #include "functional" #include "iostream" #include "map" #include "queue" #include "set" #include "stack" #include "string" #include "unordered_map" #include "vector" #define lp(n) for (int i = 0; i < n; i++) #define LP(n, i) for (int i = 0; i < n; i++) #define m...
#include "algorithm" #include "bitset" #include "cmath" #include "functional" #include "iostream" #include "map" #include "queue" #include "set" #include "stack" #include "string" #include "unordered_map" #include "vector" #define lp(n) for (int i = 0; i < n; i++) #define LP(n, i) for (int i = 0; i < n; i++) #define m...
[ "variable_declaration.type.primitive.change" ]
1,475,446
1,475,447
u015514760
cpp
p03879
#include <algorithm> #include <cmath> #include <complex> #include <iomanip> #include <iostream> #define rep(i, a) for (int i = 0; i < (a); ++i) using Pt = std::complex<double>; double x[3], y[3]; double a[3], ma, r; double sqr(double x) { return x * x; } bool C(double x) { return (1 - x / r) * ma >= 2 * x; } doubl...
#include <algorithm> #include <cmath> #include <complex> #include <iomanip> #include <iostream> #define rep(i, a) for (int i = 0; i < (a); ++i) using Pt = std::complex<double>; double x[3], y[3]; double a[3], ma, r; double sqr(double x) { return x * x; } bool C(double x) { return (1 - x / r) * ma >= 2 * x; } doubl...
[ "call.add", "call.arguments.change" ]
1,475,451
1,475,452
u265250376
cpp
p03879
#include <algorithm> #include <cmath> #include <complex> #include <iomanip> #include <iostream> #define rep(i, a) for (int i = 0; i < (a); ++i) using Pt = std::complex<double>; double x[3], y[3]; double a[3], ma, r; double sqr(double x) { return x * x; } bool C(double x) { return (1 - x / r) * ma >= 2 * x; } doubl...
#include <algorithm> #include <cmath> #include <complex> #include <iomanip> #include <iostream> #define rep(i, a) for (int i = 0; i < (a); ++i) using Pt = std::complex<double>; double x[3], y[3]; double a[3], ma, r; double sqr(double x) { return x * x; } bool C(double x) { return (1 - x / r) * ma >= 2 * x; } doubl...
[ "call.add", "call.arguments.change", "literal.number.change" ]
1,475,453
1,475,452
u265250376
cpp
p03879
#include <bits/stdc++.h> using namespace std; using VI = vector<int>; using VVI = vector<VI>; using PII = pair<int, int>; using LL = long long; using VL = vector<LL>; using VVL = vector<VL>; using PLL = pair<LL, LL>; using VS = vector<string>; #define ALL(a) begin((a)), end((a)) #define RALL(a) (a).rbegin(), (a).rend...
#include <bits/stdc++.h> using namespace std; using VI = vector<int>; using VVI = vector<VI>; using PII = pair<int, int>; using LL = long long; using VL = vector<LL>; using VVL = vector<VL>; using PLL = pair<LL, LL>; using VS = vector<string>; #define ALL(a) begin((a)), end((a)) #define RALL(a) (a).rbegin(), (a).rend...
[ "expression.operation.binary.remove" ]
1,475,454
1,475,455
u157085392
cpp
p03879
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> int main() { double x1, x2, x3, y1, y2, y3; std::cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; double a = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)), b = sqrt((x2 - x3) * (x2 - x3) + (y2 - y3) * (y2 - y3)), c = sqrt...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> int main() { double x1, x2, x3, y1, y2, y3; std::cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3; double a = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)), b = sqrt((x2 - x3) * (x2 - x3) + (y2 - y3) * (y2 - y3)), c = sqrt...
[ "literal.number.change", "call.arguments.change", "expression.operation.binary.change" ]
1,475,456
1,475,457
u395350106
cpp
p03879
#include <algorithm> #include <cmath> #include <cstdio> using namespace std; int main() { double x[3], y[3]; for (int i = 0; i < 3; i++) { scanf("%lf %lf", &x[i], &y[i]); } double S[3], ang[3]; for (int i = 0; i < 3; i++) { S[i] = hypot(x[(i + 1) % 3] - x[(i + 2) % 3], y[(i + 1) % 3] - y[(i +...
#include <algorithm> #include <cmath> #include <cstdio> using namespace std; int main() { double x[3], y[3]; for (int i = 0; i < 3; i++) { scanf("%lf %lf", &x[i], &y[i]); } double S[3], ang[3]; for (int i = 0; i < 3; i++) { S[i] = hypot(x[(i + 1) % 3] - x[(i + 2) % 3], y[(i + 1) % 3] - y[(i +...
[ "assignment.value.change", "identifier.change", "call.function.change", "call.arguments.change", "expression.operation.binary.change" ]
1,475,460
1,475,461
u510005981
cpp
p03880
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int N; cin >> N; vector<long long> a(N); for (int i = 0; i < N; i++) { cin >> a[i]; } long long S = 0; for (int i = 0; i < N; i++) { S ^= a[i]; } vector<long long> b(N); for (int i = 0; i < N; i++) {...
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int N; cin >> N; vector<long long> a(N); for (int i = 0; i < N; i++) { cin >> a[i]; } long long S = 0; for (int i = 0; i < N; i++) { S ^= a[i]; } vector<long long> b(N); for (int i = 0; i < N; i++) {...
[ "control_flow.branch.if.condition.change" ]
1,475,462
1,475,463
u424374375
cpp
p03880
#include <bits/stdc++.h> using namespace std; using ll = long long; /* 1の数、2の数、3以上の数かな 2以上しかとらないか 2と3以上の数か 1=f 3~ = f 1 1 = 1 2 = s 2 2 = 3~ 3~ = f 1 3 = s 1 1= f1 0 = s 1 3~ = f 1 1 = s 1 0 = f 1 1 1 = f 1 1 3~ = f1 1 0 = s 1 0 = f 1 3 3 = f 0 3 3 = s 0 2 3 = f 2,2 = f = f 1 3 1 = s 3 3 3 = f 1 3 3 = f 1,1,1...
#include <bits/stdc++.h> using namespace std; using ll = long long; /* 1の数、2の数、3以上の数かな 2以上しかとらないか 2と3以上の数か 1=f 3~ = f 1 1 = 1 2 = s 2 2 = 3~ 3~ = f 1 3 = s 1 1= f1 0 = s 1 3~ = f 1 1 = s 1 0 = f 1 1 1 = f 1 1 3~ = f1 1 0 = s 1 0 = f 1 3 3 = f 0 3 3 = s 0 2 3 = f 2,2 = f = f 1 3 1 = s 3 3 3 = f 1 3 3 = f 1,1,1...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
1,475,466
1,475,467
u071282706
cpp
p03880
#include <bits/stdc++.h> using namespace std; using ll = long long; /* 1の数、2の数、3以上の数かな 2以上しかとらないか 2と3以上の数か 1=f 3~ = f 1 1 = 1 2 = s 2 2 = 3~ 3~ = f 1 3 = s 1 1= f1 0 = s 1 3~ = f 1 1 = s 1 0 = f 1 1 1 = f 1 1 3~ = f1 1 0 = s 1 0 = f 1 3 3 = f 0 3 3 = s 0 2 3 = f 2,2 = f = f 1 3 1 = s 3 3 3 = f 1 3 3 = f 1,1,1...
#include <bits/stdc++.h> using namespace std; using ll = long long; /* 1の数、2の数、3以上の数かな 2以上しかとらないか 2と3以上の数か 1=f 3~ = f 1 1 = 1 2 = s 2 2 = 3~ 3~ = f 1 3 = s 1 1= f1 0 = s 1 3~ = f 1 1 = s 1 0 = f 1 1 1 = f 1 1 3~ = f1 1 0 = s 1 0 = f 1 3 3 = f 0 3 3 = s 0 2 3 = f 2,2 = f = f 1 3 1 = s 3 3 3 = f 1 3 3 = f 1,1,1...
[ "control_flow.loop.for.condition.change", "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
1,475,468
1,475,467
u071282706
cpp
p03880
#include <bits/stdc++.h> using namespace std; using ll = long long; /* 1の数、2の数、3以上の数かな 2以上しかとらないか 2と3以上の数か 1=f 3~ = f 1 1 = 1 2 = s 2 2 = 3~ 3~ = f 1 3 = s 1 1= f1 0 = s 1 3~ = f 1 1 = s 1 0 = f 1 1 1 = f 1 1 3~ = f1 1 0 = s 1 0 = f 1 3 3 = f 0 3 3 = s 0 2 3 = f 2,2 = f = f 1 3 1 = s 3 3 3 = f 1 3 3 = f 1,1,1...
#include <bits/stdc++.h> using namespace std; using ll = long long; /* 1の数、2の数、3以上の数かな 2以上しかとらないか 2と3以上の数か 1=f 3~ = f 1 1 = 1 2 = s 2 2 = 3~ 3~ = f 1 3 = s 1 1= f1 0 = s 1 3~ = f 1 1 = s 1 0 = f 1 1 1 = f 1 1 3~ = f1 1 0 = s 1 0 = f 1 3 3 = f 0 3 3 = s 0 2 3 = f 2,2 = f = f 1 3 1 = s 3 3 3 = f 1 3 3 = f 1,1,1...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.branch.if.condition.change" ]
1,475,469
1,475,467
u071282706
cpp
p03880
#pragma GCC optimize("Ofast") #include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define all(x) x.begin(), x.end() #define ln '\n' const long long MOD = 1000000007LL; // const long long MOD = 998244353LL; typedef long long ll; typedef unsigned long long ull; typedef pair<...
#pragma GCC optimize("Ofast") #include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) #define all(x) x.begin(), x.end() #define ln '\n' const long long MOD = 1000000007LL; // const long long MOD = 998244353LL; typedef long long ll; typedef unsigned long long ull; typedef pair<...
[ "variable_declaration.type.change", "control_flow.branch.if.condition.change", "literal.number.type.widen.change" ]
1,475,470
1,475,471
u842939260
cpp
p03880
#include <algorithm> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <math.h> #include <queue> #include <regex> #include <set> #include <stack> #include <stdio.h> #include <string> #include <utility> #include <vector> using namespace std; using pi...
#include <algorithm> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <list> #include <map> #include <math.h> #include <queue> #include <regex> #include <set> #include <stack> #include <stdio.h> #include <string> #include <utility> #include <vector> using namespace std; using pi...
[ "literal.number.type.widen.change" ]
1,475,484
1,475,485
u008229752
cpp
p03880
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define rep(i, a, b) for (int i = int(a); i < int(b); ++i) #define All(x) (x).begin(), (x).end() using namespace std; using ll = long long; template <typename T> bool chmin(T &a, T b) { if (b < a) { a = b; return true...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define rep(i, a, b) for (int i = int(a); i < int(b); ++i) #define All(x) (x).begin(), (x).end() using namespace std; using ll = long long; template <typename T> bool chmin(T &a, T b) { if (b < a) { a = b; return true...
[ "literal.number.change", "call.arguments.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
1,475,488
1,475,489
u203033720
cpp
p03869
#include <algorithm> #include <cctype> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdlib.h> #include <string.h> #include <string> #include <utility> #include <vector> using namespace std; #define...
#include <algorithm> #include <cctype> #include <cmath> #include <cstdio> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <stdlib.h> #include <string.h> #include <string> #include <utility> #include <vector> using namespace std; #define...
[ "preprocessor.define.value.change", "literal.float.change", "literal.number.change", "io.output.change" ]
1,475,497
1,475,498
u471289663
cpp
p03870
#include <bits/stdc++.h> using namespace std; const long long MAX_N = 1e5 + 5, MAX_M = 40; long long n, x, ans, p; long long a[MAX_N]; long long l[MAX_N]; long long cnt[MAX_M]; int main() { ios::sync_with_stdio(false), cin.tie(0); cin >> n; for (long long i = 0; i < n; i++) cin >> a[i]; for (long long i ...
#include <bits/stdc++.h> using namespace std; const long long MAX_N = 1e5 + 5, MAX_M = 40; long long n, x, ans, p; long long a[MAX_N]; long long l[MAX_N]; long long cnt[MAX_M]; int main() { ios::sync_with_stdio(false), cin.tie(0); cin >> n; for (long long i = 0; i < n; i++) cin >> a[i]; for (long long i ...
[ "control_flow.branch.if.condition.change" ]
1,475,511
1,475,512
u386747769
cpp
p03870
#include <algorithm> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <time.h> #include <vector> using namespace std; #define ...
#include <algorithm> #include <cassert> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <time.h> #include <vector> using namespace std; #define ...
[ "variable_declaration.value.change" ]
1,475,529
1,475,530
u170978872
cpp
p03870
#include <bits/stdc++.h> #include <stdio.h> using namespace std; #define fi cin #define fo cout #define x first #define y second #define ll long long #define IOS \ ios_base ::sync_with_stdio(0); \ cin.ti...
#include <bits/stdc++.h> #include <stdio.h> using namespace std; #define fi cin #define fo cout #define x first #define y second #define ll long long #define IOS \ ios_base ::sync_with_stdio(0); \ cin.ti...
[ "expression.operation.unary.logical.remove", "control_flow.branch.if.condition.change" ]
1,475,533
1,475,534
u468273690
cpp
p03875
#include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <complex> #include <deque> #include <functional> #include <iostream> #include <limits.h> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #inc...
#include <algorithm> #include <assert.h> #include <bitset> #include <cmath> #include <complex> #include <deque> #include <functional> #include <iostream> #include <limits.h> #include <map> #include <math.h> #include <queue> #include <set> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #inc...
[ "literal.number.change", "variable_declaration.value.change", "assignment.value.change", "identifier.change", "variable_access.subscript.index.change" ]
1,475,580
1,475,579
u831929072
cpp
p03875
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x, to) for (x = 0; x < (to); x++) #define FORR(x, arr) for (auto &x : arr) #define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++) #define ALL(a) (a.begin()), ...
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x, to) for (x = 0; x < (to); x++) #define FORR(x, arr) for (auto &x : arr) #define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++) #define ALL(a) (a.begin()), ...
[ "assignment.value.change", "identifier.change", "variable_access.subscript.index.change", "expression.operation.binary.change" ]
1,475,581
1,475,582
u452725238
cpp
p03877
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < (n); i++) #define pb push_back #define all(v) (v).begin(), (v).end() #define fi first #define se second typedef vector<int> vint; typedef pair<int, int> pint; typedef vector<pint> vpint; template <typename A, ty...
#include <bits/stdc++.h> using namespace std; #define int long long #define rep(i, n) for (int i = 0; i < (n); i++) #define pb push_back #define all(v) (v).begin(), (v).end() #define fi first #define se second typedef vector<int> vint; typedef pair<int, int> pint; typedef vector<pint> vpint; template <typename A, ty...
[ "control_flow.branch.if.add" ]
1,475,591
1,475,592
u989289964
cpp
p03877
#include <bits/stdc++.h> #define N 10005 #define LL long long using namespace std; const int mo = 1e9 + 7; int n, a, b, c; LL fc[N], xf[N], ans; LL fpm(LL x, LL y) { LL s = 1; while (y) { if (y & 1) s = (s * x) % mo; y >>= 1, x = (x * x) % mo; } return s; } LL C(int n, int m) { return fc[n] * xf[m...
#include <bits/stdc++.h> #define N 10005 #define LL long long using namespace std; const int mo = 1e9 + 7; int n, a, b, c; LL fc[N], xf[N], ans; LL fpm(LL x, LL y) { LL s = 1; while (y) { if (y & 1) s = (s * x) % mo; y >>= 1, x = (x * x) % mo; } return s; } LL C(int n, int m) { return fc[n] * xf[m...
[ "identifier.change", "variable_access.subscript.index.change", "function.return_value.change", "expression.operation.binary.change" ]
1,475,593
1,475,594
u484471143
cpp
p03877
#include <stdio.h> int A, B, C; long long Mod = 1000000007, F[5010], InvF[5010], Res; long long Pow(long long a, int b) { long long r = 1; while (b) { if (b & 1) r = r * a % Mod; a = a * a % Mod; b >>= 1; } return r; } long long H(int a, int b) { if (!a && !b) return 1; return F[a + b ...
#include <stdio.h> int A, B, C; long long Mod = 1000000007, F[5010], InvF[5010], Res; long long Pow(long long a, int b) { long long r = 1; while (b) { if (b & 1) r = r * a % Mod; a = a * a % Mod; b >>= 1; } return r; } long long H(int a, int b) { if (!a && !b) return 1; return F[a + b ...
[ "expression.operation.binary.add" ]
1,475,595
1,475,596
u899710951
cpp
p03877
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <unordered_map> #include <unordered_set> #include <vector> using namespace std; typedef long long ll; typedef pa...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <unordered_map> #include <unordered_set> #include <vector> using namespace std; typedef long long ll; typedef pa...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
1,475,597
1,475,598
u122057276
cpp
p03877
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <iostream> #include <map> #include <set> #include <string> #include <vector> using namespace std; #define P 1000000007 int N, A, B, C; int co[5010][5010]; int dp[2501][5010][2]; int ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <iostream> #include <map> #include <set> #include <string> #include <vector> using namespace std; #define P 1000000007 int N, A, B, C; int co[5010][5010]; int dp[2511][5010][2]; int ...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "control_flow.loop.for.condition.change" ]
1,475,601
1,475,600
u716893071
cpp
p03887
#include <bits/stdc++.h> using namespace std; const int MOD = 1000000007; const int N = 100005; void pp(int &x, int y) { x += y; if (x >= MOD) x -= MOD; } int n, a, b, c; int pow_mod(int x, int k) { int ans = 1; while (k) { if (k & 1) ans = 1LL * ans * x % MOD; x = 1LL * x * x % MOD; k >...
#include <bits/stdc++.h> using namespace std; const int MOD = 1000000007; const int N = 100005; void pp(int &x, int y) { x += y; if (x >= MOD) x -= MOD; } int n, a, b, c; int pow_mod(int x, int k) { int ans = 1; while (k) { if (k & 1) ans = 1LL * ans * x % MOD; x = 1LL * x * x % MOD; k >...
[ "expression.operation.binary.add" ]
1,475,633
1,475,634
u705049098
cpp
p03888
#include <bits/stdc++.h> #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") //#include <boost/multiprecision/cpp_int.hpp> using namespace std; using dou = long double; string yes = "yes"; string Yes = "Yes"; string YES = "YES"; string no = "no"; string No = "No"; string NO = "NO...
#include <bits/stdc++.h> #pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") //#include <boost/multiprecision/cpp_int.hpp> using namespace std; using dou = long double; string yes = "yes"; string Yes = "Yes"; string YES = "YES"; string no = "no"; string No = "No"; string NO = "NO...
[]
1,475,637
1,475,638
u410366193
cpp
p03888
#include <bits/stdc++.h> using namespace std; int main() { double A, B; cin >> A >> B; cout << A * B / (A + B) << endl; }
#include <bits/stdc++.h> using namespace std; int main() { double A, B; cin >> A >> B; cout << fixed << A * B / (A + B) << endl; }
[ "io.output.change" ]
1,475,639
1,475,640
u740002394
cpp
p03888
#include <iomanip> #include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << fixed << setprecision(10) << (b * a) / (b + a) << endl; }
#include <iomanip> #include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << fixed << setprecision(10) << (double)(b * a) / (b + a) << endl; }
[ "type_conversion.add" ]
1,475,641
1,475,642
u787328428
cpp
p03888
#include <bits/stdc++.h> using namespace std; typedef long long ll; signed main() { double a, b; cin >> a >> b; double ans = (a + b) / (a * b); printf("%.12f", ans); }
#include <bits/stdc++.h> using namespace std; typedef long long ll; signed main() { double a, b; cin >> a >> b; double ans = (a * b) / (a + b); printf("%.12f", ans); }
[ "expression.operator.arithmetic.change", "expression.operation.binary.change" ]
1,475,647
1,475,648
u495426858
cpp
p03888
#include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) for (int i = 0; i < (n); ++i) #define int long long #define vec(a, n) vector<int>(a)((n)); #define Vec(a, n) vector<string>(a)((n)); #define twovec(a, n, m) vector<vector<int>> a(n, vec...
#include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) for (int i = 0; i < (n); ++i) #define int long long #define vec(a, n) vector<int>(a)((n)); #define Vec(a, n) vector<string>(a)((n)); #define twovec(a, n, m) vector<vector<int>> a(n, vec...
[ "type_conversion.add" ]
1,475,649
1,475,650
u274812479
cpp
p03888
#include <bits/stdc++.h> using namespace std; using ll = long long; const double pi = acos(-1); #define FOR(i, a, b) for (ll i = (a), __last_##i = (b); i < __last_##i; i++) #define RFOR(i, a, b) for (ll i = (b)-1, __last_##i = (a); i >= __last_##i; i--) #define REP(i, n) FOR(i, 0, n) #define RREP(i, n) RFOR(i, 0, n) #d...
#include <bits/stdc++.h> using namespace std; using ll = long long; const double pi = acos(-1); #define FOR(i, a, b) for (ll i = (a), __last_##i = (b); i < __last_##i; i++) #define RFOR(i, a, b) for (ll i = (b)-1, __last_##i = (a); i >= __last_##i; i--) #define REP(i, n) FOR(i, 0, n) #define RREP(i, n) RFOR(i, 0, n) #d...
[ "call.add", "call.arguments.change" ]
1,475,653
1,475,654
u771128434
cpp
p03888
#include <bits/stdc++.h> using namespace std; #define int long long const double PI = 3.14159265358979323846; typedef vector<int> vint; typedef pair<int, int> pint; int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1}; int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1}; int R1, R2; signed main() { cin >> R1 >> R2; cout << (double)R1 * R...
#include <bits/stdc++.h> using namespace std; #define int long long const double PI = 3.14159265358979323846; typedef vector<int> vint; typedef pair<int, int> pint; int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1}; int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1}; int R1, R2; signed main() { cin >> R1 >> R2; cout << setprecision(1...
[ "io.output.change" ]
1,475,655
1,475,656
u450832845
cpp
p03888
#include "bits/stdc++.h" using namespace std; int main() { double a, b; cin >> a >> b; double ans = 1 / a + 1 / b; cout << fixed << setprecision(10) << ans << endl; }
#include "bits/stdc++.h" using namespace std; int main() { double a, b; cin >> a >> b; double ans = 1 / (1 / a + 1 / b); cout << fixed << setprecision(10) << ans << endl; }
[ "assignment.change" ]
1,475,661
1,475,662
u896068473
cpp
p03888
// header {{{ #include <bits/stdc++.h> using namespace std; // {U}{INT,LONG,LLONG}_{MAX,MIN} #define ALPHABET (26) #define INF INT_MAX #define MOD (1000000007LL) using LL = long long; // }}} int main() { std::ios::sync_with_stdio(false); double r1, r2; cin >> r1 >> r2; printf("%.8f", 1 / r1 + 1 / r2); retu...
// header {{{ #include <bits/stdc++.h> using namespace std; // {U}{INT,LONG,LLONG}_{MAX,MIN} #define ALPHABET (26) #define INF INT_MAX #define MOD (1000000007LL) using LL = long long; // }}} int main() { std::ios::sync_with_stdio(false); double r1, r2; cin >> r1 >> r2; printf("%.8f", 1 / (1 / r1 + 1 / r2)); ...
[ "call.arguments.change" ]
1,475,663
1,475,664
u857259336
cpp
p03888
#include <bits/stdc++.h> using namespace std; using ll = long long; const double pi = acos(-1); #define FOR(i, a, b) for (ll i = (a), __last_##i = (b); i < __last_##i; i++) #define RFOR(i, a, b) for (ll i = (b)-1, __last_##i = (a); i >= __last_##i; i--) #define REP(i, n) FOR(i, 0, n) #define RREP(i, n) RFOR(i, 0, n) #d...
#include <bits/stdc++.h> using namespace std; using ll = long long; const double pi = acos(-1); #define FOR(i, a, b) for (ll i = (a), __last_##i = (b); i < __last_##i; i++) #define RFOR(i, a, b) for (ll i = (b)-1, __last_##i = (a); i >= __last_##i; i--) #define REP(i, n) FOR(i, 0, n) #define RREP(i, n) RFOR(i, 0, n) #d...
[ "io.output.change" ]
1,475,665
1,475,666
u800551451
cpp
p03888
#include <cstdio> double r1, r2; int main() { scanf("%lf%lf", &r1, &r2); printf("%.10f¥n", (r1 * r2) / (r1 + r2)); return 0; }
#include <cstdio> double r1, r2; int main() { scanf("%lf%lf", &r1, &r2); printf("%.10f\n", (r1 * r2) / (r1 + r2)); return 0; }
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
1,475,667
1,475,668
u660613376
cpp
p03878
#include <algorithm> #include <iostream> #include <utility> #include <vector> #define llint long long #define mod 1000000007 using namespace std; llint n; vector<pair<llint, llint>> vec; int main(void) { cin >> n; llint x; for (int i = 1; i <= n; i++) { cin >> x; vec.push_back(make_pair(x, 1)); } f...
#include <algorithm> #include <iostream> #include <utility> #include <vector> #define llint long long #define mod 1000000007 using namespace std; llint n; vector<pair<llint, llint>> vec; int main(void) { cin >> n; llint x; for (int i = 1; i <= n; i++) { cin >> x; vec.push_back(make_pair(x, 1)); } f...
[ "literal.number.change", "variable_declaration.value.change" ]
1,475,673
1,475,674
u319282133
cpp
p03878
#include <bits/stdc++.h> #include <iostream> using namespace std; typedef long long ll; typedef pair<ll, ll> P; ll n, s[100000], a, tmp, cnt, MOD = 1000000007, ans = 1LL; vector<P> v; ll f(ll n) { if (n == 1) return 1; return n * f(n - 1) % MOD; } int main(void) { cin >> n; for (int i = 0; i < n; i++) { ...
#include <bits/stdc++.h> #include <iostream> using namespace std; typedef long long ll; typedef pair<ll, ll> P; ll n, s[100000], a, tmp, cnt, MOD = 1000000007, ans = 1LL; vector<P> v; ll f(ll n) { if (n == 1) return 1; return n * f(n - 1) % MOD; } int main(void) { cin >> n; for (int i = 0; i < n; i++) { ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,475,681
1,475,682
u050428930
cpp
p03878
#include <algorithm> #include <iostream> using namespace std; typedef long long ll; typedef pair<ll, bool> P; const ll MOD = 1000000007; int N; P ab[100000 * 2]; int main() { cin >> N; for (int i = 0; i < N; i++) { ll a; cin >> a; ab[i].first = a, ab[i].second = true; } for (int i = 0; i < N; ...
#include <algorithm> #include <iostream> using namespace std; typedef long long ll; typedef pair<ll, bool> P; const ll MOD = 1000000007; int N; P ab[100000 * 2]; int main() { cin >> N; for (int i = 0; i < N; i++) { ll a; cin >> a; ab[i].first = a, ab[i].second = true; } for (int i = 0; i < N; ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "assignment.add" ]
1,475,689
1,475,688
u107077805
cpp
p03878
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (ll(i) = (0); (i) < (n); ++i) #define REV(i, n) for (ll(i) = (n)-1; (i) >= 0; --i) #define PB push_back #define EB emplace_back #define MP make_pair #define FI first #define SE second #define SHOW1d(v, n) ...
#include <bits/stdc++.h> using namespace std; #define REP(i, n) for (ll(i) = (0); (i) < (n); ++i) #define REV(i, n) for (ll(i) = (n)-1; (i) >= 0; --i) #define PB push_back #define EB emplace_back #define MP make_pair #define FI first #define SE second #define SHOW1d(v, n) ...
[ "expression.unary.arithmetic.add" ]
1,475,711
1,475,712
u382880969
cpp
p03878
#include <bits/stdc++.h> using namespace std; #define int long long const double PI = 3.14159265358979323846; typedef vector<int> vint; typedef pair<int, int> pint; int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1}; int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1}; int N; int a[110000], b[110000], dp[110000]; signed main() { int mod...
#include <bits/stdc++.h> using namespace std; #define int long long const double PI = 3.14159265358979323846; typedef vector<int> vint; typedef pair<int, int> pint; int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1}; int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1}; int N; int a[110000], b[110000], dp[110000]; signed main() { int mod...
[ "expression.operation.binary.remove" ]
1,475,727
1,475,728
u450832845
cpp
p03878
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x, to) for (x = 0; x < (to); x++) #define FORR(x, arr) for (auto &x : arr) #define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++) #define ALL(a) (a.begin()), ...
#include <bits/stdc++.h> using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x, to) for (x = 0; x < (to); x++) #define FORR(x, arr) for (auto &x : arr) #define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++) #define ALL(a) (a.begin()), ...
[ "identifier.change", "expression.operation.binary.change" ]
1,475,748
1,475,749
u452725238
cpp
p03878
#include <bits/stdc++.h> using namespace std; const int mod = 1e9 + 7; int A[100105], B[100105]; int main() { int n, a = 0, b = 0, cnt = 0, cnt2 = 0; long long ans = 1; cin >> n; for (int i = 0; i < n; i++) cin >> A[i]; for (int i = 0; i < n; i++) cin >> B[i]; sort(A, A + n); sort(B, B + n); ...
#include <bits/stdc++.h> using namespace std; const int mod = 1e9 + 7; int A[100105], B[100105]; int main() { int n, a = 0, b = 0, cnt = 0, cnt2 = 0; long long ans = 1; cin >> n; for (int i = 0; i < n; i++) cin >> A[i]; for (int i = 0; i < n; i++) cin >> B[i]; sort(A, A + n); sort(B, B + n); ...
[ "control_flow.branch.if.condition.change" ]
1,475,750
1,475,751
u418568023
cpp
p03878
#include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define REP(i, m, n) for (int i = (m); i < (int)(n); i++) #define RREP(i, m, n) for (int i = (int)(n - 1); i >= m; i--) #define rep(i, n) ...
#include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <vector> using namespace std; #define REP(i, m, n) for (int i = (m); i < (int)(n); i++) #define RREP(i, m, n) for (int i = (int)(n - 1); i >= m; i--) #define rep(i, n) ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
1,475,752
1,475,753
u382423941
cpp
p03878
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define fi first #define se second #define mp make_pair #define pb push_back #define fbo find_by_order #define ook order_of_key typedef long long ll; typedef pair<ll...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace std; using namespace __gnu_pbds; #define fi first #define se second #define mp make_pair #define pb push_back #define fbo find_by_order #define ook order_of_key typedef long long ll; typedef pair<ll...
[ "assignment.value.change", "identifier.change", "call.arguments.change", "expression.operation.binary.change" ]
1,475,757
1,475,758
u955723966
cpp
p03878
#include <algorithm> #include <iostream> #include <vector> using namespace std; long long a[300000], b[300000], n; vector<pair<long long, long long>> vec; int main() { cin >> n; for (int i = 0; i < n; i++) { cin >> a[i]; vec.push_back(make_pair(a[i], i)); } for (int i = 0; i < n; i++) { cin >> b[i];...
#include <algorithm> #include <iostream> #include <vector> using namespace std; long long a[300000], b[300000], n; vector<pair<long long, long long>> vec; int main() { cin >> n; for (int i = 0; i < n; i++) { cin >> a[i]; vec.push_back(make_pair(a[i], i)); } for (int i = 0; i < n; i++) { cin >> b[i];...
[ "expression.operation.unary.arithmetic.remove" ]
1,475,759
1,475,760
u504103417
cpp
p03880
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define all(x) (x).begin(), (x).end() const int mod = 1000000007, MAX = 100001, INF = 1 << 30; int main() { int N, total = 0; cin >> N; vector<int> A(N), B(31, 0); for (int i = 0; i < N; i++) { cin >> A[i]; for (int j = 0; j < 31; j++)...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define all(x) (x).begin(), (x).end() const int mod = 1000000007, MAX = 100001, INF = 1 << 30; int main() { int N, total = 0; cin >> N; vector<int> A(N), B(31, 0); for (int i = 0; i < N; i++) { cin >> A[i]; for (int j = 0; j < 31; j++)...
[]
1,475,771
1,475,772
u133391510
cpp
p03880
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define all(x) (x).begin(), (x).end() const int mod = 1000000007, MAX = 100001, INF = 1 << 30; int main() { int N, total = 0; cin >> N; vector<int> A(N), B(31, 0); for (int i = 0; i < N; i++) { cin >> A[i]; for (int j = 0; j < 31; j++)...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define all(x) (x).begin(), (x).end() const int mod = 1000000007, MAX = 100001, INF = 1 << 30; int main() { int N, total = 0; cin >> N; vector<int> A(N), B(31, 0); for (int i = 0; i < N; i++) { cin >> A[i]; for (int j = 0; j < 31; j++)...
[ "control_flow.branch.if.condition.change" ]
1,475,773
1,475,772
u133391510
cpp
p03880
#include <bits/stdc++.h> using namespace std; int n; vector<int> v; int s; int solve() { for (int i = 0; i < n; ++i) s ^= v[i]; if (s == 0) return -1; int t = 0; while ((s >> t) > 0) ++t; --t; // cout << t << "\n"; int f = 1; vector<int> w(1, t); for (int i = t - 1; i >= 0; --i) { if...
#include <bits/stdc++.h> using namespace std; int n; vector<int> v; int s; int solve() { for (int i = 0; i < n; ++i) s ^= v[i]; if (s == 0) return 0; int t = 0; while ((s >> t) > 0) ++t; --t; // cout << t << "\n"; int f = 1; vector<int> w(1, t); for (int i = t - 1; i >= 0; --i) { if ...
[ "literal.number.change", "function.return_value.change" ]
1,475,776
1,475,777
u207036582
cpp
p03880
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int n, ans = 0, x = 0; cin >> n; vector<int> a(n); for (int i = 0; i < n; i++) { cin >> a[i]; x ^= a[i]; } for (int i = 30; i >= 0; i--) { if (x & 1LL << i) { for (int j = 0; j < n; j++) { ...
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int n, ans = 0, x = 0; cin >> n; vector<int> a(n); for (int i = 0; i < n; i++) { cin >> a[i]; x ^= a[i]; } for (int i = 30; i >= 0; i--) { if (x & 1LL << i) { for (int j = 0; j < n; j++) { ...
[ "control_flow.branch.if.condition.change", "identifier.change", "variable_access.subscript.index.change", "assignment.value.change", "expression.operation.binary.change" ]
1,475,783
1,475,784
u480806810
cpp
p03880
#include <bits/stdc++.h> #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define rep(i, n) FOR(i, 0, n) #define RFOR(i, a, b) for (int i = (a)-1; i >= (b); i--) #define rrep(i, n) RFOR(i, n, 0) using namespace std; typedef long long ll; typedef unsigned long long ull; int dig(int x) { for (int i = 31; i >= 0...
#include <bits/stdc++.h> #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define rep(i, n) FOR(i, 0, n) #define RFOR(i, a, b) for (int i = (a)-1; i >= (b); i--) #define rrep(i, n) RFOR(i, n, 0) using namespace std; typedef long long ll; typedef unsigned long long ull; int dig(int x) { for (int i = 31; i >= 0...
[ "control_flow.break.add" ]
1,475,789
1,475,790
u755830696
cpp
p03880
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <typeinfo> #include <unordered_map> #...
#include <algorithm> #include <bitset> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <typeinfo> #include <unordered_map> #...
[ "control_flow.break.add" ]
1,475,793
1,475,794
u711985352
cpp
p03880
#include <iostream> using namespace std; int N, X = 0, A[100010], pow[31] = {1}; int main() { cin >> N; for (int i = 1; i < 30; i++) pow[i] = pow[i - 1] * 2; for (int i = 0; i < N; i++) { cin >> A[i]; X = (X xor A[i]); } int ans = 0; for (int i = 29; i >= 1; i--) { if (!(X & (1 << (i - 1))))...
#include <iostream> using namespace std; int N, X = 0, A[100010], pow[32] = {1}; int main() { cin >> N; for (int i = 1; i < 32; i++) pow[i] = pow[i - 1] * 2; for (int i = 0; i < N; i++) { cin >> A[i]; X = (X xor A[i]); } int ans = 0; for (int i = 31; i >= 1; i--) { if (!(X & (1 << (i - 1))))...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "control_flow.continue.remove", "control_flow.break.add" ]
1,475,797
1,475,796
u623954643
cpp
p03880
#include <iostream> using namespace std; int N, X = 0, A[100010], pow[31] = {1}; int main() { cin >> N; for (int i = 1; i < 30; i++) pow[i] = pow[i - 1] * 2; for (int i = 0; i < N; i++) { cin >> A[i]; X = (X xor A[i]); } int ans = 0; for (int i = 29; i >= 1; i--) { if (!(X & (1 << (i - 1))))...
#include <iostream> using namespace std; int N, X = 0, A[100010], pow[32] = {1}; int main() { cin >> N; for (int i = 1; i < 32; i++) pow[i] = pow[i - 1] * 2; for (int i = 0; i < N; i++) { cin >> A[i]; X = (X xor A[i]); } int ans = 0; for (int i = 31; i >= 1; i--) { if (!(X & (1 << (i - 1))))...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change" ]
1,475,798
1,475,796
u623954643
cpp
p03880
#include <iostream> using namespace std; int main() { int n; cin >> n; int a[n], x = 0, ans = 0; for (int i = 0; i < n; i++) { cin >> a[i]; x ^= a[i]; } bool used[n] = {}; while (x != 0) { int e = 0; while (x >= 2 << e) e++; for (int i = 0; i < n; i++) if (a[i] % (1 << e) =...
#include <iostream> using namespace std; int main() { int n; cin >> n; int a[n], x = 0, ans = 0; for (int i = 0; i < n; i++) { cin >> a[i]; x ^= a[i]; } bool used[n] = {}; while (x != 0) { int e = 0; while (x >= 2 << e) e++; for (int i = 0; i < n; i++) if (a[i] % (2 << e) =...
[ "literal.number.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
1,475,801
1,475,802
u374416262
cpp
p03880
#include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <limits.h> #include <list> #include <map> #include <numeric> #include <set> #include ...
#include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <limits.h> #include <list> #include <map> #include <numeric> #include <set> #include ...
[ "control_flow.break.add" ]
1,475,807
1,475,808
u516353059
cpp
p03880
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef complex<double> point; #define mapii map<int, int> #define debug(a) cout << #a << ": " << a << endl #define debuga1(a, l, r) \ fto(i, l, r) cout << a[i] << " "; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef complex<double> point; #define mapii map<int, int> #define debug(a) cout << #a << ": " << a << endl #define debuga1(a, l, r) \ fto(i, l, r) cout << a[i] << " "; ...
[ "control_flow.branch.if.condition.change" ]
1,475,813
1,475,814
u462349313
cpp
p03880
#include <bits/stdc++.h> using namespace std; #define INF_LL (int64)1e18 #define INF (int32)1e9 #define REP(i, n) for (int i = 0; i < (n); i++) #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define all(x) x.begin(), x.end() #define fs first #define sc second using int32 = int_fast32_t; using uint32 = uint_fast...
#include <bits/stdc++.h> using namespace std; #define INF_LL (int64)1e18 #define INF (int32)1e9 #define REP(i, n) for (int i = 0; i < (n); i++) #define FOR(i, a, b) for (int i = (a); i < (b); i++) #define all(x) x.begin(), x.end() #define fs first #define sc second using int32 = int_fast32_t; using uint32 = uint_fast...
[]
1,475,817
1,475,818
u360980679
cpp
p03880
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> v(n, 0); int s = 0; for (int i = 0; i < n; ++i) { cin >> v[i]; s ^= v[i]; } vector<int> used(n, 0); int ans = 0; for (int bit = 29; bit >= 0; --bit) { if ((1 << bit) & s) { ans++; bool h...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> v(n, 0); int s = 0; for (int i = 0; i < n; ++i) { cin >> v[i]; s ^= v[i]; } vector<int> used(n, 0); int ans = 0; for (int bit = 29; bit >= 0; --bit) { if ((1 << bit) & s) { ans++; bool h...
[ "control_flow.break.add" ]
1,475,829
1,475,830
u696840169
cpp
p03880
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> v(n, 0); int s = 0; for (int i = 0; i < n; ++i) { cin >> v[i]; s ^= v[i]; } vector<int> used(n, 0); int ans = 0; for (int bit = 31; bit >= 0; --bit) { if ((1 << bit) & s) { ans++; bool h...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> v(n, 0); int s = 0; for (int i = 0; i < n; ++i) { cin >> v[i]; s ^= v[i]; } vector<int> used(n, 0); int ans = 0; for (int bit = 29; bit >= 0; --bit) { if ((1 << bit) & s) { ans++; bool h...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change" ]
1,475,831
1,475,830
u696840169
cpp