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 |
|---|---|---|---|---|---|---|---|
p04003 | #pragma region Macros
#include <bits/stdc++.h>
using namespace std;
//#include <boost/multiprecision/cpp_int.hpp>
// using multiInt = boost::multiprecision::cpp_int;
using ll = long long int;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pld = pair<ld, ld>;
template <typename Q_ty... | #pragma region Macros
#include <bits/stdc++.h>
using namespace std;
//#include <boost/multiprecision/cpp_int.hpp>
// using multiInt = boost::multiprecision::cpp_int;
using ll = long long int;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pld = pair<ld, ld>;
template <typename Q_ty... | [] | 1,506,188 | 1,506,189 | u878615689 | cpp |
p04003 | #include <bits/stdc++.h>
#define fi first
#define se second
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define pb push_back
#define len(x) (int)(x).size()
#define ins insert
typedef long long ll;
typedef long double ld;
using namespace std;
const int N = 1e5, inf = 1e9;
map<int, set<... | #include <bits/stdc++.h>
#define fi first
#define se second
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define pb push_back
#define len(x) (int)(x).size()
#define ins insert
typedef long long ll;
typedef long double ld;
using namespace std;
const int N = 1e5, inf = 1e9;
map<int, set<... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,506,190 | 1,506,191 | u759779286 | cpp |
p04003 | /*
ID: Barry Wang
LANG: C++11
TASK:
*/
#include <bits/stdc++.h>
using namespace std;
typedef queue<int> qi;
typedef vector<int> vi;
const int inf = (1 << 29);
int n, m;
struct node {
int u, v, w;
} E[2000005];
int p = 0;
int f[1000005], ind[1000005];
bool used[1000005];
vi G[1000005];
int dis[1000005];
qi q;
bool com... | /*
ID: Barry Wang
LANG: C++11
TASK:
*/
#include <bits/stdc++.h>
using namespace std;
typedef queue<int> qi;
typedef vector<int> vi;
const int inf = (1 << 29);
int n, m;
struct node {
int u, v, w;
} E[2000005];
int p = 0;
int f[1000005], ind[1000005];
bool used[1000005];
vi G[1000005];
int dis[1000005];
qi q;
bool com... | [
"call.add",
"call.arguments.change"
] | 1,506,211 | 1,506,212 | u734192058 | cpp |
p04006 | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef pair<LL, LL> PLL;
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define EB emplace_ba... | #include <bits/stdc++.h>
using namespace std;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef pair<LL, LL> PLL;
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define EB emplace_ba... | [
"variable_declaration.add",
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 1,506,221 | 1,506,222 | u157085392 | cpp |
p04006 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, i... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, i... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 1,506,225 | 1,506,226 | u319288047 | cpp |
p04006 | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define forn(i, n) for (int i = 0; i < (int)(n); ++i)
typedef long long LL;
typedef pair<int, int> PII;
int n, x;
int a[2000], b[2000];
int main() {
scanf("%d%d", &n, &x);
forn(i, n) scanf("%d", a + i);
forn(i, n) b[i] = a... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define forn(i, n) for (int i = 0; i < (int)(n); ++i)
typedef long long LL;
typedef pair<int, int> PII;
int n, x;
int a[2000], b[2000];
int main() {
scanf("%d%d", &n, &x);
forn(i, n) scanf("%d", a + i);
forn(i, n) b[i] = a... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 1,506,233 | 1,506,234 | u155202361 | cpp |
p04006 | #include <bits/stdc++.h>
using namespace std;
int N, X;
int A[2000];
int B[2000];
int main() {
scanf("%d%d", &N, &X);
for (int i = 0; i < N; i++)
scanf("%d", A + i), B[i] = A[i];
long long ans = 0x3f3f3f3f3f3f3f3fLL;
for (int i = 0; i < X; i++) {
for (int j = 0; j < N; j++)
B[j] = min(B[j], A[(... | #include <bits/stdc++.h>
using namespace std;
int N, X;
int A[2000];
int B[2000];
int main() {
scanf("%d%d", &N, &X);
for (int i = 0; i < N; i++)
scanf("%d", A + i), B[i] = A[i];
long long ans = 0x3f3f3f3f3f3f3f3fLL;
for (int i = 0; i < N; i++) {
for (int j = 0; j < N; j++)
B[j] = min(B[j], A[(... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,506,237 | 1,506,238 | u580520696 | cpp |
p04006 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1LL << 60;
ll dp[2000];
ll n, x;
/*
ll make_dp(vector<ll> &a){
// init
int index = distance(a.begin(), min_element(a.begin(), a.end()));
cout << index << endl;
for (int i = 0; i < n - index; i++){
dp[i] = a[i... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1LL << 60;
ll dp[2000];
ll n, x;
/*
ll make_dp(vector<ll> &a){
// init
int index = distance(a.begin(), min_element(a.begin(), a.end()));
cout << index << endl;
for (int i = 0; i < n - index; i++){
dp[i] = a[i... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change",
"assignment.value.change",
"call.arguments.change"
] | 1,506,414 | 1,506,415 | u187153832 | cpp |
p04006 | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
#define MAXN 2005
#define LL long long
int n, x;
LL a[MAXN], dp[MAXN][MAXN];
int main() {
LL ans = 1LL << 60LL;
scanf("%d %d", &n, &x);
for (int i = 1; i <= n; i++) {
scanf("%d", &a[i]);
dp[i][0] = a[i];
}
for (int i = 1; i... | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
#define MAXN 2005
#define LL long long
LL n, x;
LL a[MAXN], dp[MAXN][MAXN];
int main() {
LL ans = 1LL << 60LL;
scanf("%lld %lld", &n, &x);
for (int i = 1; i <= n; i++) {
scanf("%lld", &a[i]);
dp[i][0] = a[i];
}
for (int i =... | [
"variable_declaration.type.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 1,506,420 | 1,506,419 | u158378528 | cpp |
p04006 | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const ll MOD = 1000000007LL;
ll a[2000];
ll b[2000];
int main() {
int N;
ll x;
cin >> N >> x;
for (int i = 0; i < N; i++)
cin >> a[i], b[i] = a[i];
ll ans = 1LL << 60;
for (int i = 0; i <= N - 1; i++) {
ll ... | #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const ll MOD = 1000000007LL;
ll a[2000];
ll b[2000];
int main() {
int N;
ll x;
cin >> N >> x;
for (int i = 0; i < N; i++)
cin >> a[i], b[i] = a[i];
ll ans = 1LL << 60;
for (int i = 0; i <= N - 1; i++) {
ll ... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 1,506,433 | 1,506,434 | u243961437 | cpp |
p04006 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
using ll ... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
using ll ... | [
"expression.operation.binary.remove"
] | 1,506,462 | 1,506,463 | u898651494 | cpp |
p04006 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
const int MAX_N = 2000;
int a[MAX_N], n, x;
int f[MAX_N][MAX_N];
int main() {
cin >> n >> x;
for (int i = 0; i < n; i++) {
cin >> a[i];
}
long long ans = 1e18;
//スライムiを入手するのに必要なコストを考える j回変色させたときの最小がf[i][j]
for (int i = 0; i ... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
const int MAX_N = 2000;
int a[MAX_N], n, x;
int f[MAX_N][MAX_N];
int main() {
cin >> n >> x;
for (int i = 0; i < n; i++) {
cin >> a[i];
}
long long ans = 1e18;
//スライムiを入手するのに必要なコストを考える j回変色させたときの最小がf[i][j]
for (int i = 0; i ... | [
"assignment.change"
] | 1,506,477 | 1,506,478 | u181451038 | cpp |
p04006 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, k, n) for (int i = (int)(k); i < (int)(n); i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) a.begin(), a.end()
#define MS(m, v) memset(m, v, sizeof(m))
typedef long long ll;
typedef long double ld;
typedef vector<ll> vi;
typedef vector<string> vs;
typedef p... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, k, n) for (int i = (int)(k); i < (int)(n); i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) a.begin(), a.end()
#define MS(m, v) memset(m, v, sizeof(m))
typedef long long ll;
typedef long double ld;
typedef vector<ll> vi;
typedef vector<string> vs;
typedef p... | [
"variable_declaration.type.change",
"identifier.change",
"call.arguments.change"
] | 1,506,481 | 1,506,480 | u588568850 | cpp |
p04006 | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
typedef long long ll;
ll n, a[100005], x, ans, sa[100005];
int main(void) {
scanf("%lld%lld", &n, &x);
for (int i = 0; i < n; i++) {
scanf("%lld", a + i);
sa[i] = a[i];
ans += a[i];
}
for (int i = 1; i < n; i++) {
ll... | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
typedef long long ll;
ll n, a[100005], x, ans, sa[100005];
int main(void) {
scanf("%lld%lld", &n, &x);
for (int i = 0; i < n; i++) {
scanf("%lld", a + i);
sa[i] = a[i];
ans += a[i];
}
for (int i = 1; i < n; i++) {
ll... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 1,506,487 | 1,506,488 | u743900647 | cpp |
p04006 | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long ll;
const ll oo = 0x3f3f3f3f3f3f3f3fll;
const int maxn = 2020;
ll Min[maxn][maxn];
ll s[maxn];
ll a[maxn];
int n, m, X;
int main() {
ios::sync_with_stdio(0);
cin >> n >> X;
m = 1;
for (int i = 1; i <= n; ++i)
c... | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long ll;
const ll oo = 0x3f3f3f3f3f3f3f3fll;
const int maxn = 2020;
ll Min[maxn][maxn];
ll s[maxn];
ll a[maxn];
int n, m, X;
int main() {
ios::sync_with_stdio(0);
cin >> n >> X;
m = 1;
for (int i = 1; i <= n; ++i)
c... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 1,506,501 | 1,506,502 | u420303440 | cpp |
p04006 | #include <bits/stdc++.h>
#include <string.h>
using namespace std;
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(... | #include <bits/stdc++.h>
#include <string.h>
using namespace std;
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 1,506,503 | 1,506,504 | u811982971 | cpp |
p04006 | #include <bits/stdc++.h>
using namespace std;
const double pi = 2 * acos(0.0);
const double eps = 1e-8;
#define REP(i, a, b) for (int i = (a); i < (b); ++i)
#define rep(i, n) REP(i, 0, n)
#define INF (1 << 30)
#define INFLL (1LL << 63LL)
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pi... | #include <bits/stdc++.h>
using namespace std;
const double pi = 2 * acos(0.0);
const double eps = 1e-8;
#define REP(i, a, b) for (int i = (a); i < (b); ++i)
#define rep(i, n) REP(i, 0, n)
#define INF (1 << 30)
#define INFLL (1LL << 62LL)
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> pi... | [
"preprocessor.define.value.change",
"literal.integer.change"
] | 1,506,574 | 1,506,575 | u085430333 | cpp |
p04006 | #include <iostream>
#define ll long long
#define FOR(i, a, b) for (ll i = a; i <= b; i++)
using namespace std;
const int N = 2003;
ll a[N], b[N], x, ans = 0;
ll n, m;
int main() {
cin >> n >> x;
FOR(i, 1, n)
cin >> a[i], ans += a[i], b[i] = a[i];
FOR(i, 1, n - 1) {
ll sum = 0;
FOR(j, 1, n) {
ll k ... | #include <iostream>
#define ll long long
#define FOR(i, a, b) for (ll i = a; i <= b; i++)
using namespace std;
const int N = 2003;
ll a[N], b[N], x, ans = 0;
ll n, m;
int main() {
cin >> n >> x;
FOR(i, 1, n)
cin >> a[i], ans += a[i], b[i] = a[i];
FOR(i, 1, n - 1) {
ll sum = 0;
FOR(j, 1, n) {
ll k... | [
"assignment.change"
] | 1,506,603 | 1,506,604 | u041368761 | cpp |
p04006 | #include <bits/stdc++.h>
using namespace std;
#define forn(i, n) for (int i = 0; i < (int)(n); i++)
#define si(c) ((int)(c).size())
#define forsn(i, s, n) for (int i = (int)(s); i < ((int)n); i++)
#define dforsn(i, s, n) for (int i = (int)(n)-1; i >= ((int)s); i--)
#define all(c) (c).begin(), (c).end()
#define D(a) ce... | #include <bits/stdc++.h>
using namespace std;
#define forn(i, n) for (int i = 0; i < (int)(n); i++)
#define si(c) ((int)(c).size())
#define forsn(i, s, n) for (int i = (int)(s); i < ((int)n); i++)
#define dforsn(i, s, n) for (int i = (int)(n)-1; i >= ((int)s); i--)
#define all(c) (c).begin(), (c).end()
#define D(a) ce... | [] | 1,506,631 | 1,506,632 | u736885548 | cpp |
p04006 | /*************************************************************************
> File: B.cc
> Author: lyyllyyl
> Mail: riho.yoshioka@yandex.com
> Created Time: Sun 04 Sep 2016 08:18:12 PM CST
*************************************************************************/
#include <bits/stdc++.h>
us... | /*************************************************************************
> File: B.cc
> Author: lyyllyyl
> Mail: riho.yoshioka@yandex.com
> Created Time: Sun 04 Sep 2016 08:18:12 PM CST
*************************************************************************/
#include <bits/stdc++.h>
us... | [
"expression.operation.binary.remove",
"literal.number.type.widen.change"
] | 1,506,637 | 1,506,636 | u105346690 | cpp |
p04006 | /*************************************************************************
> File: B.cc
> Author: lyyllyyl
> Mail: riho.yoshioka@yandex.com
> Created Time: Sun 04 Sep 2016 08:18:12 PM CST
*************************************************************************/
#include <bits/stdc++.h>
us... | /*************************************************************************
> File: B.cc
> Author: lyyllyyl
> Mail: riho.yoshioka@yandex.com
> Created Time: Sun 04 Sep 2016 08:18:12 PM CST
*************************************************************************/
#include <bits/stdc++.h>
us... | [
"expression.operation.binary.remove"
] | 1,506,638 | 1,506,636 | u105346690 | cpp |
p04006 | #include <bits/stdc++.h>
using namespace std;
#define int long long
int N;
int X;
vector<int> A;
int sub(int x, int y) {
if (x < y)
x += N;
return x - y;
}
signed main() {
cin >> N >> X;
for (int i = 0; i < N; ++i) {
int z;
cin >> z;
A.push_back(z);
}
int ans = LLONG_MAX;
vector<vecto... | #include <bits/stdc++.h>
using namespace std;
#define int long long
int N;
int X;
vector<int> A;
int sub(int x, int y) {
if (x < y)
x += N;
return x - y;
}
signed main() {
cin >> N >> X;
for (int i = 0; i < N; ++i) {
int z;
cin >> z;
A.push_back(z);
}
int ans = LLONG_MAX;
vector<vecto... | [
"control_flow.branch.if.add"
] | 1,506,645 | 1,506,646 | u248152745 | cpp |
p04006 | #include <bits/stdc++.h>
#define int long long int
#define rep(a, b, c) for (int a = b; a < c; a++)
#define repm(a, b, c) for (int a = (b - 1); a >= c; a--)
#define pb push_back
#define str string
#define INF 100000000000000000000;
#define sf(a) scanf("%d", &a)
using namespace std;
int replac(str s) {
double ans = 0;... | #include <bits/stdc++.h>
#define int long long int
#define rep(a, b, c) for (int a = b; a < c; a++)
#define repm(a, b, c) for (int a = (b - 1); a >= c; a--)
#define pb push_back
#define str string
#define INF 100000000000000000000;
#define sf(a) scanf("%d", &a)
using namespace std;
int replac(str s) {
double ans = 0;... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,506,671 | 1,506,672 | u469197201 | cpp |
p04006 | #include <algorithm>
#include <cstdio>
using namespace std;
const int MAX = 2000 + 10;
long long arr[MAX];
int from[MAX];
int main() {
int n;
long long x;
long long last = 0, ans;
scanf("%d %lld", &n, &x);
for (int i = 0; i < n; i++) {
scanf("%lld", &arr[i]);
last += arr[i];
from[i] = i;
}
ans... | #include <algorithm>
#include <cstdio>
using namespace std;
const int MAX = 2000 + 10;
long long arr[MAX];
int from[MAX];
int main() {
int n;
long long x;
long long last = 0, ans;
scanf("%d %lld", &n, &x);
for (int i = 0; i < n; i++) {
scanf("%lld", &arr[i]);
last += arr[i];
from[i] = i;
}
ans... | [] | 1,506,683 | 1,506,684 | u717390233 | cpp |
p04006 | /**/
#include <bits/stdc++.h>
using namespace std;
/***********************************************/
/* Dear online judge:
* I've read the problem, and tried to solve it.
* Even if you don't accept my solution, you should respect my effort.
* I hope my code compile and get accepted.
* ____________
* / ... | /**/
#include <bits/stdc++.h>
using namespace std;
/***********************************************/
/* Dear online judge:
* I've read the problem, and tried to solve it.
* Even if you don't accept my solution, you should respect my effort.
* I hope my code compile and get accepted.
* ____________
* / ... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,506,697 | 1,506,698 | u461151831 | cpp |
p04006 | /**/
#include <bits/stdc++.h>
using namespace std;
/***********************************************/
/* Dear online judge:
* I've read the problem, and tried to solve it.
* Even if you don't accept my solution, you should respect my effort.
* I hope my code compile and get accepted.
* ____________
* / ... | /**/
#include <bits/stdc++.h>
using namespace std;
/***********************************************/
/* Dear online judge:
* I've read the problem, and tried to solve it.
* Even if you don't accept my solution, you should respect my effort.
* I hope my code compile and get accepted.
* ____________
* / ... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change",
"call.function.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,506,699 | 1,506,698 | u461151831 | cpp |
p04006 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
typedef long long Long;
typedef pair<int, int> PII;
int main() {
int N, x;
ci... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <vector>
using namespace std;
typedef long long Long;
typedef pair<int, int> PII;
int main() {
int N, x;
ci... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change",
"assignment.value.change",
"call.arguments.change"
] | 1,506,702 | 1,506,703 | u575907223 | cpp |
p04006 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
typedef long long ll;
ll n, x;
ll a[2222];
ll b[2222];
int main(void) {
cin >> n >> x;
for (int i = 0; i < n; i++) {
cin >> a[i];
b[i] = a[i];
}
ll ans = 1LL << 60;
for (int j = 0; j < n; j++) {
ll t... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
typedef long long ll;
ll n, x;
ll a[2222];
ll b[2222];
int main(void) {
cin >> n >> x;
for (int i = 0; i < n; i++) {
cin >> a[i];
b[i] = a[i];
}
ll ans = 1LL << 60;
for (int j = 0; j < n; j++) {
ll t... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 1,506,706 | 1,506,707 | u691536343 | cpp |
p04008 | #include <bits/stdc++.h>
#define M_PI 3.14159265358979323846 // pi
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<ll> VI;
typedef pair<ll, ll> P;
typedef tuple<ll, ll, ll> t3;
typedef tuple<ll, ll, ll, ll> t4;
typedef tuple<ll, ll, ll, ll, ll> t5;
#define rep(a, n) for (ll ... | #include <bits/stdc++.h>
#define M_PI 3.14159265358979323846 // pi
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<ll> VI;
typedef pair<ll, ll> P;
typedef tuple<ll, ll, ll> t3;
typedef tuple<ll, ll, ll, ll> t4;
typedef tuple<ll, ll, ll, ll, ll> t5;
#define rep(a, n) for (ll ... | [
"expression.unary.arithmetic.add",
"literal.number.change",
"call.arguments.change"
] | 1,506,769 | 1,506,770 | u834771741 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
const int mxk = 1e6 + 7;
struct node {
int nxt, to;
} edge[mxk << 1];
int tot = 0, head[mxk], k;
void addedge(int u, int v) {
edge[++tot].to = v;
edge[tot].nxt = head[u];
head[u] = tot;
}
int n, fa[mxk], ans = 0;
int dfs(int u, int depth) {
int ret = depth;... | #include <bits/stdc++.h>
using namespace std;
const int mxk = 1e6 + 7;
struct node {
int nxt, to;
} edge[mxk << 1];
int tot = 0, head[mxk], k;
void addedge(int u, int v) {
edge[++tot].to = v;
edge[tot].nxt = head[u];
head[u] = tot;
}
int n, fa[mxk], ans = 0;
int dfs(int u, int depth) {
int ret = depth;... | [
"control_flow.branch.if.condition.change"
] | 1,506,771 | 1,506,772 | u205077467 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
int main() {
int n, k;
cin >> n >> k;
vector<int> a(n);
for (int i = 0; i < n; i++) {
cin >> a[i];
a[i]--;
}
vector<set<int>> tree(n);
int ans = 0;
if (a[0] != 0)
ans++;
for (int i = 1; i < n; i++) ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
int main() {
int n, k;
cin >> n >> k;
vector<int> a(n);
for (int i = 0; i < n; i++) {
cin >> a[i];
a[i]--;
}
vector<set<int>> tree(n);
int ans = 0;
if (a[0] != 0)
ans++;
for (int i = 1; i < n; i++) ... | [
"control_flow.branch.if.condition.change"
] | 1,506,777 | 1,506,778 | u020239256 | cpp |
p04008 | #include "bits/stdc++.h"
#include <random>
using namespace std;
typedef unsigned long long _ulong;
typedef long long int lint;
typedef pair<lint, lint> plint;
typedef pair<double long, double long> pld;
#define ALL(x) (x).begin(), (x).end()
#define SZ(x) ((lint)(x).size())
#define FOR(i, begin, end) ... | #include "bits/stdc++.h"
#include <random>
using namespace std;
typedef unsigned long long _ulong;
typedef long long int lint;
typedef pair<lint, lint> plint;
typedef pair<double long, double long> pld;
#define ALL(x) (x).begin(), (x).end()
#define SZ(x) ((lint)(x).size())
#define FOR(i, begin, end) ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.number.change",
"function.return_value.change"
] | 1,506,779 | 1,506,780 | u554988565 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T> using vec = vector<T>;
template <class T> using vvec = vector<vec<T>>;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int N, K;
cin >> N >> K;
vvec<int> g(N);
int ans = 0;
vec<int> par(N, -1);
for (int i = 0; ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T> using vec = vector<T>;
template <class T> using vvec = vector<vec<T>>;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int N, K;
cin >> N >> K;
vvec<int> g(N);
int ans = 0;
vec<int> par(N, -1);
for (int i = 0; ... | [
"control_flow.branch.if.condition.change"
] | 1,506,784 | 1,506,785 | u623954643 | cpp |
p04008 | #include <iostream>
#include <vector>
using namespace std;
int N, K, A[100010], d[100010] = {0}, ans = 0;
vector<vector<int>> v(100010);
int dfs(int n) {
for (int i = 0; i < v[n].size(); i++) {
dfs(v[n][i]);
d[n] = max(d[n], d[v[n][i]] + 1);
}
if (d[n] == K - 1 && A[n] != 1) {
ans++;
d[n] = -1;
... | #include <iostream>
#include <vector>
using namespace std;
int N, K, A[100010], d[100010] = {0}, ans = 0;
vector<vector<int>> v(100010);
int dfs(int n) {
for (int i = 0; i < v[n].size(); i++) {
dfs(v[n][i]);
d[n] = max(d[n], d[v[n][i]] + 1);
}
if (n != 1 && d[n] == K - 1 && A[n] != 1) {
ans++;
d[... | [
"control_flow.branch.if.condition.change"
] | 1,506,786 | 1,506,787 | u623954643 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
#define modulo 998244353
#define mod(mod_x) ((((long long)mod_x + modulo)) % modulo)
#define Inf 1000000000
int ans = 0;
int N, K;
void dfs(vector<int> &dp, vector<vector<int>> &E, int now, int p) {
for (int i = 0; i < E[now].size(); i++) {
dfs(dp, E, E[now][i], now... | #include <bits/stdc++.h>
using namespace std;
#define modulo 998244353
#define mod(mod_x) ((((long long)mod_x + modulo)) % modulo)
#define Inf 1000000000
int ans = 0;
int N, K;
void dfs(vector<int> &dp, vector<vector<int>> &E, int now, int p) {
for (int i = 0; i < E[now].size(); i++) {
dfs(dp, E, E[now][i], now... | [
"literal.number.change",
"assignment.value.change"
] | 1,506,792 | 1,506,793 | u118797367 | cpp |
p04008 | #include <iostream>
#include <vector>
using namespace std;
const int MAX_N = 1e5 + 5;
int K, ans;
int par[MAX_N];
vector<int> adj[MAX_N];
int subh[MAX_N];
int del[MAX_N];
void dfs(int u) {
subh[u] = 0;
for (int nxt : adj[u]) {
dfs(nxt);
if (!del[nxt]) {
subh[u] = max(subh[u], 1 + subh[nxt]);
... | #include <iostream>
#include <vector>
using namespace std;
const int MAX_N = 1e5 + 5;
int K, ans;
int par[MAX_N];
vector<int> adj[MAX_N];
int subh[MAX_N];
int del[MAX_N];
void dfs(int u) {
subh[u] = 0;
for (int nxt : adj[u]) {
dfs(nxt);
if (!del[nxt]) {
subh[u] = max(subh[u], 1 + subh[nxt]);
... | [
"control_flow.branch.if.condition.change"
] | 1,506,797 | 1,506,798 | u882575405 | cpp |
p04008 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctype.h>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <unordered_map>
#include <vector>
using... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctype.h>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <unordered_map>
#include <vector>
using... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,506,799 | 1,506,800 | u277153875 | cpp |
p04008 | #include "bits/stdc++.h"
#include <algorithm>
#include <assert.h>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#pragma warning(disable : 4... | #include "bits/stdc++.h"
#include <algorithm>
#include <assert.h>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#pragma warning(disable : 4... | [
"literal.number.change",
"assignment.value.change"
] | 1,506,801 | 1,506,802 | u019239408 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int N, K;
int ans = 0;
vector<vector<int>> edge;
int dfs(int now, int pre) {
int height = 0;
for (int nxt : edge[now]) {
height = max(height, dfs(nxt, now));
}
if (height == K - 1 && pre != 1) {
ans++;
return 0;
}
if (height =... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int N, K;
int ans = 0;
vector<vector<int>> edge;
int dfs(int now, int pre) {
int height = 0;
for (int nxt : edge[now]) {
height = max(height, dfs(nxt, now));
}
if (height == K - 1 && pre != 1 && pre != 0) {
ans++;
return 0;
}
... | [
"control_flow.branch.if.condition.change"
] | 1,506,805 | 1,506,806 | u548834738 | cpp |
p04008 | #include "bits/stdc++.h"
using namespace std;
#define int long long
#define REP(i, n) for (int i = 0; i < (int)n; ++i)
#define RREP(i, n) for (int i = (int)n - 1; i >= 0; --i)
#define FOR(i, s, n) for (int i = s; i < (int)n; ++i)
#define RFOR(i, s, n) for (int i = (int)n - 1; i >= s; --i)
#define ALL(a) a.begin(), a.en... | #include "bits/stdc++.h"
using namespace std;
#define int long long
#define REP(i, n) for (int i = 0; i < (int)n; ++i)
#define RREP(i, n) for (int i = (int)n - 1; i >= 0; --i)
#define FOR(i, s, n) for (int i = s; i < (int)n; ++i)
#define RFOR(i, s, n) for (int i = (int)n - 1; i >= s; --i)
#define ALL(a) a.begin(), a.en... | [
"literal.number.change",
"assignment.value.change"
] | 1,506,813 | 1,506,814 | u693027786 | cpp |
p04008 | #include <bits/stdc++.h>
#define be(v) (v).begin(), (v).end()
#define pb(q) push_back(q)
typedef long long ll;
using namespace std;
const ll mod = 1000000007, INF = mod * mod * 3LL;
#define doublecout(a) cout << fixed << setprecision(10) << a << endl;
vector<vector<int>> v;
int ans = 0, k;
int dfs(int now) {
if (v[n... | #include <bits/stdc++.h>
#define be(v) (v).begin(), (v).end()
#define pb(q) push_back(q)
typedef long long ll;
using namespace std;
const ll mod = 1000000007, INF = mod * mod * 3LL;
#define doublecout(a) cout << fixed << setprecision(10) << a << endl;
vector<vector<int>> v;
int ans = 0, k;
int dfs(int now) {
if (v[n... | [
"literal.number.change",
"variable_declaration.value.change"
] | 1,506,815 | 1,506,816 | u192903163 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using V = vector<int>;
using Vll = vector<ll>;
using Vld = vector<ld>;
using Vbo = vector<bool>;
using VV = vector<V>;
using VVll = vector<Vll>;
using VVld = vector<Vld>;
using VVbo = vector<Vbo>;
using P = pair<int, int>;
using... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using V = vector<int>;
using Vll = vector<ll>;
using Vld = vector<ld>;
using Vbo = vector<bool>;
using VV = vector<V>;
using VVll = vector<Vll>;
using VVld = vector<Vld>;
using VVbo = vector<Vbo>;
using P = pair<int, int>;
using... | [
"call.arguments.add"
] | 1,506,817 | 1,506,818 | u366381207 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using V = vector<int>;
using Vll = vector<ll>;
using Vld = vector<ld>;
using Vbo = vector<bool>;
using VV = vector<V>;
using VVll = vector<Vll>;
using VVld = vector<Vld>;
using VVbo = vector<Vbo>;
using P = pair<int, int>;
using... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using V = vector<int>;
using Vll = vector<ll>;
using Vld = vector<ld>;
using Vbo = vector<bool>;
using VV = vector<V>;
using VVll = vector<Vll>;
using VVld = vector<Vld>;
using VVbo = vector<Vbo>;
using P = pair<int, int>;
using... | [
"control_flow.branch.if.condition.change"
] | 1,506,817 | 1,506,819 | u366381207 | cpp |
p04008 | #include <bits/stdc++.h>
#define inf 0x3f3f3f3f
#define ll long long
#define N 100050
#define res register int
using namespace std;
int head[N], n, m, k, tot;
int a[N], ans;
struct data {
int to, nxt;
} edge[N];
inline void add(int x, int y) {
edge[++tot].to = y;
edge[tot].nxt = head[x];
head[x] = ++tot;
}
i... | #include <bits/stdc++.h>
#define inf 0x3f3f3f3f
#define ll long long
#define N 100050
#define res register int
using namespace std;
int head[N * 2], n, m, k, tot;
int a[N], ans;
struct data {
int to, nxt;
} edge[N * 2];
inline void add(int x, int y) {
edge[++tot].to = y;
edge[tot].nxt = head[x];
head[x] = tot... | [
"variable_declaration.array_dimensions.change",
"expression.operation.binary.add"
] | 1,506,820 | 1,506,821 | u426964396 | cpp |
p04008 | #pragma GCC optimize("Ofast")
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string... | #pragma GCC optimize("Ofast")
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string... | [] | 1,506,824 | 1,506,825 | u591914971 | cpp |
p04008 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <regex>
#include <set>
#include <stack>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <regex>
#include <set>
#include <stack>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(... | [
"literal.number.change",
"assignment.value.change"
] | 1,506,828 | 1,506,829 | u465233477 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define F0R(i, a) FOR(i, 0, a)
#define ROF(i, a, b) for (int i = (b)-1; i >= (a); --i)
#define R0F(i, a) ROF(i, 0, a)
using ll = long long;
using ld = long double;
ll INF = LLONG_MAX;
using vi = vector<int>;
using vll ... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define F0R(i, a) FOR(i, 0, a)
#define ROF(i, a, b) for (int i = (b)-1; i >= (a); --i)
#define R0F(i, a) ROF(i, 0, a)
using ll = long long;
using ld = long double;
ll INF = LLONG_MAX;
using vi = vector<int>;
using vll ... | [
"literal.number.change",
"function.return_value.change"
] | 1,506,830 | 1,506,831 | u148425972 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
template <class T> void chmax(T &x, T y) {
if (x < y)
x = y;
}
int N, K;
vector<int> G[100010];
int ans;
int dfs(int v, int p) {
int mx = 1;
for (auto u : G[v]) {
chmax(mx, dfs(u, v) + 1);
}
if (mx == K - 1 && p > 1)
mx = 0, ans++;
return mx;
}
int... | #include <bits/stdc++.h>
using namespace std;
template <class T> void chmax(T &x, T y) {
if (x < y)
x = y;
}
int N, K;
vector<int> G[100010];
int ans;
int dfs(int v, int p) {
int mx = 1;
for (auto u : G[v]) {
chmax(mx, dfs(u, v) + 1);
}
if (mx == K && p > 1)
mx = 0, ans++;
return mx;
}
int mai... | [
"expression.operation.binary.remove"
] | 1,506,832 | 1,506,833 | u554116180 | cpp |
p04003 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <unordered_map>
#include <vector>
#define inf 0x3F3F3F3F
using namespace std;
struct Node {
int x, c;
};
deque<Node> q;
unordered_map<int, vector<int>> e[100005];
unordered_map<int, int> d[100005];
vector<int> g[10... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <unordered_map>
#include <vector>
#define inf 0x3F3F3F3F
using namespace std;
struct Node {
int x, c;
};
deque<Node> q;
unordered_map<int, vector<int>> e[100005];
unordered_map<int, int> d[100005];
vector<int> g[10... | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 1,506,834 | 1,506,835 | u769470336 | cpp |
p04003 | #include <bits/stdc++.h>
using namespace std;
int n, m;
const int maxn = 1e6 + 5;
unordered_map<int, vector<int>> e[maxn];
set<int> g[maxn]; //颜色
unordered_map<int, int> d[maxn];
struct st {
int p, b, c; //点 颜色 花费
st(int x, int y, int z) {
p = x;
b = y;
c = z;
}
};
bool operator<(const st &a, cons... | #include <bits/stdc++.h>
using namespace std;
int n, m;
const int maxn = 1e5 + 5;
unordered_map<int, vector<int>> e[maxn];
set<int> g[maxn]; //颜色
unordered_map<int, int> d[maxn];
struct st {
int p, b, c; //点 颜色 花费
st(int x, int y, int z) {
p = x;
b = y;
c = z;
}
};
bool operator<(const st &a, cons... | [
"literal.number.change",
"expression.operation.binary.change",
"identifier.change",
"call.arguments.change"
] | 1,506,843 | 1,506,844 | u434674719 | cpp |
p04003 | #include <bits/stdc++.h>
using namespace std;
int n, m;
const int maxn = 1e5 + 5;
unordered_map<int, vector<int>> e[maxn];
set<int> g[maxn]; //颜色
unordered_map<int, int> d[maxn];
struct st {
int p, b, c; //点 颜色 花费
st(int x, int y, int z) {
p = x;
b = y;
c = z;
}
};
bool operator<(const st &a, cons... | #include <bits/stdc++.h>
using namespace std;
int n, m;
const int maxn = 1e5 + 5;
unordered_map<int, vector<int>> e[maxn];
set<int> g[maxn]; //颜色
unordered_map<int, int> d[maxn];
struct st {
int p, b, c; //点 颜色 花费
st(int x, int y, int z) {
p = x;
b = y;
c = z;
}
};
bool operator<(const st &a, cons... | [
"identifier.change",
"call.arguments.change"
] | 1,506,845 | 1,506,844 | u434674719 | cpp |
p04003 | #include <algorithm>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <... | #include <algorithm>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <... | [
"identifier.replace.add",
"literal.replace.remove",
"variable_declaration.array_dimensions.change"
] | 1,506,848 | 1,506,847 | u413888809 | cpp |
p04003 | /*----------------by syr----------------*/
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <math.h... | /*----------------by syr----------------*/
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <math.h... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"expression.unary.arithmetic.remove"
] | 1,506,851 | 1,506,852 | u904221771 | cpp |
p04003 | /*----------------by syr----------------*/
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <math.h... | /*----------------by syr----------------*/
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <math.h... | [
"expression.unary.arithmetic.remove"
] | 1,506,853 | 1,506,852 | u904221771 | cpp |
p04003 | #include <bits/stdc++.h>
#define R register
#define Make std::make_pair
const int MAX = 500020;
int cnt;
std::map<int, int> lty[MAX];
std::vector<std::pair<int, int>> Node[MAX];
std::deque<int> points;
int dis[MAX];
inline int giveCnt(int a, int b) {
if (lty[a].count(b)) {
return lty[a][b];
}
return lty[a]... | #include <bits/stdc++.h>
#define R register
#define Make std::make_pair
const int MAX = 500020;
int cnt;
std::map<int, int> lty[MAX];
std::vector<std::pair<int, int>> Node[MAX];
std::deque<int> points;
int dis[MAX];
inline int giveCnt(int a, int b) {
if (lty[a].count(b)) {
return lty[a][b];
}
return lty[a]... | [] | 1,506,860 | 1,506,861 | u345564324 | cpp |
p04003 | // see
// https://github.com/LumaKernel/vimfiles/tree/master/snippets/cp-cpp/temp.snip
/// --- .lumrc Template {{{ ///
// #define DEBUG
// #define assert(...)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
using P = tuple<int, int>;
using P3 ... | // see
// https://github.com/LumaKernel/vimfiles/tree/master/snippets/cp-cpp/temp.snip
/// --- .lumrc Template {{{ ///
// #define DEBUG
// #define assert(...)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
using P = tuple<int, int>;
using P3 ... | [] | 1,506,899 | 1,506,900 | u884379688 | cpp |
p04003 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
map<pair<int, int>, vector<pair<int, int>>> edg;
set<pair<int, int>> ... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <vector>
using namespace std;
typedef long long ll;
map<pair<int, int>, vector<pair<int, int>>> edg;
set<pair<int, int>> ... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 1,506,906 | 1,506,907 | u843522325 | cpp |
p04003 | // /usr/local/bin/g++ Main.cpp -std=c++14
#include <bits/stdc++.h>
#define INF 4000001
using namespace std;
int n, m;
struct edge {
int to, co;
};
vector<edge> g[100010];
int dis[100010];
set<int> disc[100010];
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cin >> n >> m;
for (int i = 0; i < m; i++) {
... | // /usr/local/bin/g++ Main.cpp -std=c++14
#include <bits/stdc++.h>
#define INF 4000001
using namespace std;
int n, m;
struct edge {
int to, co;
};
vector<edge> g[100010];
int dis[100010];
set<int> disc[100010];
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cin >> n >> m;
for (int i = 0; i < m; i++) {
... | [
"call.arguments.change"
] | 1,506,944 | 1,506,945 | u495319009 | cpp |
p04003 | //#pragma comment(linker, "/STACK:102400000,102400000")
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stri... | //#pragma comment(linker, "/STACK:102400000,102400000")
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <stri... | [
"identifier.change",
"variable_access.subscript.index.change"
] | 1,506,971 | 1,506,972 | u860729283 | cpp |
p04003 | #include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;
#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x, to) for (x = 0; x < (to); x++)
#define FORR(x, arr) for (auto &x : arr)
#define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++)
#define ALL(a) (a.begin()), ... | #include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;
#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x, to) for (x = 0; x < (to); x++)
#define FORR(x, arr) for (auto &x : arr)
#define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++)
#define ALL(a) (a.begin()), ... | [
"identifier.change",
"call.arguments.change"
] | 1,506,994 | 1,506,995 | u452725238 | cpp |
p04008 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#define rep(i, x, y) for (int i = (x); i <= (y); i++)
#define travel(x, i) for (int i = fir[x]; i; i = e[i].nxt)
using namespace std;
const int N = 1e5 + 10;
struct edge {
int nxt, to;
} e[N];
int fir[N], cnt = 0;
int n, k, ans = 0;
int m... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#define rep(i, x, y) for (int i = (x); i <= (y); i++)
#define travel(x, i) for (int i = fir[x]; i; i = e[i].nxt)
using namespace std;
const int N = 1e5 + 10;
struct edge {
int nxt, to;
} e[N];
int fir[N], cnt = 0;
int n, k, ans = 0;
int m... | [
"literal.number.change",
"assignment.value.change"
] | 1,507,020 | 1,507,021 | u495269935 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
struct Edge {
int to, next;
} way[N << 1];
int n, k, a[N], ans, dis[N], num[N], tot;
void Build(int u, int v) {
way[++tot] = (Edge){v, num[u]};
num[u] = tot;
}
void Init() {
scanf("%d%d", &n, &k);
for (int i = 1; i <= n; ++i)
scanf... | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
struct Edge {
int to, next;
} way[N << 1];
int n, k, a[N], ans, dis[N], num[N], tot;
void Build(int u, int v) {
way[++tot] = (Edge){v, num[u]};
num[u] = tot;
}
void Init() {
scanf("%d%d", &n, &k);
for (int i = 1; i <= n; ++i)
scanf... | [
"control_flow.branch.if.condition.change"
] | 1,507,022 | 1,507,023 | u365730061 | cpp |
p04008 | #include <algorithm>
#include <cstdio>
#include <iostream>
#define rep(i, a, b) for (int i = a; i <= b; i++)
#define dep(i, a, b) for (int i = a; i >= b; i--)
using namespace std;
const int N = 1e5 + 10;
pair<int, int> f[N];
int n, k, a[N], ans = 0;
struct edge {
int to, pre;
} e[N << 1];
int u[N], l = 0;
void ins(in... | #include <algorithm>
#include <cstdio>
#include <iostream>
#define rep(i, a, b) for (int i = a; i <= b; i++)
#define dep(i, a, b) for (int i = a; i >= b; i--)
using namespace std;
const int N = 1e5 + 10;
pair<int, int> f[N];
int n, k, a[N], ans = 0;
struct edge {
int to, pre;
} e[N << 1];
int u[N], l = 0;
void ins(in... | [
"control_flow.branch.if.condition.change"
] | 1,507,024 | 1,507,025 | u264908396 | cpp |
p04008 | #pragma GCC optimize("O3")
#pragma GCC target("avx")
#include "bits/stdc++.h" // define macro "/D__MAI"
using namespace std;
typedef long long int ll;
#define xprintf(fmt, ...) fprintf(stderr, fmt, __VA_ARGS__)
#define debugv(v) \
{ ... | #pragma GCC optimize("O3")
#pragma GCC target("avx")
#include "bits/stdc++.h" // define macro "/D__MAI"
using namespace std;
typedef long long int ll;
#define xprintf(fmt, ...) fprintf(stderr, fmt, __VA_ARGS__)
#define debugv(v) \
{ ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.arithmetic.change"
] | 1,507,026 | 1,507,027 | u079330987 | cpp |
p04008 | #include <bits/stdc++.h>
#define ll long long
#define INF 1000000005
#define MOD 1000000007
#define EPS 1e-10
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rrep(i, n) for (int i = (int)(n)-1; i >= 0; --i)
#define srep(i, s, t) for (int i = (int)(s); i < (int)(t); ++i)
#define each(a, b) for (auto(a) : (b... | #include <bits/stdc++.h>
#define ll long long
#define INF 1000000005
#define MOD 1000000007
#define EPS 1e-10
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rrep(i, n) for (int i = (int)(n)-1; i >= 0; --i)
#define srep(i, s, t) for (int i = (int)(s); i < (int)(t); ++i)
#define each(a, b) for (auto(a) : (b... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,507,028 | 1,507,029 | u509674552 | cpp |
p04008 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
#define REP(i, a, b) for (int i = (a); i <= (b); i+... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
#define REP(i, a, b) for (int i = (a); i <= (b); i+... | [
"control_flow.branch.if.condition.change"
] | 1,507,030 | 1,507,031 | u249726977 | cpp |
p04008 | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
#define REP(i, a, b) for (int i = (a); i <= (b); i+... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
#define REP(i, a, b) for (int i = (a); i <= (b); i+... | [
"literal.number.change",
"variable_declaration.value.change"
] | 1,507,032 | 1,507,031 | u249726977 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
#define DUMP(x) cerr << #x << "=" << x << endl
#define DUMP2(x, y) \
cerr << "(" << #x << ", " << #y << ") = (" << x << ", " << y << ")" << endl
#define BINARY(x) static_cast<bitset<16>>(x)
#define rep(i, n) for... | #include <bits/stdc++.h>
using namespace std;
#define DUMP(x) cerr << #x << "=" << x << endl
#define DUMP2(x, y) \
cerr << "(" << #x << ", " << #y << ") = (" << x << ", " << y << ")" << endl
#define BINARY(x) static_cast<bitset<16>>(x)
#define rep(i, n) for... | [
"control_flow.branch.if.condition.change"
] | 1,507,033 | 1,507,034 | u222745664 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
int dfs(int no, int d, int k);
vector<int> ed[100001];
int visit[100001];
int ans = 0;
int main() {
int i, j;
int n, k;
cin >> n >> k;
int a[n + 1];
for (i = 1; i <= n; i++) {
cin >> a[i];
... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
int dfs(int no, int d, int k);
vector<int> ed[100001];
int visit[100001];
int ans = 0;
int main() {
int i, j;
int n, k;
cin >> n >> k;
int a[n + 1];
for (i = 1; i <= n; i++) {
cin >> a[i];
... | [
"literal.number.change",
"assignment.value.change"
] | 1,507,037 | 1,507,038 | u944763403 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pp;
typedef pair<ll, ll> pll;
void read(int &x) { scanf("%d", &x); }
void read(ll &x) { scanf("%lld", &x); }
template <typename T, typename... Args> void read(T &a, Args &...b) {
read(a);
read(b...);
}
#define all(x) (x).begi... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pp;
typedef pair<ll, ll> pll;
void read(int &x) { scanf("%d", &x); }
void read(ll &x) { scanf("%lld", &x); }
template <typename T, typename... Args> void read(T &a, Args &...b) {
read(a);
read(b...);
}
#define all(x) (x).begi... | [
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"assignment.change"
] | 1,507,041 | 1,507,042 | u476468228 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const ll MOD = 1000000007;
int N, K;
int ans;
vector<vector<int>> rev;
int dfs(int v, int prev) {
int depth = 0;
for (int to : rev[v]) {
if (to == prev)
continue;
depth = max(depth, 1 + dfs(to, v));
}
i... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const ll MOD = 1000000007;
int N, K;
int ans;
vector<vector<int>> rev;
int dfs(int v, int prev) {
int depth = 0;
for (int to : rev[v]) {
if (to == prev)
continue;
depth = max(depth, dfs(to, v));
}
if (d... | [
"expression.operation.binary.remove"
] | 1,507,043 | 1,507,044 | u783174124 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const ll MOD = 1000000007;
int N, K;
int ans;
vector<vector<int>> rev;
int dfs(int v, int prev) {
int depth = 0;
for (int to : rev[v]) {
if (to == prev)
continue;
depth = max(depth, 1 + dfs(to, v));
}
i... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const ll MOD = 1000000007;
int N, K;
int ans;
vector<vector<int>> rev;
int dfs(int v, int prev) {
int depth = 0;
for (int to : rev[v]) {
if (to == prev)
continue;
depth = max(depth, dfs(to, v));
}
if (d... | [
"expression.operation.binary.remove"
] | 1,507,045 | 1,507,046 | u783174124 | cpp |
p04008 | #include <algorithm>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <deque>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <se... | #include <algorithm>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <deque>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <se... | [
"literal.number.change",
"assignment.value.change",
"call.arguments.change"
] | 1,507,047 | 1,507,048 | u119460590 | cpp |
p04008 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <memory.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>
using namesp... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <memory.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>
using namesp... | [
"literal.number.change",
"variable_declaration.value.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,507,049 | 1,507,050 | u261965335 | cpp |
p04008 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <memory.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>
using namesp... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <memory.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>
using namesp... | [
"literal.number.change",
"variable_declaration.value.change"
] | 1,507,051 | 1,507,050 | u261965335 | cpp |
p04008 | #include <bits/stdc++.h>
#define each(i, c) for (auto &i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
template <typename P, typename Q>
ostream &operator<<(ostream &os, pair<P, Q> p) {
os << "(" << p.first << ... | #include <bits/stdc++.h>
#define each(i, c) for (auto &i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
template <typename P, typename Q>
ostream &operator<<(ostream &os, pair<P, Q> p) {
os << "(" << p.first << ... | [
"control_flow.branch.if.condition.change"
] | 1,507,056 | 1,507,057 | u768334187 | cpp |
p04008 | #include <cstdio>
#include <vector>
using namespace std;
vector<int> gra[100001];
int ans, k, a[100001];
int dfs(int p) {
int lev = 1, i;
for (i = 0; i < gra[p].size(); ++i) {
lev = max(lev, dfs(gra[p][i]) + 1);
}
if (lev == k && a[p] != 1) {
++ans;
lev = 0;
}
return lev;
}
int main() {
int i,... | #include <cstdio>
#include <vector>
using namespace std;
vector<int> gra[100001];
int ans, k, a[100001];
int dfs(int p) {
int lev = 1, i;
for (i = 0; i < gra[p].size(); ++i) {
lev = max(lev, dfs(gra[p][i]) + 1);
}
if (lev == k && p != 1 && a[p] != 1) {
++ans;
lev = 0;
}
return lev;
}
int main() ... | [
"control_flow.branch.if.condition.change"
] | 1,507,065 | 1,507,066 | u648485979 | cpp |
p04008 | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define repd(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define rep(i, n) r... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#define repd(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define rep(i, n) r... | [
"control_flow.branch.if.condition.change"
] | 1,507,079 | 1,507,080 | u819604704 | cpp |
p04008 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define rep(i, m, n) for (i = m; i <= n; i++)
#define rsp(it, s) for (s... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define rep(i, m, n) for (i = m; i <= n; i++)
#define rsp(it, s) for (s... | [
"control_flow.branch.if.condition.change"
] | 1,507,081 | 1,507,082 | u281742447 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
#define REP(i, s, n) for (int i = (int)(s); i < (int)(n); ++i)
#define rep(i, n) REP(i, 0, n)
typedef long long int i64;
typedef pair<int, int> pint;
int N, K;
vector<int> G[100000];
int ans;
int dfs(int cur_v, int p) {
int res = 0;
for (in... | #include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
#define REP(i, s, n) for (int i = (int)(s); i < (int)(n); ++i)
#define rep(i, n) REP(i, 0, n)
typedef long long int i64;
typedef pair<int, int> pint;
int N, K;
vector<int> G[100000];
int ans;
int dfs(int cur_v, int p) {
int res = 0;
for (in... | [
"literal.number.change",
"call.arguments.change"
] | 1,507,083 | 1,507,084 | u084889225 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
#define REP(i, s, n) for (int i = (int)(s); i < (int)(n); ++i)
#define rep(i, n) REP(i, 0, n)
typedef long long int i64;
typedef pair<int, int> pint;
int N, K;
vector<int> G[100000];
int ans;
int dfs(int cur_v, int p) {
int res = 0;
for (in... | #include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
#define REP(i, s, n) for (int i = (int)(s); i < (int)(n); ++i)
#define rep(i, n) REP(i, 0, n)
typedef long long int i64;
typedef pair<int, int> pint;
int N, K;
vector<int> G[100000];
int ans;
int dfs(int cur_v, int p) {
int res = 0;
for (in... | [
"literal.number.change",
"assignment.value.change"
] | 1,507,085 | 1,507,084 | u084889225 | cpp |
p04008 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <typeinfo>
#include <vector>
#define DIV 1000000007
using namespace std;
long long N, K;
vec... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <typeinfo>
#include <vector>
#define DIV 1000000007
using namespace std;
long long N, K;
vec... | [
"literal.number.change",
"function.return_value.change"
] | 1,507,088 | 1,507,089 | u920254817 | cpp |
p04008 | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <st... | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <st... | [
"literal.number.change",
"assignment.value.change"
] | 1,507,092 | 1,507,093 | u085110627 | cpp |
p04008 | #pragma comment(linker, "/STACK:256000000")
#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_DEPRECATE
#define _CRT_NONSTDC_NO_DEPRECATE
#define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
... | #pragma comment(linker, "/STACK:256000000")
#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_DEPRECATE
#define _CRT_NONSTDC_NO_DEPRECATE
#define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
... | [
"literal.number.change",
"assignment.value.change"
] | 1,507,094 | 1,507,095 | u995508506 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vvi = vector<vi>;
using vb = vector<bool>;
using vvb = vector<vb>;
using vl = vector<ll>;
using vvl = vector<vl>;
using vd = vector<double>;
using vvd = vector<vd>;
#define REP(i, n) for (ll i = 0,... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vvi = vector<vi>;
using vb = vector<bool>;
using vvb = vector<vb>;
using vl = vector<ll>;
using vvl = vector<vl>;
using vd = vector<double>;
using vvd = vector<vd>;
#define REP(i, n) for (ll i = 0,... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,507,096 | 1,507,097 | u273357559 | cpp |
p04008 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vvi = vector<vi>;
using vb = vector<bool>;
using vvb = vector<vb>;
using vl = vector<ll>;
using vvl = vector<vl>;
using vd = vector<double>;
using vvd = vector<vd>;
#define REP(i, n) for (ll i = 0,... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using vi = vector<int>;
using vvi = vector<vi>;
using vb = vector<bool>;
using vvb = vector<vb>;
using vl = vector<ll>;
using vvl = vector<vl>;
using vd = vector<double>;
using vvd = vector<vd>;
#define REP(i, n) for (ll i = 0,... | [
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 1,507,098 | 1,507,097 | u273357559 | cpp |
p04008 | /*{{{*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#inc... | /*{{{*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#inc... | [
"expression.operation.binary.remove"
] | 1,507,103 | 1,507,104 | u407446053 | cpp |
p04008 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define mp make_pair
#define mt make_tuple
#defi... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define mp make_pair
#define mt make_tuple
#defi... | [
"literal.number.change",
"assignment.value.change"
] | 1,507,107 | 1,507,108 | u291816696 | cpp |
p04008 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
#define all(c) c.begin(), c.end()
#define pb push_back
#define fs first
#define sc second
#define show(x) cout << #x << " = " << x << endl
#define chmin(x, y) x = min(x, y)
#define chmax(... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i <= (int)(n); i++)
#define all(c) c.begin(), c.end()
#define pb push_back
#define fs first
#define sc second
#define show(x) cout << #x << " = " << x << endl
#define chmin(x, y) x = min(x, y)
#define chmax(... | [
"literal.number.change",
"assignment.value.change"
] | 1,507,109 | 1,507,110 | u309470177 | cpp |
p04008 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define SIZE 100005
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
vector<in... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define SIZE 100005
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
vector<in... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.number.change",
"assignment.value.change"
] | 1,507,113 | 1,507,114 | u600916050 | cpp |
p04009 | #include <bits/stdc++.h>
#define N 101
unsigned short F[N][N][N][N], mp[N][N], sum[N][N];
using namespace std;
inline int rd() {
int r;
scanf("%d", &r);
return r;
}
int n, m, sx, sy;
char s[N];
inline void ut(unsigned short &x, unsigned short y) { x = max(x, y); }
void init() {
n = rd(), m = rd();
for (int i... | #include <bits/stdc++.h>
#define N 101
unsigned short F[N][N][N][N], mp[N][N], sum[N][N];
using namespace std;
inline int rd() {
int r;
scanf("%d", &r);
return r;
}
int n, m, sx, sy;
char s[N];
inline void ut(unsigned short &x, unsigned short y) { x = max(x, y); }
void init() {
n = rd(), m = rd();
for (int i... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,507,119 | 1,507,120 | u089230684 | cpp |
p04009 | // 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... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,507,121 | 1,507,122 | u806517102 | cpp |
p04009 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#define maxn 105
using namespace std;
short f[maxn][maxn][maxn][maxn];
char s[maxn][maxn];
int a[maxn][maxn];
int X, Y, n, m;
void update(short &x, short y) {
if (x < y)
x = y;
}
int get(int x1, int y1, int x2, int y2) ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#define maxn 105
using namespace std;
short f[maxn][maxn][maxn][maxn];
char s[maxn][maxn];
int a[maxn][maxn];
int X, Y, n, m;
void update(short &x, short y) {
if (x < y)
x = y;
}
int get(int x1, int y1, int x2, int y2) ... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,507,129 | 1,507,130 | u169018444 | cpp |
p04003 | #include <algorithm>
#include <iostream>
#include <queue>
#include <utility>
#include <vector>
#define llint long long
#define inf 1e18
using namespace std;
typedef pair<llint, llint> P;
typedef pair<llint, P> E;
struct edge {
llint to, cost;
edge(int a, int b) { to = a, cost = b; }
};
struct UnionFind {
int s... | #include <algorithm>
#include <iostream>
#include <queue>
#include <utility>
#include <vector>
#define llint long long
#define inf 1e18
using namespace std;
typedef pair<llint, llint> P;
typedef pair<llint, P> E;
struct edge {
llint to, cost;
edge(int a, int b) { to = a, cost = b; }
};
struct UnionFind {
int s... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 1,507,143 | 1,507,144 | u319282133 | cpp |
p04003 | #include <bits/stdc++.h>
#define LL long long
#define MEM(x, y) memset(x, y, sizeof(x))
#define MOD(x) ((x) % mod)
#define mod 1000000007
#define pb push_back
#define pii pair<int, int>
#define mkpii make_pair
#define STREAM_FAST ios::sync_with_stdio(false)
using namespace std;
const int maxn = 1e6 + 7;
struct node {
... | #include <bits/stdc++.h>
#define LL long long
#define MEM(x, y) memset(x, y, sizeof(x))
#define MOD(x) ((x) % mod)
#define mod 1000000007
#define pb push_back
#define pii pair<int, int>
#define mkpii make_pair
#define STREAM_FAST ios::sync_with_stdio(false)
using namespace std;
const int maxn = 1e6 + 7;
struct node {
... | [
"literal.number.change",
"call.arguments.change"
] | 1,507,201 | 1,507,202 | u366089652 | cpp |
p04003 | #define _CRT_SECURE_NO_WARNINGS
#include "bits/stdc++.h"
#include <random>
#include <unordered_map>
#include <unordered_set>
//#include <opencv2/core.hpp>
//#include <opencv2/highgui.hpp>
//#include <opencv2/imgproc.hpp>
using namespace std;
//呪文
#define DUMPOUT cerr
#define dump(...) ... | #define _CRT_SECURE_NO_WARNINGS
#include "bits/stdc++.h"
#include <random>
#include <unordered_map>
#include <unordered_set>
//#include <opencv2/core.hpp>
//#include <opencv2/highgui.hpp>
//#include <opencv2/imgproc.hpp>
using namespace std;
//呪文
#define DUMPOUT cerr
#define dump(...) ... | [
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 1,507,221 | 1,507,222 | u034865202 | cpp |
p04003 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <climits>
#include <cmath>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <uno... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <climits>
#include <cmath>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <uno... | [
"expression.operation.binary.remove"
] | 1,507,227 | 1,507,228 | u492373312 | cpp |
p04003 | #include <bits/stdc++.h>
using namespace std;
/*
#include <boost/multiprecision/cpp_int.hpp>
using namespace boost::multiprecision;
using cint = cpp_int;
*/
// Define
using ll = long long;
using ull = unsigned long long;
using ld = long double;
const ll dx[4] = {1, 0, -1, 0};
const ll dy[4] = {0, 1, 0, -1};
const ll ... | #include <bits/stdc++.h>
using namespace std;
/*
#include <boost/multiprecision/cpp_int.hpp>
using namespace boost::multiprecision;
using cint = cpp_int;
*/
// Define
using ll = long long;
using ull = unsigned long long;
using ld = long double;
const ll dx[4] = {1, 0, -1, 0};
const ll dy[4] = {0, 1, 0, -1};
const ll ... | [
"literal.number.change",
"assignment.value.change"
] | 1,507,233 | 1,507,234 | u398942100 | cpp |
p04003 | #include "bits/stdc++.h"
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <tuple>
#include <vector>
using namespace std;
#define FOR(i, init, a) for (int i = init; i < a; i++)
#define rep(i, a) FOR(i, 0, a)
#define... | #include "bits/stdc++.h"
#include <algorithm>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <tuple>
#include <vector>
using namespace std;
#define FOR(i, init, a) for (int i = init; i < a; i++)
#define rep(i, a) FOR(i, 0, a)
#define... | [
"expression.operation.unary.arithmetic.add"
] | 1,507,258 | 1,507,259 | u415041731 | cpp |
p04003 | #include <bits/stdc++.h>
using namespace std;
#define N 500010
#define inf 0x3f3f3f3f
struct node {
int to, nxt, belong;
} e[N << 2];
int n, m;
int head[N << 2], cnt;
int d[N * 2];
void ins(int u, int v, int c) {
e[++cnt].to = v;
e[cnt].nxt = head[u];
e[cnt].belong = c;
head[u] = cnt;
}
std::set<int> s... | #include <bits/stdc++.h>
using namespace std;
#define N 500010
#define inf 0x3f3f3f3f
struct node {
int to, nxt, belong;
} e[N << 2];
int n, m;
int head[N << 2], cnt;
int d[N * 2];
void ins(int u, int v, int c) {
e[++cnt].to = v;
e[cnt].nxt = head[u];
e[cnt].belong = c;
head[u] = cnt;
}
std::set<int> s... | [
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 1,507,304 | 1,507,305 | u993519359 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.