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
p02534
/* _ _ooOoo_ o8888888o 88" . "88 (| -_- |) O\ = /O ____/`---'\____ .' \\| |// `. / \\||| : |||// \ ...
/* _ _ooOoo_ o8888888o 88" . "88 (| -_- |) O\ = /O ____/`---'\____ .' \\| |// `. / \\||| : |||// \ ...
[]
239,932
239,933
u061984624
cpp
p02534
#include <bits/stdc++.h> #ifdef _DEBUG #include "_DEBUG.hpp" #endif #define int long long using namespace std; using P = pair<int, int>; const int inf = 2e18; const int mod = 1e9 + 7; template <typename T> istream &operator>>(istream &is, vector<T> &v) { for (T &in : v) is >> in; return is; } template <class ...
#include <bits/stdc++.h> #ifdef _DEBUG #include "_DEBUG.hpp" #endif #define int long long using namespace std; using P = pair<int, int>; const int inf = 2e18; const int mod = 1e9 + 7; template <typename T> istream &operator>>(istream &is, vector<T> &v) { for (T &in : v) is >> in; return is; } template <class ...
[ "literal.string.change", "io.output.change" ]
239,950
239,951
u344122377
cpp
p02534
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" const int dx[] = {-1, -1, -1, 0, 0, 0, 1, 1, 1}; const int dy[] = {-1, 0, 1, -1, 0, 1, -1, 0, 1}; #define NN 8010000 #define TC \ int t; ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" const int dx[] = {-1, -1, -1, 0, 0, 0, 1, 1, 1}; const int dy[] = {-1, 0, 1, -1, 0, 1, -1, 0, 1}; #define NN 8010000 #define TC \ int t; ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
239,954
239,955
u518027393
cpp
p02534
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" const int dx[] = {-1, -1, -1, 0, 0, 0, 1, 1, 1}; const int dy[] = {-1, 0, 1, -1, 0, 1, -1, 0, 1}; #define NN 8010000 #define TC \ int t; ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define endl "\n" const int dx[] = {-1, -1, -1, 0, 0, 0, 1, 1, 1}; const int dy[] = {-1, 0, 1, -1, 0, 1, -1, 0, 1}; #define NN 8010000 #define TC \ int t; ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
239,956
239,955
u518027393
cpp
p02534
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (ll i = 0; i < (n); ++i) int main() { ll k; cin >> k; rep(i, k) { cout << "ALC"; } return 0; }
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (ll i = 0; i < (n); ++i) int main() { ll k; cin >> k; rep(i, k) { cout << "ACL"; } return 0; }
[ "literal.string.change", "io.output.change" ]
239,967
239,968
u903076392
cpp
p02534
#include <bits/stdc++.h> using namespace std; int main() { int K; cin >> K; if (K == 1) { cout << "ALC" << endl; } if (K == 2) { cout << "ALCACL" << endl; } if (K == 3) { cout << "ACLACLACL" << endl; } if (K == 4) { cout << "ACLACLACLACL" << endl; } if (K == 5) { cout << "ACLA...
#include <bits/stdc++.h> using namespace std; int main() { int K; cin >> K; if (K == 1) { cout << "ACL" << endl; } if (K == 2) { cout << "ACLACL" << endl; } if (K == 3) { cout << "ACLACLACL" << endl; } if (K == 4) { cout << "ACLACLACLACL" << endl; } if (K == 5) { cout << "ACLA...
[ "literal.string.change", "io.output.change" ]
239,972
239,973
u147429674
cpp
p02534
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; typedef unsigned long long int ull; typedef pair<ll, ll> pll; typedef pair<int, int> pii; #define N 100010 #define M 200010 #define endl "\n" #define mod 1000000007 int main() { ios_base::sync_with_stdio(0); cin.tie...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; typedef unsigned long long int ull; typedef pair<ll, ll> pll; typedef pair<int, int> pii; #define N 100010 #define M 200010 #define endl "\n" #define mod 1000000007 int main() { ios_base::sync_with_stdio(0); cin.tie...
[ "literal.string.change", "assignment.value.change" ]
239,984
239,985
u183237665
cpp
p02534
#include <iostream> #include <string> using namespace std; int main() { int k; cin >> k; string a = "ALC"; for (int i = 0; i < k; i++) { cout << a; } return 0; }
#include <iostream> #include <string> using namespace std; int main() { int k; cin >> k; string a = "ACL"; for (int i = 0; i < k; i++) { cout << a; } return 0; }
[ "literal.string.change", "variable_declaration.value.change" ]
239,994
239,995
u785153532
cpp
p02534
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; string a = "ALC"; for (int i = 1; i < k; ++i) { a = a + "ALC"; } cout << a << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; string a = "ACL"; for (int i = 1; i < k; ++i) { a = a + "ACL"; } cout << a << endl; }
[ "literal.string.change", "variable_declaration.value.change", "assignment.value.change", "expression.operation.binary.change" ]
240,000
240,001
u321280590
cpp
p02534
#include "bits/stdc++.h" #include <bits/stdc++.h> using namespace std; #define int long long #ifndef bhupixb #define var(...) #define stl(...) #endif #define single_test void solve() { int n; cin >> n; while (n--) { cout << "ACL" << '\n'; } } signed main() { ios_base::sync_with_stdio(0); cin.tie(0...
#include "bits/stdc++.h" #include <bits/stdc++.h> using namespace std; #define int long long #ifndef bhupixb #define var(...) #define stl(...) #endif #define single_test void solve() { int n; cin >> n; while (n--) { cout << "ACL"; } } signed main() { ios_base::sync_with_stdio(0); cin.tie(0); cou...
[ "expression.operation.binary.remove" ]
240,008
240,009
u450009898
cpp
p02534
#include <stdio.h> int main(void) { int n, i; scanf("%d", &n); for (i = 1; i <= n; i++) puts("ACL"); return 0; }
#include <stdio.h> int main(void) { int n, i; scanf("%d", &n); for (i = 1; i <= n; i++) printf("ACL"); return 0; }
[ "identifier.change", "call.function.change", "io.output.change" ]
240,010
240,011
u091094722
cpp
p02534
#include <stdio.h> int main(void) { int n, i; scanf("%d", &n); for (i = 1; i <= n; i++) puts("ALS"); return 0; }
#include <stdio.h> int main(void) { int n, i; scanf("%d", &n); for (i = 1; i <= n; i++) printf("ACL"); return 0; }
[ "identifier.change", "call.function.change", "io.output.change", "literal.string.change", "call.arguments.change" ]
240,012
240,011
u091094722
cpp
p02534
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; while (k--) { cout << "ABL"; } }
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; while (k--) { cout << "ACL"; } }
[ "literal.string.change", "io.output.change" ]
240,015
240,016
u335366214
cpp
p02534
#include <iostream> using namespace std; int main() { int k; cin >> k; for (int i = 0; i < k; i++) { cout << 'ACL'; } return 0; }
#include <iostream> using namespace std; int main() { int k; cin >> k; for (int i = 0; i < k; i++) { cout << "ACL"; } return 0; }
[ "literal.string.change", "io.output.change" ]
240,033
240,034
u325596492
cpp
p02534
#include <iostream> using namespace std; #define ll long long #define vvll vector<vector<long long>> #define vll vector<long long> #define fri(i, n) for (int i = 0; i < n; i++) #define fri1(i, n) for (int i = n - 1; i >= 0; i--) #define map map<ll, ll> #define pb push_back #define fast ...
#include <iostream> using namespace std; #define ll long long #define vvll vector<vector<long long>> #define vll vector<long long> #define fri(i, n) for (int i = 0; i < n; i++) #define fri1(i, n) for (int i = n - 1; i >= 0; i--) #define map map<ll, ll> #define pb push_back #define fast ...
[]
240,041
240,042
u507624716
cpp
p02534
#include <iostream> using namespace std; #define ll long long #define vvll vector<vector<long long>> #define vll vector<long long> #define fri(i, n) for (int i = 0; i < n; i++) #define fri1(i, n) for (int i = n - 1; i >= 0; i--) #define map map<ll, ll> #define pb push_back #define fast ...
#include <iostream> using namespace std; #define ll long long #define vvll vector<vector<long long>> #define vll vector<long long> #define fri(i, n) for (int i = 0; i < n; i++) #define fri1(i, n) for (int i = n - 1; i >= 0; i--) #define map map<ll, ll> #define pb push_back #define fast ...
[ "identifier.change" ]
240,043
240,042
u507624716
cpp
p02534
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; for (int i = 1; i < k + 1; i++) { if (i < k) cout << "ACL"; if (i = k) cout << "ACL" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; for (int i = 1; i < k + 1; i++) { if (i < k) cout << "ACL"; if (i == k) cout << "ACL" << endl; } }
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
240,067
240,068
u100792685
cpp
p02534
#include <bits/stdc++.h> using namespace std; int main() { int k; string s = "ALC"; cin >> k; for (int i = 0; i < k; i++) { cout << s; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int k; string s = "ACL"; cin >> k; for (int i = 0; i < k; i++) { cout << s; } return 0; }
[ "literal.string.change", "variable_declaration.value.change" ]
240,069
240,070
u978937052
cpp
p02534
#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 FORR2(x, y, arr) for (auto &[x, y] : arr) #define ITR(x, c) for (__typeof(c.begin()) x = c.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 FORR2(x, y, arr) for (auto &[x, y] : arr) #define ITR(x, c) for (__typeof(c.begin()) x = c.begin(...
[ "expression.operation.binary.remove" ]
240,071
240,072
u452725238
cpp
p02534
#include <bits/stdc++.h> using namespace std; int main() { int a; for (int i = 0; i < a; i++) cout << "ACL"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; for (int i = 0; i < a; i++) cout << "ACL"; return 0; }
[]
240,073
240,074
u042388355
cpp
p02534
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int k; cin >> k; rep(i, k) { cout << "KCL"; } cout << endl; return 0; }
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int k; cin >> k; rep(i, k) { cout << "ACL"; } cout << endl; return 0; }
[ "literal.string.change", "io.output.change" ]
240,075
240,076
u689206254
cpp
p02534
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG using namespace std; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) #define rep(i, n) REP(i, 0, n) #define square(x) pow(x, 2.0) #define all(x) (x).begin(), (x).end() #define F first #define S second #define max_queue(x) priority_queue<x> #define min_queue...
#include <bits/stdc++.h> #define _GLIBCXX_DEBUG using namespace std; #define REP(i, m, n) for (int i = (int)(m); i < (int)(n); ++i) #define rep(i, n) REP(i, 0, n) #define square(x) pow(x, 2.0) #define all(x) (x).begin(), (x).end() #define F first #define S second #define max_queue(x) priority_queue<x> #define min_queue...
[]
240,077
240,078
u951112139
cpp
p02534
#include "bits/stdc++.h" using namespace std; #define pb push_back #define F first #define S second //#define biGinf 9e+18 #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() #define inpv(v) \ for (auto &x : v) ...
#include "bits/stdc++.h" using namespace std; #define pb push_back #define F first #define S second //#define biGinf 9e+18 #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() #define inpv(v) \ for (auto &x : v) ...
[ "literal.string.change", "io.output.change" ]
240,087
240,088
u814094996
cpp
p02534
///بِسْمِ الّٰلهِ الرَّحْمٰنِ الرَحِيْمِ #include <bits/stdc++.h> using namespace std; #define ll long long #define pi acos(-1.0) int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ll int i, n, t, j = 0, p, x, a = 0, b, l = 0, r = 0, y, k, c, sum = 0, m = 0, d, z; string s = "ACl"; ...
///بِسْمِ الّٰلهِ الرَّحْمٰنِ الرَحِيْمِ #include <bits/stdc++.h> using namespace std; #define ll long long #define pi acos(-1.0) int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ll int i, n, t, j = 0, p, x, a = 0, b, l = 0, r = 0, y, k, c, sum = 0, m = 0, d, z; string s = "ACL"; ...
[ "literal.string.change", "literal.string.case.change", "variable_declaration.value.change" ]
240,093
240,094
u230279901
cpp
p02534
#include <bits/stdc++.h> using namespace std; //#include <ext/pb_ds/assoc_container.hpp> // using namespace __gnu_pbds; // typedef tree <int,null_type,less <int>, rb_tree_tag, // tree_order_statistics_node_update> indexed_set; // #include <ext/rope> // using namespace __gnu_cxx; typedef long long int ll; typedef long d...
#include <bits/stdc++.h> using namespace std; //#include <ext/pb_ds/assoc_container.hpp> // using namespace __gnu_pbds; // typedef tree <int,null_type,less <int>, rb_tree_tag, // tree_order_statistics_node_update> indexed_set; // #include <ext/rope> // using namespace __gnu_cxx; typedef long long int ll; typedef long d...
[ "literal.string.change", "io.output.change" ]
240,105
240,106
u816419151
cpp
p02534
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n; cin >> n; while (n--) { cout << 'ACL'; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n; cin >> n; while (n--) { cout << "ACL"; } return 0; }
[ "literal.string.change", "io.output.change" ]
240,109
240,110
u075859295
cpp
p02534
#include <bits/stdc++.h> using namespace std; int main() { int K; cin >> K; for (int i = 0; i < K; i++) cout << "ACL" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { int K; cin >> K; for (int i = 0; i < K; i++) cout << "ACL"; cout << endl; }
[]
240,111
240,112
u879697732
cpp
p02534
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <unordered_map> #include <unordered_set> #include <vector> #define ll long long #define fi first #define se second #define pb push_back #define me memse...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <unordered_map> #include <unordered_set> #include <vector> #define ll long long #define fi first #define se second #define pb push_back #define me memse...
[ "expression.operation.binary.remove" ]
240,117
240,118
u805304731
cpp
p02534
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define int long long int #define rep(i, a, b) for (int i = a; i < b; i++) #define revrep(i, a, b) for (int i = a; i >= b; i--) #define pb push_back #define pii pair<int, int> #define vi vector<int> #define vii vector<pii> #define min3(a, b, c) min(a, mi...
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define int long long int #define rep(i, a, b) for (int i = a; i < b; i++) #define revrep(i, a, b) for (int i = a; i >= b; i--) #define pb push_back #define pii pair<int, int> #define vi vector<int> #define vii vector<pii> #define min3(a, b, c) min(a, mi...
[]
240,198
240,199
u699025659
cpp
p02534
#include <bits/stdc++.h> using namespace std; #define ll long long #define inf 1e18 #define IOS \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define inf 1e18 #define IOS \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[ "literal.string.change" ]
240,206
240,207
u845300227
cpp
p02534
#include <algorithm> #include <cmath> #include <iostream> #include <set> #include <string> #include <vector> using namespace std; int main() { int K; cin >> K; for (int i = 0; i < K; i++) { cout << "ALC"; } cout << endl; }
#include <algorithm> #include <cmath> #include <iostream> #include <set> #include <string> #include <vector> using namespace std; int main() { int K; cin >> K; for (int i = 0; i < K; i++) { cout << "ACL"; } cout << endl; }
[ "literal.string.change", "io.output.change" ]
240,210
240,211
u312172322
cpp
p02534
#include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const long long MOD = 1000000007; #define chmax(x, y) x = max(x, y) #define chmin(x, y) x = min(x, y) int main(void) { int k; cin >> k; rep(i, k) puts("ACL"); cout << endl; re...
#include <bits/stdc++.h> using namespace std; using Graph = vector<vector<int>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) const long long MOD = 1000000007; #define chmax(x, y) x = max(x, y) #define chmin(x, y) x = min(x, y) int main(void) { int k; cin >> k; rep(i, k) cout << "ACL"; cout << endl; ...
[ "call.arguments.change" ]
240,214
240,215
u060936992
cpp
p02534
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n; cin >> n; string k = "ACL"; for (int i = 0; i < 5; i++) k += "ACL"; cout << k; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n; cin >> n; string k = "ACL"; for (int i = 0; i < n - 1; i++) k += "ACL"; cout << k; return 0; }
[ "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "misc.off_by_one" ]
240,225
240,226
u645283130
cpp
p02534
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n; cin >> n; string k = "ACL"; for (int i = 0; i < n; i++) k += k; cout << k; return 0; }
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n; cin >> n; string k = "ACL"; for (int i = 0; i < n - 1; i++) k += "ACL"; cout << k; return 0; }
[ "control_flow.loop.for.condition.change", "misc.off_by_one", "assignment.value.change" ]
240,227
240,226
u645283130
cpp
p02534
#include <bits/stdc++.h> using namespace std; int main() { int K; cin >> K; for (int i = 0; i < K; i++) cout << "ALC"; }
#include <bits/stdc++.h> using namespace std; int main() { int K; cin >> K; for (int i = 0; i < K; i++) cout << "ACL"; }
[ "literal.string.change", "io.output.change" ]
240,238
240,239
u951700883
cpp
p02534
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; string s = ""; for (int i = 0; i < k; i++) s += 'ACL'; cout << s << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; string s = ""; for (int i = 0; i < k; i++) s += "ACL"; cout << s << endl; return 0; }
[ "literal.string.change", "assignment.value.change" ]
240,248
240,249
u629990301
cpp
p02534
#include <bits/stdc++.h> #define ff first #define ss second #define pb push_back #define pf push_front #define eb emplace_back #define emp emplace #define ins insert #define mp make_pair #define mt make_tuple #define sz(s) (int)s.size() #define forp(i, a, b) for (int i = a; i <= b; i++) #define rep(i, n) for (int i = 0...
#include <bits/stdc++.h> #define ff first #define ss second #define pb push_back #define pf push_front #define eb emplace_back #define emp emplace #define ins insert #define mp make_pair #define mt make_tuple #define sz(s) (int)s.size() #define forp(i, a, b) for (int i = a; i <= b; i++) #define rep(i, n) for (int i = 0...
[ "literal.string.change" ]
240,258
240,259
u382427338
cpp
p02534
#include <bits/stdc++.h> using namespace std; int main() { int t; string ans, p = "ACL"; while (t > 0) { ans += p; t--; } cout << ans; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int t; cin >> t; string ans, p = "ACL"; while (t > 0) { ans += p; t--; } cout << ans; return 0; }
[]
240,260
240,261
u304269641
cpp
p02534
#include <bits/stdc++.h> using namespace std; //#define cin fi //#define cout fo // ifstream fi (".INP"); // ofstream fo (".INP"); int main() { // freopen("test.txt" , "r" , stdin); // ios_base:: sync_with_stdio(false); // cin.tie(0); // cout.tie(0); int k; while (k--) { cout << "ACL"; } return ...
#include <bits/stdc++.h> using namespace std; //#define cin fi //#define cout fo // ifstream fi (".INP"); // ofstream fo (".INP"); int main() { // freopen("test.txt" , "r" , stdin); // ios_base:: sync_with_stdio(false); // cin.tie(0); // cout.tie(0); int k; cin >> k; while (k--) { cout << "ACL"; ...
[]
240,264
240,265
u896235092
cpp
p02534
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <string> #include <utility> #include <vector> using namespace std; #define int long long #define endl "\n" constexpr long long INF = (long long)1e18; constexpr long long MOD = 1'000'000'007; struct fast_io { fast_io() { std:...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <string> #include <utility> #include <vector> using namespace std; #define int long long #define endl "\n" constexpr long long INF = (long long)1e18; constexpr long long MOD = 1'000'000'007; struct fast_io { fast_io() { std:...
[ "literal.string.change", "io.output.change" ]
240,268
240,269
u233393801
cpp
p02534
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { int S; for (int i = 0; i < S; i++) cout << "ACL"; }
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { int S; cin >> S; for (int i = 0; i < S; i++) cout << "ACL"; }
[]
240,272
240,273
u805277811
cpp
p02534
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for (int i = 0; i <= n; i++) { cout << "ACL"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { cout << "ACL"; } return 0; }
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
240,276
240,277
u789936749
cpp
p02534
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; for (int i = 1; i <= k; i++) cout << "ACL" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int k; cin >> k; for (int i = 1; i <= k; i++) cout << "ACL"; return 0; }
[ "expression.operation.binary.remove" ]
240,284
240,285
u615366651
cpp
p02534
#include <bits/stdc++.h> #if __has_include("debug.h") #include "debug.h" #endif using namespace std; typedef long long ll; typedef pair<ll, ll> ii; typedef vector<ll> vi; typedef vector<ii> vii; #define pb push_back #define ff first #define ss second #define rep(i, a, b) for (ll i = a; i < b; ++i) #define rep_(i, a, ...
#include <bits/stdc++.h> #if __has_include("debug.h") #include "debug.h" #endif using namespace std; typedef long long ll; typedef pair<ll, ll> ii; typedef vector<ll> vi; typedef vector<ii> vii; #define pb push_back #define ff first #define ss second #define rep(i, a, b) for (ll i = a; i < b; ++i) #define rep_(i, a, ...
[ "literal.string.change", "expression.operation.binary.change" ]
240,290
240,291
u709170895
cpp
p02534
#include <bits/stdc++.h> #include <iostream> #include <math.h> #include <string> using namespace std; #define nl endl #define in cin #define out cout #define ll long long // sort(y,y+j, greater<int> ll x[1000000]; int main() { ll a, b, c, d, e, i, j, k = 0, n, sq, mul, r; char s[10000], z[1000]; in >> a; for (i...
#include <bits/stdc++.h> #include <iostream> #include <math.h> #include <string> using namespace std; #define nl endl #define in cin #define out cout #define ll long long // sort(y,y+j, greater<int> ll x[1000000]; int main() { ll a, b, c, d, e, i, j, k = 0, n, sq, mul, r; char s[10000], z[1000]; in >> a; for (i...
[ "expression.operation.binary.remove" ]
240,292
240,293
u366897118
cpp
p02536
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vector<ll>> vvl; #define rep(i, n) for (ll i = 0; i < n; i++)...
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vector<ll>> vvl; #define rep(i, n) for (ll i = 0; i < n; i++)...
[ "expression.operation.binary.remove" ]
240,408
240,409
u828388155
cpp
p02536
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vector<ll>> vvl; #define rep(i, n) for (ll i = 0; i < n; i++)...
#include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <queue> #include <set> #include <string> #include <utility> #include <vector> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vector<ll>> vvl; #define rep(i, n) for (ll i = 0; i < n; i++)...
[ "expression.operation.binary.add" ]
240,410
240,409
u828388155
cpp
p02536
/* ChampionsNeverFall :)*/ #include <bits/stdc++.h> using namespace std; #define IOS \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define ff first #define ss second #define all(v) v.begin(), v.end()...
/* ChampionsNeverFall :)*/ #include <bits/stdc++.h> using namespace std; #define IOS \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define ff first #define ss second #define all(v) v.begin(), v.end()...
[ "expression.operation.binary.remove" ]
240,411
240,412
u995356807
cpp
p02536
#include <bits/stdc++.h> #define maxn 100086 using namespace std; int n, m; int fa[maxn]; int x, y, ans; int find(int x) { return x == fa[x] ? x : fa[x] = find(fa[x]); } int main() { scanf("%d%d", &n, &m); for (int i = 1; i <= n; i++) fa[i] = i; while (m--) { scanf("%d%d", &x, &y); x = find(x), y...
#include <bits/stdc++.h> #define maxn 100086 using namespace std; int n, m; int fa[maxn]; int x, y, ans; int find(int x) { return x == fa[x] ? x : fa[x] = find(fa[x]); } int main() { scanf("%d%d", &n, &m); for (int i = 1; i <= n; i++) fa[i] = i; while (m--) { scanf("%d%d", &x, &y); x = find(x), y...
[ "expression.operation.binary.add" ]
240,424
240,425
u147125464
cpp
p02536
#include <bits/stdc++.h> #define mod 1000000007 #define ll long long int #define pb push_back #define mk make_pair #define pii pair<int, int> #define pll pair<ll, ll> #define frr(j, i, n) for (int i = j; i <= n; ++i) using namespace std; vector<int> g[100005]; int vis[100005]; void dfs(int node) { vis[node]++; for ...
#include <bits/stdc++.h> #define mod 1000000007 #define ll long long int #define pb push_back #define mk make_pair #define pii pair<int, int> #define pll pair<ll, ll> #define frr(j, i, n) for (int i = j; i <= n; ++i) using namespace std; vector<int> g[100005]; int vis[100005]; void dfs(int node) { vis[node]++; for ...
[ "expression.operation.binary.add" ]
240,426
240,427
u442855356
cpp
p02536
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; typedef vector<ll> vll; #define fi first #define print(v) \ for (ll i : v) \ cout << i << ss #de...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef long double ld; typedef vector<ll> vll; #define fi first #define print(v) \ for (ll i : v) \ cout << i << ss #de...
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
240,432
240,433
u400281904
cpp
p02536
#include <bits/stdc++.h> #define rep(i, m) for (long long i = 0; i < m; i++) #define per(i, m) for (long long i = m - 1; i >= 0; i--) #define FOR(i, n, m) for (long long i = n; i < m; i++) #define ROF(i, n, m) for (long long i = m - 1; i >= n; i--) #define SORT(v, n) ...
#include <bits/stdc++.h> #define rep(i, m) for (long long i = 0; i < m; i++) #define per(i, m) for (long long i = m - 1; i >= 0; i--) #define FOR(i, n, m) for (long long i = n; i < m; i++) #define ROF(i, n, m) for (long long i = m - 1; i >= n; i--) #define SORT(v, n) ...
[ "expression.operation.binary.remove" ]
240,879
240,880
u107995903
cpp
p02536
#include <bits/stdc++.h> using namespace std; const int mxn(1e5 + 10), mxm(4e5 + 10); const long long modl(998244353); int nm, n, m, p, t, k, l, r; int ans; int a[mxn], b[mxn]; int fnd(int x) { return a[x] = x == a[x] ? x : fnd(a[x]); } int main() { ios_base::sync_with_stdio(false); // freopen("in.txt", "r", stdin...
#include <bits/stdc++.h> using namespace std; const int mxn(1e5 + 10), mxm(4e5 + 10); const long long modl(998244353); int nm, n, m, p, t, k, l, r; int ans; int a[mxn], b[mxn]; int fnd(int x) { return a[x] = x == a[x] ? x : fnd(a[x]); } int main() { ios_base::sync_with_stdio(false); // freopen("in.txt", "r", stdin...
[ "expression.operator.compare.change", "control_flow.loop.condition.change", "assignment.variable.change", "identifier.change" ]
240,887
240,886
u930606117
cpp
p02536
#include <bits/stdc++.h> using namespace std; typedef long long int ll; ll bfs(vector<vector<ll>> &a, ll x, vector<ll> &vst) { // cout<<x<<endl; ll i, s = 0; // if(vst[x]==1) // return 0; vst[x] = 1; // for(i=1;i<a.size();i++) // cout<<vst[i]<<" "; // cout<<endl; // for(i=0;i<a[x].size();i++) /...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; ll bfs(vector<vector<ll>> &a, ll x, vector<ll> &vst) { // cout<<x<<endl; ll i, s = 0; // if(vst[x]==1) // return 0; vst[x] = 1; // for(i=1;i<a.size();i++) // cout<<vst[i]<<" "; // cout<<endl; // for(i=0;i<a[x].size();i++) /...
[ "expression.operation.binary.add" ]
240,906
240,907
u004844484
cpp
p02536
#include <bits/stdc++.h> using namespace std; #define ll long long int vector<int> adj[1000001]; bool vis[1000001]; void dfs(int n) { vis[n] = true; for (int a : adj[n]) { if (vis[a] == 0) dfs(a); } } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n, e; cin >> n >> e; for (i...
#include <bits/stdc++.h> using namespace std; #define ll long long int vector<int> adj[1000001]; bool vis[1000001]; void dfs(int n) { vis[n] = true; for (int a : adj[n]) { if (vis[a] == 0) dfs(a); } } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n, e; cin >> n >> e; for (i...
[ "expression.operation.binary.add" ]
240,918
240,919
u108398205
cpp
p02536
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) struct UnionFind { vector<int> par; // par[i]:iの親の番号 (例) par[3] = 2 : 3の親が2 UnionFind(int N) : par(N) { //最初は全てが根であるとして初期化 for (int i = 0; i < N; i++) par[i] =...
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) struct UnionFind { vector<int> par; // par[i]:iの親の番号 (例) par[3] = 2 : 3の親が2 UnionFind(int N) : par(N) { //最初は全てが根であるとして初期化 for (int i = 0; i < N; i++) par[i] =...
[ "misc.opposites", "expression.operator.arithmetic.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
240,927
240,928
u276322776
cpp
p02536
//#fuccccc #include <bits/stdc++.h> #define TASK "" #define inpf freopen(TASK ".inp", "r", stdin) #define outf freopen(TASK ".out", "w", stdout) #define ll long long #define db double #define F first #define S second #define maxn 1000005 #define MP make_pair #define PB push_back using namespace std; int n, m, tr[maxn];...
//#fuccccc #include <bits/stdc++.h> #define TASK "" #define inpf freopen(TASK ".inp", "r", stdin) #define outf freopen(TASK ".out", "w", stdout) #define ll long long #define db double #define F first #define S second #define maxn 1000005 #define MP make_pair #define PB push_back using namespace std; int n, m, tr[maxn];...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
240,945
240,946
u092886202
cpp
p02536
#include <iostream> #include <set> #include <string> #include <vector> using namespace std; #define debug(var) \ do { \ std::cout << #var << " : "; ...
#include <iostream> #include <set> #include <string> #include <vector> using namespace std; #define debug(var) \ do { \ std::cout << #var << " : "; ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
240,966
240,964
u542612766
cpp
p02536
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> pll; typedef pair<int, int> pii; #define faster ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0) #define read freopen("in.txt", "r", stdin) #define write freopen("out.txt", "w", stdout) #define mem(x, n) memset(x, n, si...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> pll; typedef pair<int, int> pii; #define faster ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0) #define read freopen("in.txt", "r", stdin) #define write freopen("out.txt", "w", stdout) #define mem(x, n) memset(x, n, si...
[ "expression.operation.binary.add" ]
241,079
241,083
u014670038
cpp
p02536
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define IOS \ ios ::sync_with_stdio(false); \ cin.tie(0); ...
#include <bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define IOS \ ios ::sync_with_stdio(false); \ cin.tie(0); ...
[ "identifier.change", "control_flow.loop.condition.change" ]
241,146
241,147
u865995836
cpp
p02536
#include <bits/stdc++.h> using namespace std; // conversion //------------------------------------------ inline int toInt(string s) { int v; istringstream sin(s); sin >> v; return v; } template <class T> inline string toString(T x) { ostringstream sout; sout << x; return sout.str(); } // math //--------...
#include <bits/stdc++.h> using namespace std; // conversion //------------------------------------------ inline int toInt(string s) { int v; istringstream sin(s); sin >> v; return v; } template <class T> inline string toString(T x) { ostringstream sout; sout << x; return sout.str(); } // math //--------...
[ "expression.operation.binary.remove" ]
241,148
241,149
u276588887
cpp
p02536
#include <bits/stdc++.h> using namespace std; typedef long long ll; using pll = pair<ll, ll>; #define rep(i, n) for (ll i = 0; i < n; i++) #define rrep(i, m, n) for (ll i = m; i > n; i--) #define Rep(i, m, n) for (ll i = m; i < n; i++) #define all(vec) vec.begin(), vec.end() #define lmax(x, y) max<ll>(x, y) #define lmi...
#include <bits/stdc++.h> using namespace std; typedef long long ll; using pll = pair<ll, ll>; #define rep(i, n) for (ll i = 0; i < n; i++) #define rrep(i, m, n) for (ll i = m; i > n; i--) #define Rep(i, m, n) for (ll i = m; i < n; i++) #define all(vec) vec.begin(), vec.end() #define lmax(x, y) max<ll>(x, y) #define lmi...
[ "literal.number.change", "variable_declaration.value.change" ]
241,150
241,151
u652490854
cpp
p02536
#include <bits/stdc++.h> using namespace std; using ll = long long; using ii = pair<int, int>; const int mx = 2e5 + 5; int n, m, vis[mx]; vector<int> g[mx]; void dfs(int u) { vis[u] = 1; for (int v : g[u]) if (!vis[v]) dfs(v); } int main() { ios_base::sync_with_stdio(0); cin.tie(nullptr); cout.t...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ii = pair<int, int>; const int mx = 2e5 + 5; int n, m, vis[mx]; vector<int> g[mx]; void dfs(int u) { vis[u] = 1; for (int v : g[u]) if (!vis[v]) dfs(v); } int main() { ios_base::sync_with_stdio(0); cin.tie(nullptr); cout.t...
[ "identifier.change", "call.arguments.change" ]
241,158
241,159
u294473317
cpp
p02536
#include <bits/stdc++.h> using namespace std; // (setq-default c-basic-offset 2) // UnionFind // coding: https://youtu.be/TdR816rqc3s?t=726 // comment: https://youtu.be/TdR816rqc3s?t=6822 struct UnionFind { vector<int> d; UnionFind(int n = 0) : d(n, -1) {} int find(int x) { if (d[x] < 0) return x; ...
#include <bits/stdc++.h> using namespace std; // (setq-default c-basic-offset 2) // UnionFind // coding: https://youtu.be/TdR816rqc3s?t=726 // comment: https://youtu.be/TdR816rqc3s?t=6822 struct UnionFind { vector<int> d; UnionFind(int n = 0) : d(n, -1) {} int find(int x) { if (d[x] < 0) return x; ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
241,013
241,014
u091698231
cpp
p02536
#include <bits/stdc++.h> using namespace std; // (setq-default c-basic-offset 2) // UnionFind // coding: https://youtu.be/TdR816rqc3s?t=726 // comment: https://youtu.be/TdR816rqc3s?t=6822 struct UnionFind { vector<int> d; UnionFind(int n = 0) : d(n, -1) {} int find(int x) { if (d[x] < 0) return x; ...
#include <bits/stdc++.h> using namespace std; // (setq-default c-basic-offset 2) // UnionFind // coding: https://youtu.be/TdR816rqc3s?t=726 // comment: https://youtu.be/TdR816rqc3s?t=6822 struct UnionFind { vector<int> d; UnionFind(int n = 0) : d(n, -1) {} int find(int x) { if (d[x] < 0) return x; ...
[ "literal.number.change", "call.arguments.change", "expression.operation.binary.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
241,016
241,014
u091698231
cpp
p02536
#include <bits/stdc++.h> #define ll long long #define deb(x) cout << #x << " " << x << "\n"; using namespace std; void dfs(ll ver, unordered_map<int, vector<int>> &g, vector<int> &visited) { visited[ver] = 1; for (auto x : g[ver]) { if (visited[x] == -1) { dfs(x, g, visited); } } } void solve() {...
#include <bits/stdc++.h> #define ll long long #define deb(x) cout << #x << " " << x << "\n"; using namespace std; void dfs(ll ver, unordered_map<int, vector<int>> &g, vector<int> &visited) { visited[ver] = 1; for (auto x : g[ver]) { if (visited[x] == -1) { dfs(x, g, visited); } } } void solve() {...
[ "expression.unary.arithmetic.add" ]
241,027
241,028
u587740165
cpp
p02536
#include <bits/stdc++.h> #define fi first #define se second #define rep(i, s, n) for (int i = (s); i < (n); ++i) #define rrep(i, n, g) for (int i = (n)-1; i >= (g); --i) #define all(a) a.begin(), a.end() #define rall(a) a.rbegin(), a.rend() #define len(x) (int)(x).size() #define dup(x, y) (((x) + (y)-1) / (y)) #define ...
#include <bits/stdc++.h> #define fi first #define se second #define rep(i, s, n) for (int i = (s); i < (n); ++i) #define rrep(i, n, g) for (int i = (n)-1; i >= (g); --i) #define all(a) a.begin(), a.end() #define rall(a) a.rbegin(), a.rend() #define len(x) (int)(x).size() #define dup(x, y) (((x) + (y)-1) / (y)) #define ...
[ "literal.number.change", "variable_declaration.value.change" ]
241,031
241,032
u496511996
cpp
p02536
/* Name: Author: xiaruize Date: */ #pragma GCC optimize(2) #include <bits/stdc++.h> using namespace std; #define ull unsigned long long #define MOD 1000000007 #define ALL(a) (a).begin(), (a).end() #define forn(i, n) for (int i = 0; i < int(n); i++) #define form(i, j, n) for (int i = int(j); i <=...
/* Name: Author: xiaruize Date: */ #pragma GCC optimize(2) #include <bits/stdc++.h> using namespace std; #define ull unsigned long long #define MOD 1000000007 #define ALL(a) (a).begin(), (a).end() #define forn(i, n) for (int i = 0; i < int(n); i++) #define form(i, j, n) for (int i = int(j); i <=...
[ "expression.operation.binary.remove" ]
241,084
241,085
u708620896
cpp
p02536
/// Bismillahir Rahmanir Rahim /// ALLAHU AKBAR #include <bits/stdc++.h> #define flash() \ ios::sync_with_stdio(0); \ cin.tie(0); \ co...
/// Bismillahir Rahmanir Rahim /// ALLAHU AKBAR #include <bits/stdc++.h> #define flash() \ ios::sync_with_stdio(0); \ cin.tie(0); \ co...
[ "expression.operation.binary.remove" ]
241,096
241,102
u117366234
cpp
p02536
#include <bits/stdc++.h> //brute force forever using namespace std; #define ll long long int #define pb push_back #define pob pop_back #define pii pair<int, int> #define pll pair<ll, ll> #define FOR(i, n) for (int i = 0; i < n; i++) #define FORE(i, a, b) for (int i = a; i <= b; i++) #define RFOR(i, n) for (int i = n; i...
#include <bits/stdc++.h> //brute force forever using namespace std; #define ll long long int #define pb push_back #define pob pop_back #define pii pair<int, int> #define pll pair<ll, ll> #define FOR(i, n) for (int i = 0; i < n; i++) #define FORE(i, a, b) for (int i = a; i <= b; i++) #define RFOR(i, n) for (int i = n; i...
[ "expression.operator.compare.change", "control_flow.loop.condition.change", "expression.unary.arithmetic.add" ]
241,104
241,105
u551004821
cpp
p02536
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <queue> #include <set> #include <stack> using namespace std; #define N 100009 #define LL long long #define INF 0x3f3f3f3f #define mymin(x, y) (x >= y ? y : x) #define mymax(x, y) (x >= y ? x : y) int pre[N]; int unio...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <queue> #include <set> #include <stack> using namespace std; #define N 1000009 #define LL long long #define INF 0x3f3f3f3f #define mymin(x, y) (x >= y ? y : x) #define mymax(x, y) (x >= y ? x : y) int pre[N]; int uni...
[ "preprocessor.define.value.change", "literal.integer.change", "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
241,106
241,107
u381834737
cpp
p02536
// Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools #include <bits/stdc++.h> // #include "atcoder/all" using namespace std; using i64 = long long; const i64 MOD = 1e9 + 7; const i64 INF = i64(1e18) + 7; template <typename T> bool chmin(T &x, T y) { if (x > y) { x = y; return true; } ...
// Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools #include <bits/stdc++.h> // #include "atcoder/all" using namespace std; using i64 = long long; const i64 MOD = 1e9 + 7; const i64 INF = i64(1e18) + 7; template <typename T> bool chmin(T &x, T y) { if (x > y) { x = y; return true; } ...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
241,108
241,109
u705918648
cpp
p02536
#include <bits/stdc++.h> using namespace std; #define pb push_back #define in insert #define PI 3.1415926535897932384626433832795 #define F first #define S second #define aLL(str) (str).begin(), (str).end() #define IOS \ ios::sync_with_stdio(0); ...
#include <bits/stdc++.h> using namespace std; #define pb push_back #define in insert #define PI 3.1415926535897932384626433832795 #define F first #define S second #define aLL(str) (str).begin(), (str).end() #define IOS \ ios::sync_with_stdio(0); ...
[ "literal.number.change", "call.arguments.change" ]
241,123
241,125
u942336630
cpp
p02536
#pragma GCC optimize("Ofast") #pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define eb emplace_back #define mp make_pair #define lb lower_bound #define ub upper_bound #define ins insert #define ull unsigned long long #define rep(i, begin, en...
#pragma GCC optimize("Ofast") #pragma GCC target("avx,avx2,fma") #include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define eb emplace_back #define mp make_pair #define lb lower_bound #define ub upper_bound #define ins insert #define ull unsigned long long #define rep(i, begin, en...
[ "control_flow.branch.if.condition.change" ]
241,162
241,163
u049951384
cpp
p02536
#include <bits/stdc++.h> using namespace std; #define forn(i, n) for (int i = 0; i < n; i++) #define for1(i, n) for (int i = 1; i <= n; i++) #define PrintArray(a, n) \ for (int i = 0; i < n; i++) \ cout << a[i]...
#include <bits/stdc++.h> using namespace std; #define forn(i, n) for (int i = 0; i < n; i++) #define for1(i, n) for (int i = 1; i <= n; i++) #define PrintArray(a, n) \ for (int i = 0; i < n; i++) \ cout << a[i]...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
241,168
241,169
u088570819
cpp
p02536
#include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 6; int f[maxn], ans; int find(int x) { if (f[x] == x) return x; else return f[x] = find(f[x]); } int main() { int a, b; cin >> a >> b; for (int i = 0; i < a; i++) { f[i] = i; } for (int i = 0; i < b; i++) { int u, v; ...
#include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 6; int f[maxn], ans; int find(int x) { if (f[x] == x) return x; else return f[x] = find(f[x]); } int main() { int a, b; cin >> a >> b; for (int i = 0; i < a; i++) { f[i] = i; } for (int i = 0; i < b; i++) { int u, v; ...
[ "misc.opposites", "expression.operator.arithmetic.change", "io.output.change" ]
241,170
241,171
u358301346
cpp
p02536
#include <bits/stdc++.h> using namespace std; #define int long long #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i < n; ++i) #define exrep(i, a, b) for (ll i = a; i < b; i++) #define out(x) cout << x << e...
#include <bits/stdc++.h> using namespace std; #define int long long #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i < n; ++i) #define exrep(i, a, b) for (ll i = a; i < b; i++) #define out(x) cout << x << e...
[ "assignment.change" ]
241,191
241,192
u929582923
cpp
p02536
#include <bits/stdc++.h> using namespace std; #define int long long #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i < n; ++i) #define exrep(i, a, b) for (ll i = a; i < b; i++) #define out(x) cout << x << e...
#include <bits/stdc++.h> using namespace std; #define int long long #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define rep(i, n) for (int i = 0; i < n; ++i) #define rep1(i, n) for (int i = 1; i < n; ++i) #define exrep(i, a, b) for (ll i = a; i < b; i++) #define out(x) cout << x << e...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
241,193
241,192
u929582923
cpp
p02536
#include <algorithm> #include <bitset> #include <complex> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include <string.h> #include <string> #include <unordered_map> #include <unordere...
#include <algorithm> #include <bitset> #include <complex> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdio.h> #include <string.h> #include <string> #include <unordered_map> #include <unordere...
[ "expression.operation.binary.remove" ]
241,199
241,200
u696290869
cpp
p02536
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; vector<vector<int>> a(n + 1); for (int i = 0; i < m; i++) { int u, v; cin >> u >> v; a[u].push_back(v); a[v].push_back(u); } vector<bool> used(n, 0); int ans = 0; for (int i = 0; i < n; i++) { if (!us...
#include <bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; vector<vector<int>> a(n + 1); for (int i = 0; i < m; i++) { int u, v; cin >> u >> v; a[u].push_back(v); a[v].push_back(u); } vector<bool> used(n + 2, 0); int ans = 0; for (int i = 1; i <= n; i++) { if...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
241,217
241,218
u521040115
cpp
p02536
#include "bits/stdc++.h" using namespace std; #define PIGRECO 3.141592653589793 #define sim template <class c #define ris return *this #define dor > debug &operator<< #define eni(x) \ sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator...
#include "bits/stdc++.h" using namespace std; #define PIGRECO 3.141592653589793 #define sim template <class c #define ris return *this #define dor > debug &operator<< #define eni(x) \ sim > typename enable_if<sizeof dud<c>(0) x 1, debug &>::type operator...
[ "identifier.change", "call.arguments.change" ]
241,227
241,228
u552846576
cpp
p02536
#include <iostream> #include <vector> using namespace std; #define MAX 100005 int n, m; bool visited[MAX]; vector<int> graph[MAX]; void DFS(int u) { visited[u] = true; for (int i = 0; i < graph[u].size(); i++) { int v = graph[u][i]; if (!visited[v]) DFS(v); } } int main() { int testcase, u, v, n...
#include <iostream> #include <vector> using namespace std; #define MAX 100005 int n, m; bool visited[MAX]; vector<int> graph[MAX]; void DFS(int u) { visited[u] = true; for (int i = 0; i < graph[u].size(); i++) { int v = graph[u][i]; if (!visited[v]) DFS(v); } } int main() { int testcase, u, v, n...
[ "expression.operation.binary.remove" ]
241,229
241,230
u186059677
cpp
p02536
#include <bits/stdc++.h> using namespace std; #define ll long long bool comp(int a, int b) { if (a <= b) return false; return true; } vector<int> arr[100005]; vector<int> visited(100005, 0); void dfs(int i) { visited[i]++; for (auto j : arr[i]) { if (!visited[i]) dfs(j); } } void solve() ...
#include <bits/stdc++.h> using namespace std; #define ll long long bool comp(int a, int b) { if (a <= b) return false; return true; } vector<int> arr[100005]; vector<int> visited(100005, 0); void dfs(int i) { visited[i]++; for (auto j : arr[i]) { if (!visited[j]) { dfs(j); } } } void ...
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
241,244
241,245
u311830155
cpp
p02536
#include <iostream> #define ll long long using namespace std; ll pre[1000000 + 5]; ll find(ll i) { if (i == pre[i]) return i; return pre[i] = find(pre[i]); } void merge(ll x, ll y) { ll fx = find(x), fy = find(y); if (fx != fy) pre[fx] = fy; } int main() { ll n, m; cin >> n >> m; for (int i = 0; i...
#include <iostream> #define ll long long using namespace std; ll pre[1000000 + 5]; ll find(ll i) { if (i == pre[i]) return i; return pre[i] = find(pre[i]); } void merge(ll x, ll y) { ll fx = find(x), fy = find(y); if (fx != fy) pre[fx] = fy; } int main() { ll n, m; cin >> n >> m; for (int i = 1; i...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
241,263
241,264
u205793462
cpp
p02536
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdlib> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> #define DEBUG 1 using namespace std; constexpr int kMod = 1000000007; typedef long lo...
#include <algorithm> #include <bitset> #include <cassert> #include <climits> #include <cmath> #include <cstdlib> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <string> #include <vector> #define DEBUG 1 using namespace std; constexpr int kMod = 1000000007; typedef long lo...
[ "control_flow.loop.for.condition.change" ]
241,284
241,285
u116523315
cpp
p02536
#include <bits/stdc++.h> // #include <atcoder/all> using namespace std; // using namespace atcoder; #define rp(i, k, n) for (int i = k; i < n; i++) using ll = long long; using ld = double; template <class T> inline bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <clas...
#include <bits/stdc++.h> // #include <atcoder/all> using namespace std; // using namespace atcoder; #define rp(i, k, n) for (int i = k; i < n; i++) using ll = long long; using ld = double; template <class T> inline bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template <clas...
[ "expression.operation.unary.add", "control_flow.branch.if.condition.change" ]
241,292
241,293
u575653048
cpp
p02536
#include <bits/stdc++.h> #include <iostream> #define ll long long using namespace std; const ll num = 1e9 + 7; ll mod(ll n) { return (n % num + num) % num; } ll add(ll x, ll y) { return mod(mod(x) + mod(y)); } ll mult(ll x, ll y) { return mod(mod(x) * mod(y)); } ll sub(ll x, ll y) { return mod(mod(x) - mod(y)); } ll pt...
#include <bits/stdc++.h> #include <iostream> #define ll long long using namespace std; const ll num = 1e9 + 7; ll mod(ll n) { return (n % num + num) % num; } ll add(ll x, ll y) { return mod(mod(x) + mod(y)); } ll mult(ll x, ll y) { return mod(mod(x) * mod(y)); } ll sub(ll x, ll y) { return mod(mod(x) - mod(y)); } ll pt...
[ "expression.operation.binary.add" ]
241,338
241,339
u756848425
cpp
p02536
#include <bits/stdc++.h> using namespace std; #define ALL(v) v.begin(), v.end() #define V vector #define P pair using ll = long long; struct UnionFind { vector<int> d; // n要素で初期化 UnionFind(int n) : d(n, -1) {} // 木の根を決める int root(int x) { if (d[x] < 0) return x; return d[x] = root(d[x]); } ...
#include <bits/stdc++.h> using namespace std; #define ALL(v) v.begin(), v.end() #define V vector #define P pair using ll = long long; struct UnionFind { vector<int> d; // n要素で初期化 UnionFind(int n) : d(n, -1) {} // 木の根を決める int root(int x) { if (d[x] < 0) return x; return d[x] = root(d[x]); } ...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
241,344
241,345
u651235280
cpp
p02536
#include <algorithm> #include <iostream> #include <math.h> #include <numeric> #include <queue> #include <stdio.h> #include <string> #include <tuple> #include <utility> #include <vector> using namespace std; struct UnionFind { vector<int> parent; int N; UnionFind(int n) : N(n) { //メンバイニシャライザを実行している for (int i...
#include <algorithm> #include <iostream> #include <math.h> #include <numeric> #include <queue> #include <stdio.h> #include <string> #include <tuple> #include <utility> #include <vector> using namespace std; struct UnionFind { vector<int> parent; int N; UnionFind(int n) : parent(n), N(n) { //メンバイニシャライザを実行している ...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
241,352
241,353
u140524280
cpp
p02536
#include <bits/stdc++.h> using namespace std; #define __ << " " << #define ___ << " " #define bash push_back #define ALL(x) x.begin(), x.end() // #define int long long struct IoSetup { IoSetup() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(10); cerr << fixed << setprecision...
#include <bits/stdc++.h> using namespace std; #define __ << " " << #define ___ << " " #define bash push_back #define ALL(x) x.begin(), x.end() // #define int long long struct IoSetup { IoSetup() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(10); cerr << fixed << setprecision...
[ "expression.operation.binary.remove" ]
241,389
241,390
u678146855
cpp
p02536
#include <bits/stdc++.h> using namespace std; using lint = long long; constexpr lint mod = 998244353; #define all(x) (x).begin(), (x).end() #define bitcount(n) __builtin_popcountl((lint)(n)) #define fcout cout << fixed << setprecision(15) #define highest(x) (63 - __builtin_clzl(x)) #define rep(i, n) for (int i = 0; i <...
#include <bits/stdc++.h> using namespace std; using lint = long long; constexpr lint mod = 998244353; #define all(x) (x).begin(), (x).end() #define bitcount(n) __builtin_popcountl((lint)(n)) #define fcout cout << fixed << setprecision(15) #define highest(x) (63 - __builtin_clzl(x)) #define rep(i, n) for (int i = 0; i <...
[ "expression.operation.binary.remove" ]
241,393
241,394
u115888500
cpp
p02536
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define P pair<ll, ll> class UnionFind { vector<int> data; ll num; public: UnionFind(int size) : data(size, -1), num(size) {} bool unite(int x, int y) { // xとyの集合を統合する x = root(x); ...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define P pair<ll, ll> class UnionFind { vector<int> data; ll num; public: UnionFind(int size) : data(size, -1), num(size) {} bool unite(int x, int y) { // xとyの集合を統合する x = root(x); ...
[ "expression.operation.binary.add" ]
241,529
241,530
u692550512
cpp
p02536
#include <algorithm> #include <iostream> #include <set> #include <vector> using namespace std; struct UF { vector<int> par, rank, size; UF() {} UF(int n) { init(n); } void init(int n) { par.assign(n, 0); rank.assign(n, 0); size.assign(n, 1); for (int i = 0; i < n; i++) par[i] = i; } i...
#include <algorithm> #include <iostream> #include <set> #include <vector> using namespace std; struct UF { vector<int> par, rank, size; UF() {} UF(int n) { init(n); } void init(int n) { par.assign(n, 0); rank.assign(n, 0); size.assign(n, 1); for (int i = 0; i < n; i++) par[i] = i; } i...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
241,535
241,536
u024809932
cpp
p02536
#include <bits/stdc++.h> #include <iomanip> using namespace std; #define ll long long #define ld long double #define vpll vector<pair<ll, ll>> #define vpii vector<pair<int, int>> #define pii pair<int, int> #define pll pair<ll, ll> #define mem(a, b) memset(a, b, sizeof a); #define M 1000000007 #define bs(a, b, x) binary...
#include <bits/stdc++.h> #include <iomanip> using namespace std; #define ll long long #define ld long double #define vpll vector<pair<ll, ll>> #define vpii vector<pair<int, int>> #define pii pair<int, int> #define pll pair<ll, ll> #define mem(a, b) memset(a, b, sizeof a); #define M 1000000007 #define bs(a, b, x) binary...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
241,555
241,556
u939893469
cpp
p02536
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<ll, ll> p_ll; typedef vector<pair<ll, ll>> vec_p; // vector<pair<ll, ll>> pairs(n) ,pairs.at(i) = make_pair(i*i, i) #define ture ture #define flase false #define falg flag #define REP(i, x) for (ll i = 0; i < (ll)(x); i++) #defi...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<ll, ll> p_ll; typedef vector<pair<ll, ll>> vec_p; // vector<pair<ll, ll>> pairs(n) ,pairs.at(i) = make_pair(i*i, i) #define ture ture #define flase false #define falg flag #define REP(i, x) for (ll i = 0; i < (ll)(x); i++) #defi...
[ "expression.operation.binary.remove" ]
241,563
241,564
u266059249
cpp
p02536
#include <bits/stdc++.h> using namespace std; void dfs(int src, vector<int> v[], vector<bool> &vis) { vis[src] = true; for (int it : v[src]) { if (!vis[it]) dfs(it, v, vis); } } int main() { int n, m; cin >> n >> m; vector<int> v[n + 1]; for (int i = 0; i < m; i++) { int a, b; cin >> a >...
#include <bits/stdc++.h> using namespace std; void dfs(int src, vector<int> v[], vector<bool> &vis) { vis[src] = true; for (int it : v[src]) { if (!vis[it]) dfs(it, v, vis); } } int main() { int n, m; cin >> n >> m; vector<int> v[n + 1]; for (int i = 0; i < m; i++) { int a, b; cin >> a >...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
241,605
241,606
u776675173
cpp
p02536
/* lib.cpp */ #include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <deque> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <vector> #define overload4(_1, _2, _3, _4, name...
/* lib.cpp */ #include <algorithm> #include <bitset> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <deque> #include <iomanip> #include <iostream> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <vector> #define overload4(_1, _2, _3, _4, name...
[ "control_flow.branch.if.condition.change", "call.add" ]
241,618
241,619
u952130512
cpp
p02536
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define ld long double #define pii pair<int, int> #define pll pair<ll, ll> #define vi vector<int> #define vll vector<ll> #define vc vector<char> #define vs vector<string> #define vpll vector<pll> #define vpii vector<pii> #...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define ld long double #define pii pair<int, int> #define pll pair<ll, ll> #define vi vector<int> #define vll vector<ll> #define vc vector<char> #define vs vector<string> #define vpll vector<pll> #define vpii vector<pii> #...
[ "expression.operation.binary.add" ]
241,622
241,623
u070598651
cpp
p02537
#include <bits/stdc++.h> using namespace std; #define all(v) v.begin(), v.end() #define prec(n) fixed << setprecision(n) // declaration shortcuts typedef long long int ll; #define int ll // Constants constexpr int dx[] = {-1, 0, 1, 0, 1, 1, -1, -1}; constexpr int dy[] = {0, -1, 0, 1, 1, -1, 1, -1}; constexpr ll INF = 1...
#include <bits/stdc++.h> using namespace std; #define all(v) v.begin(), v.end() #define prec(n) fixed << setprecision(n) // declaration shortcuts typedef long long int ll; #define int ll // Constants constexpr int dx[] = {-1, 0, 1, 0, 1, 1, -1, -1}; constexpr int dy[] = {0, -1, 0, 1, 1, -1, 1, -1}; constexpr ll INF = 1...
[ "literal.number.change", "call.arguments.change" ]
241,723
241,724
u187120096
cpp
p02537
#include <bits/stdc++.h> #define pb push_back #define mp make_pair using namespace std; typedef long long ll; typedef long double ld; typedef unsigned long long ull; const ll mod = 998244353; const int N = 300006; const ll INF = 1e18; struct seg_tree { int sz; vector<int> val; void init(int x) { sz = 1; ...
#include <bits/stdc++.h> #define pb push_back #define mp make_pair using namespace std; typedef long long ll; typedef long double ld; typedef unsigned long long ull; const ll mod = 998244353; const int N = 500006; const ll INF = 1e18; struct seg_tree { int sz; vector<int> val; void init(int x) { sz = 1; ...
[ "literal.number.change", "variable_declaration.value.change", "call.arguments.change" ]
241,729
241,730
u551627081
cpp