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 |
|---|---|---|---|---|---|---|---|
p02584 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define fi first
#define se second
#define pi pair<int, int>
#define pb push_back
// dont forget to initialize global variables inside main() ;
int32_t main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int tt = 1;
while (tt-... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define fi first
#define se second
#define pi pair<int, int>
#define pb push_back
// dont forget to initialize global variables inside main() ;
int32_t main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int tt = 1;
while (tt-... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 288,304 | 288,305 | u974478348 | cpp |
p02584 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define fi first
#define se second
#define pi pair<int, int>
#define pb push_back
// dont forget to initialize global variables inside main() ;
int32_t main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int tt = 1;
while (tt-... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define fi first
#define se second
#define pi pair<int, int>
#define pb push_back
// dont forget to initialize global variables inside main() ;
int32_t main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int tt = 1;
while (tt-... | [] | 288,306 | 288,305 | u974478348 | cpp |
p02584 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll x, k, d;
int main() {
scanf("%lld %lld %lld", &x, &k, &d);
if (x < 0) {
ll cnt = abs(x) / d;
if (k < cnt) {
printf("%lld", abs(x + d * k));
return 0;
}
x += cnt * d;
k -= cnt;
ll tmp = x + d;
ll tmp2 = x... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll x, k, d;
int main() {
scanf("%lld %lld %lld", &x, &k, &d);
if (x < 0) {
ll cnt = abs(x) / d;
if (k < cnt) {
printf("%lld", abs(x + d * k));
return 0;
}
x += cnt * d;
k -= cnt;
ll tmp = x + d;
ll tmp2 = x... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 288,307 | 288,308 | u114368510 | cpp |
p02584 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll x, k, d;
int main() {
scanf("%lld %lld %lld", &x, &k, &d);
if (x < 0) {
ll cnt = abs(x) / d;
if (k <= cnt) {
printf("%lld", abs(x + d * k));
return 0;
}
x += cnt * d;
k -= cnt;
ll tmp = x + d;
ll tmp2 = ... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
ll x, k, d;
int main() {
scanf("%lld %lld %lld", &x, &k, &d);
if (x < 0) {
ll cnt = abs(x) / d;
if (k < cnt) {
printf("%lld", abs(x + d * k));
return 0;
}
x += cnt * d;
k -= cnt;
ll tmp = x + d;
ll tmp2 = x... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"identifier.change"
] | 288,309 | 288,308 | u114368510 | cpp |
p02584 | #include <bits/stdc++.h>
using namespace std;
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(NULL)
typedef long long ll;
typedef long double ld;
#define rep(i, a) for (ll i = 0; i < a; i++)
#defi... | #include <bits/stdc++.h>
using namespace std;
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(NULL)
typedef long long ll;
typedef long double ld;
#define rep(i, a) for (ll i = 0; i < a; i++)
#defi... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"expression.operation.binary.change"
] | 288,322 | 288,323 | u244803291 | cpp |
p02584 | // Problem Link:
// Tutorial Link:
#include <bits/stdc++.h>
using namespace std;
#define LL long long
#define ll long long
#define all(v) v.begin(), v.end()
#define pb push_back
#define pLL pair<LL, LL>
#define ff first
#define ss second
#define rep(i, a, b) for (LL i = a; i < b; ++i)
#define repb(i, a, b) for (LL i... | // Problem Link:
// Tutorial Link:
#include <bits/stdc++.h>
using namespace std;
#define LL long long
#define ll long long
#define all(v) v.begin(), v.end()
#define pb push_back
#define pLL pair<LL, LL>
#define ff first
#define ss second
#define rep(i, a, b) for (LL i = a; i < b; ++i)
#define repb(i, a, b) for (LL i... | [
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove",
"identifier.replace.add",
"literal.replace.remove"
] | 288,334 | 288,335 | u260951697 | cpp |
p02584 | // This template belongs to Juan Carlo Vieri
/* ____ __
/ _/ | | __ __
__| |__ | | /_/ | |
|__ __| | | __ ____ | | __ ___ _ ___
| | | | | | / _/ | |/ / / _ \ | |/ _/
| | | | | | | |_ | \ | __/ | /
|__| |__| |__| \___\ |__|\__\ ... | // This template belongs to Juan Carlo Vieri
/* ____ __
/ _/ | | __ __
__| |__ | | /_/ | |
|__ __| | | __ ____ | | __ ___ _ ___
| | | | | | / _/ | |/ / / _ \ | |/ _/
| | | | | | | |_ | \ | __/ | /
|__| |__| |__| \___\ |__|\__\ ... | [
"call.add",
"call.arguments.change"
] | 288,342 | 288,343 | u392283934 | cpp |
p02584 | //😄😄😄😄😄😄😄😄😄😄😄😄😄
// Apno Swagat che//
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vll vector<ll>
#define vi vector<int>
#define pi pair<int, int>
#define vp vector<pi>
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define For(i, a, b) for (ll i = a... | //😄😄😄😄😄😄😄😄😄😄😄😄😄
// Apno Swagat che//
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vll vector<ll>
#define vi vector<int>
#define pi pair<int, int>
#define vp vector<pi>
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define For(i, a, b) for (ll i = a... | [
"call.add",
"call.arguments.change"
] | 288,348 | 288,349 | u742342104 | cpp |
p02584 | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int getRand(int l, int r) {
uniform_int_distribution<int> uid(l, r);
return uid(rng);
}
#de... | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int getRand(int l, int r) {
uniform_int_distribution<int> uid(l, r);
return uid(rng);
}
#de... | [
"control_flow.branch.else.remove",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"assignment.add"
] | 288,358 | 288,359 | u680493942 | cpp |
p02584 | /*
Dont BLUNDER
*/
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx")
#pragma GCC optimize("-ffloat-store")
#pragma GCC optimization("unroll-loops")
// for n2 loops
#include <bits/stdc++.h>
using namespace std;
/*#include <ext/pb_ds/assoc_container.hpp> // Common file
#inclu... | /*
Dont BLUNDER
*/
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx")
#pragma GCC optimize("-ffloat-store")
#pragma GCC optimization("unroll-loops")
// for n2 loops
#include <bits/stdc++.h>
using namespace std;
/*#include <ext/pb_ds/assoc_container.hpp> // Common file
#inclu... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"identifier.change",
"io.output.change"
] | 288,362 | 288,363 | u331681714 | cpp |
p02584 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(c) c.begin(), c.end()
#define FAST ios_base::sync_with_stdio(false), cin.tie(NULL);
#define pii pair<int, int>
#define pb push_back
#define F first
#define S second
#define endl "\n"
#define bitcnt(n) __builtin_popcountll(n)
#define setpre(... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(c) c.begin(), c.end()
#define FAST ios_base::sync_with_stdio(false), cin.tie(NULL);
#define pii pair<int, int>
#define pb push_back
#define F first
#define S second
#define endl "\n"
#define bitcnt(n) __builtin_popcountll(n)
#define setpre(... | [
"call.add",
"call.arguments.change"
] | 288,364 | 288,365 | u272870143 | cpp |
p02584 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
using namespace std;
#define ll long long int
#define ld long double
using namespace __gnu_pbds;
typedef tree<ll, null_type, less<ll>, rb_tree_tag,
tree_order_statistics_node_update>... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <functional>
using namespace std;
#define ll long long int
#define ld long double
using namespace __gnu_pbds;
typedef tree<ll, null_type, less<ll>, rb_tree_tag,
tree_order_statistics_node_update>... | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 288,372 | 288,373 | u837214577 | cpp |
p02584 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define rep(i, a, b, c) for (ll i = (a); i <= (b); i += (c))
#define repb(i, a, b, c) for (ll i = (a); i >= (b); i -= (c))
#define MOD 1000000007
#define inf 3e18
#define ld long double
#define mp make_pair
#define vpll vector<pair<... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define rep(i, a, b, c) for (ll i = (a); i <= (b); i += (c))
#define repb(i, a, b, c) for (ll i = (a); i >= (b); i -= (c))
#define MOD 1000000007
#define inf 3e18
#define ld long double
#define mp make_pair
#define vpll vector<pair<... | [
"call.add",
"call.arguments.change"
] | 288,388 | 288,389 | u315083770 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 2e5 + 10;
int n, k;
ll sum[maxn], c[maxn], p[maxn];
bool vis[maxn];
int main() {
scanf("%d%d", &n, &k);
for (int i = 1; i <= n; i++)
scanf("%d", &p[i]);
for (int i = 1; i <= n; i++)
scanf("%d", &c[i]);
ll ans = -1e18... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 2e5 + 10;
int n, k;
int sum[maxn], c[maxn], p[maxn];
bool vis[maxn];
int main() {
scanf("%d%d", &n, &k);
for (int i = 1; i <= n; i++)
scanf("%d", &p[i]);
for (int i = 1; i <= n; i++)
scanf("%d", &c[i]);
ll ans = -1e1... | [
"variable_declaration.type.change"
] | 288,402 | 288,403 | u783137029 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int n, k;
cin >> n >> k;
vector<int> p(n);
vector<ll> c(n);
for (auto &e : p) {
cin >> e;
e--;
}
for (auto &e : c)
cin >> e;
vector<ll> s1(n), s2(n), d1(n), d2(n);
for (int i = 0; i < n; i++) {
if (d1[i]... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int n, k;
cin >> n >> k;
vector<int> p(n);
vector<ll> c(n);
for (auto &e : p) {
cin >> e;
e--;
}
for (auto &e : c)
cin >> e;
vector<ll> s1(n), s2(n), d1(n), d2(n);
for (int i = 0; i < n; i++) {
if (d1[i]... | [
"assignment.change"
] | 288,404 | 288,405 | u848737670 | cpp |
p02585 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <string>
#include <vector>
using namespace std;
int64_t mod = 998244353;
vector<int> getprime(int n) {
vector<int> p(0);
vector<bool> table(n + 1, 0);
for (int i = 2; i <= n; i++) {
if (tabl... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <string>
#include <vector>
using namespace std;
int64_t mod = 998244353;
vector<int> getprime(int n) {
vector<int> p(0);
vector<bool> table(n + 1, 0);
for (int i = 2; i <= n; i++) {
if (tabl... | [
"assignment.change"
] | 288,406 | 288,407 | u229148215 | cpp |
p02585 | //高知能系Vtuberの高井茅乃です。
// Twitter: https://twitter.com/takaichino
// YouTube: https://www.youtube.com/channel/UCTOxnI3eOI_o1HRgzq-LEZw
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF INT_MAX
#define LLINF LLONG_MAX
#define REP(i, n) for (int i = 0; i < n; i++)
#define REP1(i, n) for (int... | //高知能系Vtuberの高井茅乃です。
// Twitter: https://twitter.com/takaichino
// YouTube: https://www.youtube.com/channel/UCTOxnI3eOI_o1HRgzq-LEZw
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define INF INT_MAX
#define LLINF LLONG_MAX
#define REP(i, n) for (int i = 0; i < n; i++)
#define REP1(i, n) for (int... | [
"assignment.change"
] | 288,416 | 288,417 | u450007962 | cpp |
p02585 |
#if 1
#include <algorithm>
#include <array>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdint>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#incl... |
#if 1
#include <algorithm>
#include <array>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdint>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#incl... | [
"literal.number.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"call.arguments.change"
] | 288,428 | 288,429 | u935586669 | cpp |
p02585 | /*input
5 2
2 4 5 1 3
3 4 -10 -8 8
*/
/*
______________
| )
| ) /
|______/
... | /*input
5 2
2 4 5 1 3
3 4 -10 -8 8
*/
/*
______________
| )
| ) /
|______/
... | [
"control_flow.loop.for.condition.change",
"call.add",
"call.arguments.add"
] | 288,430 | 288,431 | u186304815 | cpp |
p02585 | //#pragma GCC optimize("Ofast")
//#pragma GCC optimize("unroll-loops")
//#pragma GCC target("fma,avx,avx2")
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ld long double
#define sz(a) (int)(a).size()
#define all(a) (a).begin(), (a).end()
#define x first
#define y second
mt19937 rnd(chro... | //#pragma GCC optimize("Ofast")
//#pragma GCC optimize("unroll-loops")
//#pragma GCC target("fma,avx,avx2")
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ld long double
#define sz(a) (int)(a).size()
#define all(a) (a).begin(), (a).end()
#define x first
#define y second
mt19937 rnd(chro... | [
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 288,436 | 288,437 | u304537903 | cpp |
p02585 | #include <bits/stdc++.h>
#define rep(a, b, c) for (int a = b; a <= c; a++)
#define per(a, b, c) for (int a = b; a >= c; a--)
#define ios \
; \
ios::sync_with_stdio(false); ... | #include <bits/stdc++.h>
#define rep(a, b, c) for (int a = b; a <= c; a++)
#define per(a, b, c) for (int a = b; a >= c; a--)
#define ios \
; \
ios::sync_with_stdio(false); ... | [] | 288,446 | 288,447 | u320672088 | cpp |
p02585 | #include <bits/stdc++.h>
#define rep(a, b, c) for (int a = b; a <= c; a++)
#define per(a, b, c) for (int a = b; a >= c; a--)
#define ios \
; \
ios::sync_with_stdio(false); ... | #include <bits/stdc++.h>
#define rep(a, b, c) for (int a = b; a <= c; a++)
#define per(a, b, c) for (int a = b; a >= c; a--)
#define ios \
; \
ios::sync_with_stdio(false); ... | [
"literal.number.change",
"variable_declaration.value.change"
] | 288,448 | 288,447 | u320672088 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
ll gcd(ll a, ll b) {
for (; b; a %= b, swap(a, b))
;
return a;
}
const ll INF = numeric_limits<ll>::min();
ll n, k;
ll p[5001];
ll c[5001];
int cache[5001];
int main() {
ios::sync_wi... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
ll gcd(ll a, ll b) {
for (; b; a %= b, swap(a, b))
;
return a;
}
const ll INF = numeric_limits<ll>::min();
ll n, k;
ll p[5001];
ll c[5001];
int cache[5001];
int main() {
ios::sync_wi... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"misc.off_by_one"
] | 288,451 | 288,452 | u173325742 | cpp |
p02585 | #include <bits/stdc++.h>
// ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
// clock_t start=clock();clock_t
// end=clock();cout<<(double)(end-start)/CLOCKS_PER_SEC<<endl;
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned int ui;
typedef pair<int, int> pii;
typedef pair<pii... | #include <bits/stdc++.h>
// ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
// clock_t start=clock();clock_t
// end=clock();cout<<(double)(end-start)/CLOCKS_PER_SEC<<endl;
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned int ui;
typedef pair<int, int> pii;
typedef pair<pii... | [
"assignment.add"
] | 288,456 | 288,457 | u357265888 | cpp |
p02585 | #pragma region template 2.4
#include <bits/stdc++.h>
using namespace std;
template <typename T> using pq_asc = priority_queue<T, vector<T>, greater<T>>;
typedef long long ll;
typedef vector<ll> vi;
typedef vector<vi> vvi;
typedef pair<ll, ll> ii;
typedef vector<ii> vii;
typedef vector<string> vs;
#define REP(i, n) for ... | #pragma region template 2.4
#include <bits/stdc++.h>
using namespace std;
template <typename T> using pq_asc = priority_queue<T, vector<T>, greater<T>>;
typedef long long ll;
typedef vector<ll> vi;
typedef vector<vi> vvi;
typedef pair<ll, ll> ii;
typedef vector<ii> vii;
typedef vector<string> vs;
#define REP(i, n) for ... | [
"expression.operation.binary.remove"
] | 288,458 | 288,459 | u564902833 | cpp |
p02585 | #pragma GCC optimize("Ofast")
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <complex> // complex
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include... | #pragma GCC optimize("Ofast")
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <complex> // complex
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include... | [
"assignment.change"
] | 288,460 | 288,461 | u550014122 | cpp |
p02586 | #include <bits/stdc++.h>
#define debug printf("%d %s\n", __LINE__, __FUNCTION__)
typedef long long ll;
typedef std::pair<int, int> pii;
#define pb push_back
#define mk make_pair
#define fi first
#define se second
int _w;
FILE *_f;
using namespace std;
const int N = 3001;
int R, C, K, val[N][N];
ll f[N][N][4], ans;... | #include <bits/stdc++.h>
#define debug printf("%d %s\n", __LINE__, __FUNCTION__)
typedef long long ll;
typedef std::pair<int, int> pii;
#define pb push_back
#define mk make_pair
#define fi first
#define se second
int _w;
FILE *_f;
using namespace std;
const int N = 3001;
int R, C, K, val[N][N];
ll f[N][N][4], ans;... | [
"call.add",
"call.arguments.change"
] | 288,530 | 288,531 | u362666495 | cpp |
p02586 | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector<int> vi;
typedef vector<ll> vll;
#define PI (2 * acos(0.0))
#define eps 1e-9
#define pb push_back
#define endl "\n"
#define watch(x) cout << (#x) << " ... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector<int> vi;
typedef vector<ll> vll;
#define PI (2 * acos(0.0))
#define eps 1e-9
#define pb push_back
#define endl "\n"
#define watch(x) cout << (#x) << " ... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 288,543 | 288,544 | u992106088 | cpp |
p02586 | #include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_poizcy.hpp>
typedef long long ll;
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(), (a).end()
#define clr(a, h) memset(a, (h), sizeof(a))
#define mem(a, h) memset(a, (h), sizeof(a))
#define fi first
#defin... | #include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_poizcy.hpp>
typedef long long ll;
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(), (a).end()
#define clr(a, h) memset(a, (h), sizeof(a))
#define mem(a, h) memset(a, (h), sizeof(a))
#define fi first
#defin... | [
"control_flow.branch.if.condition.change",
"literal.number.change",
"function.return_value.change"
] | 288,553 | 288,552 | u096100827 | cpp |
p02586 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <vector>
using namespace std;
typedef long long ll;
const int N = 3333;
int a[N][N];
ll f[N][N][3];
int n, m, k;
int main() {
int x, y, v;
scanf("%d%d%d", &n, &m, &k);
for (int i = 1; i <= k; i++) {
scanf("%d%d%d", &x, &y, &v)... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <vector>
using namespace std;
typedef long long ll;
const int N = 3333;
int a[N][N];
ll f[N][N][4];
int n, m, k;
int main() {
int x, y, v;
scanf("%d%d%d", &n, &m, &k);
for (int i = 1; i <= k; i++) {
scanf("%d%d%d", &x, &y, &v)... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 288,563 | 288,564 | u197694618 | cpp |
p02585 | #include <bits/stdc++.h>
#define ll long long int
#define mk make_pair
#define pb push_back
#define INF (ll)1e18
#define pii pair<ll, ll>
#define mod 1000000007 // 998244353
#define f(i, a, b) for (ll i = a; i < b; i++)
#define fb(i, a, b) for (ll i = a; i > b; i--)
#define ff first
#define ss second
#define PI 3.14159... | #include <bits/stdc++.h>
#define ll long long int
#define mk make_pair
#define pb push_back
#define INF (ll)1e18
#define pii pair<ll, ll>
#define mod 1000000007 // 998244353
#define f(i, a, b) for (ll i = a; i < b; i++)
#define fb(i, a, b) for (ll i = a; i > b; i--)
#define ff first
#define ss second
#define PI 3.14159... | [
"call.add",
"call.arguments.change"
] | 288,593 | 288,594 | u208622069 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
int n, k;
int p[5010], c[5010];
int siz[5010];
long long sum[5010];
long long dp[5001][10000];
int st[5010], it, mar[5010];
int main() {
scanf("%d%d", &n, &k);
for (int i = 1; i <= n; ++i)
scanf("%d", &p[i]);
for (int i = 1; i <= n; ++i)
scanf("%d", &c[i]);
... | #include <bits/stdc++.h>
using namespace std;
int n, k;
int p[5010], c[5010];
int siz[5010];
long long sum[5010];
long long dp[5001][10000];
int st[5010], it, mar[5010];
int main() {
scanf("%d%d", &n, &k);
for (int i = 1; i <= n; ++i)
scanf("%d", &p[i]);
for (int i = 1; i <= n; ++i)
scanf("%d", &c[i]);
... | [
"control_flow.return.add",
"control_flow.return.0.add",
"expression.operation.binary.remove"
] | 288,595 | 288,596 | u906318193 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
#define pi 2 * asin(1.0)
// template functions
/////////////////////////
long Comb(long N, long M) { // nCm
long ans = 1;
for (long i = N; i > N - M; i--) {
ans = ans * i;
}
for (long i = M; i > 0; i--) {
ans = ans / i;
}
return ans;
}
long Perm(long N,... | #include <bits/stdc++.h>
using namespace std;
#define pi 2 * asin(1.0)
// template functions
/////////////////////////
long Comb(long N, long M) { // nCm
long ans = 1;
for (long i = N; i > N - M; i--) {
ans = ans * i;
}
for (long i = M; i > 0; i--) {
ans = ans / i;
}
return ans;
}
long Perm(long N,... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 288,601 | 288,602 | u133719418 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
using llong = long long;
using ldbl = long double;
using lpair = pair<llong, llong>;
#define ALL(x) x.begin(), x.end()
constexpr llong mod = 1e9 + 7;
constexpr llong inf = mod * mod;
int main() {
llong N, K;
vector<llong> P, C;
cin >> N >> K;
P.resize(N + 1);
... | #include <bits/stdc++.h>
using namespace std;
using llong = long long;
using ldbl = long double;
using lpair = pair<llong, llong>;
#define ALL(x) x.begin(), x.end()
constexpr llong mod = 1e9 + 7;
constexpr llong inf = mod * mod;
int main() {
llong N, K;
vector<llong> P, C;
cin >> N >> K;
P.resize(N + 1);
... | [
"literal.number.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 288,609 | 288,610 | u341957179 | cpp |
p02585 | #include <bits/stdc++.h>
#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; i++)
#define FORR(i, n) for (ll i = (ll)n - 1LL; i >= 0LL; i--)
#define rep(i, n) FOR(i, 0, n)
#define ALL(x) begin(x), end(x)
using namespace std;
using ll = long long;
constexpr ll Mod = 998244353;
constexpr ll mod = 1e9 + 7;
constexpr ll inf... | #include <bits/stdc++.h>
#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; i++)
#define FORR(i, n) for (ll i = (ll)n - 1LL; i >= 0LL; i--)
#define rep(i, n) FOR(i, 0, n)
#define ALL(x) begin(x), end(x)
using namespace std;
using ll = long long;
constexpr ll Mod = 998244353;
constexpr ll mod = 1e9 + 7;
constexpr ll inf... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 288,613 | 288,614 | u047554023 | cpp |
p02585 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
using namespace std;
using ll = long long;
constexpr ll mod = 1000000007;
constexpr int inf = 1000000000;
constexpr ll linf = 1000000000000000000;
int main() {
int n, k;
cin >> n >> k;
int p[n];
rep(i, n) {
cin >> p[i];
--p[i];
}
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; ++i)
using namespace std;
using ll = long long;
constexpr ll mod = 1000000007;
constexpr int inf = 1000000000;
constexpr ll linf = 1000000000000000000;
int main() {
int n, k;
cin >> n >> k;
int p[n];
rep(i, n) {
cin >> p[i];
--p[i];
}
... | [
"assignment.value.change",
"identifier.change"
] | 288,615 | 288,616 | u708258059 | cpp |
p02585 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
//#include<bits/stdc++.h>
#define rep(i, x) for (ll i = 0; i < x; i... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <tuple>
#include <vector>
//#include<bits/stdc++.h>
#define rep(i, x) for (ll i = 0; i < x; i... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 288,617 | 288,618 | u986568278 | cpp |
p02585 | #include <bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
using namespace std;
// using namespace boost::multiprecision;
typedef long long int ll;
typedef long double ld;
#define PI 3.141592653589793
#define MOD 1000000007
#define ALL(obj) (obj).begin(), (obj).end()
template <class T> inline bool chmax(T &... | #include <bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
using namespace std;
// using namespace boost::multiprecision;
typedef long long int ll;
typedef long double ld;
#define PI 3.141592653589793
#define MOD 1000000007
#define ALL(obj) (obj).begin(), (obj).end()
template <class T> inline bool chmax(T &... | [
"assignment.variable.change",
"identifier.change",
"assignment.value.change",
"call.arguments.change"
] | 288,621 | 288,622 | u273928723 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a) for (int i = 0; i < (a); i++)
typedef pair<int, int> P;
typedef long long ll;
const int INF = 1001001001;
const int MOD = 1000000007;
const double PI = acos(-1);
int main() {
int N;
ll K;
cin >> N >> K;
ll P[N], C[N];
rep(i, N) {
ll p;
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a) for (int i = 0; i < (a); i++)
typedef pair<int, int> P;
typedef long long ll;
const int INF = 1001001001;
const int MOD = 1000000007;
const double PI = acos(-1);
int main() {
int N;
ll K;
cin >> N >> K;
ll P[N], C[N];
rep(i, N) {
ll p;
... | [
"call.arguments.change"
] | 288,623 | 288,624 | u663191260 | cpp |
p02585 | #include <bits/stdc++.h>
#define rep(a, n) for (ll a = 0; a < (n); ++a)
using namespace std;
typedef long long ll;
using ll = long long;
typedef pair<ll, ll> P;
typedef pair<ll, P> PP;
using Graph = vector<vector<ll>>;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
retur... | #include <bits/stdc++.h>
#define rep(a, n) for (ll a = 0; a < (n); ++a)
using namespace std;
typedef long long ll;
using ll = long long;
typedef pair<ll, ll> P;
typedef pair<ll, P> PP;
using Graph = vector<vector<ll>>;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
retur... | [
"assignment.change",
"variable_declaration.value.change",
"expression.operation.unary.remove"
] | 288,635 | 288,636 | u045408189 | cpp |
p02585 | #include <bits/stdc++.h>
#define rep(a, n) for (ll a = 0; a < (n); ++a)
using namespace std;
typedef long long ll;
using ll = long long;
typedef pair<ll, ll> P;
typedef pair<ll, P> PP;
using Graph = vector<vector<ll>>;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
retur... | #include <bits/stdc++.h>
#define rep(a, n) for (ll a = 0; a < (n); ++a)
using namespace std;
typedef long long ll;
using ll = long long;
typedef pair<ll, ll> P;
typedef pair<ll, P> PP;
using Graph = vector<vector<ll>>;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
retur... | [
"assignment.change",
"expression.operation.binary.remove"
] | 288,637 | 288,636 | u045408189 | cpp |
p02585 | #include <bits/stdc++.h>
#define rep(a, n) for (ll a = 0; a < (n); ++a)
using namespace std;
typedef long long ll;
using ll = long long;
typedef pair<ll, ll> P;
typedef pair<ll, P> PP;
using Graph = vector<vector<ll>>;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
retur... | #include <bits/stdc++.h>
#define rep(a, n) for (ll a = 0; a < (n); ++a)
using namespace std;
typedef long long ll;
using ll = long long;
typedef pair<ll, ll> P;
typedef pair<ll, P> PP;
using Graph = vector<vector<ll>>;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
}
retur... | [
"assignment.change"
] | 288,638 | 288,636 | u045408189 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
vector<int> pes, color, ces, sz;
vector<ll> points;
void dfs(int u, int z) {
color[u] = z;
points[color[u]] += ces[u];
sz[color[u]]++;
int v = pes[u];
if (color[v] == -1)
dfs(v, z);
}
int main() {
ios_base::sync_with_stdio(false);
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
vector<int> pes, color, ces, sz;
vector<ll> points;
void dfs(int u, int z) {
color[u] = z;
points[color[u]] += ces[u];
sz[color[u]]++;
int v = pes[u];
if (color[v] == -1)
dfs(v, z);
}
int main() {
ios_base::sync_with_stdio(false);
... | [
"assignment.variable.change",
"identifier.change"
] | 288,642 | 288,643 | u058183675 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
long long arr[1000000], arr1[1000000], val[1000000], val1[1000000];
long long int mmm(long long int x, long long int y) {
if (x > y) {
return x;
} else {
return y;
}
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// freopen("input.txt", ... | #include <bits/stdc++.h>
using namespace std;
long long arr[1000000], arr1[1000000], val[1000000], val1[1000000];
long long int mmm(long long int x, long long int y) {
if (x > y) {
return x;
} else {
return y;
}
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
// freopen("input.txt", ... | [
"assignment.change"
] | 288,666 | 288,667 | u349470793 | cpp |
p02585 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int N, K, res = -1000000009;
vector<long long int> P, C;
vector<vector<long long int>> loopLS;
vector<vector<long long int>> DP;
cin >> N >> K;
P.resize(N + 1);
C.resize(N + 1);
... | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int N, K, res = -1000000009;
vector<long long int> P, C;
vector<vector<long long int>> loopLS;
vector<vector<long long int>> DP;
cin >> N >> K;
P.resize(N + 1);
C.resize(N + 1);
... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 288,668 | 288,669 | u090528429 | cpp |
p02585 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int N, K, res = -1000000009;
vector<long long int> P, C;
vector<vector<long long int>> loopLS;
vector<vector<long long int>> DP;
cin >> N >> K;
P.resize(N + 1);
C.resize(N + 1);
... | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int N, K, res = -1000000009;
vector<long long int> P, C;
vector<vector<long long int>> loopLS;
vector<vector<long long int>> DP;
cin >> N >> K;
P.resize(N + 1);
C.resize(N + 1);
... | [
"call.arguments.change"
] | 288,670 | 288,671 | u090528429 | cpp |
p02585 | #include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define endl '\n'
typedef long long ll;
// Table is the complete reverse of dp
// Always think of the pattern (LCM, GCD)
// Be careful of unsigned
// Think of a solution that gets TLE and optimize it
// Use binary search
// ... | #include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define endl '\n'
typedef long long ll;
// Table is the complete reverse of dp
// Always think of the pattern (LCM, GCD)
// Be careful of unsigned
// Think of a solution that gets TLE and optimize it
// Use binary search
// ... | [
"assignment.change"
] | 288,676 | 288,677 | u222601936 | cpp |
p02585 | #include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define endl '\n'
typedef long long ll;
// Table is the complete reverse of dp
// Always think of the pattern (LCM, GCD)
// Be careful of unsigned
// Think of a solution that gets TLE and optimize it
// Use binary search
// ... | #include <bits/stdc++.h>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define endl '\n'
typedef long long ll;
// Table is the complete reverse of dp
// Always think of the pattern (LCM, GCD)
// Be careful of unsigned
// Think of a solution that gets TLE and optimize it
// Use binary search
// ... | [
"assignment.change"
] | 288,678 | 288,677 | u222601936 | cpp |
p02585 | #include <algorithm>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#includ... | #include <algorithm>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#includ... | [
"assignment.change"
] | 288,681 | 288,682 | u628047647 | cpp |
p02585 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
ll N, K;
ll score(ll x, vector<ll> &P, vector<ll> &C, vector<ll> &sum,
vector<ll> &cycle) {
ll res = -100000000000000000;
ll point = 0;
ll location = x;
for (... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
ll N, K;
ll score(ll x, vector<ll> &P, vector<ll> &C, vector<ll> &sum,
vector<ll> &cycle) {
ll res = -100000000000000000;
ll point = 0;
ll location = x;
for (... | [
"expression.operation.binary.remove"
] | 288,683 | 288,684 | u097161601 | cpp |
p02585 | // In the name of Allah :)
#include <bits/stdc++.h>
using namespace std;
string to_string(char c) { return string(1, c); }
string to_string(bool b) { return b ? "true" : "false"; }
string to_string(const char *s) { return (string)s; }
string to_string(string s) { return s; }
template <class A> string to_string(complex<... | // In the name of Allah :)
#include <bits/stdc++.h>
using namespace std;
string to_string(char c) { return string(1, c); }
string to_string(bool b) { return b ? "true" : "false"; }
string to_string(const char *s) { return (string)s; }
string to_string(string s) { return s; }
template <class A> string to_string(complex<... | [] | 288,689 | 288,690 | u375827135 | cpp |
p02585 | // Author : ps41
#include <bits/stdc++.h>
using namespace std;
#define ll int64_t
const ll M = 1e9 + 7, N = 1e6 + 5;
ll p[N], a[N], tmp, var, cnt, t2, var2;
void func(ll i, ll node) {
cnt++;
tmp += a[p[i]];
if (p[i] == node)
return;
func(p[i], node);
}
void func2(ll i, ll node) {
cnt++;
tmp += a[p[i]... | // Author : ps41
#include <bits/stdc++.h>
using namespace std;
#define ll int64_t
const ll M = 1e9 + 7, N = 1e6 + 5;
ll p[N], a[N], tmp, var, cnt, t2, var2;
void func(ll i, ll node) {
cnt++;
tmp += a[p[i]];
if (p[i] == node)
return;
func(p[i], node);
}
void func2(ll i, ll node) {
cnt++;
tmp += a[p[i]... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 288,694 | 288,695 | u912997017 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> VI;
ll mm = 1000000000;
ll MM = mm + 7;
#define rep(i, n) for (int i = 0; i < n; i++)
#define PI 3.141592653589793
int main() {
int n;
ll k;
cin >> n >> k;
VI p(n);
vector<ll> c(n);
ll ans = -pow(10, 17);
rep(i, n) c... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> VI;
ll mm = 1000000000;
ll MM = mm + 7;
#define rep(i, n) for (int i = 0; i < n; i++)
#define PI 3.141592653589793
int main() {
int n;
ll k;
cin >> n >> k;
VI p(n);
vector<ll> c(n);
ll ans = -pow(10, 17);
rep(i, n) c... | [
"expression.operation.binary.add"
] | 288,696 | 288,697 | u927053131 | cpp |
p02585 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define pi 3.141592653589793238
#define int long long
using namespace __gnu_pbds;
using namespace std;
template <typename T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define pi 3.141592653589793238
#define int long long
using namespace __gnu_pbds;
using namespace std;
template <typename T>
using ordered_set =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 288,711 | 288,712 | u193815565 | cpp |
p02586 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
ll N, M, K, cache[3000][3000][3];
map<pair<ll, ll>, ll> val;
ll dp(ll i, ll j, ll col) {
if (i >= N) {
return LLONG_MIN;
} else if (j >= M) {
return LLONG_MIN;
} else if (col > 3) {
return LLONG_MIN;
} else if (i == N - 1 && j == ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
ll N, M, K, cache[3000][3000][4];
map<pair<ll, ll>, ll> val;
ll dp(ll i, ll j, ll col) {
if (i >= N) {
return LLONG_MIN;
} else if (j >= M) {
return LLONG_MIN;
} else if (col > 3) {
return LLONG_MIN;
} else if (i == N - 1 && j == ... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 288,732 | 288,733 | u568314632 | cpp |
p02586 | // Hail god Yato
#include <bits/stdc++.h>
using namespace std;
#define hs \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0... | // Hail god Yato
#include <bits/stdc++.h>
using namespace std;
#define hs \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0... | [] | 288,740 | 288,741 | u216557283 | cpp |
p02586 | // Hail god Yato
#include <bits/stdc++.h>
using namespace std;
#define hs \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0... | // Hail god Yato
#include <bits/stdc++.h>
using namespace std;
#define hs \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0... | [] | 288,742 | 288,743 | u216557283 | cpp |
p02586 | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#define IOS ... | #include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#define IOS ... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 288,744 | 288,745 | u004342119 | cpp |
p02586 | #include <bits/stdc++.h>
#include <chrono>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <random>
using namespace std;
using namespace __gnu_pbds;
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
typedef tree<int, null_type, less<int>, rb_tree_tag,
... | #include <bits/stdc++.h>
#include <chrono>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#include <random>
using namespace std;
using namespace __gnu_pbds;
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
typedef tree<int, null_type, less<int>, rb_tree_tag,
... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 288,762 | 288,763 | u045505231 | cpp |
p02586 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n, m) for (int i = (n); i < (int)(m); i++)
#define reps(i, n, m) for (int i... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n, m) for (int i = (n); i < (int)(m); i++)
#define reps(i, n, m) for (int i... | [
"literal.number.change",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 288,770 | 288,771 | u238205921 | cpp |
p02586 | #include <bits/stdc++.h>
#define pi acos(-1)
#define ll long long
#define pii pair<ll, ll>
#define debug(a) cout << a << '\n'
#define maxn 200009 /// I wanna be the wind
#define MOD 1000000007
#define F first
#define S second
#define rep(i, a, b) for (ll i = a; i < (b); ++i)
#define per(i, b, a) for (ll i = b - 1; i >=... | #include <bits/stdc++.h>
#define pi acos(-1)
#define ll long long
#define pii pair<ll, ll>
#define debug(a) cout << a << '\n'
#define maxn 200009 /// I wanna be the wind
#define MOD 1000000007
#define F first
#define S second
#define rep(i, a, b) for (ll i = a; i < (b); ++i)
#define per(i, b, a) for (ll i = b - 1; i >=... | [
"assignment.change"
] | 288,787 | 288,788 | u371493016 | cpp |
p02586 | #include <bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define pf push_front
#define eb emplace_back
#define emp emplace
#define ins insert
#define mp make_pair
#define mt make_tuple
#define sz(s) (int)s.size()
#define forp(i, a, b) for (int i = a; i <= b; i++)
#define rep(i, n) for (int i = 0... | #include <bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define pf push_front
#define eb emplace_back
#define emp emplace
#define ins insert
#define mp make_pair
#define mt make_tuple
#define sz(s) (int)s.size()
#define forp(i, a, b) for (int i = a; i <= b; i++)
#define rep(i, n) for (int i = 0... | [] | 288,810 | 288,811 | u382427338 | cpp |
p02586 | #include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#include <cmath>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <regex>
#include <set>
#include <stack>
#include <st... | #include <algorithm>
#include <bits/stdc++.h>
#include <bitset>
#include <cmath>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <regex>
#include <set>
#include <stack>
#include <st... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"identifier.change",
"expression.operation.binary.change"
] | 288,832 | 288,833 | u631558039 | cpp |
p02586 | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#includ... | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#includ... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 288,859 | 288,860 | u403918769 | cpp |
p02586 | //#include<bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
/*
#include <boost/multiprecision/cpp_dec_float.hpp>
#include<boost/multiprecision/cpp_int.hpp>
#include <boost/rational.hpp>
namespace mp = boost::multiprecision;
using Real = mp::numb... | //#include<bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
/*
#include <boost/multiprecision/cpp_dec_float.hpp>
#include<boost/multiprecision/cpp_int.hpp>
#include <boost/rational.hpp>
namespace mp = boost::multiprecision;
using Real = mp::numb... | [
"variable_declaration.specifier.add"
] | 288,875 | 288,876 | u853817705 | cpp |
p02586 | #include <bits/stdc++.h>
#define rep3(i, s, n, a) for (int i = (s); i < (int)(n); i += a)
#define rep2(i, s, n) rep3(i, s, n, 1)
#define rep(i, n) rep2(i, 0, n)
using namespace std;
using ll = long long;
using ull = unsigned long long;
using P = pair<int, int>;
int main() {
int R, C, k;
cin >> R >> C >> k;
vect... | #include <bits/stdc++.h>
#define rep3(i, s, n, a) for (int i = (s); i < (int)(n); i += a)
#define rep2(i, s, n) rep3(i, s, n, 1)
#define rep(i, n) rep2(i, 0, n)
using namespace std;
using ll = long long;
using ull = unsigned long long;
using P = pair<int, int>;
int main() {
int R, C, k;
cin >> R >> C >> k;
vect... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change"
] | 288,891 | 288,892 | u398221039 | cpp |
p02586 | #include <bits/stdc++.h>
#define ll long long
#define db double
#define iosks \
std::ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)... | #include <bits/stdc++.h>
#define ll long long
#define db double
#define iosks \
std::ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 288,908 | 288,909 | u889692806 | cpp |
p02586 | #include <bits/stdc++.h>
#define int long long
#define double long double
using namespace std;
const int MOD = 1000000007;
const int INF = 1e14;
using Graph = vector<vector<int>>;
//既に同じ行でi個拾った状態でj行k列にいるときの最大値
int dp[4][3100][3100];
signed main() {
int R, C, K;
cin >> R >> C >> K;
vector<vector<int>> L(R + 10,... | #include <bits/stdc++.h>
#define int long long
#define double long double
using namespace std;
const int MOD = 1000000007;
const int INF = 1e14;
using Graph = vector<vector<int>>;
//既に同じ行でi個拾った状態でj行k列にいるときの最大値
int dp[4][3100][3100];
signed main() {
int R, C, K;
cin >> R >> C >> K;
vector<vector<int>> L(R + 10,... | [
"assignment.variable.change",
"identifier.replace.add",
"literal.replace.remove",
"variable_access.subscript.index.change",
"assignment.value.change",
"call.arguments.change"
] | 288,910 | 288,911 | u521652313 | cpp |
p02586 | #include "bits/stdc++.h"
using namespace std;
#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 all(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
#define INF 2e15
#define MOD 10e9 + 7
typedef vector<int> vint;
typedef long long ll;
ll ... | #include "bits/stdc++.h"
using namespace std;
#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 all(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
#define INF 2e15
#define MOD 10e9 + 7
typedef vector<int> vint;
typedef long long ll;
ll ... | [
"assignment.value.change",
"expression.operation.unary.remove"
] | 288,922 | 288,923 | u933497430 | cpp |
p02586 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PRINT(a) cout << (a) << endl
#define pb push_back
#define eb emplace_back
#define Fi first
#define Se... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PRINT(a) cout << (a) << endl
#define pb push_back
#define eb emplace_back
#define Fi first
#define Se... | [
"literal.number.change",
"assignment.variable.change",
"variable_access.subscript.index.change",
"assignment.value.change",
"call.arguments.change"
] | 288,956 | 288,957 | u868089307 | cpp |
p02586 | #include <bits/stdc++.h>
using namespace std;
#define eb emplace_back
#define ii pair<int, int>
#define OK (cerr << "OK" << endl)
#define debug(x) cerr << #x " = " << (x) << endl
#define ff first
#define ss second
#define int long long
#define tt tuple<int, int, int>
#define all(x) x.begin(), x.end()
#define vvi vect... | #include <bits/stdc++.h>
using namespace std;
#define eb emplace_back
#define ii pair<int, int>
#define OK (cerr << "OK" << endl)
#define debug(x) cerr << #x " = " << (x) << endl
#define ff first
#define ss second
#define int long long
#define tt tuple<int, int, int>
#define all(x) x.begin(), x.end()
#define vvi vect... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 288,970 | 288,972 | u835480534 | cpp |
p02586 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repit(it, li) for (auto it = li.begin(); it != li.end(); it++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
static ll dp[3000][4];
static int tem[3000][3000];
int main() {
int r, c, k;
cin >> r >> c >> k;
re... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repit(it, li) for (auto it = li.begin(); it != li.end(); it++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
static ll dp[3000][4];
static int tem[3000][3000];
int main() {
int r, c, k;
cin >> r >> c >> k;
re... | [
"control_flow.loop.for.initializer.change"
] | 288,965 | 288,966 | u347579043 | cpp |
p02586 | #include <bits/stdc++.h>
#define pb push_back
#define SZ(x) ((int)(x.size()))
#define FOR(i, s, n) for (ll i = (s); (i) < (n); ++i)
#define FORD(i, s, l) for (ll i = (s); (i) >= l; --i)
#define F first
#define S second
#define TC \
int __tc; ... | #include <bits/stdc++.h>
#define pb push_back
#define SZ(x) ((int)(x.size()))
#define FOR(i, s, n) for (ll i = (s); (i) < (n); ++i)
#define FORD(i, s, l) for (ll i = (s); (i) >= l; --i)
#define F first
#define S second
#define TC \
int __tc; ... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 288,974 | 288,976 | u430554639 | cpp |
p02586 | #include <bits/stdc++.h>
using namespace std;
#define pr(args...) \
{ \
string _s = #args; \
replace(_s.begin(), _s.end(... | #include <bits/stdc++.h>
using namespace std;
#define pr(args...) \
{ \
string _s = #args; \
replace(_s.begin(), _s.end(... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 289,033 | 289,036 | u972547684 | cpp |
p02586 | #include <bits/stdc++.h>
using namespace std;
#define END '\n'
#define int long long
#define pb push_back
#define pii pair<int, int>
#define ff first
#define ss second
#define bug(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
#define loop(i, a, b) for (int i = (a); i < (b); i++)
#define loopb(i, b, a) for (in... | #include <bits/stdc++.h>
using namespace std;
#define END '\n'
#define int long long
#define pb push_back
#define pii pair<int, int>
#define ff first
#define ss second
#define bug(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
#define loop(i, a, b) for (int i = (a); i < (b); i++)
#define loopb(i, b, a) for (in... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 289,050 | 289,052 | u052303665 | cpp |
p02586 | #pragma GCC optimize(2)
#pragma GCC optimize(3)
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N = 2e5 + 10;
#define fi first
#define se second
#define pb push_back
#define wzh(x) cerr << #x << '=' << x << endl;
int r, c, k;
struct uzi {
int r, c, v;
bool operator<(const uzi &t) const... | #pragma GCC optimize(2)
#pragma GCC optimize(3)
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N = 2e5 + 10;
#define fi first
#define se second
#define pb push_back
#define wzh(x) cerr << #x << '=' << x << endl;
int r, c, k;
struct uzi {
int r, c, v;
bool operator<(const uzi &t) const... | [
"expression.unary.arithmetic.remove"
] | 289,077 | 289,078 | u123536078 | cpp |
p02586 |
//#pragma GCC optimize ("-O3")
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <reg... |
//#pragma GCC optimize ("-O3")
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <reg... | [
"identifier.replace.remove",
"literal.replace.add",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 289,086 | 289,090 | u304121198 | cpp |
p02588 | #include <bits/stdc++.h>
using namespace std;
#define DEBUG(x) cerr << #x << ": " << x << endl;
#define DEBUG_VEC(v) \
cerr << #v << ":"; \
for (int i = 0; i < v.size(); i++) ... | #include <bits/stdc++.h>
using namespace std;
#define DEBUG(x) cerr << #x << ": " << x << endl;
#define DEBUG_VEC(v) \
cerr << #v << ":"; \
for (int i = 0; i < v.size(); i++) ... | [
"literal.number.change",
"variable_declaration.value.change"
] | 289,153 | 289,154 | u579152247 | cpp |
p02588 | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <utility>
#include <vector>
#define MAXN 200005
using namespace std;
typedef long long ll;
typedef pair<int, int> pi;
inline pi read() {
ll x = 0;
pi ans;
int f = 0;
char c = getchar();
while (!isdigit(c) ... | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <utility>
#include <vector>
#define MAXN 200005
using namespace std;
typedef long long ll;
typedef pair<int, int> pi;
inline pi read() {
ll x = 0;
pi ans;
int f = 0;
char c = getchar();
while (!isdigit(c) ... | [
"literal.number.change",
"variable_declaration.value.change"
] | 289,182 | 289,183 | u859557372 | cpp |
p02588 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define IN freopen("alchemy_input.txt", "r", stdin)
#define OUT freopen("output.txt", "w", stdout)
#define pb push_back
#define mp make_pair
#define FOR(i, a, b) for (i = a; i <= b; i++)
#define DBG printf("Hi\n")
... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define IN freopen("alchemy_input.txt", "r", stdin)
#define OUT freopen("output.txt", "w", stdout)
#define pb push_back
#define mp make_pair
#define FOR(i, a, b) for (i = a; i <= b; i++)
#define DBG printf("Hi\n")
... | [
"literal.number.type.widen.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 289,219 | 289,220 | u188338175 | cpp |
p02588 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
const int MAX = 60;
vector<vector<int>> cnt(MAX, vector<int>(MAX));
for (int i = 0; i < n; i++) {
long double x;
cin >> x;
long long y = (long long)(x * 1e9);
int a = 0, b = 0;
while (y % 2 == 0) {
y /= 2;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
const int MAX = 60;
vector<vector<int>> cnt(MAX, vector<int>(MAX));
for (int i = 0; i < n; i++) {
long double x;
cin >> x;
long long y = (long long)(x * 1e9 + 0.1);
int a = 0, b = 0;
while (y % 2 == 0) {
y ... | [
"assignment.change"
] | 289,260 | 289,261 | u456496437 | cpp |
p02588 | #include <iostream>
#include <utility>
#include <vector>
using namespace std;
double EPS = 1e-10;
typedef pair<long long, long long> P;
int main() {
int N;
cin >> N;
vector<long long> A(N);
for (int i = 0; i < N; i++) {
long double a;
cin >> a;
A[i] = a * 1e9 + EPS;
}
vector<P> cnt(N);
for (in... | #include <iostream>
#include <utility>
#include <vector>
using namespace std;
double EPS = 1e-10;
typedef pair<long long, long long> P;
int main() {
int N;
cin >> N;
vector<long long> A(N);
for (int i = 0; i < N; i++) {
long double a;
cin >> a;
A[i] = a * 1e9 + 0.01;
}
vector<P> cnt(N);
for (i... | [
"assignment.value.change",
"identifier.replace.remove",
"literal.replace.add",
"expression.operation.binary.change"
] | 289,262 | 289,263 | u503221936 | cpp |
p02588 | #include <iostream>
#include <utility>
#include <vector>
using namespace std;
double EPS = 1e-10;
typedef pair<long long, long long> P;
int main() {
int N;
cin >> N;
vector<long long> A(N);
for (int i = 0; i < N; i++) {
long double a;
cin >> a;
A[i] = a * 1e9;
}
vector<P> cnt(N);
for (int i = ... | #include <iostream>
#include <utility>
#include <vector>
using namespace std;
double EPS = 1e-10;
typedef pair<long long, long long> P;
int main() {
int N;
cin >> N;
vector<long long> A(N);
for (int i = 0; i < N; i++) {
long double a;
cin >> a;
A[i] = a * 1e9 + 0.01;
}
vector<P> cnt(N);
for (i... | [
"assignment.change"
] | 289,264 | 289,263 | u503221936 | cpp |
p02588 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
const int MAX = 60;
vector<vector<int>> cnt(MAX, vector<int>(MAX));
for (int i = 0; i < n; i++) {
long double x;
cin >> x;
long long y = (long long)(x * 1e9 + 0.5);
int a = 0, b = 0;
while (y % 2 == 0) {
y ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
const int MAX = 60;
vector<vector<int>> cnt(MAX, vector<int>(MAX));
for (int i = 0; i < n; i++) {
long double x;
cin >> x;
long long y = (long long)(x * 1e9 + 0.5);
int a = 0, b = 0;
while (y % 2 == 0) {
y ... | [
"expression.operation.binary.remove"
] | 289,265 | 289,266 | u008182229 | cpp |
p02588 | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
inline int my_getchar_unlocked() {
static char buf[1048576];
static int s = 1048576;
static int e = 1048576;
if (s == e && e == 1048576) {
e = fread_unlocked(buf, 1, 1048576, stdin);
s = 0;
}
if (s == e) {
return EOF;
... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
inline int my_getchar_unlocked() {
static char buf[1048576];
static int s = 1048576;
static int e = 1048576;
if (s == e && e == 1048576) {
e = fread_unlocked(buf, 1, 1048576, stdin);
s = 0;
}
if (s == e) {
return EOF;
... | [] | 289,276 | 289,277 | u066369439 | cpp |
p02588 | #pragma region Headers
#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#in... | #pragma region Headers
#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#in... | [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change"
] | 289,285 | 289,286 | u734834944 | cpp |
p02588 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repr(i, n) for (int i = (n); i >= 0; --i)
#define FOR(i, m, n) for (int i = (m); i < (n); ++i)
#define FORR(i, m, n) for (int i = (m); i >= (n); --i)
#define equals(a, b) (fabs((a) - (b)) < EPS)
using namespace std;
typedef long long ll;
t... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define repr(i, n) for (int i = (n); i >= 0; --i)
#define FOR(i, m, n) for (int i = (m); i < (n); ++i)
#define FORR(i, m, n) for (int i = (m); i >= (n); --i)
#define equals(a, b) (fabs((a) - (b)) < EPS)
using namespace std;
typedef long long ll;
t... | [
"literal.number.change",
"variable_access.subscript.index.change"
] | 289,318 | 289,319 | u759721333 | cpp |
p02585 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int gp[5005];
ll gp_sc[5005];
ll gp_size[5005];
int main() {
ll N, K;
cin >> N >> K;
vector<int> P(N + 1);
vector<ll> C(N + 1);
REP(i, N) cin >> P[i], P[i]--;
REP(i, N) cin >> C[i];
// グル... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int gp[5005];
ll gp_sc[5005];
ll gp_size[5005];
int main() {
ll N, K;
cin >> N >> K;
vector<int> P(N + 1);
vector<ll> C(N + 1);
REP(i, N) cin >> P[i], P[i]--;
REP(i, N) cin >> C[i];
// グル... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 289,402 | 289,403 | u107091170 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, s) for (int i = 0; i < s; ++i)
#define ALL(v) (v).begin(), (v).end()
#define COUT(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << endl
#define EACH(i, s) \
for (__typeof__((s).begin()... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, s) for (int i = 0; i < s; ++i)
#define ALL(v) (v).begin(), (v).end()
#define COUT(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << endl
#define EACH(i, s) \
for (__typeof__((s).begin()... | [] | 289,413 | 289,414 | u074445770 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define sz(x) int(x.size())
typedef long long ll;
typedef long double ld;
typedef pair<int, int> P;
constexpr ll INF = (1LL << 60);
int main() {
int n, k;
cin >> n >> k;
vector<int> p(n), c(n);
rep(i, n) cin >> p[i], ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define sz(x) int(x.size())
typedef long long ll;
typedef long double ld;
typedef pair<int, int> P;
constexpr ll INF = (1LL << 60);
int main() {
int n, k;
cin >> n >> k;
vector<int> p(n), c(n);
rep(i, n) cin >> p[i], ... | [] | 289,420 | 289,421 | u108540384 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> P;
typedef pair<int, int> Pi;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define fi first
#define se second
#define endl "\n"
template <typename T> inline b... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> P;
typedef pair<int, int> Pi;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define fi first
#define se second
#define endl "\n"
template <typename T> inline b... | [
"expression.operation.unary.add"
] | 289,422 | 289,423 | u340010271 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> P;
typedef pair<int, int> Pi;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define fi first
#define se second
#define endl "\n"
template <typename T> inline b... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> P;
typedef pair<int, int> Pi;
#define rep(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define fi first
#define se second
#define endl "\n"
template <typename T> inline b... | [
"expression.operation.binary.remove",
"assignment.change"
] | 289,424 | 289,425 | u340010271 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
void chmax(int64_t &a, int64_t b) { a = max(a, b); }
int nth_bit(int64_t num, int n) { return (num >> n) & 1; }
int main() {
int N;
int64_t K;
cin >> N >> K;
vector<int> P(N);
for (int i = 0; i < N; i++)
cin >> P[i], P[i]--;
vector<int64_t> C(N);
for (i... | #include <bits/stdc++.h>
using namespace std;
void chmax(int64_t &a, int64_t b) { a = max(a, b); }
int nth_bit(int64_t num, int n) { return (num >> n) & 1; }
int main() {
int N;
int64_t K;
cin >> N >> K;
vector<int> P(N);
for (int i = 0; i < N; i++)
cin >> P[i], P[i]--;
vector<int64_t> C(N);
for (i... | [
"literal.number.change",
"assignment.value.change",
"identifier.change",
"control_flow.loop.for.condition.change",
"variable_declaration.value.change"
] | 289,429 | 289,428 | u314396879 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
void chmax(int64_t &a, int64_t b) { a = max(a, b); }
int nth_bit(int64_t num, int n) { return (num >> n) & 1; }
int main() {
int N;
int64_t K;
cin >> N >> K;
vector<int> P(N);
for (int i = 0; i < N; i++)
cin >> P[i], P[i]--;
vector<int64_t> C(N);
for (i... | #include <bits/stdc++.h>
using namespace std;
void chmax(int64_t &a, int64_t b) { a = max(a, b); }
int nth_bit(int64_t num, int n) { return (num >> n) & 1; }
int main() {
int N;
int64_t K;
cin >> N >> K;
vector<int> P(N);
for (int i = 0; i < N; i++)
cin >> P[i], P[i]--;
vector<int64_t> C(N);
for (i... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"assignment.value.change",
"identifier.change",
"control_flow.loop.for.condition.change",
"variable_declaration.value.change"
] | 289,430 | 289,428 | u314396879 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
void chmax(int64_t &a, int64_t b) { a = max(a, b); }
int nth_bit(int64_t num, int n) { return (num >> n) & 1; }
int main() {
int N;
int64_t K;
cin >> N >> K;
vector<int> P(N);
for (int i = 0; i < N; i++)
cin >> P[i], P[i]--;
vector<int64_t> C(N);
for (i... | #include <bits/stdc++.h>
using namespace std;
void chmax(int64_t &a, int64_t b) { a = max(a, b); }
int nth_bit(int64_t num, int n) { return (num >> n) & 1; }
int main() {
int N;
int64_t K;
cin >> N >> K;
vector<int> P(N);
for (int i = 0; i < N; i++)
cin >> P[i], P[i]--;
vector<int64_t> C(N);
for (i... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"assignment.value.change",
"identifier.change",
"control_flow.loop.for.condition.change",
"variable_declaration.value.change"
] | 289,431 | 289,428 | u314396879 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define FOR(i, n) for (int i = 0; i < n; i++)
#define FOR1(i, n) for (int i = 1; i <= n; i++)
#define FORI(i, n) for (int i = n - 1; i >= 0; i--)
template <class T, class U> void umin(T &x, const U &y) { x = min(x, (T)y); }... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define FOR(i, n) for (int i = 0; i < n; i++)
#define FOR1(i, n) for (int i = 1; i <= n; i++)
#define FORI(i, n) for (int i = n - 1; i >= 0; i--)
template <class T, class U> void umin(T &x, const U &y) { x = min(x, (T)y); }... | [
"control_flow.branch.if.condition.change"
] | 289,436 | 289,437 | u573519353 | cpp |
p02585 | #include <bits/stdc++.h>
using namespace std;
#define reps(i, a, n) for (int i = (a); i < (n); ++i)
#define rep(i, n) reps(i, 0, n)
#define deps(i, a, n) for (int i = (a); i >= (n); --i)
#define dep(i, n) deps(i, n, 0)
#define inf 2147483647
#define int long long
signed main(void) {
int n, k;
cin >> n >> k;
int ... | #include <bits/stdc++.h>
using namespace std;
#define reps(i, a, n) for (int i = (a); i < (n); ++i)
#define rep(i, n) reps(i, 0, n)
#define deps(i, a, n) for (int i = (a); i >= (n); --i)
#define dep(i, n) deps(i, n, 0)
#define inf 2147483647
#define int long long
signed main(void) {
int n, k;
cin >> n >> k;
int ... | [
"control_flow.branch.if.condition.change",
"control_flow.branch.if.add"
] | 289,446 | 289,447 | u451699824 | cpp |
p02585 | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
#define MOD 1000000007
#... | #include <algorithm>
#include <bitset>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>
#define MOD 1000000007
#... | [
"control_flow.branch.if.condition.change"
] | 289,452 | 289,453 | u537874719 | cpp |
p02585 | /*
このコード、と~おれ!
Be accepted!
∧_∧
(。・ω・。)つ━☆・*。
⊂ ノ ・゜+.
しーJ °。+ *´¨)
.· ´¸.·*´¨) ¸.·*¨)
(¸.·´ (¸.·'* ☆
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <functional>
#include <ioma... | /*
このコード、と~おれ!
Be accepted!
∧_∧
(。・ω・。)つ━☆・*。
⊂ ノ ・゜+.
しーJ °。+ *´¨)
.· ´¸.·*´¨) ¸.·*¨)
(¸.·´ (¸.·'* ☆
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <functional>
#include <ioma... | [
"control_flow.branch.if.condition.change"
] | 289,460 | 289,461 | u917972976 | cpp |
p02585 | // Problem Link:
// Tutorial Link:
#include <bits/stdc++.h>
using namespace std;
#define LL long long
#define ll long long
#define all(v) v.begin(), v.end()
#define pb push_back
#define pLL pair<LL, LL>
#define ff first
#define ss second
#define rep(i, a, b) for (LL i = a; i < b; ++i)
#define repb(i, a, b) for (LL i... | // Problem Link:
// Tutorial Link:
#include <bits/stdc++.h>
using namespace std;
#define LL long long
#define ll long long
#define all(v) v.begin(), v.end()
#define pb push_back
#define pLL pair<LL, LL>
#define ff first
#define ss second
#define rep(i, a, b) for (LL i = a; i < b; ++i)
#define repb(i, a, b) for (LL i... | [
"assignment.change"
] | 289,462 | 289,463 | u260951697 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.