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; #define rep(i, N) for (int i = 0; i < N; i++) typedef long long ll; #define dump(x) cerr << #x << "=" << x << endl using P = pair<int, int>; int main() { int n; cin >> n; ll cnt = 0; map<ll, ll> mp; rep(i, 101) { rep(j, 101) { rep(k, 101) { ll t...
#include <bits/stdc++.h> using namespace std; #define rep(i, N) for (int i = 1; i < N; i++) typedef long long ll; #define dump(x) cerr << #x << "=" << x << endl using P = pair<int, int>; int main() { int n; cin >> n; ll cnt = 0; map<ll, ll> mp; rep(i, 101) { rep(j, 101) { rep(k, 101) { ll t...
[ "preprocessor.define.value.change", "literal.integer.change", "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,308
314,309
u343935874
cpp
p02608
#include <cmath> #include <iostream> #include <vector> using namespace std; int main() { int N, tmp; cin >> N; vector<int> res(N + 1); for (int x = 1; x <= sqrt(N); ++x) { for (int y = 1; y <= sqrt(N); ++y) { for (int z = 1; z <= sqrt(N); ++z) { tmp = x * x + y * y + z * z + x * y + y * z + z...
#include <cmath> #include <iostream> #include <vector> using namespace std; int main() { int N, tmp; cin >> N; vector<int> res(N + 1); for (int x = 1; x <= sqrt(N); ++x) { for (int y = 1; y <= sqrt(N); ++y) { for (int z = 1; z <= sqrt(N); ++z) { tmp = x * x + y * y + z * z + x * y + y * z + z...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
314,310
314,311
u985625318
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, n, d; cin >> n; int ans[10005] = {0}; for (a = 1; a < 101; a++) { for (b = 1; b < 101; b++) { for (c = 1; c < 101; c++) { d = a * a + b * b + c * c + a * b + b * c + c * a; if (d >= n) continue; a...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, n, d; cin >> n; int ans[10005] = {0}; for (a = 1; a < 101; a++) { for (b = 1; b < 101; b++) { for (c = 1; c < 101; c++) { d = a * a + b * b + c * c + a * b + b * c + c * a; if (d > n) continue; an...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
314,315
314,316
u015712792
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, n, d; cin >> n; int ans[10001]; for (a = 1; a < 101; a++) { for (b = 1; b < 101; b++) { for (c = 1; c < 101; c++) { d = a * a + b * b + c * c + a * b + b * c + c * a; if (d > n) continue; ans[d]++...
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c, n, d; cin >> n; int ans[10005] = {0}; for (a = 1; a < 101; a++) { for (b = 1; b < 101; b++) { for (c = 1; c < 101; c++) { d = a * a + b * b + c * c + a * b + b * c + c * a; if (d > n) continue; an...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "variable_declaration.value.change" ]
314,317
314,316
u015712792
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<ll, ll> pi; typedef pair<ll, ll> pll; #define fi first #define se second #define pb push_back #define ppb pop_back int main() { ll ans[10010] = {}; for (ll i = 1; i <= 100; ++i) { for (ll j = 1; j <= 100; ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef long double ld; typedef pair<ll, ll> pi; typedef pair<ll, ll> pll; #define fi first #define se second #define pb push_back #define ppb pop_back int main() { ll ans[10010] = {}; for (ll i = 1; i <= 100; ++i) { for (ll j = 1; j <= 100; ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
314,325
314,326
u725818030
cpp
p02608
#include <bits/stdc++.h> #include <math.h> using namespace std; const double pi = acos(-1.0); #define rep(i, n) for (int i = 0; i < (int)(n); i++) int max(int a, int b) { if (a > b) { return a; } return b; } int min(int a, int b) { if (a < b) { return a; } return b; } int main(void) { int n; ci...
#include <bits/stdc++.h> #include <math.h> using namespace std; const double pi = acos(-1.0); #define rep(i, n) for (int i = 0; i < (int)(n); i++) int max(int a, int b) { if (a > b) { return a; } return b; } int min(int a, int b) { if (a < b) { return a; } return b; } int main(void) { int n; ci...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
314,330
314,331
u831628341
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define FOR(i, o, n) for (long long i = o; i < n; i++) #define oneforall \ ios::sync_with_stdio(false); \ cin.tie(0); #define all(v) (v).begin(), (v).end() #defi...
#include <bits/stdc++.h> using namespace std; #define FOR(i, o, n) for (long long i = o; i < n; i++) #define oneforall \ ios::sync_with_stdio(false); \ cin.tie(0); #define all(v) (v).begin(), (v).end() #defi...
[ "literal.number.change", "call.arguments.change" ]
314,334
314,335
u203197031
cpp
p02608
#include <iostream> #include <vector> const int Q = 10005; using namespace std; int main() { int N; int sum; cin >> N; int x, y, z; x = y = z = 1; vector<int> cnt(Q); for (int i = 1; i <= 100; i++) { for (int j = 1; j <= 100; j++) { for (int k = 1; k <= 100; k++) { // cout << x << " "...
#include <iostream> #include <vector> const int Q = 10005; using namespace std; int main() { int N; int sum; cin >> N; int x, y, z; x = y = z = 1; vector<int> cnt(Q); for (int i = 1; i <= 105; i++) { for (int j = 1; j <= 105; j++) { for (int k = 1; k <= 105; k++) { // cout << x << " "...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
314,337
314,338
u508609179
cpp
p02608
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int calc(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; vector<int> ans(10500, 0); for (int x = 1; x <...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int calc(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; vector<int> ans(10500, 0); for (int x = 1; x <...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,348
314,349
u017829142
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long int64; typedef vector<int> vec; typedef vector<int64> vec64; #define db(x) cout << "> " << #x << ": " << x << "\n"; #define ss cout << " "; #define ct(x) cout << x; #define nn cout << "\n"; #define cts(x) cout << x << " "; #define ctn(x) cout << x << "\n";...
#include <bits/stdc++.h> using namespace std; typedef long long int64; typedef vector<int> vec; typedef vector<int64> vec64; #define db(x) cout << "> " << #x << ": " << x << "\n"; #define ss cout << " "; #define ct(x) cout << x; #define nn cout << "\n"; #define cts(x) cout << x << " "; #define ctn(x) cout << x << "\n";...
[]
314,359
314,360
u448096745
cpp
p02608
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <unordered_map> #include <unordered_set> #include <vector> #define rep(i, n) for (int i = 0; i < n; i++) #define ALL(a) (a).begin(), (a).end() typedef long long ll; using...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <unordered_map> #include <unordered_set> #include <vector> #define rep(i, n) for (int i = 0; i < n; i++) #define ALL(a) (a).begin(), (a).end() typedef long long ll; using...
[ "literal.number.change", "variable_declaration.array_dimensions.change" ]
314,366
314,367
u634650717
cpp
p02608
#include <iostream> #include <vector> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin >> n; vector<int> v(21, 0); for (int i = 1; i * i <= n; i++) { for (int j = 1; j * j <= n; j++) { for (int l = 1; l * l <= n; l++) { long long...
#include <iostream> #include <vector> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin >> n; vector<int> v(n + 1, 0); for (int i = 1; i * i <= n; i++) { for (int j = 1; j * j <= n; j++) { for (int l = 1; l * l <= n; l++) { long l...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
314,368
314,369
u500388973
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, int> P; struct edge { int to; ll cost; }; int dx[] = {-1, 1, 0, 0}; int dy[] = {0, 0, 1, -1}; int main() { int n; cin >> n; vector<int> ans(n + 1, 0); for (int i = 1; i * i <= n; i++) { for (int j = 1; j * j <= n; j...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, int> P; struct edge { int to; ll cost; }; int dx[] = {-1, 1, 0, 0}; int dy[] = {0, 0, 1, -1}; int main() { int n; cin >> n; vector<int> ans(n + 1, 0); for (int i = 1; i * i <= n; i++) { for (int j = 1; j * j <= n; j...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
314,386
314,387
u051393148
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define int long long #define N 1666666 int a[N]; map<int, int> mp; signed main() { for (int x = 1; x <= 200; x++) for (int y = x; y <= 200; y++) for (int z = y; z <= 200; z++) { set<int> s; s.insert(x); s.insert(y); s.insert(z);...
#include <bits/stdc++.h> using namespace std; #define int long long #define N 1666666 int a[N]; map<int, int> mp; signed main() { for (int x = 1; x <= 200; x++) for (int y = x; y <= 200; y++) for (int z = y; z <= 200; z++) { set<int> s; s.insert(x); s.insert(y); s.insert(z);...
[ "literal.number.change", "assignment.value.change" ]
314,388
314,389
u545770260
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define int long long #define N 1666666 int a[N]; map<int, int> mp; signed main() { for (int x = 1; x <= 100; x++) for (int y = x; y <= 100; y++) for (int z = y; z <= 100; z++) { set<int> s; s.insert(x); s.insert(y); s.insert(z);...
#include <bits/stdc++.h> using namespace std; #define int long long #define N 1666666 int a[N]; map<int, int> mp; signed main() { for (int x = 1; x <= 200; x++) for (int y = x; y <= 200; y++) for (int z = y; z <= 200; z++) { set<int> s; s.insert(x); s.insert(y); s.insert(z);...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "assignment.value.change" ]
314,391
314,389
u545770260
cpp
p02608
#include <bits/stdc++.h> using namespace std; using namespace __detail; typedef long long ll; #define ar array #define vi vector<int> #define vvi vector<vector<int>> #define vll vector<long long> #define all(x) (x).begin(), (x).end() #define en '\n' #define FILL(x, v) memset(x, v, sizeof(x)) #define pb push_back #defi...
#include <bits/stdc++.h> using namespace std; using namespace __detail; typedef long long ll; #define ar array #define vi vector<int> #define vvi vector<vector<int>> #define vll vector<long long> #define all(x) (x).begin(), (x).end() #define en '\n' #define FILL(x, v) memset(x, v, sizeof(x)) #define pb push_back #defi...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,401
314,402
u297802287
cpp
p02608
/**Function Template**/ #include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<ll, ll> pint; const int MAX = 510000; const int MOD = 1000000007; #define rep(i, n) for (ll i = ll(0); i < ll(n); i++) #define Rep(i, n) for (ll i = ll(1); i < ll(n); i++) #define ALL(a) (a).begin(), (a).end() #...
/**Function Template**/ #include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<ll, ll> pint; const int MAX = 510000; const int MOD = 1000000007; #define rep(i, n) for (ll i = ll(0); i < ll(n); i++) #define Rep(i, n) for (ll i = ll(1); i < ll(n); i++) #define ALL(a) (a).begin(), (a).end() #...
[ "literal.number.change", "call.arguments.change" ]
314,414
314,415
u264265458
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<long> mem(N + 1, 0); for (int i = 1; i < 110; i++) { for (int j = 1; j < 110; j++) { for (int k = 1; k < 110; k++) { long v = i * i + j * j + k * k + i * j + j * k + k * i; if (v <= N) mem[...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<long> mem(N + 1, 0); for (int i = 1; i < 110; i++) { for (int j = 1; j < 110; j++) { for (int k = 1; k < 110; k++) { long v = i * i + j * j + k * k + i * j + j * k + k * i; if (v <= N) mem[...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
314,421
314,422
u944033453
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<long> mem(N + 1, 0); for (int i = 1; i < 110; i++) { for (int j = 1; j < 110; j++) { for (int k = 1; k < 110; k++) { long v = i * i + j * j + k * k + i * j + j * k + k * i; if (v <= N) mem[...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<long> mem(N + 1, 0); for (int i = 1; i < 110; i++) { for (int j = 1; j < 110; j++) { for (int k = 1; k < 110; k++) { long v = i * i + j * j + k * k + i * j + j * k + k * i; if (v <= N) mem[...
[ "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,423
314,422
u944033453
cpp
p02608
#include "bits/stdc++.h" using namespace std; #define LOCAL #define all(a) begin(a), end(a) #define MOD 1000000007 #define PII pair<int, int> #define REP(x, l, u) for (ll x = l; x < u; x++) #define RED(x, l, u) for (ll x = l; x >= u; x--) #define complete_unique(a) a.erase(unique(begin(a), end(a)), end(a)) #define ms...
#include "bits/stdc++.h" using namespace std; #define LOCAL #define all(a) begin(a), end(a) #define MOD 1000000007 #define PII pair<int, int> #define REP(x, l, u) for (ll x = l; x < u; x++) #define RED(x, l, u) for (ll x = l; x >= u; x--) #define complete_unique(a) a.erase(unique(begin(a), end(a)), end(a)) #define ms...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
314,437
314,438
u005039821
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N, rN, x, y, z, s, i; int *ct; cin >> N; ct = new int[N + 1]; for (i = 0; i <= N; i++) ct[i] = 0; rN = sqrt(N); for (x = 1; x <= rN; x++) for (y = 1; y <= rN; y++) for (z = 1; z <= rN; z++) { s = x * x + y * y + z * z + ...
#include <bits/stdc++.h> using namespace std; int main() { int N, rN, x, y, z, s, i; int *ct; cin >> N; ct = new int[N + 1]; for (i = 0; i <= N; i++) ct[i] = 0; rN = sqrt(N); for (x = 1; x <= rN; x++) for (y = 1; y <= rN; y++) for (z = 1; z <= rN; z++) { s = x * x + y * y + z * z + ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
314,439
314,440
u900753971
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define el "\n" vector<int> v(10050, 0); void solution() { for (int x = 1; x <= 101; ++x) { for (int y = 1; y <= 101; ++y) { for (int z = 1; z <= 101; ++z) { int sol = x * x + y * y + z * z + z * x + x * y + x * z; if (sol < 10050) v[s...
#include <bits/stdc++.h> using namespace std; #define el "\n" vector<int> v(10001, 0); void solution() { for (int x = 1; x <= 101; ++x) { for (int y = 1; y <= 101; ++y) { for (int z = 1; z <= 101; ++z) { int sol = x * x + y * y + z * z + z * x + x * y + y * z; if (sol < 10001) v[s...
[ "literal.number.change", "call.arguments.change", "identifier.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
314,452
314,453
u410967766
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define el "\n" vector<int> v(10050, 0); void solution() { for (int x = 1; x <= 60; ++x) { for (int y = 1; y <= 60; ++y) { for (int z = 1; z <= 60; ++z) { int sol = x * x + y * y + z * z + z * x + x * y + x * z; if (sol < 10050) v[sol]...
#include <bits/stdc++.h> using namespace std; #define el "\n" vector<int> v(10001, 0); void solution() { for (int x = 1; x <= 101; ++x) { for (int y = 1; y <= 101; ++y) { for (int z = 1; z <= 101; ++z) { int sol = x * x + y * y + z * z + z * x + x * y + y * z; if (sol < 10001) v[s...
[ "literal.number.change", "call.arguments.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "identifier.change", "control_flow.branch.if.condition.change" ]
314,454
314,453
u410967766
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define el "\n" vector<int> v(10050, 0); void solution() { for (int x = 1; x <= 60; ++x) { for (int y = 1; y <= 60; ++y) { for (int z = 1; z <= 60; ++z) { int sol = x * x + y * y + z * z + z * x + x * y + x * z; if (sol < 10050) v[sol]...
#include <bits/stdc++.h> using namespace std; #define el "\n" vector<int> v(10050, 0); void solution() { for (int x = 1; x <= 101; ++x) { for (int y = 1; y <= 101; ++y) { for (int z = 1; z <= 101; ++z) { int sol = x * x + y * y + z * z + z * x + x * y + y * z; if (sol < 10050) v[s...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "identifier.change" ]
314,454
314,455
u410967766
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<int> a(N); for (int i = 1; i <= 100; i++) { for (int j = 1; j <= 100; j++) { for (int k = 1; k <= 100; k++) { int b = i * i + j * j + k * k + i * j + j * k + k * i; if (b <= N) { a.at(b)++; ...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<int> a(N + 1); for (int i = 1; i <= 100; i++) { for (int j = 1; j <= 100; j++) { for (int k = 1; k <= 100; k++) { int b = i * i + j * j + k * k + i * j + j * k + k * i; if (b <= N) { a.at(b)+...
[ "assignment.change" ]
314,460
314,461
u950831819
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<int> a(N); for (int i = 1; i <= 100; i++) { for (int j = 1; j <= 100; j++) { for (int k = 1; k <= 100; k++) { int b = i * i + j * j + k * k + i * j + j * k + k * i; if (b <= N) { a.at(b)++; ...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<int> a(N + 1); for (int i = 1; i <= 100; i++) { for (int j = 1; j <= 100; j++) { for (int k = 1; k <= 100; k++) { int b = i * i + j * j + k * k + i * j + j * k + k * i; if (b <= N) { a.at(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,462
314,461
u950831819
cpp
p02608
#include <iostream> using namespace std; int main() { int n; cin >> n; int ans[10001] = {0}; for (int i = 1; i < 105; i++) { for (int j = 1; j < 105; j++) { for (int k = 1; k < 105; k++) { int h = i * i + j * j + k * k + i * j + j * k + k * i; if (h <= 10000) ans[h]++; ...
#include <iostream> using namespace std; int main() { int n; cin >> n; int ans[10001] = {0}; for (int i = 1; i < 105; i++) { for (int j = 1; j < 105; j++) { for (int k = 1; k < 105; k++) { int h = i * i + j * j + k * k + i * j + j * k + k * i; if (h <= 10000) ans[h]++; ...
[ "expression.operation.binary.add" ]
314,484
314,485
u885039232
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int N; cin >> N; int f[1001]{}; for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { int t = x * x + y * y + z * z + x * y + y * z + z * x; if (t > 1000) ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int N; cin >> N; int f[10001]{}; for (int x = 1; x <= 100; x++) { for (int y = 1; y <= 100; y++) { for (int z = 1; z <= 100; z++) { int t = x * x + y * y + z * z + x * y + y * z + z * x; if (t > 10001) ...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "control_flow.branch.if.condition.change", "control_flow.continue.remove", "control_flow.break.add" ]
314,486
314,487
u634209474
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define FAST() \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL) int Check(i...
#include <bits/stdc++.h> using namespace std; #define FAST() \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); \ cout.tie(NULL) int Check(i...
[ "literal.number.change", "variable_declaration.array_dimensions.change" ]
314,490
314,491
u380762346
cpp
p02608
#include <algorithm> #include <bitset> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <string> #include <tuple> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define printfloat(x) cout << fixed << setprecision(7) << (x) << endl...
#include <algorithm> #include <bitset> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <string> #include <tuple> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define printfloat(x) cout << fixed << setprecision(7) << (x) << endl...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,492
314,493
u482454662
cpp
p02608
#include "bits/stdc++.h" using namespace std; #define ll long long #define pb push_back #define all(_obj) _obj.begin(), _obj.end() #define F first #define S second #define INF 1e18 #define pll pair<ll, ll> #define vll vector<ll> #define deb(x) cerr << #x << ' ' << '=' << ' ' << x << '\n' ll n, m, a, b, c, k, temp, x, y...
#include "bits/stdc++.h" using namespace std; #define ll long long #define pb push_back #define all(_obj) _obj.begin(), _obj.end() #define F first #define S second #define INF 1e18 #define pll pair<ll, ll> #define vll vector<ll> #define deb(x) cerr << #x << ' ' << '=' << ' ' << x << '\n' ll n, m, a, b, c, k, temp, x, y...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "expression.operation.binary.remove" ]
314,498
314,499
u377233169
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define ll long long int #define mod 1000000007 #define YES \ cout << "YES" \ << "\n"; #define NO ...
#include <bits/stdc++.h> using namespace std; #define ll long long int #define mod 1000000007 #define YES \ cout << "YES" \ << "\n"; #define NO ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
314,517
314,518
u174471042
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; vector<int> v(n + 1); 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 + y * z +...
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; vector<int> v(n + 1); 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 + y * z +...
[ "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,519
314,520
u572787531
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define int long long void Digvijay() { int n; cin >> n; vector<int> a(1000000, 0); for (int i = 1; i < 201; i++) { for (int j = 1; j < 201; j++) { for (int k = 1; k < 201; k++) { int val = i * i + j * j + k * k + i * j + j * k + k * i; a[v...
#include <bits/stdc++.h> using namespace std; #define int long long void Digvijay() { int n; cin >> n; vector<int> a(1000000, 0); for (int i = 1; i < 201; i++) { for (int j = 1; j < 201; j++) { for (int k = 1; k < 201; k++) { int val = i * i + j * j + k * k + i * j + j * k + k * i; a[v...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
314,521
314,522
u472796082
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define int long long int #define pb push_back #define f first #define s second signed main() { int n; cin >> n; int arr[n + 1] = {0}; int r = sqrt(n); for (int i = 1; i <= r; i++) { for (int j = i; j <= r; j++) { for (int k = j; k <= r; k++) { ...
#include <bits/stdc++.h> using namespace std; #define int long long int #define pb push_back #define f first #define s second signed main() { int n; cin >> n; int arr[n + 1] = {0}; int r = sqrt(n); for (int i = 1; i <= r; i++) { for (int j = i; j <= r; j++) { for (int k = j; k <= r; k++) { ...
[ "assignment.value.change" ]
314,523
314,524
u027795838
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define int long long #define f(i, x, n) for (int i = x; i < n; i++) #define all(c) c.begin(), c.end() const int MOD = 1e9 + 7, N = 5e5 + 10; const int LINF = LLONG_MAX; int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; f(i, 1, n ...
#include <bits/stdc++.h> using namespace std; #define int long long #define f(i, x, n) for (int i = x; i < n; i++) #define all(c) c.begin(), c.end() const int MOD = 1e9 + 7, N = 5e5 + 10; const int LINF = LLONG_MAX; int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; f(i, 1, n ...
[ "literal.number.change", "call.arguments.change" ]
314,529
314,530
u580023465
cpp
p02608
#include <bits/stdc++.h> #include <math.h> using namespace std; int main() { int N, b; cin >> N; b = pow(N, 1.0 / 3.0) / 1 + 1; vector<int> vec(N * 10000); for (int i = 1; i < b + 1; i++) { for (int j = 1; j < b + 1; j++) { for (int k = 1; k < b + 1; k++) { vec.at(i * i + j * j + k * k + i ...
#include <bits/stdc++.h> #include <math.h> using namespace std; int main() { int N, b; cin >> N; b = pow(N, 1.0 / 2.0) / 1 + 1; vector<int> vec(N * 10000); for (int i = 1; i < b + 1; i++) { for (int j = 1; j < b + 1; j++) { for (int k = 1; k < b + 1; k++) { vec.at(i * i + j * j + k * k + i ...
[ "literal.number.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
314,534
314,535
u176854281
cpp
p02608
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int f(int x, int y, int z) { return pow(x, 2) + pow(y, 2) + pow(z, 2) + (x * y) + (y * z) + (z * x); } int main() { int N; cin >> N; int mx = sqrt(N / 6.0) + 2; map<int, int> freq; rep...
#include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int f(int x, int y, int z) { return pow(x, 2) + pow(y, 2) + pow(z, 2) + (x * y) + (y * z) + (z * x); } int main() { int N; cin >> N; int mx = sqrt(N / 6.0) + 60; map<int, int> freq; re...
[ "literal.number.change", "expression.operation.binary.change" ]
314,536
314,537
u242100728
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main(void) { int N; cin >> N; int f[10010] = {0}; int x, y, z; for (int i = 0; i < N; i++) { for (x = 1; x * x < i; x++) { for (y = 1; x * x + y * y + x * y < i; y++) { for (z = 1; x * x + y * y + z * z + x * y + y * z + z * x <= i; z++) {...
#include <bits/stdc++.h> using namespace std; int main(void) { int N; cin >> N; int f[10010] = {0}; int x, y, z; for (int i = 1; i <= N; i++) { for (x = 1; x * x < i; x++) { for (y = 1; x * x + y * y + x * y < i; y++) { for (z = 1; x * x + y * y + z * z + x * y + y * z + z * x <= i; z++) ...
[ "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,540
314,541
u883680855
cpp
p02608
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <cmath> #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <cstring> #include <deque> // deque #include <fl...
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <bitset> // bitset #include <cctype> // isupper, islower, isdigit, toupper, tolower #include <cmath> #include <cstdint> // int64_t, int*_t #include <cstdio> // printf #include <cstring> #include <deque> // deque #include <fl...
[ "expression.operation.binary.add" ]
314,552
314,553
u830770242
cpp
p02608
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { long n; cin >> n; for (long l = 0; l <= n; l++) { long cnt = 0; for (long i = 1; i <= 100; i++) { long ii = i * i; for (long j = 1; j <= ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; int main() { long n; cin >> n; for (long l = 1; l <= n; l++) { long cnt = 0; for (long i = 1; i <= 100; i++) { long ii = i * i; for (long j = 1; j <= ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
314,601
314,602
u534732555
cpp
p02608
#include <bits/stdc++.h> using namespace std; int arr[100005]; int sum[100005]; int main() { int num; int count = 0; int n, i, j, l; scanf("%d", &n); int m = sqrt(2 * n / 3) + 1; memset(arr, 0, sizeof(arr)); for (i = 1; i <= m; i++) { for (j = 1; j <= m; j++) { for (l = 1; l <= m; l++) { ...
#include <bits/stdc++.h> using namespace std; int arr[100005]; int sum[100005]; int main() { int num; int count = 0; int n, i, j, l; scanf("%d", &n); int m = sqrt(n); memset(arr, 0, sizeof(arr)); for (i = 1; i <= m; i++) { for (j = 1; j <= m; j++) { for (l = 1; l <= m; l++) { num = i * i...
[ "expression.operation.binary.remove" ]
314,621
314,622
u201506354
cpp
p02608
#include <bits/stdc++.h> //stayCalmNeverSettle #define forn(i, n) for (int i = 0; i < int(n); i++) #define endl "\n" #define pb push_back #define x first #define y second using namespace std; typedef long long ll; const ll M = 1e9 + 7; const int N = 110; int arr[N]; int main() { ios::sync_with_stdio(0); cin.tie(0...
#include <bits/stdc++.h> //stayCalmNeverSettle #define forn(i, n) for (int i = 0; i < int(n); i++) #define endl "\n" #define pb push_back #define x first #define y second using namespace std; typedef long long ll; const ll M = 1e9 + 7; const int N = 110; int arr[N]; int main() { ios::sync_with_stdio(0); cin.tie(0...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,623
314,624
u413064852
cpp
p02608
#include <algorithm> #include <bits/stdc++.h> #include <functional> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; #define DEBUG #define PI 3.141592653589793238462643383279 #define _GLIBCXX_DEBUG #ifdef DEBUG #define s(...) show(__VA_ARGS__); #define sl(...) ...
#include <algorithm> #include <bits/stdc++.h> #include <functional> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; #define DEBUG #define PI 3.141592653589793238462643383279 #define _GLIBCXX_DEBUG #ifdef DEBUG #define s(...) show(__VA_ARGS__); #define sl(...) ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,625
314,626
u304829684
cpp
p02608
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { ll n; cin >> n; vector<ll> v(n + 1, 0); for (ll x = 1; x <= sqrt(n - 2) - 1; x++) { for (ll y = 1; y <= sqrt(n - 2) - 1; y++) { for (ll z = 1; z <= sqrt(n - 2) - 1; z++) { if (x * x + y * y + z * z + x * y ...
#include <bits/stdc++.h> #define ll long long int using namespace std; int main() { ll n; cin >> n; vector<ll> v(n + 1, 0); for (ll x = 1; x <= sqrt(n - 2) - 1; x++) { for (ll y = 1; y <= sqrt(n - 2) - 1; y++) { for (ll z = 1; z <= sqrt(n - 2) - 1; z++) { if (x * x + y * y + z * z + x * y ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
314,627
314,628
u431829416
cpp
p02608
#include <bits/stdc++.h> #include <bitset> #include <sstream> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; const int MX = 100005; int main() { int N; cin >> N; vector<int> a(10000, 0); int atai = 0; for (int i = 1; i < 100; i++) { ...
#include <bits/stdc++.h> #include <bitset> #include <sstream> #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; using P = pair<int, int>; const int MX = 100005; int main() { int N; cin >> N; vector<int> a(10000, 0); int atai = 0; for (int i = 1; i < 100; i++) { ...
[ "literal.number.change", "control_flow.branch.if.condition.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
314,631
314,630
u197180816
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 100000000; const ll half_inf = 0x3f3f3f3f; const ll inf = 0x7fffffff; const ll mod = 998244353; const ll maxn = 2000005; int m[50005] = {0}; int main() { int n; scanf("%d", &n); for (int j1 = 1; j1 < 100; j1++) { for (int j2 = ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; const ll INF = 100000000; const ll half_inf = 0x3f3f3f3f; const ll inf = 0x7fffffff; const ll mod = 998244353; const ll maxn = 2000005; int m[50005] = {0}; int main() { int n; scanf("%d", &n); for (int j1 = 2; j1 < 145; j1++) { for (int j2 = ...
[ "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" ]
314,632
314,633
u812849005
cpp
p02608
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define INF 1e9; using namespace std; using ll = long long; vector<int> x(10000); int main() { int n, a = 0; cin >> n; for (int i = 1; i <= 31; i++) { for (int j = 1; j <= 31; ++j) { for (int k = 1; k <= 31; ++k) { if ...
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define INF 1e9; using namespace std; using ll = long long; vector<int> x(10000); int main() { int n, a = 0; cin >> n; for (int i = 1; i <= 99; i++) { for (int j = 1; j <= 99; ++j) { for (int k = 1; k <= 99; ++k) { if ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,635
314,636
u629548179
cpp
p02608
#include <bits/stdc++.h> using namespace std; int pro(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; for (int i = 0; i < N; i++) { int c = 0; for (int m = 1; pro(m, 1, 1) <= i; m++) { for (int j = 1; pro(m, j, 1) <= i; j++) { fo...
#include <bits/stdc++.h> using namespace std; int pro(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; for (int i = 1; i <= N; i++) { int c = 0; for (int m = 1; pro(m, 1, 1) <= i; m++) { for (int j = 1; pro(m, j, 1) <= i; j++) { f...
[ "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,643
314,644
u993104815
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const int INF = 1 << 30; const long long LINF = 1LL << 60; const long long MOD = (long long)1e9 + 7; int main() { int n, ans = 0; cin >> n; for (int i = 1; i < n; i++) { int sum = 0; ans = 0; for (int j = 1; j * j <= i; j++) { ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; const int INF = 1 << 30; const long long LINF = 1LL << 60; const long long MOD = (long long)1e9 + 7; int main() { int n, ans = 0; cin >> n; for (int i = 1; i <= n; i++) { int sum = 0; ans = 0; for (int j = 1; j * j <= i; j++) {...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
314,645
314,646
u480806810
cpp
p02608
#include <bits/stdc++.h> #define ll long long #define MODV 1000000007 #define INFLL LLONG_MAX // 9223372036854775807 #define EPS 1e-9 #define rep(i, n) for (ll i = 0, i##_len = (ll)(n); i < i##_len; i++) #define repf(i, n) for (ll i = 1, i##_len = (ll)(n + 1); i < i##_len; i++) #define all(v) v.begin(), v.end() #define...
#include <bits/stdc++.h> #define ll long long #define MODV 1000000007 #define INFLL LLONG_MAX // 9223372036854775807 #define EPS 1e-9 #define rep(i, n) for (ll i = 0, i##_len = (ll)(n); i < i##_len; i++) #define repf(i, n) for (ll i = 1, i##_len = (ll)(n + 1); i < i##_len; i++) #define all(v) v.begin(), v.end() #define...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
314,647
314,648
u548791035
cpp
p02608
/** In the Name of ALLAH */ #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<vi> vvi; typedef vector<vl> vvl; typedef pair<int, int> pii; typedef pair<double, double> pdd; typedef pair<ll, ll> pll; typedef vector<pii> vii; typedef vecto...
/** In the Name of ALLAH */ #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef vector<vi> vvi; typedef vector<vl> vvl; typedef pair<int, int> pii; typedef pair<double, double> pdd; typedef pair<ll, ll> pll; typedef vector<pii> vii; typedef vecto...
[ "literal.number.change", "expression.operation.binary.change" ]
314,649
314,650
u724640452
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define sz(a) int((a).size()) #define all(c) c.begin(), c.end() #define ll long long #define pb push_back #define zoom \ ios_base::sync_with_stdio(false); \ cin...
#include <bits/stdc++.h> using namespace std; #define sz(a) int((a).size()) #define all(c) c.begin(), c.end() #define ll long long #define pb push_back #define zoom \ ios_base::sync_with_stdio(false); \ cin...
[ "control_flow.loop.for.condition.change" ]
314,651
314,652
u668154428
cpp
p02608
#include "bits/stdc++.h" #define _USE_MATH_DEFINES #include <math.h> using namespace std; using ll = long long; using vll = std::vector<ll>; using vvll = std::vector<vll>; using vvvll = std::vector<vvll>; using ld = long double; using vld = std::vector<ld>; using vvld = std::vector<vld>; using vvvld = std::vector<vvl...
#include "bits/stdc++.h" #define _USE_MATH_DEFINES #include <math.h> using namespace std; using ll = long long; using vll = std::vector<ll>; using vvll = std::vector<vll>; using vvvll = std::vector<vvll>; using ld = long double; using vld = std::vector<ld>; using vvld = std::vector<vld>; using vvvld = std::vector<vvl...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
314,657
314,658
u412164358
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long ll; /* clang-format off */ #define MOD 1000000007 #define INF 1000000000 #define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i) #define ALL(a) (a).begin(), (a).end() #define __DEBUG__ #ifdef __DEBUG__ #define CH_P(a) cout <<"check_point("<<#a<<"...
#include <bits/stdc++.h> using namespace std; typedef long long ll; /* clang-format off */ #define MOD 1000000007 #define INF 1000000000 #define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i) #define ALL(a) (a).begin(), (a).end() #define __DEBUG__ #ifdef __DEBUG__ #define CH_P(a) cout <<"check_point("<<#a<<"...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
314,662
314,660
u517348254
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++) #define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--) #define ALL(x) (x).begin(), (x).end() ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #define REPD(i, n) for (ll i = n - 1; i >= 0; i--) #define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++) #define FORD(i, a, b) for (ll i = a; i >= (ll)(b); i--) #define ALL(x) (x).begin(), (x).end() ...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
314,663
314,664
u531531196
cpp
p02608
#include <algorithm> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < n; i++) #define ALL(v) v.begin(), v.end() using namespace std; using ll = long long...
#include <algorithm> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> #define REP(i, n) for (int i = 0; i < n; i++) #define ALL(v) v.begin(), v.end() using namespace std; using ll = long long...
[ "control_flow.loop.for.condition.change" ]
314,665
314,666
u406132951
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define int int64_t signed main() { int n, ans, date[10000] = {}; int x = 1, y = 1, z = 1; cin >> n; for (int i = 1; i <= (int)sqrt(n); i++) { for (int j = 1; j <= (int)sqrt(n); j++) { for (int k = 1; k <= (int)sqrt(n); k++) { date[i * i + j * j + ...
#include <bits/stdc++.h> using namespace std; #define int int64_t signed main() { int n, ans, date[100000] = {}; int x = 1, y = 1, z = 1; cin >> n; for (int i = 1; i <= (int)sqrt(n); i++) { for (int j = 1; j <= (int)sqrt(n); j++) { for (int k = 1; k <= (int)sqrt(n); k++) { date[i * i + j * j +...
[ "literal.number.change", "variable_declaration.array_dimensions.change" ]
314,688
314,689
u196176785
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { long N; cin >> N; vector<long> a(100005); // for(int i=0;i<N;i++) cin>>a[i]; // sort(a.begin(),a.end()); // reverse(a.begin(),a.end()); // long ans=0; /* for(int i=1;i<=N;i++){ long ans=0; for(int x=1;i-x*x>=4;x++){ for(int y=1...
#include <bits/stdc++.h> using namespace std; int main() { long N; cin >> N; vector<long> a(100005); // for(int i=0;i<N;i++) cin>>a[i]; // sort(a.begin(),a.end()); // reverse(a.begin(),a.end()); // long ans=0; /* for(int i=1;i<=N;i++){ long ans=0; for(int x=1;i-x*x>=4;x++){ for(int y=1...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
314,692
314,693
u223172354
cpp
p02608
#include <bits/stdc++.h> #include <iostream> #include <vector> using namespace std; void f(int n) { int ans = 0; for (int number = 1; number <= sqrt(n); number++) { int low = number + 1; int high = sqrt(n); while (low <= high) { if ((number * number) + (low * low) + (high * high) + (number * low...
#include <bits/stdc++.h> #include <iostream> #include <vector> using namespace std; void f(int n) { int ans = 0; for (int number = 1; number <= sqrt(n); number++) { int low = number; int high = sqrt(n); while (low <= high) { if ((number * number) + (low * low) + (high * high) + (number * low) + ...
[ "expression.operation.binary.remove" ]
314,696
314,697
u524450296
cpp
p02608
#include <algorithm> #include <iostream> #include <random> #include <utility> #include <vector> int main(void) { int n; std::cin >> n; std::vector<int> A(n + 1, 0); for (long long int x = 1; x * x <= n; ++x) { for (long long int y = 1; y * y + x * x <= n; ++y) { for (long long int z = 1;; ++z) { ...
#include <algorithm> #include <iostream> #include <random> #include <utility> #include <vector> int main(void) { int n; std::cin >> n; std::vector<int> A(n + 1, 0); for (long long int x = 1; x * x <= n; ++x) { for (long long int y = 1; y * y + x * x <= n; ++y) { for (long long int z = 1;; ++z) { ...
[ "identifier.change", "expression.operation.binary.change" ]
314,707
314,708
u394853232
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; long int f[10010] = {0}; int i, j, k; long int v; for (i = 1; i < 110; i++) { for (j = 1; j <= i; j++) { for (k = 1; k <= j; k++) { v = i * i + j * j + k * k + i * j + j * k + k * i; if (v > n) ...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; long int f[10010] = {0}; int i, j, k; long int v; for (i = 1; i < 110; i++) { for (j = 1; j <= i; j++) { for (k = 1; k <= j; k++) { v = i * i + j * j + k * k + i * j + j * k + k * i; if (v > n) ...
[]
314,709
314,710
u291332466
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define file \ { \ freopen("i.txt", "r", stdin); \ freopen("o.txt", "w", stdou...
#include <bits/stdc++.h> using namespace std; #define file \ { \ freopen("i.txt", "r", stdin); \ freopen("o.txt", "w", stdou...
[ "expression.operation.compare.replace.add", "assignment.replace.remove", "misc.typo" ]
314,718
314,719
u153460526
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N; int F = 0; cin >> N; if (N < 0 or N > 10000) { F = 3; } int A = 0; vector<int> f(N); for (int i = 0; i < N; i++) { f.at(i) = 0; } int y = 1; int x = 1; for (int z = 1; z < 58; z++) { if (F == 3) { break; } ...
#include <bits/stdc++.h> using namespace std; int main() { int N; int F = 0; cin >> N; if (N < 0 or N > 10000) { F = 3; } int A = 0; vector<int> f(N); for (int i = 0; i < N; i++) { f.at(i) = 0; } int y = 1; int x = 1; for (int z = 1; z < N; z++) { if (F == 3) { break; } ...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,723
314,724
u581007488
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define ff first #define ss second #define pb push_back #define int long long #define mp make_pair #define pr pair<long long, long long> #define vr vector<long long> #define mod1 1000000007 #define mod2 998244353 #define inf 1e18 #define ps(x, y) fixed << setprecision(y) <...
#include <bits/stdc++.h> using namespace std; #define ff first #define ss second #define pb push_back #define int long long #define mp make_pair #define pr pair<long long, long long> #define vr vector<long long> #define mod1 1000000007 #define mod2 998244353 #define inf 1e18 #define ps(x, y) fixed << setprecision(y) <...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
314,725
314,726
u714721586
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define ff first #define ss second #define pb push_back #define int long long #define mp make_pair #define pr pair<long long, long long> #define vr vector<long long> #define mod1 1000000007 #define mod2 998244353 #define inf 1e18 #define ps(x, y) fixed << setprecision(y) <...
#include <bits/stdc++.h> using namespace std; #define ff first #define ss second #define pb push_back #define int long long #define mp make_pair #define pr pair<long long, long long> #define vr vector<long long> #define mod1 1000000007 #define mod2 998244353 #define inf 1e18 #define ps(x, y) fixed << setprecision(y) <...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
314,727
314,726
u714721586
cpp
p02608
/* C - XYZ Triplets */ #include <bits/stdc++.h> using namespace std; int Triplets(int n) { int ans = 0; if (n >= 6) { for (int i = 1; i <= sqrt(n - 2) - 1; i++) { for (int j = i; j <= sqrt(n - 2) - 1; j++) { for (int k = j; k <= sqrt(n - 2) - 1; k++) { if ((i + j) * (i + j) + (j + k) *...
/* C - XYZ Triplets */ #include <bits/stdc++.h> using namespace std; int Triplets(int n) { int ans = 0; if (n >= 6) { for (int i = 1; i <= sqrt(n - 2) - 1; i++) { for (int j = i; j <= sqrt(n - 2) - 1; j++) { for (int k = j; k <= sqrt(n - 2) - 1; k++) { if ((i + j) * (i + j) + (j + k) *...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
314,742
314,743
u588283533
cpp
p02608
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; int f[1000000] = {0}; for (int i = 1; i <= 41; i++) { for (int j = 1; j <= 41; j++) { for (int k = 1; k <= 41; k++) { int p = (i * i) + (j * j) ...
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; int f[1000000] = {0}; for (int i = 1; i <= 100; i++) { for (int j = 1; j <= 100; j++) { for (int k = 1; k <= 100; k++) { int p = (i * i) + (j * ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,760
314,761
u381721359
cpp
p02608
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; int f[100000] = {0}; for (int i = 1; i <= 41; i++) { for (int j = 1; j <= 41; j++) { for (int k = 1; k <= 41; k++) { int p = (i * i) + (j * j) +...
#include <bits/stdc++.h> #include <iostream> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int n; cin >> n; int f[1000000] = {0}; for (int i = 1; i <= 100; i++) { for (int j = 1; j <= 100; j++) { for (int k = 1; k <= 100; k++) { int p = (i * i) + (j * ...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,762
314,761
u381721359
cpp
p02608
///-----Bismillahir Rahmanir Rahim-----/// #include <bits/stdc++.h> using namespace std; ///---FAST I/O---/// #define Boost() \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
///-----Bismillahir Rahmanir Rahim-----/// #include <bits/stdc++.h> using namespace std; ///---FAST I/O---/// #define Boost() \ ios_base::sync_with_stdio(0); \ cin.tie(0); ...
[ "literal.number.change", "control_flow.loop.condition.change" ]
314,767
314,766
u800871429
cpp
p02608
#include <bits/stdc++.h> using namespace std; int calculate_f(int x, int y, int z) { return x * x + y * y + z * z + x * y + y * z + z * x; } void make_result_array(int &n, vector<int> &result_array) { int up = sqrt(n); for (int i = 1; i <= up; i++) { for (int j = 1; j <= up; j++) { for (int k = 1; k <...
#include <bits/stdc++.h> using namespace std; int calculate_f(int x, int y, int z) { return x * x + y * y + z * z + x * y + y * z + z * x; } void make_result_array(int &n, vector<int> &result_array) { int up = sqrt(n); for (int i = 1; i <= up; i++) { for (int j = 1; j <= up; j++) { for (int k = 1; k <...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
314,768
314,769
u959813156
cpp
p02608
#include <algorithm> #include <iostream> #include <string> using namespace std; int N; int main(void) { cin >> N; int A[N + 1]; for (int i = 0; i <= N; i++) A[i] = 0; long long total = 0; for (int i = 1; i <= N; i++) { for (int j = i; j <= N; j++) { for (int k = j; k <= N; k++) { tota...
#include <algorithm> #include <iostream> #include <string> using namespace std; int N; int main(void) { cin >> N; int A[N + 1]; for (int i = 0; i <= N; i++) A[i] = 0; long long total = 0; for (int i = 1; i <= N; i++) { for (int j = i; j <= N; j++) { for (int k = j; k <= N; k++) { tota...
[ "assignment.value.change" ]
314,773
314,774
u073074801
cpp
p02608
#include <algorithm> #include <iostream> #include <string> using namespace std; int N; int main(void) { cin >> N; int A[N + 1]; for (int i = 0; i <= N; i++) A[i] = 0; int total = 0; for (int i = 1; i <= N; i++) { for (int j = i; j <= N; j++) { for (int k = j; k <= N; k++) { total = i...
#include <algorithm> #include <iostream> #include <string> using namespace std; int N; int main(void) { cin >> N; int A[N + 1]; for (int i = 0; i <= N; i++) A[i] = 0; long long total = 0; for (int i = 1; i <= N; i++) { for (int j = i; j <= N; j++) { for (int k = j; k <= N; k++) { tota...
[ "variable_declaration.type.primitive.change", "variable_declaration.type.widen.change", "assignment.value.change" ]
314,775
314,774
u073074801
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; vector<int> qw(10000); for (long long i = 1; i * i <= n; ++i) for (long long ii = 1; ii * ii <= n; ++ii) for (long long iii = 1; iii * iii <= n; ++iii) if (1000 >= i * i + ii * ii + iii * iii + i * ii + i * iii +...
#include <bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; vector<long long> qw(10000); for (long long i = 1; i * i <= n; ++i) for (long long ii = 1; ii * ii <= n; ++ii) for (long long iii = 1; iii * iii <= n; ++iii) if (10000 >= i * i + ii * ii + iii * iii + i * ii + i ...
[ "variable_declaration.type.primitive.change", "variable_declaration.type.widen.change", "literal.number.change", "control_flow.branch.if.condition.change" ]
314,789
314,790
u347823256
cpp
p02608
#include <bits/stdc++.h> using namespace std; // typedef typedef long long ll; typedef vector<int> vi; typedef vector<string> vs; // define #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) FOR(i, 0, n) int main() { int a, n; // vi c; cin >> n; vi d(50000, 0); for (int x = 1; x < 60; x++...
#include <bits/stdc++.h> using namespace std; // typedef typedef long long ll; typedef vector<int> vi; typedef vector<string> vs; // define #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) FOR(i, 0, n) int main() { ll a, n; // vi c; cin >> n; vi d(100000, 0); for (int x = 1; x < 101; x+...
[ "variable_declaration.type.change", "literal.number.change", "call.arguments.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,804
314,805
u828907994
cpp
p02608
#include <bits/stdc++.h> using namespace std; // typedef typedef long long ll; typedef vector<int> vi; typedef vector<string> vs; // define #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) FOR(i, 0, n) int main() { int a, n; // vi c; cin >> n; vi d(50000, 0); for (int x = 1; x < 101; x+...
#include <bits/stdc++.h> using namespace std; // typedef typedef long long ll; typedef vector<int> vi; typedef vector<string> vs; // define #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define rep(i, n) FOR(i, 0, n) int main() { ll a, n; // vi c; cin >> n; vi d(100000, 0); for (int x = 1; x < 101; x+...
[ "variable_declaration.type.change", "literal.number.change", "call.arguments.change" ]
314,806
314,805
u828907994
cpp
p02608
#include <bits/stdc++.h> #define LL long long #define dl double template <class T> void rd(T &x) { x = 0; T f = 1; char ch = getchar(); while (ch < '0' || ch > '9') { if (ch == '-') f = -1; ch = getchar(); } while (ch <= '9' && ch >= '0') x = x * 10 + ch - '0', ch = getchar(); x *= f; } ...
#include <bits/stdc++.h> #define LL long long #define dl double template <class T> void rd(T &x) { x = 0; T f = 1; char ch = getchar(); while (ch < '0' || ch > '9') { if (ch == '-') f = -1; ch = getchar(); } while (ch <= '9' && ch >= '0') x = x * 10 + ch - '0', ch = getchar(); x *= f; } ...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
314,812
314,813
u097605268
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define ll long long int main() { ll N; cin >> N; ll n = 100; vector<int> counter(10001); for (int i = 1; i < n; i++) { for (int j = i; j < n; j++) { for (int k = j; k < n; k++) { int x = i + 1,...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define ll long long int main() { ll N; cin >> N; ll n = 100; vector<int> counter(10001); for (int i = 0; i < n; i++) { for (int j = i; j < n; j++) { for (int k = j; k < n; k++) { int x = i + 1,...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
314,821
314,822
u978749394
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define ll long long int main() { ll N; cin >> N; ll n = 31; vector<int> counter(1001); for (int i = 0; i < n; i++) { for (int j = i; j < n; j++) { for (int k = j; k < n; k++) { int x = i + 1, y...
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)n; i++) #define ll long long int main() { ll N; cin >> N; ll n = 100; vector<int> counter(10001); for (int i = 0; i < n; i++) { for (int j = i; j < n; j++) { for (int k = j; k < n; k++) { int x = i + 1,...
[ "literal.number.change", "variable_declaration.value.change", "call.arguments.change", "control_flow.branch.if.condition.change" ]
314,823
314,822
u978749394
cpp
p02608
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <deque> // deque #include <iomanip> // setprecision #include <iostream> // cout, endl, cin #include <map> // map #include <math.h> // sqrt #include <queue> // queue, priority_queue #include <set> // set #i...
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound #include <deque> // deque #include <iomanip> // setprecision #include <iostream> // cout, endl, cin #include <map> // map #include <math.h> // sqrt #include <queue> // queue, priority_queue #include <set> // set #i...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
314,824
314,825
u204514518
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define ll int64_t #define MOD 1000000007 #define FASTIO \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define all(v) (v).begin(), (v).end() #define sumof(v...
#include <bits/stdc++.h> using namespace std; #define ll int64_t #define MOD 1000000007 #define FASTIO \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); #define all(v) (v).begin(), (v).end() #define sumof(v...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
314,826
314,827
u834223340
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long ll; int a[50005] = {0}; int main() { ios ::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin >> 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 x ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; int a[60005] = {0}; int main() { ios ::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; cin >> 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 x ...
[ "literal.number.change", "variable_declaration.array_dimensions.change" ]
314,832
314,833
u506716952
cpp
p02608
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> using namespace std; typedef long long ll; const int INF = 1000000000; const int MOD = 1000000007; int main() { ll n; cin >> n; ll ans[100000] = {}; for (int x = 1; x < 101; x++) { for (int y = 1; y < 10; y++) { ...
#include <algorithm> #include <cmath> #include <iostream> #include <string> #include <vector> using namespace std; typedef long long ll; const int INF = 1000000000; const int MOD = 1000000007; int main() { ll n; cin >> n; ll ans[100000] = {}; for (int x = 1; x < 101; x++) { for (int y = 1; y < 101; y++) { ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,838
314,839
u670773128
cpp
p02608
#include <bits/stdc++.h> /// Constant: #define eps 10e-9 #define pi 2 * acos(0) #define P1 1e9 + 7 #define P2 1e9 + 9 #define lli long long int #define PB push_back #define pb pop_back #define mk make_pair #define I insert /// Loop: #define f1(a, b) for (int i = a; i <= b; i++) #define f2(a, b) for (int j = a; j <= b...
#include <bits/stdc++.h> /// Constant: #define eps 10e-9 #define pi 2 * acos(0) #define P1 1e9 + 7 #define P2 1e9 + 9 #define lli long long int #define PB push_back #define pb pop_back #define mk make_pair #define I insert /// Loop: #define f1(a, b) for (int i = a; i <= b; i++) #define f2(a, b) for (int j = a; j <= b...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,845
314,846
u459890273
cpp
p02608
#include <bits/stdc++.h> /// Constant: #define eps 10e-9 #define pi 2 * acos(0) #define P1 1e9 + 7 #define P2 1e9 + 9 #define lli long long int #define PB push_back #define pb pop_back #define mk make_pair #define I insert /// Loop: #define f1(a, b) for (int i = a; i <= b; i++) #define f2(a, b) for (int j = a; j <= b...
#include <bits/stdc++.h> /// Constant: #define eps 10e-9 #define pi 2 * acos(0) #define P1 1e9 + 7 #define P2 1e9 + 9 #define lli long long int #define PB push_back #define pb pop_back #define mk make_pair #define I insert /// Loop: #define f1(a, b) for (int i = a; i <= b; i++) #define f2(a, b) for (int j = a; j <= b...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,847
314,846
u459890273
cpp
p02608
#pragma region Headers #ifndef _GLIBCXX_NO_ASSERT #include <cassert> #endif #include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <csetjmp> #include <csignal> #include <cstdarg> #include <cstddef> #include <cstdio> #include <cstdlib> #in...
#pragma region Headers #ifndef _GLIBCXX_NO_ASSERT #include <cassert> #endif #include <cctype> #include <cerrno> #include <cfloat> #include <ciso646> #include <climits> #include <clocale> #include <cmath> #include <csetjmp> #include <csignal> #include <cstdarg> #include <cstddef> #include <cstdio> #include <cstdlib> #in...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
314,852
314,853
u734834944
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define l1 long long int main() { l1 n, m, c = 0, p; cin >> n; m = 1; while (m <= n) { p = 0; c = 0; for (int i = 1; i <= 32; i++) { p = (i * i); if (p > m) break; for (int j = 1; j <= 32; j++) { p = (i * i) + (j * j) + ...
#include <bits/stdc++.h> using namespace std; #define l1 long long int main() { l1 n, m, c = 0, p; cin >> n; m = 1; while (m <= n) { p = 0; c = 0; for (int i = 1; i <= 100; i++) { p = (i * i); if (p > m) break; for (int j = 1; j <= 100; j++) { p = (i * i) + (j * j) ...
[ "literal.number.change", "control_flow.loop.condition.change" ]
314,856
314,857
u751395707
cpp
p02608
#include <bits/stdc++.h> #define PB push_back #define PII pair<int, int> #define PLL pair<long long, long long> #define FI first #define SE second #define mem(a) memset(a, 0, sizeof(a)) #define ios \ ios::sync_with_stdio(false); ...
#include <bits/stdc++.h> #define PB push_back #define PII pair<int, int> #define PLL pair<long long, long long> #define FI first #define SE second #define mem(a) memset(a, 0, sizeof(a)) #define ios \ ios::sync_with_stdio(false); ...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,860
314,861
u446005885
cpp
p02608
#include <algorithm> #include <cstring> #include <iostream> #include <math.h> #include <string.h> #define ll long long ll gcd(ll a, ll b) { ll s = 1, c; while (a && b) { if ((~a & 1) && (~b & 1)) a >>= 1, b >>= 1, s <<= 1; else if (~a & 1) a >>= 1; else if (~b & 1) b >>= 1; else if...
#include <algorithm> #include <cstring> #include <iostream> #include <math.h> #include <string.h> #define ll long long ll gcd(ll a, ll b) { ll s = 1, c; while (a && b) { if ((~a & 1) && (~b & 1)) a >>= 1, b >>= 1, s <<= 1; else if (~a & 1) a >>= 1; else if (~b & 1) b >>= 1; else if...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
314,866
314,867
u032927742
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define sws \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0) #define ll long ...
#include <bits/stdc++.h> using namespace std; #define sws \ ios_base::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0) #define ll long ...
[ "literal.number.change", "assignment.value.change" ]
314,872
314,873
u202699008
cpp
p02608
#include <bits/stdc++.h> const int N = 11000; const int N2 = 110; int cnt[N], dp[N2][N2][N2]; int n; void dfs(int x, int y, int z) { int sum = x * x + y * y + z * z + x * y + x * z + y * z; if (sum > 1000) return; ++cnt[sum]; if (dp[x + 1][y][z] == -1) { dp[x + 1][y][z] = 0; dfs(x + 1, y, z); ...
#include <bits/stdc++.h> const int N = 11000; const int N2 = 110; int cnt[N], dp[N2][N2][N2]; int n; void dfs(int x, int y, int z) { int sum = x * x + y * y + z * z + x * y + x * z + y * z; if (sum > 10000) return; ++cnt[sum]; if (dp[x + 1][y][z] == -1) { dp[x + 1][y][z] = 0; dfs(x + 1, y, z); ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
314,874
314,875
u417515621
cpp
p02608
#include <bits/stdc++.h> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) #define ALL(obj) (obj).begin(), (obj).end() #define debug(var) \ do { \ ...
#include <bits/stdc++.h> #define FOR(i, a, b) for (int i = (a); i < (b); ++i) #define REP(i, n) FOR(i, 0, n) #define ALL(obj) (obj).begin(), (obj).end() #define debug(var) \ do { \ ...
[ "identifier.change", "call.function.change", "call.arguments.add" ]
314,880
314,881
u215692812
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define rep(i, n) for (int i = 0; i < (n); ++i) #define rep1(i, n) for (int i = 1; i <= (n); ++i) #define Sort(Array) sort(Array.begin(), Array.end()) #define Reverse(a) reverse(a.begin(), a.end()) #define out(ans) cout << ans << endl; int main() ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define rep(i, n) for (int i = 0; i < (n); ++i) #define rep1(i, n) for (int i = 1; i <= (n); ++i) #define Sort(Array) sort(Array.begin(), Array.end()) #define Reverse(a) reverse(a.begin(), a.end()) #define out(ans) cout << ans << endl; int main() ...
[ "assignment.value.change", "assignment.change" ]
314,882
314,883
u244391385
cpp
p02608
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define int long...
#include <bits/stdc++.h> using namespace std; #define IOS \ ios::sync_with_stdio(0); \ cin.tie(0); \ cout.tie(0); #define int long...
[ "identifier.replace.add", "literal.replace.remove", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,887
314,888
u617339064
cpp
p02608
// // AISing 2020 // C // #include <algorithm> #include <cassert> #include <cmath> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <tuple> #include <vector> using namespace std; #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #d...
// // AISing 2020 // C // #include <algorithm> #include <cassert> #include <cmath> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <tuple> #include <vector> using namespace std; #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #d...
[ "literal.number.change", "expression.operation.binary.change", "call.arguments.add" ]
314,891
314,892
u506417357
cpp
p02608
// // AISing 2020 // C // #include <algorithm> #include <cassert> #include <cmath> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <tuple> #include <vector> using namespace std; #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #d...
// // AISing 2020 // C // #include <algorithm> #include <cassert> #include <cmath> #include <ctime> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <tuple> #include <vector> using namespace std; #define REP(i, n) for (ll i = 0; i < (ll)(n); i++) #d...
[ "call.arguments.add" ]
314,893
314,892
u506417357
cpp
p02608
#include <algorithm> #include <iostream> #include <math.h> using namespace std; int main() { int n; int f[10005] = {0}; // (x+y)^2 + (y+z)^2 + (x+z)^2 = 2n cin >> n; for (int x = 1; x < 142; x++) { if (x * x > 2 * n) break; for (int y = 1; y < 142; y++) { if ((x + y) * (x + y) > 2 * n) ...
#include <algorithm> #include <iostream> #include <math.h> using namespace std; int main() { int n; int f[10005] = {0}; // (x+y)^2 + (y+z)^2 + (x+z)^2 = 2n cin >> n; for (int x = 1; x < 142; x++) { if (x * x > 2 * n) break; for (int y = 1; y < 142; y++) { if ((x + y) * (x + y) > 2 * n) ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
314,896
314,897
u261245192
cpp
p02608
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<int> A(100000); for (int i = 1; i <= 41; i++) { for (int j = 1; j <= 41; j++) { for (int k = 1; k <= 41; k++) { A.at(i * i + j * j + k * k + i * j + j * k + k * i)++; } } } for (int i = 1; i <= N; ...
#include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; vector<int> A(100000); for (int i = 1; i <= 102; i++) { for (int j = 1; j <= 102; j++) { for (int k = 1; k <= 102; k++) { A.at(i * i + j * j + k * k + i * j + j * k + k * i)++; } } } for (int i = 1; i <=...
[ "literal.number.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
314,903
314,904
u977547071
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long int ll; ll powk(ll a, ll n = 2) { ll r = 1; for (ll i = 0; i < n; i++) { r *= a; } return r; } int main() { ll n; cin >> n; vector<ll> a(n + 10); for (ll i = 1; i <= n; i++) { for (ll j = i; j <= n; j++) { for (ll k = j; k ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; ll powk(ll a, ll n = 2) { ll r = 1; for (ll i = 0; i < n; i++) { r *= a; } return r; } int main() { ll n; cin >> n; vector<ll> a(n + 10); for (ll i = 1; i <= n; i++) { for (ll j = i; j <= n; j++) { for (ll k = j; k ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
314,907
314,908
u125051909
cpp
p02608
#include <bits/stdc++.h> using namespace std; typedef long long int ll; ll powk(ll a, ll n = 2) { ll r = 1; for (ll i = 0; i < n; i++) { r *= a; } return r; } int main() { ll n; cin >> n; vector<ll> a(n + 10); for (ll i = 1; i <= n; i++) { for (ll j = i; j <= n; j++) { for (ll k = j; k ...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; ll powk(ll a, ll n = 2) { ll r = 1; for (ll i = 0; i < n; i++) { r *= a; } return r; } int main() { ll n; cin >> n; vector<ll> a(n + 10); for (ll i = 1; i <= n; i++) { for (ll j = i; j <= n; j++) { for (ll k = j; k ...
[ "expression.operation.binary.add" ]
314,909
314,908
u125051909
cpp