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 |
|---|---|---|---|---|---|---|---|
p04048 | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define REP(i, k, n) for (int i = k; i < n; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
#define all(v) v.begin(), v.end()
#define each(it, c) ... | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define REP(i, k, n) for (int i = k; i < n; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
#define all(v) v.begin(), v.end()
#define each(it, c) ... | [
"variable_declaration.type.change",
"identifier.replace.add",
"literal.replace.remove",
"io.output.change"
] | 1,535,154 | 1,535,152 | u862247446 | cpp |
p04048 | #include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <queue>
#include <string>
#include <vector>
using namespace std;
const double pi = 4 * atan(1.0);
int main() {
long long N, X;
cin >> N >> X;
long long... | #include <algorithm>
#include <array>
#include <climits>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <queue>
#include <string>
#include <vector>
using namespace std;
const double pi = 4 * atan(1.0);
int main() {
long long N, X;
cin >> N >> X;
long long... | [
"expression.operation.binary.remove"
] | 1,535,157 | 1,535,158 | u653020951 | cpp |
p04048 | #include <iostream>
using namespace std;
int main() {
long long int N;
long long int X, p, pl, c = 0, sum = 0;
cin >> N >> X;
long long int S, L;
sum += N;
if (X < N - X) {
S = X;
L = N - X;
} else {
S = N - X;
L = X;
}
if (X == 1) {
sum = 0;
sum += (N - X) * 3;
cout << ... | #include <iostream>
using namespace std;
int main() {
long long int N;
long long int X, p, pl, c = 0, sum = 0;
cin >> N >> X;
long long int S, L;
sum += N;
if (X < N - X) {
S = X;
L = N - X;
} else {
S = N - X;
L = X;
}
if (X == 1) {
sum = 0;
sum += (N - X) * 3;
cout << ... | [
"assignment.change"
] | 1,535,159 | 1,535,160 | u504407856 | cpp |
p04048 | #include <iostream>
using namespace std;
int main() {
long long int N;
long long int X, p, pl, c = 0, sum = 0;
cin >> N >> X;
long long int S, L;
sum += N;
if (X < N - X) {
S = X;
L = N - X;
} else {
S = N - X;
L = X;
}
if (X == 1) {
sum = 0;
sum += (N - X) * 3;
cout << ... | #include <iostream>
using namespace std;
int main() {
long long int N;
long long int X, p, pl, c = 0, sum = 0;
cin >> N >> X;
long long int S, L;
sum += N;
if (X < N - X) {
S = X;
L = N - X;
} else {
S = N - X;
L = X;
}
if (X == 1) {
sum = 0;
sum += (N - X) * 3;
cout << ... | [
"assignment.change"
] | 1,535,161 | 1,535,160 | u504407856 | cpp |
p04048 | #include <bits/stdc++.h>
using namespace std;
long long dfs(long long a, long long b, int t) {
if (b == 0) {
if (t != 2)
return -a;
return 0;
}
// cout << "r:" << a << " " << b << endl;
// cout << (a/b) * 2 * b << " " << ( ((a%b!=0) && (t%2==1)) ?b:0) << endl;
return (a / b) * 2 * b + (((a % b... | #include <bits/stdc++.h>
using namespace std;
long long dfs(long long a, long long b, int t) {
if (b == 0) {
if (t != 2)
return -a;
return 0;
}
// cout << "r:" << a << " " << b << endl;
// cout << (a/b) * 2 * b << " " << ( ((a%b!=0) && (t%2==1)) ?b:0) << endl;
return (a / b) * 2 * b + (((a % b... | [
"expression.operation.binary.remove"
] | 1,535,164 | 1,535,165 | u560301081 | cpp |
p04048 | // #define _CRT_SECURE_NO_WARNINGS
// #define _USE_MATH_DEFINES
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iomanip> // 10桁出力 cout << setprecision(10) << double;
#include <iostream>
#include <locale>
#include <map>
#include <queue>
#includ... | // #define _CRT_SECURE_NO_WARNINGS
// #define _USE_MATH_DEFINES
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iomanip> // 10桁出力 cout << setprecision(10) << double;
#include <iostream>
#include <locale>
#include <map>
#include <queue>
#includ... | [] | 1,535,166 | 1,535,167 | u211964883 | cpp |
p04048 | #include <algorithm>
#include <cstdio>
using namespace std;
long long N, X;
long long rec(long long n, long long x, bool init) {
long long y = n - x;
if (x > y)
swap(x, y);
long long ret = init ? x + y : 0;
long long p = y / x, q = y % x;
if (q == 0)
return ret + (p - 1) * 2LL * x + x;
return ret... | #include <algorithm>
#include <cstdio>
using namespace std;
long long N, X;
long long rec(long long n, long long x, bool init) {
long long y = init ? n - x : n;
if (x > y)
swap(x, y);
long long ret = init ? x + y : 0;
long long p = y / x, q = y % x;
if (q == 0)
return ret + (p - 1) * 2LL * x + x;
... | [] | 1,535,168 | 1,535,169 | u802566980 | cpp |
p04048 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <... | [
"expression.operation.binary.add"
] | 1,535,172 | 1,535,173 | u642276427 | cpp |
p04048 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>... | [
"assignment.add"
] | 1,535,176 | 1,535,177 | u130110495 | cpp |
p04048 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define REP(i, n) for (int i = 0; i < (int)(n); ++i)
#define DEBUG(x) cerr << #x << " = " << x << endl
int f(int a, int b) {
assert(a > 0 && b > 0);
assert(a > b);
assert(a >= 2 * b);
// cerr << "f(" << a << "," << b << ")" << endl;
if (a % b... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define REP(i, n) for (int i = 0; i < (int)(n); ++i)
#define DEBUG(x) cerr << #x << " = " << x << endl
int f(int a, int b) {
assert(a > 0 && b > 0);
assert(a > b);
assert(a >= 2 * b);
// cerr << "f(" << a << "," << b << ")" << endl;
// if(a %... | [
"expression.operation.binary.remove"
] | 1,535,182 | 1,535,181 | u015679112 | cpp |
p04048 | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define ll long long int
#define ti4 tuple<int, int, int, int>
#define pii pair<ll, ll>
int main() {
ll n, x;
cin >> n >> x;
... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
using namespace std;
#define ll long long int
#define ti4 tuple<int, int, int, int>
#define pii pair<ll, ll>
int main() {
ll n, x;
cin >> n >> x;
... | [
"assignment.change"
] | 1,535,205 | 1,535,206 | u834771741 | cpp |
p04048 | #include <iostream>
using namespace std;
long long calc(long long a, long long b) {
long long d;
if (a > b) {
d = a / b;
if (a == b * d) {
return b * (2 * d - 1);
} else {
return 2 * b * d + calc(b, a - (b * d));
}
} else {
return calc(b, a);
}
}
int main() {
long long n;
l... | #include <iostream>
using namespace std;
long long calc(long long a, long long b) {
long long d;
if (a >= b) {
d = a / b;
if (a == b * d) {
return b * (2 * d - 1);
} else {
return 2 * b * d + calc(b, a - (b * d));
}
} else {
return calc(b, a);
}
}
int main() {
long long n;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,535,207 | 1,535,208 | u007610006 | cpp |
p04048 | #include <algorithm>
#include <functional>
#include <iomanip>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long int ll;
const int MOD = 1000000007;
int main() {
ll N, X;
ll ans = 0;
cin >> N >> X;
ans += N;
ll a = X;
ll b = N - X;
while (b %... | #include <algorithm>
#include <functional>
#include <iomanip>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long int ll;
const int MOD = 1000000007;
int main() {
ll N, X;
ll ans = 0;
cin >> N >> X;
ans += N;
ll a = X;
ll b = N - X;
while (b %... | [
"identifier.replace.add",
"literal.replace.remove",
"io.output.change"
] | 1,535,211 | 1,535,212 | u308377927 | cpp |
p04048 | #include <bits/stdc++.h>
#define SZ(X) ((int)(X).size())
#define ALL(X) (X).begin(), (X).end()
#define REP(I, N) for (int I = 0; I < (N); ++I)
#define REPP(I, A, B) for (int I = (A); I < (B); ++I)
#define RI(X) scanf("%d", &(X))
#define RII(X, Y) scanf("%d%d", &(X), &(Y))
#define RIII(X, Y, Z) scanf("%d%d%d", &(X), &(Y... | #include <bits/stdc++.h>
#define SZ(X) ((int)(X).size())
#define ALL(X) (X).begin(), (X).end()
#define REP(I, N) for (int I = 0; I < (N); ++I)
#define REPP(I, A, B) for (int I = (A); I < (B); ++I)
#define RI(X) scanf("%d", &(X))
#define RII(X, Y) scanf("%d%d", &(X), &(Y))
#define RIII(X, Y, Z) scanf("%d%d%d", &(X), &(Y... | [
"assignment.change"
] | 1,535,213 | 1,535,214 | u284124505 | cpp |
p04048 | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
#define ccl main
using namespace std;
typedef long long ll;
ll n, x, a, b, ans;
int ccl() {
cin >> n >> x;
a = x;
... | #include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
#define ccl main
using namespace std;
typedef long long ll;
ll n, x, a, b, ans;
int ccl() {
cin >> n >> x;
a = x;
... | [
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 1,535,215 | 1,535,216 | u254557355 | cpp |
p04048 | // {{{ by shik
#include <bits/stdc++.h>
#include <unistd.h>
#define SZ(x) ((int)(x).size())
#define ALL(x) begin(x), end(x)
#define REP(i, n) for (int i = 0; i < int(n); i++)
#define REP1(i, a, b) for (int i = (a); i <= int(b); i++)
#define FOR(it, c) for (auto it = (c).begin(); it != (c).end(); it++)
#define MP make_p... | // {{{ by shik
#include <bits/stdc++.h>
#include <unistd.h>
#define SZ(x) ((int)(x).size())
#define ALL(x) begin(x), end(x)
#define REP(i, n) for (int i = 0; i < int(n); i++)
#define REP1(i, a, b) for (int i = (a); i <= int(b); i++)
#define FOR(it, c) for (auto it = (c).begin(); it != (c).end(); it++)
#define MP make_p... | [] | 1,535,219 | 1,535,220 | u280354208 | cpp |
p04048 | #include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
typedef long long ll;
typedef pair<ll, ll> P;
const int INF = INT_MAX / 3;
cons... | #include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
typedef long long ll;
typedef pair<ll, ll> P;
const int INF = INT_MAX / 3;
cons... | [
"identifier.replace.add",
"literal.replace.remove",
"function.return_value.change",
"expression.operation.binary.change"
] | 1,535,223 | 1,535,224 | u846586570 | cpp |
p04048 | #include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
typedef long long ll;
typedef pair<ll, ll> P;
const int INF = INT_MAX / 3;
cons... | #include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
typedef long long ll;
typedef pair<ll, ll> P;
const int INF = INT_MAX / 3;
cons... | [
"identifier.replace.add",
"literal.replace.remove",
"function.return_value.change",
"expression.operation.binary.change"
] | 1,535,225 | 1,535,224 | u846586570 | cpp |
p04048 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define MOD 1000000007
#define ADD(X, Y) ((X) = ((X) + (Y) % MOD) % MOD)
typedef long... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define MOD 1000000007
#define ADD(X, Y) ((X) = ((X) + (Y) % MOD) % MOD)
typedef long... | [
"expression.operation.binary.remove"
] | 1,535,226 | 1,535,227 | u967083551 | cpp |
p04049 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <queue>
#include <tuple>
#include <vector>
using namespace std;
int n, k;
vector<int> graph[2001];
int dist[2001];
int distr1[2001], distr2[2001];
pair<vector<int>, int> fardist(int st, int dist[]) {
memset(dist, -1, sizeof(int) * (n + 1));
queue... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <queue>
#include <tuple>
#include <vector>
using namespace std;
int n, k;
vector<int> graph[2001];
int dist[2001];
int distr1[2001], distr2[2001];
pair<vector<int>, int> fardist(int st, int dist[]) {
memset(dist, -1, sizeof(int) * (n + 1));
queue... | [
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 1,535,242 | 1,535,243 | u857552129 | cpp |
p04049 | #include <bits/stdc++.h>
using namespace std;
#define dbgs(x) cerr << (#x) << " --> " << (x) << ' '
#define dbg(x) cerr << (#x) << " --> " << (x) << endl
#define foreach(i, x) for (type(x) i = x.begin(); i != x.end(); i++)
#define FOR(ii, aa, bb) for (int ii = aa; ii <= bb; ii++)
#define ROF(ii, aa, bb) for (int ii ... | #include <bits/stdc++.h>
using namespace std;
#define dbgs(x) cerr << (#x) << " --> " << (x) << ' '
#define dbg(x) cerr << (#x) << " --> " << (x) << endl
#define foreach(i, x) for (type(x) i = x.begin(); i != x.end(); i++)
#define FOR(ii, aa, bb) for (int ii = aa; ii <= bb; ii++)
#define ROF(ii, aa, bb) for (int ii ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.number.change",
"function.return_value.change"
] | 1,535,244 | 1,535,245 | u230145211 | cpp |
p04049 | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 2001;
int n, max_diam;
vector<int> nxt[MAXN];
vector<pair<int, int>> edges;
bool vis[MAXN];
int get_tree_size(int v, int depth) {
vis[v] = 1;
int ret = 0;
if (depth < max_diam / 2) {
for (int w : nxt[v]) {
if (!vis[w]) {
ret += g... | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 2001;
int n, max_diam;
vector<int> nxt[MAXN];
vector<pair<int, int>> edges;
bool vis[MAXN];
int get_tree_size(int v, int depth) {
vis[v] = 1;
int ret = 0;
if (depth < max_diam / 2) {
for (int w : nxt[v]) {
if (!vis[w]) {
ret += g... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,535,246 | 1,535,247 | u939951826 | cpp |
p04049 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <vector>
using namespace std;
int n, k;
vector<int> arr[2100];
int ans = 2100;
int lim1, lim2;
int cnt1, cnt2;
void go2(int id, int par, int dep) {
if (dep > lim1)
cnt1++;
if (dep > lim2)
cnt2++;
for (int nid : arr[id... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <vector>
using namespace std;
int n, k;
vector<int> arr[2100];
int ans = 2100;
int lim1, lim2;
int cnt1, cnt2;
void go2(int id, int par, int dep) {
if (dep > lim1)
cnt1++;
if (dep > lim2)
cnt2++;
for (int nid : arr[id... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,535,252 | 1,535,253 | u148175039 | cpp |
p04049 | /* Written by Filip Hlasek 2016 */
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define FORD(i, a, b) for (int i = (... | /* Written by Filip Hlasek 2016 */
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define FORD(i, a, b) for (int i = (... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"function.return_value.change"
] | 1,535,254 | 1,535,255 | u309793433 | cpp |
p04052 | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef pair<LL, LL> pii;
int N, K, num;
int A[505050];
int T[2020202];
bool chk[505050];
int ans[505050];
void update(int id, int s, int e, int t) {
if (e < t || t < s)
return;
if (s == e) {
T[id] = t;
return;
}
int mid = (s + e)... | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef pair<LL, LL> pii;
int N, K, num;
int A[505050];
int T[2020202];
bool chk[505050];
int ans[505050];
void update(int id, int s, int e, int t) {
if (e < t || t < s)
return;
if (s == e) {
T[id] = t;
return;
}
int mid = (s + e)... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 1,535,400 | 1,535,401 | u342566144 | cpp |
p04052 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
priority_queue<int, vector<int>, greater<int>> Q;
const int N = 500005;
#define mid ((l + r) >> 1)
int a[N], val[N << 2];
inline int query(int root, int l, int r, int L, int R) {
if (r < L || l > R)
... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
priority_queue<int, vector<int>, greater<int>> Q;
const int N = 500005;
#define mid ((l + r) >> 1)
int a[N], val[N << 2];
inline int query(int root, int l, int r, int L, int R) {
if (r < L || l > R)
... | [
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 1,535,406 | 1,535,407 | u389411299 | cpp |
p04052 | #include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
#define M 500010
#define ls node << 1
#define rs node << 1 | 1
#define inf 1e9
using namespace std;
int n, num, k, cnt;
int p[M], a[M], dig[M], ans[M], head[M], val[M << 2];
struct edge {
int next, to;
} e[M << 1];
void add(int from, int to) {
... | #include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
#define M 500010
#define ls node << 1
#define rs node << 1 | 1
#define inf 1e9
using namespace std;
int n, num, k, cnt;
int p[M], a[M], dig[M], ans[M], head[M], val[M << 2];
struct edge {
int next, to;
} e[M << 1];
void add(int from, int to) {
... | [
"assignment.variable.change",
"variable_access.subscript.index.change",
"assignment.value.change"
] | 1,535,408 | 1,535,409 | u494549552 | cpp |
p04052 | #include <bits/stdc++.h>
using namespace std;
const int maxn = 500010, inf = 0x7fffffff;
int n, k, p[maxn], q[maxn], minn[maxn << 2], du[maxn], ans[maxn], cnt;
vector<int> V[maxn];
void pushup(int o) { minn[o] = min(minn[o * 2], minn[o * 2 + 1]); }
void build(int o, int l, int r) {
if (l == r) {
minn[o] = inf... | #include <bits/stdc++.h>
using namespace std;
const int maxn = 500010, inf = 0x7fffffff;
int n, k, p[maxn], q[maxn], minn[maxn << 2], du[maxn], ans[maxn], cnt;
vector<int> V[maxn];
void pushup(int o) { minn[o] = min(minn[o * 2], minn[o * 2 + 1]); }
void build(int o, int l, int r) {
if (l == r) {
minn[o] = inf... | [
"assignment.variable.change",
"variable_access.subscript.index.change",
"assignment.value.change"
] | 1,535,414 | 1,535,415 | u506307945 | cpp |
p04052 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
using namespace std;
#define LL long long
inline int read() {
int x = 0, f = 1;
char c = getchar();
for (; !isdigit(c); c = getchar())
if (c == '-')
f = -1;
for (; isdigit(... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
using namespace std;
#define LL long long
inline int read() {
int x = 0, f = 1;
char c = getchar();
for (; !isdigit(c); c = getchar())
if (c == '-')
f = -1;
for (; isdigit(... | [
"identifier.change",
"call.arguments.change"
] | 1,535,420 | 1,535,421 | u319063967 | cpp |
p04052 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, n) for (int i = 0; i < (n); i++)
#define pb push_back
#define all(v) (v).begin(), (v).end()
#define fi first
#define se second
typedef vector<int> vint;
typedef pair<int, int> pint;
typedef vector<pint> vpint;
template <typename A, ty... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, n) for (int i = 0; i < (n); i++)
#define pb push_back
#define all(v) (v).begin(), (v).end()
#define fi first
#define se second
typedef vector<int> vint;
typedef pair<int, int> pint;
typedef vector<pint> vpint;
template <typename A, ty... | [
"expression.operation.binary.add"
] | 1,535,428 | 1,535,429 | u685892567 | cpp |
p04052 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, n) for (int i = 0; i < (n); i++)
#define pb push_back
#define all(v) (v).begin(), (v).end()
#define fi first
#define se second
typedef vector<int> vint;
typedef pair<int, int> pint;
typedef vector<pint> vpint;
template <typename A, ty... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, n) for (int i = 0; i < (n); i++)
#define pb push_back
#define all(v) (v).begin(), (v).end()
#define fi first
#define se second
typedef vector<int> vint;
typedef pair<int, int> pint;
typedef vector<pint> vpint;
template <typename A, ty... | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 1,535,430 | 1,535,429 | u685892567 | cpp |
p04052 | #include <bits/stdc++.h>
using namespace std;
int QueryAns, N, K, answer[500009], P[500009], arr[500009], aint[2000017];
bool in_q[500009];
priority_queue<int> PQ;
void Update(int nod, int st, int dr, int pos, int val) {
if (st == dr) {
arr[pos] = val, aint[nod] = pos;
return;
}
int mij = (st + dr) >> ... | #include <bits/stdc++.h>
using namespace std;
int QueryAns, N, K, answer[500009], P[500009], arr[500009], aint[2000017];
bool in_q[500009];
priority_queue<int> PQ;
void Update(int nod, int st, int dr, int pos, int val) {
if (st == dr) {
arr[pos] = val, aint[nod] = pos;
return;
}
int mij = (st + dr) >> ... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change",
"assignment.value.change"
] | 1,535,437 | 1,535,438 | u098930106 | cpp |
p04051 | #include <bits/stdc++.h>
using namespace std;
#define int long long
namespace yspm {
inline int read() {
int res = 0, f = 1;
char k;
while (!isdigit(k = getchar()))
if (k == '-')
f = -1;
while (isdigit(k))
res = res * 10 + k - '0', k = getchar();
return res * f;
}
const int mod = 1e9 + 7, N = 4e... | #include <bits/stdc++.h>
using namespace std;
#define int long long
namespace yspm {
inline int read() {
int res = 0, f = 1;
char k;
while (!isdigit(k = getchar()))
if (k == '-')
f = -1;
while (isdigit(k))
res = res * 10 + k - '0', k = getchar();
return res * f;
}
const int mod = 1e9 + 7, N = 4e... | [
"assignment.change"
] | 1,535,445 | 1,535,446 | u228550757 | cpp |
p04051 | #include <bits/stdc++.h>
#define MOD 1000000007
#define ll long long
using namespace std;
int n, a[200010], b[200010];
int mp[4010][4010], c[4010][4010];
ll ans;
int main() {
c[0][0] = 1;
for (int i = 1; i <= 8000; i++) {
c[i][0] = 1;
int l = min(i, 4000);
for (int j = 1; j <= l; j++)
c[i][j] = (c... | #include <bits/stdc++.h>
#define MOD 1000000007
#define ll long long
using namespace std;
int n, a[200010], b[200010];
int mp[4010][4010], c[8010][4010];
ll ans;
int main() {
c[0][0] = 1;
for (int i = 1; i <= 8000; i++) {
c[i][0] = 1;
int l = min(i, 4000);
for (int j = 1; j <= l; j++)
c[i][j] = (c... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 1,535,462 | 1,535,463 | u417506685 | cpp |
p04051 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 2e5 + 3;
const int maxB = 4000 + 10;
const int mod = 1e9 + 7;
int B = 2000;
int x[maxn], y[maxn];
int fac[maxB], rev[maxB], dp[maxB][maxB];
int power(int a, int b) {
if (b == 0)
return 1;
int ret = power(a, b / 2);
ret = ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 2e5 + 3;
const int maxB = 8000 + 10;
const int mod = 1e9 + 7;
int B = 2000;
int x[maxn], y[maxn];
int fac[maxB], rev[maxB], dp[maxB][maxB];
int power(int a, int b) {
if (b == 0)
return 1;
int ret = power(a, b / 2);
ret = ... | [
"literal.number.change",
"expression.operation.binary.change"
] | 1,535,559 | 1,535,560 | u001596356 | cpp |
p04051 | // by OIerC
// Forca Barcelona!
#include <cstdio>
using namespace std;
const int P = 1e9 + 7;
void add(int &a, int b) {
a += b;
a >= P ? a -= P : 0;
}
void sub(int &a, int b) {
a -= b;
a < 0 ? a += P : 0;
}
inline int read() {
int x = 0, f = 1;
char ch = getchar();
for (; ch < '0' || ch > '9'; ch = getc... | // by OIerC
// Forca Barcelona!
#include <cstdio>
using namespace std;
const int P = 1e9 + 7;
void add(int &a, int b) {
a += b;
a >= P ? a -= P : 0;
}
void sub(int &a, int b) {
a -= b;
a < 0 ? a += P : 0;
}
inline int read() {
int x = 0, f = 1;
char ch = getchar();
for (; ch < '0' || ch > '9'; ch = getc... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 1,535,564 | 1,535,565 | u842424397 | cpp |
p04051 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
typedef long long LL;
const int N = 200005;
const int MOD = 1e9 + 7;
const int Inv = 499122177;
int add(int x, int y) {
x = x + y;
return x >= MOD ? x - MOD : x;
}
int mul(int x, int y) { return (LL)... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
typedef long long LL;
const int N = 200005;
const int MOD = 1e9 + 7;
const int Inv = 500000004;
int add(int x, int y) {
x = x + y;
return x >= MOD ? x - MOD : x;
}
int mul(int x, int y) { return (LL)... | [
"literal.number.change",
"variable_declaration.value.change"
] | 1,535,592 | 1,535,593 | u182586630 | cpp |
p04051 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <math.h>
using namespace std;
typedef long long ll;
const int MAXN = 1e6 + 10;
const int MM = 8e3 + 10;
const int Mod = 1e9 + 7;
int N;
int A[MAXN], B[MAXN];
ll fac[MAXN], ifc[MAXN];
ll f[MM][MM];
ll ans;
inline int fp(int a, int b)... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <math.h>
using namespace std;
typedef long long ll;
const int MAXN = 1e6 + 10;
const int MM = 4e3 + 10;
const int Mod = 1e9 + 7;
int N;
int A[MAXN], B[MAXN];
ll fac[MAXN], ifc[MAXN];
ll f[MM][MM];
ll ans;
inline int fp(int a, int b)... | [
"literal.number.change",
"expression.operation.binary.change"
] | 1,535,630 | 1,535,631 | u304291274 | cpp |
p04051 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <math.h>
using namespace std;
typedef long long ll;
const int MAXN = 1e6 + 10;
const int MM = 4e3 + 10;
const int Mod = 1e9 + 7;
int N;
int A[MAXN], B[MAXN];
ll fac[MM], ifc[MM];
ll f[MM][MM];
ll ans;
inline int fp(int a, int b) {
... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <math.h>
using namespace std;
typedef long long ll;
const int MAXN = 1e6 + 10;
const int MM = 4e3 + 10;
const int Mod = 1e9 + 7;
int N;
int A[MAXN], B[MAXN];
ll fac[MAXN], ifc[MAXN];
ll f[MM][MM];
ll ans;
inline int fp(int a, int b)... | [
"identifier.change",
"variable_declaration.array_dimensions.change"
] | 1,535,632 | 1,535,631 | u304291274 | cpp |
p04051 | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e5 + 10, mod = 1e9 + 7;
inline int read() {
int x = 0, f = 1;
char c = getchar();
while (c < '0' || c > '9') {
if (c == '-')
f = -1;
c = getchar();
}
while (c >= '0' && c <= '9')
x = x * 10 + c - '0', c = getchar();
return x *... | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e5 + 10, mod = 1e9 + 7;
inline int read() {
int x = 0, f = 1;
char c = getchar();
while (c < '0' || c > '9') {
if (c == '-')
f = -1;
c = getchar();
}
while (c >= '0' && c <= '9')
x = x * 10 + c - '0', c = getchar();
return x *... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 1,535,650 | 1,535,651 | u049278965 | cpp |
p04051 | #include <cstdio>
int cnt, mo, n, m, dp[4011][4011], x[200001], y[200001], xi[501], yi[501], a, b,
tot, ans, jie[20001], ni[20001];
int mi(int aa, int bb) {
int s = 1;
while (bb != 0) {
if ((bb % 2) == 1)
s = (1ll * s * aa) % mo;
aa = (1ll * aa * aa) % mo;
bb = bb / 2;
}
return (s);
}
int ... | #include <cstdio>
int cnt, mo, n, m, dp[4011][4011], x[200001], y[200001], xi[501], yi[501], a, b,
tot, ans, jie[20001], ni[20001];
int mi(int aa, int bb) {
int s = 1;
while (bb != 0) {
if ((bb % 2) == 1)
s = (1ll * s * aa) % mo;
aa = (1ll * aa * aa) % mo;
bb = bb / 2;
}
return (s);
}
int ... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"assignment.variable.change",
"variable_access.subscript.index.change",
"assignment.value.change",
"call.arguments.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer... | 1,535,674 | 1,535,675 | u882450222 | cpp |
p04051 | /*
Author: isaf27 (Ivan Safonov)
*/
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
using namespace std;
// defines
typedef long long ll;
typedef long double ld;
#define TIME clock() * 1.0 / CLOCKS_PER_SEC
#define fastIO ios_base::sync_with_stdio(0)
#define nul point(0, 0)
#define str_to_int(stroka) atoi(str... | /*
Author: isaf27 (Ivan Safonov)
*/
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
using namespace std;
// defines
typedef long long ll;
typedef long double ld;
#define TIME clock() * 1.0 / CLOCKS_PER_SEC
#define fastIO ios_base::sync_with_stdio(0)
#define nul point(0, 0)
#define str_to_int(stroka) atoi(str... | [
"identifier.replace.remove",
"literal.replace.add",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"identifier.replace.add",
"literal.replace.remove"
] | 1,535,676 | 1,535,677 | u796509647 | cpp |
p04051 | /*
Author: isaf27 (Ivan Safonov)
*/
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
using namespace std;
// defines
typedef long long ll;
typedef long double ld;
#define TIME clock() * 1.0 / CLOCKS_PER_SEC
#define fastIO ios_base::sync_with_stdio(0)
#define nul point(0, 0)
#define str_to_int(stroka) atoi(str... | /*
Author: isaf27 (Ivan Safonov)
*/
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
using namespace std;
// defines
typedef long long ll;
typedef long double ld;
#define TIME clock() * 1.0 / CLOCKS_PER_SEC
#define fastIO ios_base::sync_with_stdio(0)
#define nul point(0, 0)
#define str_to_int(stroka) atoi(str... | [
"identifier.replace.remove",
"literal.replace.add",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"identifier.replace.add",
"literal.replace.remove"
] | 1,535,678 | 1,535,677 | u796509647 | cpp |
p04051 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stdlib.h>
#include <string>
#include <vector>
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define LL long long
#define... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stdlib.h>
#include <string>
#include <vector>
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define LL long long
#define... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 1,535,717 | 1,535,718 | u651830993 | cpp |
p04051 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <vector>
#define Rep(i, n) for (int i = 1; i <= n; i++)
#define Rep0(i, n) for (int i = 0; i <= n; i++)
#define RepG(i, x) for (int i = head[x]; i; i = edge[i].next)
#define v edge[i].to
#define mp(a, b) make_pair(a, b)
using namespac... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <vector>
#define Rep(i, n) for (int i = 1; i <= n; i++)
#define Rep0(i, n) for (int i = 0; i <= n; i++)
#define RepG(i, x) for (int i = head[x]; i; i = edge[i].next)
#define v edge[i].to
#define mp(a, b) make_pair(a, b)
using namespac... | [
"assignment.change",
"expression.operation.binary.remove"
] | 1,535,724 | 1,535,725 | u078959798 | cpp |
p04051 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll maxx = 4004, maxn = 2e5 + 20, mod = 1e9 + 7, gaam = 2002;
ll dp[maxx][maxx], fac[maxn], a[maxn], b[maxn], n;
ll pw(ll a, ll b) {
if (!b)
return 1ll;
ll x = pw(a, b / 2);
x = (x * x) % mod;
if (b % 2)
x = (x * a) % mod;
r... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll maxx = 4004, maxn = 2e5 + 20, mod = 1e9 + 7, gaam = 2001;
ll dp[maxx][maxx], fac[maxn], a[maxn], b[maxn], n;
ll pw(ll a, ll b) {
if (!b)
return 1ll;
ll x = pw(a, b / 2);
x = (x * x) % mod;
if (b % 2)
x = (x * a) % mod;
r... | [
"literal.number.change",
"variable_declaration.value.change"
] | 1,535,780 | 1,535,781 | u248818938 | cpp |
p04051 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll maxx = 4004, maxn = 2e5 + 20, mod = 1e9 + 7, gaam = 4;
ll dp[maxx][maxx], fac[maxn], a[maxn], b[maxn], n;
ll pw(ll a, ll b) {
if (!b)
return 1ll;
ll x = pw(a, b / 2);
x = (x * x) % mod;
if (b % 2)
x = (x * a) % mod;
retu... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll maxx = 4004, maxn = 2e5 + 20, mod = 1e9 + 7, gaam = 2001;
ll dp[maxx][maxx], fac[maxn], a[maxn], b[maxn], n;
ll pw(ll a, ll b) {
if (!b)
return 1ll;
ll x = pw(a, b / 2);
x = (x * x) % mod;
if (b % 2)
x = (x * a) % mod;
r... | [
"literal.number.change",
"variable_declaration.value.change"
] | 1,535,782 | 1,535,781 | u248818938 | cpp |
p04051 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll maxx = 4004, maxn = 1e5 + 20, mod = 1e9 + 7, gaam = 4;
ll dp[maxx][maxx], fac[maxn], a[maxn], b[maxn], n;
ll pw(ll a, ll b) {
if (!b)
return 1ll;
ll x = pw(a, b / 2);
x = (x * x) % mod;
if (b % 2)
x = (x * a) % mod;
retu... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll maxx = 4004, maxn = 2e5 + 20, mod = 1e9 + 7, gaam = 2001;
ll dp[maxx][maxx], fac[maxn], a[maxn], b[maxn], n;
ll pw(ll a, ll b) {
if (!b)
return 1ll;
ll x = pw(a, b / 2);
x = (x * x) % mod;
if (b % 2)
x = (x * a) % mod;
r... | [
"literal.number.change",
"expression.operation.binary.change",
"variable_declaration.value.change"
] | 1,535,783 | 1,535,781 | u248818938 | cpp |
p04051 | // 84104971101048411497 - Can you guess what does this mean?
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef complex<double> point;
#define mapii map<int, int>
#define debug(a) cout << #a << ": " << a << endl
#define debuga1(a, l, r) \
... | // 84104971101048411497 - Can you guess what does this mean?
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef complex<double> point;
#define mapii map<int, int>
#define debug(a) cout << #a << ": " << a << endl
#define debuga1(a, l, r) \
... | [
"type_conversion.add"
] | 1,535,791 | 1,535,792 | u462349313 | cpp |
p04051 | // satyaki3794
#include <bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define MOD (1000000007LL)
#define LEFT(n) (2 * (n))
#define RIGHT(n) (2 * (n) + 1)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> ii;
ll pwr(ll base, ll p, ll mod = MOD) ... | // satyaki3794
#include <bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define MOD (1000000007LL)
#define LEFT(n) (2 * (n))
#define RIGHT(n) (2 * (n) + 1)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> ii;
ll pwr(ll base, ll p, ll mod = MOD) ... | [
"literal.number.change",
"variable_declaration.value.change"
] | 1,535,799 | 1,535,800 | u387876802 | cpp |
p04051 |
/*{{{*/
//#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#ifdef __linux__
#define getchar getchar_unlocked
#define putchar putchar_unlocked
#endif
typedef long long ll;
typedef std::pair<int, int> pii;
std::string Name = __FILE__;
std::string iput = Name.substr(0, Name.length() - 4) + ".in";
std::string oput ... |
/*{{{*/
//#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#ifdef __linux__
#define getchar getchar_unlocked
#define putchar putchar_unlocked
#endif
typedef long long ll;
typedef std::pair<int, int> pii;
std::string Name = __FILE__;
std::string iput = Name.substr(0, Name.length() - 4) + ".in";
std::string oput ... | [
"type_conversion.add",
"expression.operation.binary.add"
] | 1,535,803 | 1,535,804 | u947560615 | cpp |
p04051 | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int N;
int A[4001][4001];
int B[4001][4001];
int C[4001][4001];
int ch[8001][4001];
void addmod(int &x, int v) {
x += v;
if (x >= MOD)
x -= MOD;
}
int main() {
for (int i = 0; i <= 8000; i++) {
ch[i][0] = 1;
for (int j = 1; ... | #include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int N;
int A[4001][4001];
int B[4001][4001];
int C[4001][4001];
int ch[8001][4001];
void addmod(int &x, int v) {
x += v;
if (x >= MOD)
x -= MOD;
}
int main() {
for (int i = 0; i <= 8000; i++) {
ch[i][0] = 1;
for (int j = 1; ... | [
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change",
"assignment.change",
"expression.operation.binary.remove"
] | 1,535,839 | 1,535,840 | u580520696 | cpp |
p04052 | // BadWaper gg
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
#define inf 1e9
#define eps 1e-6
#define mp make_pair
#define N 500010
using namespace std;
typedef long long ... | // BadWaper gg
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
#define inf 1e9
#define eps 1e-6
#define mp make_pair
#define N 500010
using namespace std;
typedef long long ... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change",
"assignment.value.change"
] | 1,535,858 | 1,535,859 | u562152011 | cpp |
p04052 | // #pragma GCC target("avx") // CPU 処理並列化
// #pragma GCC optimize("O3") // CPU 処理並列化
// #pragma GCC optimize("unroll-loops") // 条件処理の呼び出しを減らす
// #define BEGIN_STACK_EXTEND(size) void * stack_extend_memory_ =
// malloc(size);void * stack_extend_origin_memory_;char *
// stack_extend_dummy_memory_ = (char*)alloca((1+(i... | // #pragma GCC target("avx") // CPU 処理並列化
// #pragma GCC optimize("O3") // CPU 処理並列化
// #pragma GCC optimize("unroll-loops") // 条件処理の呼び出しを減らす
// #define BEGIN_STACK_EXTEND(size) void * stack_extend_memory_ =
// malloc(size);void * stack_extend_origin_memory_;char *
// stack_extend_dummy_memory_ = (char*)alloca((1+(i... | [
"assignment.change"
] | 1,535,863 | 1,535,864 | u648138491 | cpp |
p04052 | #include <bits/stdc++.h>
using namespace std;
const int N = 5e5 + 10, inf = 1e8;
int b[N], a[N], n, k, fen[N], val, seg[N << 2], lazy[N << 2], ans[N];
void add(int p) {
for (p++; p <= n; p += p & -p)
fen[p]++;
}
int getPref(int p) {
int rtr = 0;
for (; p > 0; p -= p & -p)
rtr += fen[p];
return rtr;
}
in... | #include <bits/stdc++.h>
using namespace std;
const int N = 5e5 + 10, inf = 1e8;
int b[N], a[N], n, k, fen[N], val, seg[N << 2], lazy[N << 2], ans[N];
// fen
void add(int p) {
for (p++; p <= n; p += p & -p)
fen[p]++;
}
int getPref(int p) {
int rtr = 0;
for (; p > 0; p -= p & -p)
rtr += fen[p];
return rt... | [
"assignment.change"
] | 1,535,871 | 1,535,872 | u289617440 | cpp |
p04052 | #include <bits/stdc++.h>
using namespace std;
const int maxn = 500500;
using ii = pair<int, int>;
ii tr[maxn + maxn];
int n;
void upd(int p, int v) {
for (tr[p += n] = {v, p}; p > 1; p >>= 1)
tr[p >> 1] = max(tr[p], tr[p ^ 1]);
}
ii qry(int l, int r) {
ii mx = {-1, -1};
for (l += n, r += n; l < r; l >>= 1, r ... | #include <bits/stdc++.h>
using namespace std;
const int maxn = 500500;
using ii = pair<int, int>;
ii tr[maxn + maxn];
int n;
void upd(int p, int v) {
for (tr[p += n] = {v, p}; p > 1; p >>= 1)
tr[p >> 1] = max(tr[p], tr[p ^ 1]);
}
ii qry(int l, int r) {
ii mx = {-1, -1};
for (l += n, r += n; l < r; l >>= 1, r ... | [
"assignment.change"
] | 1,535,884 | 1,535,885 | u251828455 | cpp |
p04052 | /*
mail: mleautomaton@foxmail.com
author: MLEAutoMaton
This Code is made by MLEAutoMaton
*/
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
#define ll long long
#define REP(a, ... | /*
mail: mleautomaton@foxmail.com
author: MLEAutoMaton
This Code is made by MLEAutoMaton
*/
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
#define ll long long
#define REP(a, ... | [
"literal.number.change",
"call.arguments.change",
"identifier.change",
"expression.operation.binary.change"
] | 1,535,886 | 1,535,887 | u131303230 | cpp |
p04051 | #include <cstdio>
using namespace std;
const int mod = 1e9 + 7;
const int p = 2000;
int n, ans;
int a[200010], b[200010], dp[4010][4010];
int fac[4010], inv[4010];
int C(int x, int y) {
if (x < y)
return 0;
return 1LL * fac[x] * inv[y] % mod * inv[x - y] % mod;
}
int power(int x, int y) {
int s = 1;
for (; ... | #include <cstdio>
using namespace std;
const int mod = 1e9 + 7;
const int p = 2000;
int n, ans;
int a[200010], b[200010], dp[4010][4010];
int fac[8010], inv[8010];
int C(int x, int y) {
if (x < y)
return 0;
return 1LL * fac[x] * inv[y] % mod * inv[x - y] % mod;
}
int power(int x, int y) {
int s = 1;
for (; ... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 1,536,042 | 1,536,043 | u018679195 | cpp |
p04051 | #include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define ll long long
#define ld long double
#define PB push_back
#define lc 2 * v
#define rc 2 * v + 1
#define mid (s + e) / 2
#define pii pair<int, int>
#define pll pair<long long, long long>
#define FAST ... | #include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
#define ll long long
#define ld long double
#define PB push_back
#define lc 2 * v
#define rc 2 * v + 1
#define mid (s + e) / 2
#define pii pair<int, int>
#define pll pair<long long, long long>
#define FAST ... | [
"literal.number.change",
"expression.operation.binary.change",
"expression.operation.binary.remove",
"variable_declaration.type.change"
] | 1,536,054 | 1,536,055 | u717668588 | cpp |
p04051 | // In The Name Of Allah
// Mohammad Hosseini
#include <bits/stdc++.h>
#define ss second
#define ff first
#define use_fast ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)
#define ret(n) return cout << n, 0
#define se(n) cout << setprecision(n) << fixed
#defin... | // In The Name Of Allah
// Mohammad Hosseini
#include <bits/stdc++.h>
#define ss second
#define ff first
#define use_fast ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)
#define ret(n) return cout << n, 0
#define se(n) cout << setprecision(n) << fixed
#defin... | [
"literal.number.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,536,062 | 1,536,063 | u806517102 | cpp |
p04051 | // In The Name Of Allah
// Mohammad Hosseini
#include <bits/stdc++.h>
#define ss second
#define ff first
#define use_fast ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)
#define ret(n) return cout << n, 0
#define se(n) cout << setprecision(n) << fixed
#defin... | // In The Name Of Allah
// Mohammad Hosseini
#include <bits/stdc++.h>
#define ss second
#define ff first
#define use_fast ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)
#define ret(n) return cout << n, 0
#define se(n) cout << setprecision(n) << fixed
#defin... | [
"literal.number.change",
"expression.operation.binary.change",
"control_flow.loop.for.condition.change"
] | 1,536,064 | 1,536,063 | u806517102 | cpp |
p04051 | // In The Name Of Allah
// Mohammad Hosseini
#include <bits/stdc++.h>
#define ss second
#define ff first
#define use_fast ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)
#define ret(n) return cout << n, 0
#define se(n) cout << setprecision(n) << fixed
#defin... | // In The Name Of Allah
// Mohammad Hosseini
#include <bits/stdc++.h>
#define ss second
#define ff first
#define use_fast ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)
#define ret(n) return cout << n, 0
#define se(n) cout << setprecision(n) << fixed
#defin... | [
"literal.number.change",
"expression.operation.binary.change",
"control_flow.loop.for.condition.change"
] | 1,536,065 | 1,536,063 | u806517102 | cpp |
p04051 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = a; i <= b; i++)
#define per(i, a, b) for (int i = a; i >= b; i--)
typedef long long LL;
const LL mod = 1e9 + 7;
// head
const int maxn = 2e5 + 5, maxm = 2e3 + 5;
int n, a[maxn], b[maxn];
LL f[maxm << 1][maxm << 1], ans, fac[maxm << 2], inv[... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = a; i <= b; i++)
#define per(i, a, b) for (int i = a; i >= b; i--)
typedef long long LL;
const LL mod = 1e9 + 7;
// head
const int maxn = 2e5 + 5, maxm = 2e3 + 5;
int n, a[maxn], b[maxn];
LL f[maxm << 1][maxm << 1], ans, fac[maxm << 2], inv[... | [
"literal.number.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,536,070 | 1,536,069 | u603667966 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; ++i)
for (int j = 1; j < 10; ++j)
cout << i << '+' << j << '=' << i * j << endl;
} | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; ++i)
for (int j = 1; j < 10; ++j)
cout << i << 'x' << j << '=' << i * j << endl;
} | null | 1,410 | 1,411 | u637106105 | cpp |
p00000 | #include <stdio.h>
#define f(i, m) for (int i = 1; i <= m; i++)
int main(void) {
f(i, 9) f(j, 9) printf("%d×%d=%d\n", i, j, i * j);
return 0;
} | #include <stdio.h>
#define f(i, m) for (int i = 1; i <= m; i++)
int main() {
f(i, 9) f(j, 9) printf("%dx%d=%d\n", i, j, i * j);
return 0;
} | null | 1,431 | 1,432 | u943304359 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
cout << i << "x" << j << "=" << i * j;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
cout << i << "x" << j << "=" << i * j << '\n';
}
}
return 0;
} | null | 1,435 | 1,436 | u112970303 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
cout << i << "*" << j << "=" << i * j << endl;
}
}
} | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
cout << i << "x" << j << "=" << i * j << endl;
}
}
} | null | 1,437 | 1,438 | u937978414 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
int m, n;
for (m = 1; m < 10; m++) {
for (n = 1; n < 10; n++) {
cout << m << "×" << n << "=" << m * n << endl;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int m, n;
for (m = 1; m < 10; m++) {
for (n = 1; n < 10; n++) {
cout << m << "x" << n << "=" << m * n << endl;
}
}
return 0;
} | null | 1,446 | 1,447 | u460034312 | cpp |
p00000 | #include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
template <class T> inline T sqr(T x) { return x * x; }
typedef vector<int> v... | #include <bits/stdc++.h>
using namespace std;
inline int toInt(string s) {
int v;
istringstream sin(s);
sin >> v;
return v;
}
template <class T> inline string toString(T x) {
ostringstream sout;
sout << x;
return sout.str();
}
template <class T> inline T sqr(T x) { return x * x; }
typedef vector<int> v... | null | 1,477 | 1,478 | u954183646 | cpp |
p00000 | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int i, j;
for (i = 1; i < 10; i++) {
for (j = 1; j < 10; j++) {
printf("%d * %d = %d\n", i, j, i * j);
}
}
return 0;
} | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int i, j;
for (i = 1; i < 10; i++) {
for (j = 1; j < 10; j++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
return 0;
} | null | 1,496 | 1,497 | u817539174 | cpp |
p00000 | #include <stdio.h>
int main() {
int x, y, z;
for (x = 1; x < 10; x++) {
for (y = 1; y < 10; y++) {
z = x * y;
printf("%dx%d =%d\n", x, y, z);
}
}
return 0;
} | #include <stdio.h>
int main() {
int x, y, z;
for (x = 1; x < 10; x++) {
for (y = 1; y < 10; y++) {
z = x * y;
printf("%dx%d=%d\n", x, y, z);
}
}
return 0;
} | null | 1,509 | 1,510 | u083188241 | cpp |
p00000 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
printf("%d*%d=%d\n", i, j, i * j);
}
}
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
return 0;
} | null | 1,554 | 1,555 | u278285028 | cpp |
p00000 | #include <bits/stdc++.h>
using namespace std;
int a, b;
int main() {
for (int i = 1; i <= 9; i++)
for (int j = 1; j <= 9; j++)
cout << i << '??' << j << '=' << i * j << endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++)
for (int j = 1; j <= 9; j++)
cout << i << 'x' << j << '=' << i * j << endl;
return 0;
} | null | 1,645 | 1,646 | u669696892 | cpp |
p00000 |
#include <iostream>
int main() {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
std::cout << i << "x" << j << "=" << i * j << '/n';
}
}
return 0;
} |
#include <iostream>
int main() {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
std::cout << i << "x" << j << "=" << i * j << std::endl;
}
}
return 0;
} | null | 1,699 | 1,700 | u452576681 | cpp |
p00000 |
#include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
cout << i << "x" << j << "=" << i * j << '/n';
}
}
return 0;
} |
#include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
cout << i << "x" << j << "=" << i * j << '\n';
}
}
return 0;
} | null | 1,701 | 1,702 | u452576681 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; i++) {
for (int i2 = 1; i2 < 10; i2++) {
cout << i << "x" << i2 << "=" << i * i2;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; i++) {
for (int i2 = 1; i2 < 10; i2++) {
cout << i << "x" << i2 << "=" << i * i2 << endl;
}
}
return 0;
} | null | 1,725 | 1,726 | u003647700 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
cout << i << "??" << j << "=" << i * j << endl;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
cout << i << "x" << j << "=" << i * j << endl;
}
}
return 0;
} | null | 1,731 | 1,732 | u364509382 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
int ans = i * j;
cout << i << "??" << j << "=" << ans << "\n";
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
int ans = i * j;
cout << i << "x" << j << "=" << ans << "\n";
}
}
return 0;
} | null | 1,733 | 1,734 | u403618837 | cpp |
p00000 | #include <stdio.h>
main() {
int i, j;
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
printf("%dx%d=%d", i, j, i * j);
}
}
} | #include <stdio.h>
main() {
int i, j;
for (i = 1; i < 10; i++) {
for (j = 1; j < 10; j++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
} | null | 1,735 | 1,736 | u217294278 | cpp |
p00000 | #include <stdio.h>
main() {
int i, j;
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
} | #include <stdio.h>
main() {
int i, j;
for (i = 1; i < 10; i++) {
for (j = 1; j < 10; j++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
} | null | 1,737 | 1,736 | u217294278 | cpp |
p00000 | #include <cstdio>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
printf("%dx%d = %d\n", i, j, i * j);
}
}
return 0;
} | #include <cstdio>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
return 0;
} | null | 1,772 | 1,773 | u634185955 | cpp |
p00000 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int i, j;
for (i = 0; i < 10; i++) {
for (j = 0; j < 10; j++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int i, j;
for (i = 1; i < 10; i++) {
for (j = 1; j < 10; j++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
return 0;
} | null | 1,783 | 1,784 | u414322748 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++)
cout << i << "??" << j << "=" << i * j << endl;
}
} | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++)
cout << i << "x" << j << "=" << i * j << endl;
}
} | null | 1,778 | 1,777 | u602903519 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
cout << i << "*" << j << "=" << i * j << endl;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
cout << i << "x" << j << "=" << i * j << endl;
}
}
return 0;
} | null | 1,791 | 1,792 | u811841526 | cpp |
p00000 | #include <cstdio>
int x = 1, y = 1;
main() {
if (y >= 10)
return 0;
printf("%dx%d=%d\n", x, y, x * y);
++x;
(x == 10) ? x = 1, ++y : 0;
main();
} | #include <cstdio>
int x = 1, y = 1;
main() {
if (y >= 10)
return 0;
printf("%dx%d=%d\n", y, x, x * y);
++x;
(x == 10) ? x = 1, ++y : 0;
main();
} | null | 1,793 | 1,794 | u116766943 | cpp |
p00000 | #include <iostream>
int main() {
for (int i = 1; i <= 9; ++i) {
for (int j = 1; j <= 9; ++j) {
std::cout << i << "*" << j << "=" << i * j << std::endl;
}
}
return 0;
} | #include <iostream>
int main() {
for (int i = 1; i <= 9; ++i) {
for (int j = 1; j <= 9; ++j) {
std::cout << i << "x" << j << "=" << i * j << std::endl;
}
}
return 0;
} | null | 1,797 | 1,798 | u858711833 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
cout << i << "x" << j << "=" << endl;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
cout << i << "x" << j << "=" << i * j << endl;
}
}
return 0;
} | null | 1,805 | 1,806 | u441627554 | cpp |
p00000 | #include <stdio.h>
int main() {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
printf("%dx%d=%d?\n", i, j, i * j);
}
}
} | #include <stdio.h>
int main() {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
} | null | 1,807 | 1,808 | u256863663 | cpp |
p00000 | #include <iostream>
int main() {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++)
std::cout << i << "??" << j << "=" << i * j << std::endl;
}
return 0;
} | #include <iostream>
int main() {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++)
std::cout << i << "x" << j << "=" << i * j << std::endl;
}
return 0;
} | null | 1,889 | 1,890 | u751303337 | cpp |
p00000 | #include <stdio.h>
int main() {
int i, j;
for (i = 0; i < 9; i++) {
for (j = 0; j < 9; j++) {
printf("%dx%d=%d", i, j, i * j);
} // for j/
} // for i/
return 0;
} | #include <stdio.h>
int main() {
int i, j;
for (i = 1; i <= 9; i++) {
for (j = 1; j <= 9; j++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
return 0;
} | null | 1,921 | 1,922 | u017984030 | cpp |
p00000 | #include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 1; i < 10; i++)
for (int j = 1; j < 10; j++)
cout << i << 'X' << j << '=' << i * j << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 1; i < 10; i++)
for (int j = 1; j < 10; j++)
cout << i << 'x' << j << '=' << i * j << endl;
return 0;
}
| null | 1,938 | 1,939 | u268387825 | cpp |
p00000 | #include <stdio.h>
int main() {
int i, j;
for (i = 1; i <= 9; i++) {
for (j = 1; j <= 9; j++) {
printf("%d x %d = %d\n", i, j, i * j);
}
}
return 0;
}
| #include <stdio.h>
int main() {
int i, j;
for (i = 1; i <= 9; i++) {
for (j = 1; j <= 9; j++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
return 0;
}
| null | 1,942 | 1,943 | u917588474 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
int k;
int i, j;
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
k = i * j;
cout << i << "×" << j << "=" << k << endl;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int k;
int i, j;
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= 9; j++) {
k = i * j;
cout << i << "x" << j << "=" << k << endl;
}
}
return 0;
}
| null | 1,947 | 1,948 | u647196518 | cpp |
p00000 | #include <iostream>
int main() {
int i, j;
for (i = 1; i <= 9; i++)
for (j = 1; j <= 9; j++)
std::cout << i << "*" << j << "=" << i * j << "\n";
return 0;
}
| #include <iostream>
int main() {
int i, j;
for (i = 1; i <= 9; i++)
for (j = 1; j <= 9; j++)
std::cout << i << "x" << j << "=" << i * j << "\n";
return 0;
}
| null | 1,951 | 1,952 | u067723511 | cpp |
p00000 | #include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
// printf("%dx%d=%d\n",i,j,i*j);
cout << i << "x" << j << "=" << i * j << endl;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
// printf("%dx%d=%d\n",i,j,i*j);
cout << i << "x" << j << "=" << i * j << endl;
}
}
return 0;
}
| null | 1,961 | 1,962 | u223246341 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 9 + 1; i++) {
for (int j = 1; j < 9 + 1; j++) {
cout << i << '*' << j << '=' << i * j << endl;
}
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 9 + 1; i++) {
for (int j = 1; j < 9 + 1; j++) {
cout << i << 'x' << j << '=' << i * j << endl;
}
}
return 0;
}
| null | 1,963 | 1,964 | u286829185 | cpp |
p00000 | #include <stdio.h>
main() {
int i = 1, j = 1;
for (;;) {
printf("%dx%d=%d\n", i, j, i * j);
j++;
if (j == 9) {
i++;
j = 1;
}
if (i == 10) {
break;
}
}
} | #include <stdio.h>
main() {
int i = 1, j = 1;
for (;;) {
printf("%dx%d=%d\n", i, j, i * j);
j++;
if (j == 10) {
i++;
j = 1;
}
if (i == 10) {
break;
}
}
} | null | 1,992 | 1,993 | u182453220 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
printf("%dx%d=%d", i, j, i * j);
}
}
} | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; i++) {
for (int j = 1; j < 10; j++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
} | null | 2,024 | 2,025 | u866596794 | cpp |
p00000 | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; i++)
for (int j = 1; j < 10; j++) {
cout << i << '*' << j << '=' << i * j << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; i++)
for (int j = 1; j < 10; j++)
cout << i << 'x' << j << '=' << i * j << endl;
return 0;
} | null | 2,077 | 2,078 | u491165315 | cpp |
p00000 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
template <class T> int streamvar(std::istream &in, T &var) {
if (!in) {
return 1;
}
in >> var;
if (in.fail()) {
return 1;
}
retu... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
template <class T> int streamvar(std::istream &in, T &var) {
if (!in) {
return 1;
}
in >> var;
if (in.fail()) {
return 1;
}
retu... | null | 2,124 | 2,125 | u606573458 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.