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
p02608
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef pair<P, ll> PLL; typedef pair<P, P> PP; typedef vector<ll> VECLL; typedef vector<P> VECP; typedef priority_queue<P, VECP, greater<P>> PQP; typedef priority_queue<ll, VECLL, greater<ll>> PQll; #define rep(i, a, n) for (...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef pair<P, ll> PLL; typedef pair<P, P> PP; typedef vector<ll> VECLL; typedef vector<P> VECP; typedef priority_queue<P, VECP, greater<P>> PQP; typedef priority_queue<ll, VECLL, greater<ll>> PQll; #define rep(i, a, n) for (...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
313,585
313,586
u129134470
cpp
p02608
#include <bits/stdc++.h> using namespace std; #include <iomanip> #include <math.h> template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } const int INF = 10010...
#include <bits/stdc++.h> using namespace std; #include <iomanip> #include <math.h> template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } const int INF = 10010...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
313,587
313,588
u209457657
cpp
p02608
#include <bits/stdc++.h> using namespace std; #include <iomanip> #include <math.h> template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } const int INF = 10010...
#include <bits/stdc++.h> using namespace std; #include <iomanip> #include <math.h> template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return 1; } return 0; } template <class T> inline bool chmin(T &a, T b) { if (a > b) { a = b; return 1; } return 0; } const int INF = 10010...
[ "variable_declaration.remove", "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
313,589
313,588
u209457657
cpp
p02608
//#include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; const int MAX = 50; const int SIZE = 1e6; int main() { int n; cin >> n; vector<int> v(SIZE, 0); for (int i = 1; i <= MAX; ++i) { for (int j = ...
//#include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; const int MAX = 101; const int SIZE = 1e5; int main() { int n; cin >> n; vector<int> v(SIZE, 0); for (int i = 1; i <= MAX; ++i) { for (int j =...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.branch.if.condition.change" ]
313,617
313,618
u337448200
cpp
p02608
//#include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; const int MAX = 50; const int SIZE = 1e6; int main() { int n; cin >> n; vector<int> v(SIZE, 0); for (int i = 1; i <= MAX; ++i) { for (int j = ...
//#include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; const int MAX = 101; const int SIZE = 1e5; int main() { int n; cin >> n; vector<int> v(SIZE, 0); for (int i = 1; i <= MAX; ++i) { for (int j =...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.branch.if.condition.change" ]
313,619
313,618
u337448200
cpp
p02608
//#include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; const int MAX = 50; const int SIZE = 1e6; int main() { int n; cin >> n; vector<int> v(SIZE, 0); for (int i = 1; i <= MAX; ++i) { for (int j = ...
//#include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; const int MAX = 101; const int SIZE = 1e6; int main() { int n; cin >> n; vector<int> v(SIZE, 0); for (int i = 1; i <= MAX; ++i) { for (int j =...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.branch.if.condition.change" ]
313,617
313,620
u337448200
cpp
p02608
//#include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; const int MAX = 50; const int SIZE = 1e6; int main() { int n; cin >> n; vector<int> v(SIZE, 0); for (int i = 1; i <= MAX; ++i) { for (int j = ...
//#include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; const int MAX = 101; const int SIZE = 1e6; int main() { int n; cin >> n; vector<int> v(SIZE, 0); for (int i = 1; i <= MAX; ++i) { for (int j =...
[ "literal.number.change", "variable_declaration.value.change" ]
313,619
313,620
u337448200
cpp
p02608
//#include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; const int MAX = 50; const int SIZE = 1e6; int main() { int n; cin >> n; vector<int> v(SIZE, 0); for (int i = 1; i <= MAX; ++i) { for (int j = ...
//#include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; const int MAX = 105; const int SIZE = 1e6; int main() { int n; cin >> n; vector<int> v(SIZE, 0); for (int i = 1; i <= MAX; ++i) { for (int j =...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.branch.if.condition.change" ]
313,617
313,621
u337448200
cpp
p02608
//#include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; const int MAX = 50; const int SIZE = 1e6; int main() { int n; cin >> n; vector<int> v(SIZE, 0); for (int i = 1; i <= MAX; ++i) { for (int j = ...
//#include <bits/stdc++.h> #include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; const int MAX = 105; const int SIZE = 1e6; int main() { int n; cin >> n; vector<int> v(SIZE, 0); for (int i = 1; i <= MAX; ++i) { for (int j =...
[ "literal.number.change", "variable_declaration.value.change" ]
313,619
313,621
u337448200
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; map<int, int> f; for (int i = 0; i <= 100; i++) { for (int j = 0; j <= 100; j++) { for (int k = 0; k <= 100; k++) { f[i * i + j * j + k * k + i * j + j * k + k * i]++; } } } for (int i = 1; i <= n; i++) {...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; map<int, int> f; for (int i = 1; i <= 100; i++) { for (int j = 1; j <= 100; j++) { for (int k = 1; k <= 100; k++) { f[i * i + j * j + k * k + i * j + j * k + k * i]++; } } } for (int i = 1; i <= n; i++) {...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
313,629
313,630
u523698212
cpp
p02608
// Radhe Radhe #include <bits/stdc++.h> #define godspeed \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define mod 100000000...
// Radhe Radhe #include <bits/stdc++.h> #define godspeed \ ios_base::sync_with_stdio(false); \ cin.tie(0); \ cout.tie(0); #define mod 100000000...
[ "expression.operation.binary.add" ]
313,654
313,655
u465068976
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define ll long long int #define cs(ele) cout << ele << '\n' int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; vector<int> d(10050, 0); for (int i = 1; i <= 105; i++) { for (int j = 1; j <= 105; j++) { for (int k = 1; k <= 105; k++) {...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define cs(ele) cout << ele << '\n' int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; vector<int> d(10050, 0); for (int i = 1; i <= 105; i++) { for (int j = 1; j <= 105; j++) { for (int k = 1; k <= 105; k++) {...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
313,656
313,657
u117618886
cpp
p02608
#include <algorithm> #include <iostream> #include <vector> #define rep(i, a, b) for (int i = a; i < b; i++) #define ll long long using namespace std; int main() { int n; cin >> n; vector<int> v(1001, 0); rep(x, 1, 101) { rep(y, 1, 101) { rep(z, 1, 101) { if (x * x + y * y + z * z + x * y + y ...
#include <algorithm> #include <iostream> #include <vector> #define rep(i, a, b) for (long long i = a; i < b; i++) #define ll long long using namespace std; int main() { int n; cin >> n; vector<ll> v(10000, 0); rep(x, 1, 101) { rep(y, 1, 101) { rep(z, 1, 101) { if (x * x + y * y + z * z + x * ...
[ "preprocessor.define.value.change", "literal.number.change", "call.arguments.change", "control_flow.branch.if.condition.change" ]
313,662
313,663
u841702632
cpp
p02608
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { int ans = 0; for (int x = 1; x * x + x < i; x++) for (int y = 1; x * x + y * y + x * y + y + x + 1 < i; y++) for (int z = 1; x * x + y * y + z * z + x * (y + z) + y * z < i; z++) ...
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { int ans = 0; for (int x = 1; x * x + x <= i; x++) for (int y = 1; x * x + y * y + x * y + y + x + 1 <= i; y++) for (int z = 1; x * x + y * y + z * z + x * (y + z) + y * z <= i; z++) ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
313,669
313,670
u688286816
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define ll long long #define int ll #define fr(i, a, b) for (int i = a; i < b; i++) #define frr(i, a, b) for (int i = b - 1; i >= a; i--) #define mod 1000000007 #define pb push_back #define son \ ll t; ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define int ll #define fr(i, a, b) for (int i = a; i < b; i++) #define frr(i, a, b) for (int i = b - 1; i >= a; i--) #define mod 1000000007 #define pb push_back #define son \ ll t; ...
[ "literal.number.change", "call.arguments.change" ]
313,676
313,677
u825793517
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define ll long long #define int ll #define fr(i, a, b) for (int i = a; i < b; i++) #define frr(i, a, b) for (int i = b - 1; i >= a; i--) #define mod 1000000007 #define pb push_back #define son \ ll t; ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define int ll #define fr(i, a, b) for (int i = a; i < b; i++) #define frr(i, a, b) for (int i = b - 1; i >= a; i--) #define mod 1000000007 #define pb push_back #define son \ ll t; ...
[ "literal.number.change", "call.arguments.change" ]
313,678
313,677
u825793517
cpp
p02608
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author */ // Created by White Knife on 15/04/20. // doot diddly donger cuckerino Hahahahahah #pragma GCC optimize("O3") #pragma GCC target("sse4") #pragma GCC target("popcnt") #include <bits/stdc++.h> #include <ext/pb_ds/as...
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author */ // Created by White Knife on 15/04/20. // doot diddly donger cuckerino Hahahahahah #pragma GCC optimize("O3") #pragma GCC target("sse4") #pragma GCC target("popcnt") #include <bits/stdc++.h> #include <ext/pb_ds/as...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
313,679
313,680
u592758681
cpp
p02608
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author */ // Created by White Knife on 15/04/20. // doot diddly donger cuckerino Hahahahahah #pragma GCC optimize("O3") #pragma GCC target("sse4") #pragma GCC target("popcnt") #include <bits/stdc++.h> #include <ext/pb_ds/as...
/** * code generated by JHelper * More info: https://github.com/AlexeyDmitriev/JHelper * @author */ // Created by White Knife on 15/04/20. // doot diddly donger cuckerino Hahahahahah #pragma GCC optimize("O3") #pragma GCC target("sse4") #pragma GCC target("popcnt") #include <bits/stdc++.h> #include <ext/pb_ds/as...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
313,681
313,682
u592758681
cpp
p02608
#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 MOD 1000000007 #define ll long long int #define pair <ll, ll> pi //#define vector <ll> vi #define F first #define S second #define PB push_back #define MP make_...
#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 MOD 1000000007 #define ll long long int #define pair <ll, ll> pi //#define vector <ll> vi #define F first #define S second #define PB push_back #define MP make_...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
313,699
313,700
u905675046
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) int main() { int n; cin >> n; vector<int> ans(n + 1); for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { int s = x * x + y * y + z * z + x * y + y * z + z...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) int main() { int n; cin >> n; vector<int> ans(n + 1); for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { int s = x * x + y * y + z * z + x * y + y * z + z...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
313,701
313,702
u350308906
cpp
p02608
#include <iostream> using namespace std; int main() { int N, x, y, z, i; cin >> N; int count[1000000]; for (i = 1; i <= N; i++) { count[i] = 0; } for (x = 1; x <= N; ++x) { for (y = 1; y <= N; ++y) { for (z = 1; z <= N; ++z) { count[x * x + y * y + z * z + x * y + x * z + y * z]++; ...
#include <iostream> using namespace std; int main() { int N, x, y, z, i; cin >> N; int count[1000000]; for (i = 1; i <= N; i++) { count[i] = 0; } for (x = 1; x <= 100; ++x) { for (y = 1; y <= 100; ++y) { for (z = 1; z <= 100; ++z) { count[x * x + y * y + z * z + x * y + x * z + y * z]...
[ "identifier.replace.remove", "literal.replace.add", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
313,712
313,713
u179181959
cpp
p02608
#define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (int)(n); i++) #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> ans(n + 1); for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { int m = x * x + y ...
#define _GLIBCXX_DEBUG #define rep(i, n) for (int i = 0; i < (int)(n); i++) #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> ans(n + 1); for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { int m = x * x + y ...
[ "expression.operation.binary.add" ]
313,714
313,715
u867826040
cpp
p02608
#include <bits/stdc++.h> #include <iostream> #define rep(i, n) for (int i = 0; i < n; ++i) #define rrep(i, n) for (int i = n - 1; i >= 0; --i) #define yesno(flg) \ if (flg) { \ cout << "YE...
#include <bits/stdc++.h> #include <iostream> #define rep(i, n) for (int i = 0; i < n; ++i) #define rrep(i, n) for (int i = n - 1; i >= 0; --i) #define yesno(flg) \ if (flg) { \ cout << "YE...
[ "literal.number.change", "variable_declaration.array_dimensions.change" ]
313,720
313,721
u591824072
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define ALL(v) v.begin(), v.end() #define V vector #define P pair typedef long double ld; typedef long long ll; const int MOD = 1000000007; const int IINF = INT_MAX; const ll INF = 1LL << 60; int main() { int n; cin >> n; V<int> ans(1050); for (int x = 1; x <= 10...
#include <bits/stdc++.h> using namespace std; #define ALL(v) v.begin(), v.end() #define V vector #define P pair typedef long double ld; typedef long long ll; const int MOD = 1000000007; const int IINF = INT_MAX; const ll INF = 1LL << 60; int main() { int n; cin >> n; V<int> ans(10050); for (int x = 1; x <= 1...
[ "literal.number.change", "call.arguments.change", "control_flow.branch.if.condition.change" ]
313,725
313,726
u651235280
cpp
p02608
#define _USE_MATH_DEFINES #include <algorithm> #include <array> #include <bitset> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map...
#define _USE_MATH_DEFINES #include <algorithm> #include <array> #include <bitset> #include <cfloat> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <limits> #include <list> #include <map...
[ "assignment.change" ]
313,736
313,737
u917944707
cpp
p02608
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <stdio.h> #include <string> #include <vector> int main(void) { int n; long long s; std::cin >> n; std::vector<int> f(10100); for (int x = 1; x <= 110; x++) { for (int y = 1; y <= 110; y++) { for (in...
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <stdio.h> #include <string> #include <vector> int main(void) { int n; long long s; std::cin >> n; std::vector<int> f(1000500); for (int x = 1; x <= 102; x++) { for (int y = 1; y <= 102; y++) { for (...
[ "literal.number.change", "call.arguments.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
313,740
313,741
u189752633
cpp
p02608
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <stdio.h> #include <string> #include <vector> int main(void) { int n; long long s; std::cin >> n; std::vector<int> f(10010); for (int x = 1; x <= n; x++) { for (int y = 1; y <= n; y++) { for (int z ...
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <stdio.h> #include <string> #include <vector> int main(void) { int n; long long s; std::cin >> n; std::vector<int> f(1000500); for (int x = 1; x <= 102; x++) { for (int y = 1; y <= 102; y++) { for (...
[ "literal.number.change", "call.arguments.change", "identifier.replace.remove", "literal.replace.add", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
313,742
313,741
u189752633
cpp
p02608
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <stdio.h> #include <string> #include <vector> int main(void) { int n; long long s; std::cin >> n; std::vector<int> f(10000); for (int x = 1; x <= n; x++) { for (int y = 1; y <= n; y++) { for (int z ...
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <numeric> #include <stdio.h> #include <string> #include <vector> int main(void) { int n; long long s; std::cin >> n; std::vector<int> f(1000500); for (int x = 1; x <= 102; x++) { for (int y = 1; y <= 102; y++) { for (...
[ "literal.number.change", "call.arguments.change", "identifier.replace.remove", "literal.replace.add", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
313,743
313,741
u189752633
cpp
p02608
#include <bits/stdc++.h> #include <cmath> using namespace std; #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define REPS(i, s, n) for (int i = (s), i##_len = (n); i < i##_len; ++i) #define ALL(obj) (obj).begin(), (obj).end() #define sz(x) (int)(x).size() #define v(T) vector<T> #define VEC vecto...
#include <bits/stdc++.h> #include <cmath> using namespace std; #define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i) #define REPS(i, s, n) for (int i = (s), i##_len = (n); i < i##_len; ++i) #define ALL(obj) (obj).begin(), (obj).end() #define sz(x) (int)(x).size() #define v(T) vector<T> #define VEC vecto...
[ "identifier.change", "call.function.change", "expression.operation.binary.change", "call.arguments.add" ]
313,744
313,745
u090325904
cpp
p02608
#include <bits/stdc++.h> using namespace std; const int N = 1e4 + 5; int frr[N]; int main() { int n; cin >> n; int cnt = 0; for (int i = 1; i <= 50; i++) { for (int j = 1; j <= 50; j++) { for (int k = 1; k <= 50; k++) { long long p = (i * i) + (j * j) + (k * k) + (i * j) + (j * k) + (k * i...
#include <bits/stdc++.h> using namespace std; const int N = 1e4 + 5; int frr[N]; int main() { int n; cin >> n; int cnt = 0; for (int i = 1; i <= 100; i++) { for (int j = 1; j <= 100; j++) { for (int k = 1; k <= 100; k++) { long long p = (i * i) + (j * j) + (k * k) + (i * j) + (j * k) + (k ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
313,750
313,751
u837843177
cpp
p02608
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() using namespace std; using ll = long long; using P = pair<ll, ll>; const string ln = "\n"; constexpr int INF = 1001001001; constexpr int MOD = 1000000007; vector<ll> d(1000000); void prep() { for (int x = 1; x <= ...
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() using namespace std; using ll = long long; using P = pair<ll, ll>; const string ln = "\n"; constexpr int INF = 1001001001; constexpr int MOD = 1000000007; vector<ll> d(1000000); void prep() { for (int x = 1; x <= ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
313,762
313,763
u996290370
cpp
p02608
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() using namespace std; using ll = long long; using P = pair<ll, ll>; const string ln = "\n"; constexpr int INF = 1001001001; constexpr int MOD = 1000000007; vector<ll> d(1000000); void prep() { for (int x = 1; x <= ...
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() using namespace std; using ll = long long; using P = pair<ll, ll>; const string ln = "\n"; constexpr int INF = 1001001001; constexpr int MOD = 1000000007; vector<ll> d(1000000); void prep() { for (int x = 1; x <= ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
313,765
313,763
u996290370
cpp
p02608
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() using namespace std; using ll = long long; using P = pair<ll, ll>; const string ln = "\n"; constexpr int INF = 1001001001; constexpr int MOD = 1000000007; vector<ll> d(1000000); ll prep() { for (int x = 1; x <= 10...
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() using namespace std; using ll = long long; using P = pair<ll, ll>; const string ln = "\n"; constexpr int INF = 1001001001; constexpr int MOD = 1000000007; vector<ll> d(1000000); void prep() { for (int x = 1; x <= ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
313,766
313,763
u996290370
cpp
p02608
#include <algorithm> #include <bitset> #include <climits> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; using ll = long long int; const ll MOD = 1e9 + 5; ll mod_pow(ll k, ll p) { if (k == 0) { return 1 % p; } if (k == 1) { return 2 % p; } if (k % 2 == 0...
#include <algorithm> #include <bitset> #include <climits> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; using ll = long long int; const ll MOD = 1e9 + 5; ll mod_pow(ll k, ll p) { if (k == 0) { return 1 % p; } if (k == 1) { return 2 % p; } if (k % 2 == 0...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
313,767
313,768
u789199225
cpp
p02608
#include <bits/stdc++.h> using namespace std; using ull = unsigned long long; using i64 = int64_t; using u64 = uint64_t; using u32 = uint32_t; #define CPP_STR(x) CPP_STR_I(x) #define CPP_CAT(x, y) CPP_CAT_I(x, y) #define CPP_STR_I(args...) #args #define CPP_CAT_I(x, y) x##y constexpr int64_t MOD = 1000000007LL; #def...
#include <bits/stdc++.h> using namespace std; using ull = unsigned long long; using i64 = int64_t; using u64 = uint64_t; using u32 = uint32_t; #define CPP_STR(x) CPP_STR_I(x) #define CPP_CAT(x, y) CPP_CAT_I(x, y) #define CPP_STR_I(args...) #args #define CPP_CAT_I(x, y) x##y constexpr int64_t MOD = 1000000007LL; #def...
[ "identifier.change", "call.function.change", "call.arguments.add" ]
313,772
313,773
u185034753
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { int n; cin >> n; vector<int> dp(10050, 0); for (int i = 1; i < 106; i++) { for (int j = 1; j < 106; j++) { for (int k = 1; k < 106; k++) { int temp = i * i + j * j + k * k + i * j + j * k + k * i; i...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; int main() { int n; cin >> n; vector<int> dp(10050, 0); for (int i = 1; i < 106; i++) { for (int j = 1; j < 106; j++) { for (int k = 1; k < 106; k++) { int temp = i * i + j * j + k * k + i * j + j * k + k * i; i...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change", "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
313,774
313,775
u618433411
cpp
p02608
#include <bits/stdc++.h> #define ll long long #define ld long double #define dbg(x) cout << #x << ": " << x << "\n"; using namespace std; #define inf 1e9 + 7 #define PI 3.14159265358979323846264338327950L #define pii pair<ll, ll> const int mx = 1e4 + 2; int ans[mx]; int main() { ios_base::sync_with_stdio(0); cin.t...
#include <bits/stdc++.h> #define ll long long #define ld long double #define dbg(x) cout << #x << ": " << x << "\n"; using namespace std; #define inf 1e9 + 7 #define PI 3.14159265358979323846264338327950L #define pii pair<ll, ll> const int mx = 1e4 + 2; int ans[mx]; int main() { ios_base::sync_with_stdio(0); cin.t...
[ "expression.operation.binary.add" ]
313,784
313,785
u645507769
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define MN 10001 int arr[MN]; int main() { int n; cin >> n; for (int i = 1; i < MN; i++) { int r = i * i; if (r > n) break; for (int j = 1; j <= i; j++) { int r1 = r + j * j; if (r1 > n) break; for (int k = 1; k <= j; k+...
#include <bits/stdc++.h> using namespace std; #define MN 10001 int arr[MN]; int main() { int n; cin >> n; for (int i = 1; i < MN; i++) { int r = i * i; if (r > n) break; for (int j = 1; j <= i; j++) { int r1 = r + j * j; if (r1 > n) break; for (int k = 1; k <= j; k+...
[ "assignment.value.change" ]
313,786
313,787
u201326295
cpp
p02608
#include <algorithm> #include <cstdio> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; typedef long long int ll; typedef long double ld; #define rep(i, n) for (int i = 0; i < (n); ++i) #define Sort(Array) sort(Array.begin(), Ar...
#include <algorithm> #include <cstdio> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; typedef long long int ll; typedef long double ld; #define rep(i, n) for (int i = 0; i < (n); ++i) #define Sort(Array) sort(Array.begin(), Ar...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
313,807
313,808
u090091127
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef unsigned long long ull; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef pair<double, double> pdd; typedef vector<ll> vl; typedef vector<vector<ll>> vvl; // typedef vector<vector<ll>> Graph; const ll mod = 1e9 + 7; // const ll mo...
#include <bits/stdc++.h> using namespace std; typedef unsigned long long ull; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef pair<double, double> pdd; typedef vector<ll> vl; typedef vector<vector<ll>> vvl; // typedef vector<vector<ll>> Graph; const ll mod = 1e9 + 7; // const ll mo...
[ "literal.number.change", "call.arguments.change", "control_flow.branch.if.condition.change" ]
313,809
313,810
u895971408
cpp
p02608
#include <bits/stdc++.h> //#include <boost/multiprecision/cpp_int.hpp> // using namespace boost::multiprecision; #define speed \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> //#include <boost/multiprecision/cpp_int.hpp> // using namespace boost::multiprecision; #define speed \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[ "expression.operation.compare.replace.remove", "assignment.replace.add", "misc.typo", "control_flow.branch.if.condition.change" ]
313,811
313,812
u451936793
cpp
p02608
#include <bits/stdc++.h> //#include <boost/multiprecision/cpp_int.hpp> // using namespace boost::multiprecision; #define speed \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> //#include <boost/multiprecision/cpp_int.hpp> // using namespace boost::multiprecision; #define speed \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[ "control_flow.branch.if.add" ]
313,813
313,812
u451936793
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define int long long const int INF = 1e9 + 7; int n, x, y, z, i; signed main() { ios_base::sync_with_stdio(false); cin.tie(0); cin >> n; int m = sqrt(10 + n); vector<int> out(n + 1, 0); int ctr = 0; for (x = 1; x <= m + 1; x++) { for (y = 1; y <= m ...
#include <bits/stdc++.h> using namespace std; #define int long long const int INF = 1e9 + 7; int n, x, y, z, i; signed main() { ios_base::sync_with_stdio(false); cin.tie(0); cin >> n; int m = sqrt(10 + n); vector<int> out(n + 1, 0); int ctr = 0; for (x = 1; x < m + 1; x++) { for (y = 1; y < m + ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "expression.operation.binary.remove" ]
313,814
313,815
u122878331
cpp
p02608
#include <bits/stdc++.h> using namespace std; int v[20000]; int main() { int n; scanf("%d", &n); for (int i = 0; i < 105; i++) { for (int j = 0; j < 105; j++) { for (int k = 0; k < 105; k++) { int t = i * i + j * j + k * k + i * j + j * k + k * i; if (t < 10050) v[t]++; }...
#include <bits/stdc++.h> using namespace std; int v[20000]; int main() { int n; scanf("%d", &n); for (int i = 1; i < 105; i++) { for (int j = 1; j < 105; j++) { for (int k = 1; k < 105; k++) { int t = i * i + j * j + k * k + i * j + j * k + k * i; if (t < 10050) v[t]++; }...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
313,821
313,822
u501130777
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using ll = long long; int main() { vector<int> a(1000000000); int n; cin >> n; for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { a[x * x + y * y +...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) using ll = long long; int main() { vector<int> a(1000000); int n; cin >> n; for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { a[x * x + y * y + z ...
[ "literal.number.change", "call.arguments.change" ]
313,823
313,824
u796273093
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; const int N = 2e5 + 10, mod = 1e9 + 7; int32_t main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin >> n; int ans[n + 1]; memset(ans, 0, sizeof(ans)); for (int i = 1; i <= 100; i+...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; const int N = 2e5 + 10, mod = 1e9 + 7; int32_t main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin >> n; int ans[n + 1]; memset(ans, 0, sizeof(ans)); for (int i = 1; i <= 100; i+...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
313,827
313,828
u733809893
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N, x, y, z, cnt; cin >> N; int C[10010]; for (x = 1; x <= 100; x++) { for (y = 1; y <= 100; y++) { for (z = 1; (x * x + y * y + z * z + x * y + x * z + y * z) <= 10000; z++) { C[x * x + y * y + z * z + x * y + x * z + ...
#include <bits/stdc++.h> using namespace std; int main() { int N, x, y, z, cnt; cin >> N; int C[10100] = {}; for (x = 1; x <= 100; x++) { for (y = 1; y <= 100; y++) { for (z = 1; (x * x + y * y + z * z + x * y + x * z + y * z) <= 10010; z++) { C[x * x + y * y + z * z + x * y + x *...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "variable_declaration.value.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
313,831
313,832
u469315559
cpp
p02608
#include "bits/stdc++.h" using namespace std; // wierd debugging stuff #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; // wierd debugging stuff #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<<( ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "call.arguments.change" ]
313,837
313,838
u161309389
cpp
p02608
#include <bits/stdc++.h> #include <sys/types.h> #include <unistd.h> #define _USE_MATH_DEFINES #define ll long long int using namespace std; // mp.reserve(1024); // mp.max_load_factor(0.25); bool sortit(const pair<ll, ll> &a, const pair<ll, ll> &b) { return (a.first - a.second > b.first - b.second); } int main() { ...
#include <bits/stdc++.h> #include <sys/types.h> #include <unistd.h> #define _USE_MATH_DEFINES #define ll long long int using namespace std; // mp.reserve(1024); // mp.max_load_factor(0.25); bool sortit(const pair<ll, ll> &a, const pair<ll, ll> &b) { return (a.first - a.second > b.first - b.second); } int main() { ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change" ]
313,841
313,842
u467398838
cpp
p02608
#include <cmath> #include <iostream> using namespace std; int main() { int n; cin >> n; int a[10000]; for (int i = 1; i <= 100; i++) { for (int j = 1; j <= 100; j++) { for (int k = 1; k <= 100; k++) { int l = pow(i, 2) + pow(j, 2) + pow(k, 2) + i * j + j * k + k * i; if (l < 10001) ...
#include <cmath> #include <iostream> using namespace std; int main() { int n; cin >> n; int a[10005] = {}; for (int i = 1; i <= 100; i++) { for (int j = 1; j <= 100; j++) { for (int k = 1; k <= 100; k++) { int l = pow(i, 2) + pow(j, 2) + pow(k, 2) + i * j + j * k + k * i; if (l < 10001...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "variable_declaration.value.change" ]
313,849
313,848
u056912761
cpp
p02608
#include "math.h" #include <algorithm> #include <cmath> #include <fstream> #include <functional> #include <iostream> #include <map> #include <numeric> #include <string> #include <vector> using namespace std; int t; const int N = 10001; int arr[N]; int main() { ios::sync_with_stdio(0); cin.tie(0); for (int i = 0...
#include "math.h" #include <algorithm> #include <cmath> #include <fstream> #include <functional> #include <iostream> #include <map> #include <numeric> #include <string> #include <vector> using namespace std; int t; const int N = 10001; int arr[N]; int main() { ios::sync_with_stdio(0); cin.tie(0); for (int i = 0...
[ "variable_declaration.value.change", "identifier.replace.remove", "literal.replace.add", "control_flow.loop.for.initializer.change" ]
313,852
313,853
u794066762
cpp
p02608
#include "math.h" #include <algorithm> #include <cmath> #include <fstream> #include <functional> #include <iostream> #include <map> #include <numeric> #include <string> #include <vector> using namespace std; int t; const int N = 1000; int arr[N]; int main() { ios::sync_with_stdio(0); cin.tie(0); for (int i = 0...
#include "math.h" #include <algorithm> #include <cmath> #include <fstream> #include <functional> #include <iostream> #include <map> #include <numeric> #include <string> #include <vector> using namespace std; int t; const int N = 10001; int arr[N]; int main() { ios::sync_with_stdio(0); cin.tie(0); for (int i = ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "call.arguments.change", "expression.operation.binary.change" ]
313,854
313,855
u794066762
cpp
p02608
#include <bits/stdc++.h> #include <string.h> #define pb push_back #define all(v) v.rbegin(), v.rend() #define see(x) cout << #x << " : " << (x) << endl; #define ya cout << "YES" << endl; #define no cout << "NO" << endl; #define ff first #define sc second #define pi 3.14159265359 typedef long long ll; using namespace st...
#include <bits/stdc++.h> #include <string.h> #define pb push_back #define all(v) v.rbegin(), v.rend() #define see(x) cout << #x << " : " << (x) << endl; #define ya cout << "YES" << endl; #define no cout << "NO" << endl; #define ff first #define sc second #define pi 3.14159265359 typedef long long ll; using namespace st...
[ "assignment.value.change", "identifier.replace.remove", "literal.replace.add", "control_flow.loop.for.initializer.change" ]
313,856
313,857
u933652811
cpp
p02608
#include <bits/stdc++.h> #include <iostream> using namespace std; #define int long long #define double long double #define endl "\n" #define pb push_back #define PI 3.1415926535897932384626433832795l #define F first #define S second #define mp make_pair #define f(i, n) for (int i = 0; i < n; i++) #define fastio ...
#include <bits/stdc++.h> #include <iostream> using namespace std; #define int long long #define double long double #define endl "\n" #define pb push_back #define PI 3.1415926535897932384626433832795l #define F first #define S second #define mp make_pair #define f(i, n) for (int i = 0; i < n; i++) #define fastio ...
[ "literal.number.change", "variable_declaration.array_dimensions.change" ]
313,860
313,861
u858929490
cpp
p02608
#include <bits/stdc++.h> #include <iostream> using namespace std; #define int long long #define double long double #define endl "\n" #define pb push_back #define PI 3.1415926535897932384626433832795l #define F first #define S second #define mp make_pair #define f(i, n) for (int i = 0; i < n; i++) #define fastio ...
#include <bits/stdc++.h> #include <iostream> using namespace std; #define int long long #define double long double #define endl "\n" #define pb push_back #define PI 3.1415926535897932384626433832795l #define F first #define S second #define mp make_pair #define f(i, n) for (int i = 0; i < n; i++) #define fastio ...
[ "literal.number.change", "variable_declaration.array_dimensions.change" ]
313,860
313,862
u858929490
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; #define int ll const ll mod = 1e9 + 7; int n; int ans[1001]; main() { cin >> n; for (int x = 1; x <= 101; x++) { for (int y = 1; y <= 101; y++) { for (int z = 1; z <= 101; z++) { int t = x * x + y ...
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; #define int ll const ll mod = 1e9 + 7; int n; int ans[10001]; main() { cin >> n; for (int x = 1; x <= 101; x++) { for (int y = 1; y <= 101; y++) { for (int z = 1; z <= 101; z++) { int t = x * x + y...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "control_flow.branch.if.condition.change" ]
313,873
313,874
u790614328
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N; vector<int> igarashi(N); for (int i = 1; i < sqrt(N); i++) { for (int j = 1; j < sqrt(N); j++) { for (int k = 1; k < sqrt(N); k++) { int kyoko = i * i + j * j + k * k + i * j + j * k + k * i; if (kyoko <= N) { ...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<int> igarashi(N); for (int i = 1; i < sqrt(N); i++) { for (int j = 1; j < sqrt(N); j++) { for (int k = 1; k < sqrt(N); k++) { int kyoko = i * i + j * j + k * k + i * j + j * k + k * i; if (kyoko <= N) ...
[]
313,877
313,878
u843572674
cpp
p02608
#include "bits/stdc++.h" using namespace std; typedef long double ld; #define int long long typedef pair<int, int> pii; #define RAGE \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include "bits/stdc++.h" using namespace std; typedef long double ld; #define int long long typedef pair<int, int> pii; #define RAGE \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
313,884
313,885
u394178228
cpp
p02608
#pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef unsigned long long int ull; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef vector<int> vi; typedef vector<ll> vll; typedef vector<pii> vpii; typedef vector<pll> vpll; #de...
#pragma GCC optimize("O3") #include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef unsigned long long int ull; typedef long double ld; typedef pair<int, int> pii; typedef pair<ll, ll> pll; typedef vector<int> vi; typedef vector<ll> vll; typedef vector<pii> vpii; typedef vector<pll> vpll; #de...
[ "variable_declaration.type.change", "literal.number.change", "variable_declaration.array_dimensions.change", "call.remove" ]
313,896
313,897
u740800156
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<int> ans(N + 1); for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { int s = x * x + y * y + z * z + x * y + y * z + z * x; if (s > N) { continu...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<int> ans(N + 1); for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { int s = x * x + y * y + z * z + x * y + y * z + z * x; if (s > N) { continu...
[]
313,898
313,899
u714624983
cpp
p02608
#include <iostream> namespace NS20200711Acing { class XYZtriplets final { public: XYZtriplets() = default; ~XYZtriplets() = default; public: void Run() { Input(); Calc(); Output(); } void Input() { std::cin >> m_N; } void Calc() { int max_k = 0; for (int i = 1; i < m_N; ++i) { ...
#include <iostream> namespace NS20200711Acing { class XYZtriplets final { public: XYZtriplets() = default; ~XYZtriplets() = default; public: void Run() { Input(); Calc(); Output(); } void Input() { std::cin >> m_N; } void Calc() { int max_k = 0; for (int i = 1; i < m_N; ++i) { ...
[ "literal.number.change" ]
313,912
313,913
u111531073
cpp
p02608
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; int main() { int n; cin >> n; vector<int> ans(n + 1, 0); for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { int sum = x * x + y * y + z * z + x * y + y * ...
#include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<ll, ll>; int main() { int n; cin >> n; vector<int> ans(1e5, 0); for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { int sum = x * x + y * y + z * z + x * y + y * z ...
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
313,918
313,919
u020239256
cpp
p02603
#include <algorithm> #include <iomanip> // std::setprecision() #include <iostream> #include <map> #include <math.h> #include <queue> #include <string> #include <utility> #include <vector> using namespace std; using ll = long long; #define rep(i, a, b) for (ll i = (a); i < (b); i++) #define YES cout << "YES" << endl; #d...
#include <algorithm> #include <iomanip> // std::setprecision() #include <iostream> #include <map> #include <math.h> #include <queue> #include <string> #include <utility> #include <vector> using namespace std; using ll = long long; #define rep(i, a, b) for (ll i = (a); i < (b); i++) #define YES cout << "YES" << endl; #d...
[ "variable_declaration.type.change", "assignment.change", "control_flow.return.add", "control_flow.return.0.add" ]
313,936
313,935
u607564800
cpp
p02603
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int INF = 1e9; const int MOD = 1e9 + 7; const ll LINF = 1e18; int main() { ll n; cin >> n; vector<ll> a(n); for (ll i = 0; i < n; ++i) { cin >> a[i]; } ll ans = 1000; ll kabu = 0; for (ll i = 0; i < n - 1; ++i) { if (...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const int INF = 1e9; const int MOD = 1e9 + 7; const ll LINF = 1e18; int main() { ll n; cin >> n; vector<ll> a(n); for (ll i = 0; i < n; ++i) { cin >> a[i]; } ll ans = 1000; ll kabu = 0; for (ll i = 0; i < n - 1; ++i) { if (...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
313,943
313,944
u701556979
cpp
p02603
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "trace.h" #else #define trace(args...) #endif using ll = long long; using ld = long double; using pii = pair<int, int>; using vi = vector<int>; #define mp make_pair #define ub upper_bound #define lb lower_bound #define fi first #define se second #defi...
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "trace.h" #else #define trace(args...) #endif using ll = long long; using ld = long double; using pii = pair<int, int>; using vi = vector<int>; #define mp make_pair #define ub upper_bound #define lb lower_bound #define fi first #define se second #defi...
[ "assignment.change", "expression.operation.binary.remove" ]
313,955
313,956
u184162832
cpp
p02603
#include <bits/stdc++.h> using namespace std; int main(void) { int stock = 0, money = 1000, n, a[80]; cin >> n; for (int i = 0; i < n; i++) cin >> a[i]; for (int i = 0; i < n - 1; i++) { if (a[i] < a[i + 1]) { // buy all stock = money / a[i]; money %= a[i]; } else if (a[i] > a[i +...
#include <bits/stdc++.h> using namespace std; int main(void) { long long int stock = 0, money = 1000, n, a[80]; cin >> n; for (int i = 0; i < n; i++) cin >> a[i]; for (int i = 0; i < n - 1; i++) { if (a[i] < a[i + 1]) { // buy all stock += money / a[i]; money %= a[i]; } else if (a...
[ "assignment.value.change" ]
313,966
313,965
u776221083
cpp
p02603
#include <iostream> #include <stdio.h> //#include <bits/stdc++.h> #include <algorithm> #include <cassert> #include <cmath> #include <cstdint> #include <cstring> #include <float.h> #include <iomanip> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <string> #include <vector> ...
#include <iostream> #include <stdio.h> //#include <bits/stdc++.h> #include <algorithm> #include <cassert> #include <cmath> #include <cstdint> #include <cstring> #include <float.h> #include <iomanip> #include <map> #include <math.h> #include <queue> #include <set> #include <sstream> #include <string> #include <vector> ...
[ "assignment.value.change" ]
314,009
314,010
u516525290
cpp
p02603
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repr(i, a, b) for (int i = a; i < b; i++) #define all(x) (x).begin(), (x).end() // 昇順ソート #define rall(v) (v).rbegin(), (v).rend() // 降順ソート #define FastIO ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0) ty...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define repr(i, a, b) for (int i = a; i < b; i++) #define all(x) (x).begin(), (x).end() // 昇順ソート #define rall(v) (v).rbegin(), (v).rend() // 降順ソート #define FastIO ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0) ty...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "expression.operator.compare.change" ]
314,013
314,014
u084949493
cpp
p02603
#include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; vector<int> a(n); vector<int> aa(n - 1); for (int i = 0; i < n; i++) { cin >> a[i]; } for (int i = 0; i < n - 1; i++) { if (a[i + 1] > a[i]) { aa[i] = 1; } else if (a[i + 1] == a[i]) { aa[i...
#include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; vector<int> a(n); vector<int> aa(n - 1); for (int i = 0; i < n; i++) { cin >> a[i]; } for (int i = 0; i < n - 1; i++) { if (a[i + 1] > a[i]) { aa[i] = 1; } else if (a[i + 1] == a[i]) { aa[i...
[ "variable_declaration.type.primitive.change", "variable_declaration.type.widen.change", "assignment.value.change" ]
314,050
314,049
u994074033
cpp
p02603
#include <bits/stdc++.h> using namespace std; #define ll long long const char newl = '\n'; //***---***---***---Useless Code---***---***---***// template <class T> void read(T &t) { cin >> t; } template <class A, class... B> void read(A &a, B &...b) { read(a); read(b...); } template <class T> void read(vector<T> ...
#include <bits/stdc++.h> using namespace std; #define ll long long const char newl = '\n'; //***---***---***---Useless Code---***---***---***// template <class T> void read(T &t) { cin >> t; } template <class A, class... B> void read(A &a, B &...b) { read(a); read(b...); } template <class T> void read(vector<T> ...
[ "variable_declaration.type.change", "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
314,102
314,101
u741275170
cpp
p02603
//#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) v.begin(), v.end() #define allr(v) v.rbegin(), v.rend() vector<int> dx = {-1, -1, -1, 0, 0, 1, 1, 1}; vector<int> dy = {-1, 0, 1, -1, 1, -...
//#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; using ll = long long; using P = pair<int, int>; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(v) v.begin(), v.end() #define allr(v) v.rbegin(), v.rend() vector<int> dx = {-1, -1, -1, 0, 0, 1, 1, 1}; vector<int> dy = {-1, 0, 1, -1, 1, -...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
314,109
314,110
u168684371
cpp
p02603
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long; using namespace std; using P = pair<int, int>; int main() { int m = 1000; int n; cin >> n; vector<int> a(n); for (int i = 1; i <= n; i++) { cin >> a[i]; } for (int i = 1; i <= n - 1; i++) { ll s = 0; ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using ll = long long; using namespace std; using P = pair<int, int>; int main() { ll m = 1000; ll n; cin >> n; vector<ll> a(87); for (int i = 1; i <= n; i++) { cin >> a[i]; } for (int i = 1; i <= n - 1; i++) { ll s = 0; ...
[ "variable_declaration.type.change" ]
314,142
314,143
u977879365
cpp
p02603
#include <bits/stdc++.h> #include <cctype> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ll long long int #define ld long double #define PRY cout << "YES\n" #define PRN cout << "NO\n" #define SETP(sp) fixed << setprecision(sp) #define PB push_back #define GO ...
#include <bits/stdc++.h> #include <cctype> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #define ll long long int #define ld long double #define PRY cout << "YES\n" #define PRN cout << "NO\n" #define SETP(sp) fixed << setprecision(sp) #define PB push_back #define GO ...
[ "assignment.change" ]
314,147
314,148
u232917796
cpp
p02603
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <string> using namespace std; int main() { int n; int t[101]; long long sum = 1000; long long f; scanf("%d %d", &n); for (int i = 1; i <= n; i++) scanf("%d", &t[i]); for (int i = 1; i < n; i++) { ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <string> using namespace std; int main() { int n; int t[101]; long long sum = 1000; long long f; scanf("%d", &n); for (int i = 1; i <= n; i++) scanf("%d", &t[i]); for (int i = 1; i < n; i++) { ...
[ "literal.string.change", "call.arguments.change" ]
314,160
314,161
u028342858
cpp
p02603
#include <bits/stdc++.h> using namespace std; #define ii(i, start, end, inc) for (int i = start; i < end; i += inc) #define dd(i, start, end, inc) for (int i = start; i > end; i -= inc) #define zz(i, n) for (int i = 0; i < n; ++i) #define pb push_back #define BHAAG ios_base::sync_with_stdio(false), cin.tie(0), cout.ti...
#include <bits/stdc++.h> using namespace std; #define ii(i, start, end, inc) for (int i = start; i < end; i += inc) #define dd(i, start, end, inc) for (int i = start; i > end; i -= inc) #define zz(i, n) for (int i = 0; i < n; ++i) #define pb push_back #define BHAAG ios_base::sync_with_stdio(false), cin.tie(0), cout.ti...
[]
314,173
314,174
u399759028
cpp
p02603
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll n; cin >> n; vector<ll> a(n); ll ans = 1000; for (int i = 0; i < n; ++i) cin >> a[i]; for (int i = 0; i < n; ++i) { ll s = 0; if (a[i] < a[i + 1]) s = ans / a[i]; ans += (a[i + 1] - a[i]) * s; } c...
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { ll n; cin >> n; vector<ll> a(n); ll ans = 1000; for (int i = 0; i < n; ++i) cin >> a[i]; for (int i = 0; i < n - 1; ++i) { ll s = 0; if (a[i] < a[i + 1]) s = ans / a[i]; ans += (a[i + 1] - a[i]) * s; }...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
314,192
314,193
u144029820
cpp
p02603
//---Vaidik Patel---// //-------------------Proud to be Indian--------------------------------// #include <bits/stdc++.h> using namespace std; #include <ext/pb_ds/assoc_container.hpp> // include the associative containers or group of templates such as set,multi multimap, map etc. #include <ext/pb_ds/tree_policy.hpp> //...
//---Vaidik Patel---// //-------------------Proud to be Indian--------------------------------// #include <bits/stdc++.h> using namespace std; #include <ext/pb_ds/assoc_container.hpp> // include the associative containers or group of templates such as set,multi multimap, map etc. #include <ext/pb_ds/tree_policy.hpp> //...
[ "control_flow.loop.for.condition.change", "misc.off_by_one" ]
314,203
314,204
u189101840
cpp
p02603
#include <bits/stdc++.h> #include <iomanip> #define fast \ { \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
#include <bits/stdc++.h> #include <iomanip> #define fast \ { \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
[]
314,217
314,218
u416759946
cpp
p02608
#include <bits/stdc++.h> #pragma GCC optimize("unroll-loops,no-stack-protector") #pragma GCC target("sse,sse2,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #define watch(x) cout << (#x) << " is " << (x) << endl #define debug cout << "hi" << endl using namespace std; typedef long long ll; typedef long double ld; typedef ...
#include <bits/stdc++.h> #pragma GCC optimize("unroll-loops,no-stack-protector") #pragma GCC target("sse,sse2,ssse3,sse4,popcnt,abm,mmx,avx,tune=native") #define watch(x) cout << (#x) << " is " << (x) << endl #define debug cout << "hi" << endl using namespace std; typedef long long ll; typedef long double ld; typedef ...
[ "literal.number.change", "call.arguments.change" ]
314,219
314,220
u633066470
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int n; vector<int> nos(n + 1, 0); for (int x = 1; x <= 100; x++) for (int y = 1; y <= 100; y++) for (int z = 1; z <= 100; z++) { int val = x * x + y * y + z * z + x * y + x * z + y * z; if (val > n) continue; el...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> nos(n + 1, 0); for (int x = 1; x <= 100; x++) for (int y = 1; y <= 100; y++) for (int z = 1; z <= 100; z++) { int val = x * x + y * y + z * z + x * y + x * z + y * z; if (val > n) continue...
[]
314,223
314,224
u004676431
cpp
p02608
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <vector> using namespace std; int main() { int N; cin >> N; vector<int64_t> f(N); for (int i = 0; i < N; i++) { f.at(i) = 0; } for (int j = 1; j < 101; j++) { for (int k = 1; k < 101; k++) { for (int l = 1; l < 101; l+...
#include <algorithm> #include <bits/stdc++.h> #include <iostream> #include <vector> using namespace std; int main() { int N; cin >> N; vector<int64_t> f(N); for (int i = 0; i < N; i++) { f.at(i) = 0; } for (int j = 1; j < 101; j++) { for (int k = 1; k < 101; k++) { for (int l = 1; l < 101; l+...
[ "assignment.change", "call.arguments.add" ]
314,225
314,226
u158677249
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N = 10010; vector<int> vec(N); int n; cin >> n; for (int i = 1; i * i < N; i++) { for (int j = 1; j * j < N; j++) { for (int k = 1; k * k < N; k++) { int a = i * i + j * j + k * k; int b = i * j + j * k + k * i; ...
#include <bits/stdc++.h> using namespace std; int main() { int N = 10010; vector<int> vec(N); int n; cin >> n; for (int i = 1; i * i < N; i++) { for (int j = 1; j * j < N; j++) { for (int k = 1; k * k < N; k++) { int a = i * i + j * j + k * k; int b = i * j + j * k + k * i; ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
314,227
314,228
u216112336
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N = 10010; vector<int> vec(N); int n; cin >> n; for (int i = 1; i * i > N; i++) { for (int j = 1; j * j > N; j++) { for (int k = 1; k * k > N; k++) { int a = i * i + j * j + k * k; int b = i * j + j * k + k * i; ...
#include <bits/stdc++.h> using namespace std; int main() { int N = 10010; vector<int> vec(N); int n; cin >> n; for (int i = 1; i * i < N; i++) { for (int j = 1; j * j < N; j++) { for (int k = 1; k * k < N; k++) { int a = i * i + j * j + k * k; int b = i * j + j * k + k * i; ...
[ "misc.opposites", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
314,229
314,228
u216112336
cpp
p02608
#include <bits/stdc++.h> #define rep(i, n) for (int i = (0); i < (n); ++i) #define rrep(i, n) for (int i = 1; i <= (n); ++i) #define drep(i, n) for (int i = (n)-1; i >= 0; --i) #define srep(i, s, t) for (int i = s; i < t; ++i) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define limit(...
#include <bits/stdc++.h> #define rep(i, n) for (int i = (0); i < (n); ++i) #define rrep(i, n) for (int i = 1; i <= (n); ++i) #define drep(i, n) for (int i = (n)-1; i >= 0; --i) #define srep(i, s, t) for (int i = s; i < t; ++i) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() #define limit(...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
314,236
314,237
u850516963
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> a(n + 1); for (int i = 1; i < 102; i++) for (int j = 1; j < 102; j++) for (int k = 1; k < 102; k++) { int s; s = i * i + j * j + k * k + i * j + j * k + k * i; if (s < n + 1) a.a...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> a(n + 1); for (int i = 1; i < 102; i++) for (int j = 1; j < 102; j++) for (int k = 1; k < 102; k++) { int s; s = i * i + j * j + k * k + i * j + j * k + k * i; if (s < n + 1) a.a...
[ "assignment.change" ]
314,247
314,248
u011837431
cpp
p02608
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; #define REP(i, n) for (ll i = 0; i < (n); ++i) #define RREP(i, n) for (ll i = (n)-1; i >= 0; --i) #define ALL(v) (v).begin(), (v).end() template <class T> using reverse_priority_queue = priority_queue<T, vector<T>, great...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ull = unsigned long long; #define REP(i, n) for (ll i = 0; i < (n); ++i) #define RREP(i, n) for (ll i = (n)-1; i >= 0; --i) #define ALL(v) (v).begin(), (v).end() template <class T> using reverse_priority_queue = priority_queue<T, vector<T>, great...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
314,249
314,250
u455757400
cpp
p02608
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; int f(int x, int y, int z) { return (x * x + y * y + z * z + x * y + y * z + z * x); } int main() { int n; cin >> n; int max = 100; int nt = 0; int ans[n] = {}; for (int x = 1; x <= max; x++) { for (int y ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); i++) using namespace std; int f(int x, int y, int z) { return (x * x + y * y + z * z + x * y + y * z + z * x); } int main() { int n; cin >> n; int max = 100; int nt = 0; int ans[n + 1] = {}; for (int x = 1; x <= max; x++) { for (in...
[ "variable_declaration.array_dimensions.change", "assignment.change" ]
314,251
314,252
u183685068
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> ans(1001); for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { int tmp = x * x + y * y + z * z + x * y + y * z + x * z; if (tmp <= 1000) ans...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> ans(10001); for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { int tmp = x * x + y * y + z * z + x * y + y * z + x * z; if (tmp <= 10000) a...
[ "literal.number.change", "call.arguments.change", "control_flow.branch.if.condition.change" ]
314,264
314,265
u232429509
cpp
p02608
#include <bits/stdc++.h> using namespace std; using ll = long long; ll goout(ll n) { ll count = 0; for (ll a = 1; a <= n; a++) { ll sub0 = (a * 3) * (a * 3) - (3 * a * a); if (sub0 > n) break; if (sub0 == n) count++; for (ll b = a + 1; b <= n; b++) { ll sub1 = (a + b + b) * (a + b...
#include <bits/stdc++.h> using namespace std; using ll = long long; ll goout(ll n) { ll count = 0; for (ll a = 1; a <= n; a++) { ll sub0 = (a * 3) * (a * 3) - (3 * a * a); if (sub0 > n) break; if (sub0 == n) count++; for (ll b = a + 1; b <= n; b++) { ll sub1 = (a + b + b) * (a + b...
[ "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" ]
314,266
314,267
u377061679
cpp
p02608
#include <bits/stdc++.h> using namespace std; using ll = long long; ll goout(ll n) { ll count = 0; for (ll a = 1; a <= n; a++) { ll sub0 = (a * 3) * (a * 3) - (3 * a); if (sub0 > n) break; if (sub0 == n) count++; for (ll b = a + 1; b <= n; b++) { ll sub1 = (a + b + b) * (a + b + b)...
#include <bits/stdc++.h> using namespace std; using ll = long long; ll goout(ll n) { ll count = 0; for (ll a = 1; a <= n; a++) { ll sub0 = (a * 3) * (a * 3) - (3 * a * a); if (sub0 > n) break; if (sub0 == n) count++; for (ll b = a + 1; b <= n; b++) { ll sub1 = (a + b + b) * (a + b...
[ "variable_declaration.type.change", "control_flow.loop.for.initializer.change" ]
314,268
314,267
u377061679
cpp
p02608
#include "bits/stdc++.h" #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define REP(i, n) for (int i = 1; i <= (int)(n); i++) #define all(v) v.begin(), v.end() using namespace std; using ll = long long; using pi = pair<int, int>; const ll INF = 1LL << 60; int main() { vector<int> a(41), b, c; int n; cin >...
#include "bits/stdc++.h" #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define REP(i, n) for (int i = 1; i <= (int)(n); i++) #define all(v) v.begin(), v.end() using namespace std; using ll = long long; using pi = pair<int, int>; const ll INF = 1LL << 60; int main() { vector<int> a(100), b, c; int n; cin ...
[ "literal.number.change", "call.arguments.change" ]
314,272
314,273
u730499268
cpp
p02608
#include <bits/stdc++.h> using namespace std; // #define int long long #define FOR(i, a, b) for (int i = (a); i <= (b); i++) #define rep(i, n) for (int i = 0; i < (n); i++) #define chmin(a, b) \ if ((a) > (b)) ...
#include <bits/stdc++.h> using namespace std; // #define int long long #define FOR(i, a, b) for (int i = (a); i <= (b); i++) #define rep(i, n) for (int i = 0; i < (n); i++) #define chmin(a, b) \ if ((a) > (b)) ...
[ "call.arguments.add" ]
314,283
314,284
u552847961
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef vector<int> vi; int main() { int n; cin >> n; vi cnt(n, 0); int c = sqrt(n) + 1; for (int x = 1; x <= c + 1; x++) { for (int y = 1; y <= c + 1; y++) { for (int z = 1; z <= c + 1; z++) { if (x * x + y * y + z * z + x * y + y * z + z * x <...
#include <bits/stdc++.h> using namespace std; typedef vector<int> vi; int main() { int n; cin >> n; vi cnt(n, 0); int c = sqrt(n) + 1; for (int x = 1; x <= c + 1; x++) { for (int y = 1; y <= c + 1; y++) { for (int z = 1; z <= c + 1; z++) { if (x * x + y * y + z * z + x * y + y * z + z * x <...
[ "expression.operation.binary.add" ]
314,288
314,289
u119737518
cpp
p02608
#include <bits/stdc++.h> #pragma GCC optimize("Ofast") #define REP(i, n) for (int i = 0; i < n; i++) #define FOR(i, m, n) for (int i = m; i < n; i++) #define ALL(v) v.begin(), v.end() using ll = long long; using ull = unsigned long long; using namespace std; int main() { int N, val; cin >> N; vector<int> ans(N...
#include <bits/stdc++.h> #pragma GCC optimize("Ofast") #define REP(i, n) for (int i = 0; i < n; i++) #define FOR(i, m, n) for (int i = m; i < n; i++) #define ALL(v) v.begin(), v.end() using ll = long long; using ull = unsigned long long; using namespace std; int main() { int N, val; cin >> N; vector<int> ans(N...
[ "expression.operation.binary.add" ]
314,290
314,291
u320211890
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<long long> vec(10000); for (int X = 1; X <= 100; X++) { for (int Y = 1; Y <= 100; Y++) { for (int Z = 1; Z <= 100; Z++) { if (X * X + Y * Y + Z * Z + X * Y + X * Z + Y * Z < 10001) { if (X != Y && X !...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<long long> vec(10000); for (int X = 1; X <= 100; X++) { for (int Y = X; Y <= 100; Y++) { for (int Z = Y; Z <= 100; Z++) { if (X * X + Y * Y + Z * Z + X * Y + X * Z + Y * Z < 10001) { if (X != Y && X !...
[ "variable_declaration.value.change", "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.initializer.change", "assignment.value.change", "assignment.change" ]
314,292
314,293
u740002394
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<long long> vec(10000); for (int X = 1; X <= 100; X++) { for (int Y = X; Y <= 100; Y++) { for (int Z = Y; Z <= 100; Z++) { if (X * X + Y * Y + Z * Z + X * Y + X * Z + Y * Z < 10001) { if (X != Y && X !...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<long long> vec(10000); for (int X = 1; X <= 100; X++) { for (int Y = X; Y <= 100; Y++) { for (int Z = Y; Z <= 100; Z++) { if (X * X + Y * Y + Z * Z + X * Y + X * Z + Y * Z < 10001) { if (X != Y && X !...
[ "assignment.value.change", "assignment.change" ]
314,294
314,293
u740002394
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<long long> vec(10000); for (int X = 1; X <= 100; X++) { for (int Y = 1; Y <= 100; Y++) { for (int Z = 1; Z <= 100; Z++) { if (X * X + Y * Y + Z * Z + X * Y + X * Z + Y * Z < 10001) { vec[X * X + Y * Y...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<long long> vec(10000); for (int X = 1; X <= 100; X++) { for (int Y = 1; Y <= 100; Y++) { for (int Z = 1; Z <= 100; Z++) { if (X * X + Y * Y + Z * Z + X * Y + X * Z + Y * Z < 10001) { vec[X * X + Y * Y...
[ "expression.operation.binary.add" ]
314,295
314,296
u740002394
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long ll; int Binary_Search(ll first, ll last, vector<ll> v, ll search_value) { int pos = -1; while (first <= last) { ll mid = first + ((last - first) / 2); if (v[mid] == search_value) { pos = mid; break; } else if (search_value > v[m...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int Binary_Search(ll first, ll last, vector<ll> v, ll search_value) { int pos = -1; while (first <= last) { ll mid = first + ((last - first) / 2); if (v[mid] == search_value) { pos = mid; break; } else if (search_value > v[m...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "identifier.replace.remove", "literal.replace.add", "control_flow.branch.if.condition.change" ]
314,303
314,304
u534673300
cpp
p02608
#include <bits/stdc++.h> #include <cmath> using namespace std; #define coutv(v) \ for (int i = 0; i < (v).size(); ++i) \ cout << v[i] << ' '; \ cout << en...
#include <bits/stdc++.h> #include <cmath> using namespace std; #define coutv(v) \ for (int i = 0; i < (v).size(); ++i) \ cout << v[i] << ' '; \ cout << en...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
314,305
314,306
u641638265
cpp
p02608
#include <bits/stdc++.h> #include <cmath> using namespace std; #define coutv(v) \ for (int i = 0; i < (v).size(); ++i) \ cout << v[i] << ' '; \ cout << en...
#include <bits/stdc++.h> #include <cmath> using namespace std; #define coutv(v) \ for (int i = 0; i < (v).size(); ++i) \ cout << v[i] << ' '; \ cout << en...
[ "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" ]
314,307
314,306
u641638265
cpp