Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p02354
#include <bits/stdc++.h> using namespace std; long long i, a, N, s, A = INT_MAX, l, r, S[100002]; int main() { cin.tie(0); ios::sync_with_stdio(false); cin >> N >> s; for (; i < N; i++) { cin >> a; S[i] += S[i - 1] + a; } for (;;) { if (S[r] - S[l] >= s) { A = min(A, r - l); l++; ...
#include <bits/stdc++.h> using namespace std; long long i, a, N, s, A = INT_MAX, l, r, S[100002]; int main() { cin.tie(0); ios::sync_with_stdio(false); cin >> N >> s; for (; i < N; i++) { cin >> a; S[i + 1] += S[i] + a; } for (;;) { if (S[r] - S[l] >= s) { A = min(A, r - l); l++; ...
[ "assignment.change", "expression.operation.binary.remove" ]
132,475
132,476
u929568713
cpp
p02354
#include <bits/stdc++.h> long long i, a, N, s, A = INT_MAX, l, r, S[100002]; int main() { scanf("%ll%ll", &N, &s); for (; i < N; i++) { scanf("%ll", &a); S[i + 1] += S[i] + a; } for (;;) { if (S[r] - S[l] >= s) { A = std::min(A, r - l); l++; } else r++; if (r > N) { i...
#include <bits/stdc++.h> long long i, a, N, s, A = INT_MAX, l, r, S[100002]; int main() { scanf("%ld%ld", &N, &s); for (; i < N; i++) { scanf("%ld", &a); S[i + 1] += S[i] + a; } for (;;) { if (S[r] - S[l] >= s) { A = std::min(A, r - l); l++; } else r++; if (r > N) { i...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
132,477
132,478
u929568713
cpp
p02354
#include <bits/stdc++.h> using namespace std; #define pb(n) push_back(n) #define fi first #define se second #define all(r) begin(r), end(r) #define vmax(ary) *max_element(all(ary)) #define vmin(ary) *min_element(all(ary)) #define debug(x) cout << #x << ": " << x << endl #define fcout(n) cout << fixed << setprecision((...
#include <bits/stdc++.h> using namespace std; #define pb(n) push_back(n) #define fi first #define se second #define all(r) begin(r), end(r) #define vmax(ary) *max_element(all(ary)) #define vmin(ary) *min_element(all(ary)) #define debug(x) cout << #x << ": " << x << endl #define fcout(n) cout << fixed << setprecision((...
[ "expression.operator.compare.change", "control_flow.loop.condition.change", "control_flow.branch.if.condition.change" ]
132,486
132,487
u073628131
cpp
p02354
#include <algorithm> #include <cmath> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long lli; typedef vector<lli> vll; typedef vector<bool> vbl; typedef vector<vector<lli>> mat;...
#include <algorithm> #include <cmath> #include <iostream> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; typedef long long lli; typedef vector<lli> vll; typedef vector<bool> vbl; typedef vector<vector<lli>> mat;...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
132,488
132,489
u506061045
cpp
p02354
#include "bits/stdc++.h" #include <fstream> #include <sys/timeb.h> using namespace std; #define repl(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define rep(i, n) repl(i, 0, n) #define replrev(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--) #define reprev(i, n) replrev(i, 0, n) #define repi(itr, ds) for ...
#include "bits/stdc++.h" #include <fstream> #include <sys/timeb.h> using namespace std; #define repl(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define rep(i, n) repl(i, 0, n) #define replrev(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--) #define reprev(i, n) replrev(i, 0, n) #define repi(itr, ds) for ...
[ "misc.opposites", "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
132,493
132,494
u822035448
cpp
p02354
#include <algorithm> #include <cstdio> #include <iostream> #include <string> #include <vector> #define INF 999999999 using namespace std; int n, s, ans; int a[105000]; void solve() { int ret = n + 1; int l = 0, r = 0, sum = 0; while (1) { while (r < n && sum < s) { sum += a[r++]; } if (sum <...
#include <algorithm> #include <cstdio> #include <iostream> #include <string> #include <vector> #define INF 999999999 using namespace std; int n, s, ans; int a[105000]; void solve() { int ret = n + 1; int l = 0, r = 0, sum = 0; while (1) { while (r < n && sum < s) { sum += a[r++]; } if (sum <...
[ "expression.operation.binary.remove", "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
132,495
132,496
u059336586
cpp
p02354
#include <algorithm> #include <cstdio> #include <iostream> #include <string> #include <vector> #define INF 999999999 using namespace std; int n, s, ans; int a[105000]; void solve() { int ret = n + 1; int l = 0, r = 0, sum = 0; while (1) { while (r < n && sum < s) { sum += a[r++]; } if (sum <...
#include <algorithm> #include <cstdio> #include <iostream> #include <string> #include <vector> #define INF 999999999 using namespace std; int n, s, ans; int a[105000]; void solve() { int ret = n + 1; int l = 0, r = 0, sum = 0; while (1) { while (r < n && sum < s) { sum += a[r++]; } if (sum <...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
132,497
132,496
u059336586
cpp
p02354
#include <stdio.h> const int INF = (1 << 30); int main() { int n, s, a[100010], back = 0, ans = INF; long long int now = 0; scanf("%d%d", &n, &s); for (int i = 0; i < n; i++) { scanf("%d", &a[i]); now += a[i]; while (now >= s) { if (i - back + 1 < ans) ans = i - back + 1; now -= ...
#include <stdio.h> const int INF = (1 << 30); int main() { int n, s, a[100010], back = 0, ans = INF; long long int now = 0; scanf("%d%d", &n, &s); for (int i = 0; i < n; i++) { scanf("%d", &a[i]); now += a[i]; while (now >= s) { if (i - back + 1 < ans) ans = i - back + 1; now -= ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
132,498
132,499
u048151615
cpp
p02354
#include <stdio.h> typedef long long ll; int main(void) { ll i, j, k, n, s, h = 0, t = 1, now, ans = 1000000; scanf("%lld%lld", &n, &s); ll a[n]; for (i = 0; i < n; ++i) scanf("%lld", &a[i]); now = a[0]; while (1) { if (now < s) { if (t == n - 1) break; t++; now += a[t]; ...
#include <stdio.h> typedef long long ll; int main(void) { ll i, j, k, n, s, h = 0, t = 0, now, ans = 1000000; scanf("%lld%lld", &n, &s); ll a[n]; for (i = 0; i < n; ++i) scanf("%lld", &a[i]); now = a[0]; while (1) { if (now < s) { if (t == n - 1) break; t++; now += a[t]; ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.branch.if.condition.change", "assignment.change" ]
132,504
132,505
u428870975
cpp
p02345
#include <bits/stdc++.h> using namespace std; // BEGIN CUT HERE template <typename T, typename E> struct SegmentTree { using F = function<T(T, T)>; using G = function<T(T, E)>; using H = function<E(E, E)>; using P = function<E(E, size_t)>; int n; F f; G g; H h; T ti; E ei; P p; vector<T> dat; ...
#include <bits/stdc++.h> using namespace std; // BEGIN CUT HERE template <typename T, typename E> struct SegmentTree { using F = function<T(T, T)>; using G = function<T(T, E)>; using H = function<E(E, E)>; using P = function<E(E, size_t)>; int n; F f; G g; H h; T ti; E ei; P p; vector<T> dat; ...
[ "call.remove", "call.arguments.change" ]
132,566
132,567
u962041986
cpp
p02345
#include <cstddef> #include <cstdint> #include <functional> #include <memory> #include <utility> template <class Monoid, template <class> class Allocator = std::allocator, class Index = std::size_t> class PersistentSegmentTree { public: using value_type = Monoid; using reference = value_type &; using c...
#include <cstddef> #include <cstdint> #include <functional> #include <memory> #include <utility> template <class Monoid, template <class> class Allocator = std::allocator, class Index = std::size_t> class PersistentSegmentTree { public: using value_type = Monoid; using reference = value_type &; using c...
[ "expression.operation.binary.remove" ]
132,572
132,573
u984106796
cpp
p02345
#include <cstddef> #include <cstdint> #include <functional> #include <memory> #include <utility> template <class Monoid, template <class> class Allocator = std::allocator, class Index = std::size_t> class PersistentSegmentTree { public: using value_type = Monoid; using reference = value_type &; using c...
#include <cstddef> #include <cstdint> #include <functional> #include <memory> #include <utility> template <class Monoid, template <class> class Allocator = std::allocator, class Index = std::size_t> class PersistentSegmentTree { public: using value_type = Monoid; using reference = value_type &; using c...
[ "literal.string.change", "call.arguments.change" ]
132,574
132,575
u984106796
cpp
p02345
#include <climits> #include <iostream> #include <sstream> #include <vector> using namespace std; const int INF = INT32_MAX; int N; int Q; int n; const int N_MAX = 100000; vector<int> node; void change(int i, int val) { i = i + n - 1; node[i] = val; while (i > 0) { i = (i - 1) / 2; node[i] = min(node[2 ...
#include <climits> #include <iostream> #include <sstream> #include <vector> using namespace std; const int INF = INT32_MAX; int N; int Q; int n; const int N_MAX = 100000; vector<int> node; void change(int i, int val) { i = i + n - 1; node[i] = val; while (i > 0) { i = (i - 1) / 2; node[i] = min(node[2 ...
[ "expression.operation.binary.add" ]
132,586
132,587
u388552965
cpp
p02345
#include "algorithm" #include "bitset" #include "climits" #include "cmath" #include "cstdio" #include "functional" #include "iomanip" #include "iostream" #include "list" #include "map" #include "numeric" #include "queue" #include "random" #include "set" #include "stack" #include "string" #include "unordered_map" #inclu...
#include "algorithm" #include "bitset" #include "climits" #include "cmath" #include "cstdio" #include "functional" #include "iomanip" #include "iostream" #include "list" #include "map" #include "numeric" #include "queue" #include "random" #include "set" #include "stack" #include "string" #include "unordered_map" #inclu...
[ "assignment.value.change" ]
132,591
132,592
u352407731
cpp
p02345
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); i++) #define FOR(i, init, n) for (int i = init; i < (n); i++) #define ALL(obj) (obj).begin(), (obj).end() using namespace std; using ll = long long int; using P = pair<int, int>; using T = tuple<int, int, int>; using edge = struct { int to, cost; }; ...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); i++) #define FOR(i, init, n) for (int i = init; i < (n); i++) #define ALL(obj) (obj).begin(), (obj).end() using namespace std; using ll = long long int; using P = pair<int, int>; using T = tuple<int, int, int>; using edge = struct { int to, cost; }; ...
[ "variable_declaration.type.change" ]
132,593
132,594
u464296040
cpp
p02345
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); i++) #define FOR(i, init, n) for (int i = init; i < (n); i++) #define ALL(obj) (obj).begin(), (obj).end() using namespace std; using ll = long long int; using P = pair<int, int>; using T = tuple<int, int, int>; using edge = struct { int to, cost; }; ...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); i++) #define FOR(i, init, n) for (int i = init; i < (n); i++) #define ALL(obj) (obj).begin(), (obj).end() using namespace std; using ll = long long int; using P = pair<int, int>; using T = tuple<int, int, int>; using edge = struct { int to, cost; }; ...
[ "variable_declaration.type.change" ]
132,596
132,594
u464296040
cpp
p02345
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); i++) #define FOR(i, init, n) for (int i = init; i < (n); i++) #define ALL(obj) (obj).begin(), (obj).end() using namespace std; using ll = long long int; using P = pair<int, int>; using T = tuple<int, int, int>; using edge = struct { int to, cost; }; ...
#include <bits/stdc++.h> #define REP(i, n) for (int i = 0; i < (n); i++) #define FOR(i, init, n) for (int i = init; i < (n); i++) #define ALL(obj) (obj).begin(), (obj).end() using namespace std; using ll = long long int; using P = pair<int, int>; using T = tuple<int, int, int>; using edge = struct { int to, cost; }; ...
[ "variable_declaration.type.change" ]
132,598
132,594
u464296040
cpp
p02345
#pragma GCC optimize("O3") #include "bits/stdc++.h" using namespace std; using ll = long long int; #define debugos clog #define debug(v) \ { \ printf("L%d %s > ", __LINE__, #v...
#pragma GCC optimize("O3") #include "bits/stdc++.h" using namespace std; using ll = long long int; #define debugos clog #define debug(v) \ { \ printf("L%d %s > ", __LINE__, #v...
[ "assignment.change" ]
132,604
132,605
u636725820
cpp
p02345
#include <bits/stdc++.h> using ll = long long; using namespace std; constexpr ll inf = 1e15; constexpr ll mod = 1e9 + 7; class SegTree { int n = 1; // represents the tree as an array // parent of k: (k-1)/2, child of k: 2*k+1, 2*k+2 vector<ll> nodes; public: SegTree(int size, ll v) { while (n < size) ...
#include <bits/stdc++.h> using ll = long long; using namespace std; constexpr ll inf = 1e15; constexpr ll mod = 1e9 + 7; class SegTree { int n = 1; // represents the tree as an array // parent of k: (k-1)/2, child of k: 2*k+1, 2*k+2 vector<ll> nodes; public: SegTree(int size, ll v) { while (n < size) ...
[ "call.arguments.change", "literal.number.change", "expression.operation.binary.change" ]
132,618
132,619
u587573965
cpp
p02345
#include <iostream> using std::cin; using std::cout; using std::endl; using ll = long long; template <typename T> T min(T a, T b) { return (a < b) ? a : b; } template <typename T> class SegTree { static const int MAXN = 100010; T INF; int n; T A[MAXN * 4]; public: SegTree(int size, T INF) : INF(INF) { ...
#include <iostream> using std::cin; using std::cout; using std::endl; using ll = long long; template <typename T> T min(T a, T b) { return (a < b) ? a : b; } template <typename T> class SegTree { static const int MAXN = 100010; T INF; int n; T A[MAXN * 4]; public: SegTree(int size, T INF) : INF(INF) { ...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
132,622
132,623
u950110590
cpp
p02345
#include <bits/stdc++.h> using namespace std; struct SegTree { int n; vector<int> node; SegTree(int sz) { n = 1; while (n < sz) n *= 2; node.resize(2 * n - 1, INT_MIN); } void update(int p, int v) { p += n - 1; node[p] = v; while (p) { p = (p - 1) / 2; node[p] = min...
#include <bits/stdc++.h> using namespace std; struct SegTree { int n; vector<int> node; SegTree(int sz) { n = 1; while (n < sz) n *= 2; node.resize(2 * n - 1, INT_MAX); } void update(int p, int v) { p += n - 1; node[p] = v; while (p) { p = (p - 1) / 2; node[p] = min...
[ "identifier.change", "call.arguments.change", "misc.opposites", "control_flow.branch.if.condition.change", "function.return_value.change" ]
132,624
132,625
u076064701
cpp
p02345
#include <bits/stdc++.h> using namespace std; struct SegTree { int n; vector<int> node; SegTree(int sz) { n = 1; while (n < sz) n *= 2; node.resize(2 * n - 1, INT_MIN); } void update(int p, int v) { p += n - 1; node[p] = v; while (p) { p = (p - 1) / 2; node[p] = min...
#include <bits/stdc++.h> using namespace std; struct SegTree { int n; vector<int> node; SegTree(int sz) { n = 1; while (n < sz) n *= 2; node.resize(2 * n - 1, INT_MAX); } void update(int p, int v) { p += n - 1; node[p] = v; while (p) { p = (p - 1) / 2; node[p] = min...
[ "identifier.change", "call.arguments.change", "function.return_value.change" ]
132,626
132,625
u076064701
cpp
p02345
#include <bits/stdc++.h> using namespace std; #define int long long template <class T> struct Segtree { int n; vector<T> node; Segtree(int sz) { n = 1; while (n < sz) n *= 2; node.resize(2 * n - 1, INT_MAX); // UNITY } T merge(T a, T b) { // NEED TO EDIT return min(a, b); } void s...
#include <bits/stdc++.h> using namespace std; #define int long long template <class T> struct Segtree { int n; vector<T> node; Segtree(int sz) { n = 1; while (n < sz) n *= 2; node.resize(2 * n - 1, INT_MAX); // UNITY } T merge(T a, T b) { // NEED TO EDIT return min(a, b); } void s...
[ "identifier.replace.add", "literal.replace.remove", "function.return_value.change" ]
132,627
132,628
u076064701
cpp
p02345
#include <bits/stdc++.h> using namespace std; #define int long long template <class T> struct Segtree { int n; vector<T> node; Segtree(int sz) { n = 1; while (n < sz) n *= 2; node.resize(2 * n - 1, INT_MAX); // UNITY } T merge(T a, T b) { // NEED TO EDIT return min(a, b); } void s...
#include <bits/stdc++.h> using namespace std; #define int long long template <class T> struct Segtree { int n; vector<T> node; Segtree(int sz) { n = 1; while (n < sz) n *= 2; node.resize(2 * n - 1, INT_MAX); // UNITY } T merge(T a, T b) { // NEED TO EDIT return min(a, b); } void s...
[ "identifier.replace.add", "literal.replace.remove", "function.return_value.change" ]
132,627
132,629
u076064701
cpp
p02345
#include <bits/stdc++.h> using namespace std; #define li long long int #define rep(i, to) for (li i = 0; i < ((li)(to)); i++) #define repp(i, start, to) for (li i = (li)(start); i < ((li)(to)); i++) #define pb push_back #define sz(v) ((li)(v).size()) #define bgn(v) ((v).begin()) #define eend(v) ((v).end()) #define all...
#include <bits/stdc++.h> using namespace std; #define li long long int #define rep(i, to) for (li i = 0; i < ((li)(to)); i++) #define repp(i, start, to) for (li i = (li)(start); i < ((li)(to)); i++) #define pb push_back #define sz(v) ((li)(v).size()) #define bgn(v) ((v).begin()) #define eend(v) ((v).end()) #define all...
[ "call.arguments.change" ]
132,630
132,631
u632720093
cpp
p02345
#include "bits/stdc++.h" using namespace std; // RMQ struct SegmentTree { private: int N; vector<long long> node, lazy; vector<bool> lazyFlg; const long long DEFAULT = 9223372036854775807LL; public: void init(int n) { //初期化 O(N) node.clear(); lazy.clear(); lazyFlg.clear(); N = 1; while (...
#include "bits/stdc++.h" using namespace std; // RMQ struct SegmentTree { private: int N; vector<long long> node, lazy; vector<bool> lazyFlg; const long long DEFAULT = 9223372036854775807LL; public: void init(int n) { //初期化 O(N) node.clear(); lazy.clear(); lazyFlg.clear(); N = 1; while (...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
132,632
132,633
u049430348
cpp
p02345
#include "bits/stdc++.h" using namespace std; using ll = long long; using pii = pair<int, int>; using pll = pair<ll, ll>; using vi = vector<int>; using vl = vector<ll>; using vvi = vector<vi>; using vvl = vector<vl>; const int INF = 1 << 28; const ll MOD = 1'000'000'007; template <class T> bool chmax(T &a, const T &b) ...
#include "bits/stdc++.h" using namespace std; using ll = long long; using pii = pair<int, int>; using pll = pair<ll, ll>; using vi = vector<int>; using vl = vector<ll>; using vvi = vector<vi>; using vvl = vector<vl>; const int INF = INT_MAX; const ll MOD = 1'000'000'007; template <class T> bool chmax(T &a, const T &b) ...
[ "variable_declaration.value.change", "identifier.replace.add", "literal.replace.remove", "expression.operation.binary.change", "expression.operation.binary.remove" ]
132,634
132,635
u923014084
cpp
p02345
#include <algorithm> #include <iostream> #include <limits.h> #include <math.h> #include <vector> using namespace std; typedef long long ll; //半開区間なことに注意 // L<=P<R template <typename Monoid> class SegmentTree { public: //コンストラクタ n:サイズ pr:初期値 SegmentTree(ll n, Monoid pr) { size = pow(2, ceil(log2(n))); vec....
#include <algorithm> #include <iostream> #include <limits.h> #include <math.h> #include <vector> using namespace std; typedef long long ll; //半開区間なことに注意 // L<=P<R template <typename Monoid> class SegmentTree { public: //コンストラクタ n:サイズ pr:初期値 SegmentTree(ll n, Monoid pr) { size = pow(2, ceil(log2(n))); vec....
[ "expression.operation.binary.remove" ]
132,645
132,643
u755147000
cpp
p02345
#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...
[ "identifier.change", "io.output.change" ]
132,648
132,649
u358260180
cpp
p02345
#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...
[ "identifier.change", "io.output.change" ]
132,650
132,651
u358260180
cpp
p02345
#include <bits/stdc++.h> using namespace std; #define MAX (1 << 19) #define INF INT_MAX class RMQ { public: int N, dat[2 * MAX - 1]; void init(int n) { N = 1; while (N < n) N *= 2; for (int i = 0; i < 2 * N - 1; i++) { dat[i] = INF; } } void update(int i, int x) { i += N - 1...
#include <bits/stdc++.h> using namespace std; #define MAX (1 << 19) #define INF INT_MAX class RMQ { public: int N, dat[2 * MAX - 1]; void init(int n) { N = 1; while (N < n) N *= 2; for (int i = 0; i < 2 * N - 1; i++) { dat[i] = INF; } } void update(int i, int x) { i += N - 1...
[ "expression.operation.binary.remove" ]
132,654
132,655
u881100444
cpp
p02345
#include <bits/stdc++.h> using namespace std; typedef long long lli; const lli INF = (1LL << 31) - 1; const int MAX_N = 1 << 17; class LazySegTree { int n; lli dat[2 * MAX_N - 1], lazy[2 * MAX_N - 1]; public: LazySegTree(int _n = MAX_N) { n = 1; while (n < _n) n *= 2; fill(dat, dat + 2 * n -...
#include <bits/stdc++.h> using namespace std; typedef long long lli; const lli INF = (1LL << 31) - 1; const int MAX_N = 1 << 17; class LazySegTree { int n; lli dat[2 * MAX_N - 1], lazy[2 * MAX_N - 1]; public: LazySegTree(int _n = MAX_N) { n = 1; while (n < _n) n *= 2; fill(dat, dat + 2 * n -...
[ "assignment.variable.change", "call.arguments.change" ]
132,678
132,679
u915493477
cpp
p02345
/* attention to typo and overflow */ #include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; const int INF = -1 + (1 << 30) + (1 << 30); void io() { cin.tie(0); ios::sync_with_stdio(false); } // attention to use of endl /...
/* attention to typo and overflow */ #include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; const int INF = -1 + (1 << 30) + (1 << 30); void io() { cin.tie(0); ios::sync_with_stdio(false); } // attention to use of endl /...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "call.function.change" ]
132,682
132,683
u898989976
cpp
p02345
/* attention to typo and overflow */ #include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; const int INF = -1 + (1 << 30) + (1 << 30); void io() { cin.tie(0); ios::sync_with_stdio(false); } // attention to use of endl /...
/* attention to typo and overflow */ #include <algorithm> #include <cmath> #include <cstdio> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; const int INF = -1 + (1 << 30) + (1 << 30); void io() { cin.tie(0); ios::sync_with_stdio(false); } // attention to use of endl /...
[ "call.function.change" ]
132,685
132,683
u898989976
cpp
p02345
#include <bits/stdc++.h> using namespace std; #define FOR(i, k, n) for (int i = (k); i < (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)) #define D10 fixed << setprecision(10) typedef long long ll; typedef long double ld; typedef vector<int> vi; typedef...
#include <bits/stdc++.h> using namespace std; #define FOR(i, k, n) for (int i = (k); i < (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)) #define D10 fixed << setprecision(10) typedef long long ll; typedef long double ld; typedef vector<int> vi; typedef...
[ "expression.operation.binary.add" ]
132,687
132,688
u877319405
cpp
p02345
#include <bits/stdc++.h> using namespace std; #define FOR(i, k, n) for (int i = (k); i < (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)) #define D10 fixed << setprecision(10) typedef long long ll; typedef long double ld; typedef vector<int> vi; typedef...
#include <bits/stdc++.h> using namespace std; #define FOR(i, k, n) for (int i = (k); i < (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)) #define D10 fixed << setprecision(10) typedef long long ll; typedef long double ld; typedef vector<int> vi; typedef...
[ "identifier.change", "io.output.change" ]
132,687
132,689
u877319405
cpp
p02345
#include <bits/stdc++.h> using namespace std; #define FOR(i, k, n) for (int i = (k); i < (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)) #define D10 fixed << setprecision(10) typedef long long ll; typedef long double ld; typedef vector<int> vi; typedef...
#include <bits/stdc++.h> using namespace std; #define FOR(i, k, n) for (int i = (k); i < (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)) #define D10 fixed << setprecision(10) typedef long long ll; typedef long double ld; typedef vector<int> vi; typedef...
[ "expression.operation.binary.add" ]
132,690
132,689
u877319405
cpp
p02345
#include <algorithm> #include <cstdio> #include <vector> using namespace std; const int INF = (1LL << 31) - 1; struct SegmentTree { int n; vector<int> v; SegmentTree(int n_, int x) : v(n_ * 4) { for (int i = 0; (1 << i) <= n_; ++i, n = 1 << i) ; for (int i = 0; i < n * 4; ++i) v[i] = x; }...
#include <algorithm> #include <cstdio> #include <vector> using namespace std; const int INF = (1LL << 31) - 1; struct SegmentTree { int n; vector<int> v; SegmentTree(int n_, int x) : v(n_ * 4) { for (int i = 0; (1 << i) <= n_; ++i, n = 1 << i) ; for (int i = 0; i < n_ * 4; ++i) v[i] = x; ...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
132,697
132,698
u664090703
cpp
p02345
#include <bits/stdc++.h> using namespace std; typedef long long st_t; const st_t INF = 1LL << 55; const int MAX_N = 100000; st_t st[1 << 18]; // 1 << 18 = 262144 void init(int n, st_t *st) { int nn = 1; while (nn < n) nn *= 2; fill(st, st + 2 * nn - 1, INF); } void update(int i, st_t a, int k, int l, in...
#include <bits/stdc++.h> using namespace std; typedef long long st_t; const st_t INF = 0x7fffffff; const int MAX_N = 100000; st_t st[1 << 18]; // 1 << 18 = 262144 void init(int n, st_t *st) { int nn = 1; while (nn < n) nn *= 2; fill(st, st + 2 * nn - 1, INF); } void update(int i, st_t a, int k, int l, i...
[ "expression.operation.binary.remove" ]
132,701
132,702
u858885710
cpp
p02345
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define uniq(v) (v).erase(unique((v).begin(), (v).end()), (v).end()) typedef long long ll; typedef pair<int, int> P; typedef unsigned int uint; typedef unsigned long long ull;...
#include <bits/stdc++.h> using namespace std; #define endl '\n' #define all(v) (v).begin(), (v).end() #define rall(v) (v).rbegin(), (v).rend() #define uniq(v) (v).erase(unique((v).begin(), (v).end()), (v).end()) typedef long long ll; typedef pair<int, int> P; typedef unsigned int uint; typedef unsigned long long ull;...
[]
132,732
132,733
u753862498
cpp
p02345
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <math.h> #include <set> #include <stdio.h> #include <string> #include <vector> #define s(n) scanf("%d", &n) #define p(n) printf("%d\n", n) #include <fstream> #include <iostream> #define fs(n) fscanf(fin, "%d", &n) #de...
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <math.h> #include <set> #include <stdio.h> #include <string> #include <vector> #define s(n) scanf("%d", &n) #define p(n) printf("%d\n", n) #include <fstream> #include <iostream> #define fs(n) fscanf(fin, "%d", &n) #de...
[ "assignment.value.change", "identifier.change" ]
132,738
132,739
u010447461
cpp
p02345
#include <bits/stdc++.h> #define EPS 1e-9 #define INF 1070000000LL #define MOD 1000000007LL #define fir first #define foreach(it, X) for (auto it = (X).begin(); it != (X).end(); it++) #define numa(x, a) for (auto x : a) #define ite iterator #define mp make_pair #define rep(i, n) rep2(i, 0, n) #define rep2(i, m, n) for ...
#include <bits/stdc++.h> #define EPS 1e-9 #define INF 1070000000LL #define MOD 1000000007LL #define fir first #define foreach(it, X) for (auto it = (X).begin(); it != (X).end(); it++) #define numa(x, a) for (auto x : a) #define ite iterator #define mp make_pair #define rep(i, n) rep2(i, 0, n) #define rep2(i, m, n) for ...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "expression.operation.binary.change", "control_flow.branch.if.condition.change" ]
132,740
132,741
u543196252
cpp
p02345
#include <bits/stdc++.h> #define EPS 1e-9 #define INF 1070000000LL #define MOD 1000000007LL #define fir first #define foreach(it, X) for (auto it = (X).begin(); it != (X).end(); it++) #define numa(x, a) for (auto x : a) #define ite iterator #define mp make_pair #define rep(i, n) rep2(i, 0, n) #define rep2(i, m, n) for ...
#include <bits/stdc++.h> #define EPS 1e-9 #define INF 1070000000LL #define MOD 1000000007LL #define fir first #define foreach(it, X) for (auto it = (X).begin(); it != (X).end(); it++) #define numa(x, a) for (auto x : a) #define ite iterator #define mp make_pair #define rep(i, n) rep2(i, 0, n) #define rep2(i, m, n) for ...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "expression.operation.binary.change" ]
132,742
132,741
u543196252
cpp
p02345
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; #define pb(n) push_back(n) #define mp(n, m) make_pair(n, m) #def...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using namespace std; #define pb(n) push_back(n) #define mp(n, m) make_pair(n, m) #def...
[ "call.add" ]
132,743
132,744
u700120734
cpp
p02345
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define all(a) (a).begin(), (a).end() #define pb emplace_back #define INF (1e9 + 1) // 0-index 抽象化半開区間遅延セグツリー template <typename T, typename E> class segment_tree { typed...
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define all(a) (a).begin(), (a).end() #define pb emplace_back #define INF (1e9 + 1) // 0-index 抽象化半開区間遅延セグツリー template <typename T, typename E> class segment_tree { typed...
[ "expression.operation.binary.remove", "control_flow.branch.if.condition.change" ]
132,749
132,750
u542962065
cpp
p02345
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define all(a) (a).begin(), (a).end() #define pb emplace_back #define INF (1e9 + 1) // 0-index 抽象化半開区間遅延セグツリー template <typename T, typename E> class segment_tree { typed...
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define all(a) (a).begin(), (a).end() #define pb emplace_back #define INF (1e9 + 1) // 0-index 抽象化半開区間遅延セグツリー template <typename T, typename E> class segment_tree { typed...
[ "expression.operation.binary.remove", "control_flow.branch.if.condition.change", "variable_declaration.specifier.remove" ]
132,751
132,750
u542962065
cpp
p02345
#include <bits/stdc++.h> using Int = int64_t; using UInt = uint64_t; using C = std::complex<double>; #define rep(i, n) for (Int i = 0; i < (Int)(n); ++i) #define rep2(i, l, r) for (Int i = (Int)(l); i < (Int)(r); ++i) #define guard(x) \ if (not(x)) ...
#include <bits/stdc++.h> using Int = int64_t; using UInt = uint64_t; using C = std::complex<double>; #define rep(i, n) for (Int i = 0; i < (Int)(n); ++i) #define rep2(i, l, r) for (Int i = (Int)(l); i < (Int)(r); ++i) #define guard(x) \ if (not(x)) ...
[ "expression.operation.binary.add" ]
132,761
132,762
u355552770
cpp
p02345
#include <algorithm> #include <iostream> #include <limits> #include <vector> using namespace std; // ------ RMQ Class ------ // template <typename Type> class RMQ { private: int size_; vector<Type> dat; Type query_(int a, int b, int k, int l, int r) { if (r <= a || b <= l) return numeric_limits<Type>::m...
#include <algorithm> #include <iostream> #include <limits> #include <vector> using namespace std; // ------ RMQ Class ------ // template <typename Type> class RMQ { private: int size_; vector<Type> dat; Type query_(int a, int b, int k, int l, int r) { if (r <= a || b <= l) return numeric_limits<Type>::m...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
132,766
132,767
u823513038
cpp
p02345
#ifndef ___Class_RMQ #define ___Class_RMQ // ------ Includes ------ // #include <algorithm> #include <limits> #include <vector> // ------ RMQ Class ------ // template <typename Type> class RMQ { private: unsigned size_; std::vector<Type> dat; Type query_(unsigned a, unsigned b, unsigned k, unsigned l, unsigned ...
#ifndef ___Class_RMQ #define ___Class_RMQ // ------ Includes ------ // #include <algorithm> #include <limits> #include <vector> // ------ RMQ Class ------ // template <typename Type> class RMQ { private: unsigned size_; std::vector<Type> dat; Type query_(unsigned a, unsigned b, unsigned k, unsigned l, unsigned ...
[ "expression.operation.binary.remove" ]
132,768
132,769
u823513038
cpp
p02345
#include <bits/stdc++.h> using namespace std; int seg[262156], d; void update(int i, int x) { i |= 1 << d; seg[i] = x; while (i > 1) { i >>= 1; seg[i] = min(seg[i * 2], seg[i * 2 + 1]); } } int query(int a, int b, int k, int l, int r) { if (a <= l && r <= b) return seg[k]; if (r <= a || b <= l) ...
#include <bits/stdc++.h> using namespace std; int seg[262156], d; void update(int i, int x) { i |= 1 << d; seg[i] = x; while (i > 1) { i >>= 1; seg[i] = min(seg[i * 2], seg[i * 2 + 1]); } } int query(int a, int b, int k, int l, int r) { if (a <= l && r <= b) return seg[k]; if (r <= a || b <= l) ...
[ "assignment.change" ]
132,770
132,771
u823513038
cpp
p02345
#include <bits/stdc++.h> using namespace std; const int maxv = 100000; const long long INF = (1 << 31) - 1; long long T[4 * maxv + 1]; int a, b, q; int Q, N; long long v; long long update(int ini, int fin, int nd, int x, long long v) { if (x < ini || x > fin) return T[nd]; if (ini == fin) { T[nd] = v; ...
#include <bits/stdc++.h> using namespace std; const int maxv = 100000; const long long INF = (1 << 31) - 1; long long T[4 * maxv + 1]; int a, b, q; int Q, N; long long v; long long update(int ini, int fin, int nd, int x, long long v) { if (x < ini || x > fin) return T[nd]; if (ini == fin) { T[nd] = v; ...
[ "identifier.change", "variable_access.subscript.index.change", "function.return_value.change" ]
132,772
132,773
u856201153
cpp
p02345
#include <bits/stdc++.h> #define _overload(_1, _2, _3, name, ...) name #define _rep(i, n) _range(i, 0, n) #define _range(i, a, b) for (int i = (int)(a); i < (int)(b); ++i) #define rep(...) _overload(__VA_ARGS__, _range, _rep, )(__VA_ARGS__) #define _rrep(i, n) _rrange(i, n, 0) #define _rrange(i, a, b) for (int i = (i...
#include <bits/stdc++.h> #define _overload(_1, _2, _3, name, ...) name #define _rep(i, n) _range(i, 0, n) #define _range(i, a, b) for (int i = (int)(a); i < (int)(b); ++i) #define rep(...) _overload(__VA_ARGS__, _range, _rep, )(__VA_ARGS__) #define _rrep(i, n) _rrange(i, n, 0) #define _rrange(i, a, b) for (int i = (i...
[ "variable_declaration.value.change", "identifier.replace.add", "literal.replace.remove" ]
132,774
132,775
u468956778
cpp
p02345
#include <bits/stdc++.h> using namespace std; template <typename D, typename T = D> class Tree { public: Tree(long long int size = 0, D InitialValueArg = D()) { long long int n = 1LL; CalcTree.emplace_back(vector<T>(n)); while (n <= size) { n <<= 1LL; addOneLine(n); } InitialValue = I...
#include <bits/stdc++.h> using namespace std; template <typename D, typename T = D> class Tree { public: Tree(long long int size = 0, D InitialValueArg = D()) { long long int n = 1LL; CalcTree.emplace_back(vector<T>(n)); while (n <= size) { n <<= 1LL; addOneLine(n); } InitialValue = I...
[ "variable_declaration.type.widen.change" ]
132,776
132,777
u018134297
cpp
p02345
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using nam...
#include <algorithm> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <deque> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using nam...
[ "variable_declaration.value.change", "identifier.replace.add", "literal.replace.remove" ]
132,785
132,786
u151433944
cpp
p02362
#include <iostream> #include <vector> #define MAX_V 1000 #define MAX_E 2000 #define INF 1e9 using namespace std; struct edge { int from, to, cost; }; int V, E, d[MAX_V]; edge es[MAX_E]; bool find_negative_loop(int s) { int count = 0; for (int i = 0; i < V; i++) { d[i] = INF; } d[s] = 0; while (true) { ...
#include <iostream> #include <vector> #define MAX_V 1000 #define MAX_E 2000 #define INF 1e9 using namespace std; struct edge { int from, to, cost; }; int V, E, d[MAX_V]; edge es[MAX_E]; bool find_negative_loop(int s) { int count = 0; for (int i = 0; i < V; i++) { d[i] = INF; } d[s] = 0; while (true) { ...
[ "control_flow.branch.if.condition.change", "call.arguments.add" ]
132,791
132,792
u068682075
cpp
p02362
#include <iostream> #include <vector> #define MAX_V 1000 #define MAX_E 2000 #define INF 1e9 using namespace std; struct edge { int from, to, cost; }; int V, E, d[MAX_V]; edge es[MAX_E]; bool find_negative_loop(int s) { int count = 0; for (int i = 0; i < V; i++) { d[i] = INF; } d[s] = 0; while (true) { ...
#include <iostream> #include <vector> #define MAX_V 1000 #define MAX_E 2000 #define INF 1e9 using namespace std; struct edge { int from, to, cost; }; int V, E, d[MAX_V]; edge es[MAX_E]; bool find_negative_loop(int s) { int count = 0; for (int i = 0; i < V; i++) { d[i] = INF; } d[s] = 0; while (true) { ...
[]
132,793
132,792
u068682075
cpp
p02362
using namespace std; #define MAX_V 1000 #define MAX_E 2000 #define INF 1e9 #include <iostream> #include <vector> struct edge { int from, to, cost; }; int V, E; int d[MAX_V]; edge es[MAX_E]; bool find_negative_loop(int s) { int count = 0; for (int i = 0; i < V; i++) { d[i] = INF; } d[s] = 0; while (tr...
using namespace std; #define MAX_V 1000 #define MAX_E 2000 #define INF 1e9 #include <iostream> #include <vector> struct edge { int from, to, cost; }; int V, E; int d[MAX_V]; edge es[MAX_E]; bool find_negative_loop(int s) { int count = 0; for (int i = 0; i < V; i++) { d[i] = INF; } d[s] = 0; while (tr...
[ "control_flow.branch.if.condition.change", "call.arguments.add" ]
132,794
132,795
u068682075
cpp
p02362
#include <bits/stdc++.h> #define REP(i, s, n) for (int i = s; i < n; i++) #define rep(i, n) REP(i, 0, n) using namespace std; typedef pair<int, int> ii; const int IINF = INT_MAX; vector<ii> G[100010]; int mincost[100010]; int V, E, r; struct Data { int cur, cost; bool operator<(const Data &data) const { return...
#include <bits/stdc++.h> #define REP(i, s, n) for (int i = s; i < n; i++) #define rep(i, n) REP(i, 0, n) using namespace std; typedef pair<int, int> ii; const int IINF = INT_MAX; vector<ii> G[100010]; int mincost[100010]; int V, E, r; struct Data { int cur, cost; bool operator<(const Data &data) const { return...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
132,809
132,810
u116766943
cpp
p02350
#include <algorithm> #include <bitset> #include <complex> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i, m, n) for (int i = (int)m; i < (int)n; ++i) #define ...
#include <algorithm> #include <bitset> #include <complex> #include <deque> #include <iomanip> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i, m, n) for (int i = (int)m; i < (int)n; ++i) #define ...
[ "literal.number.change", "call.arguments.change", "expression.operation.binary.change" ]
132,833
132,834
u102734449
cpp
p02350
#define NDEBUG #include <cassert> #include <stdexcept> #include <utility> template <class ValueMonoid, class OperatorMonoid, class Modifier, template <class> class Container> class lazy_segment_tree { public: using value_structure = ValueMonoid; using value_type = typename value_structure::value_type; ...
#define NDEBUG #include <cassert> #include <stdexcept> #include <utility> template <class ValueMonoid, class OperatorMonoid, class Modifier, template <class> class Container> class lazy_segment_tree { public: using value_structure = ValueMonoid; using value_type = typename value_structure::value_type; ...
[ "identifier.change", "call.arguments.change" ]
132,835
132,836
u984106796
cpp
p02350
#include <algorithm> #include <array> #include <cstdint> #include <functional> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdlib.h> #include <string> #include <vector> #define INF 1000000000 #define MOD 1000000007 #define ll long long #define rep(i, a, b) for (int i ...
#include <algorithm> #include <array> #include <cstdint> #include <functional> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdlib.h> #include <string> #include <vector> #define INF 1000000000 #define MOD 1000000007 #define ll long long #define rep(i, a, b) for (int i ...
[ "call.add" ]
132,837
132,838
u984106796
cpp
p02350
#include <algorithm> #include <array> #include <cstdint> #include <functional> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdlib.h> #include <string> #include <vector> #define INF 1000000000 #define MOD 1000000007 #define ll long long #define rep(i, a, b) for (int i ...
#include <algorithm> #include <array> #include <cstdint> #include <functional> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdlib.h> #include <string> #include <vector> #define INF 1000000000 #define MOD 1000000007 #define ll long long #define rep(i, a, b) for (int i ...
[ "assignment.add" ]
132,841
132,842
u984106796
cpp
p02350
#include <algorithm> #include <array> #include <cstdint> #include <functional> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdlib.h> #include <string> #include <vector> #define INF 1000000000 #define MOD 1000000007 #define ll long long #define rep(i, a, b) for (int i ...
#include <algorithm> #include <array> #include <cstdint> #include <functional> #include <iostream> #include <map> #include <math.h> #include <queue> #include <set> #include <stdlib.h> #include <string> #include <vector> #define INF 1000000000 #define MOD 1000000007 #define ll long long #define rep(i, a, b) for (int i ...
[ "literal.number.change", "assignment.value.change" ]
132,843
132,844
u984106796
cpp
p02350
#include <bits/stdc++.h> using namespace std; #define int long long // BEGIN CUT HERE struct RUP { int n; vector<int> dat, laz; const int def = INT_MAX; RUP() {} RUP(int n_) { init(n_); } void init(int n_) { n = 1; while (n < n_) n *= 2; dat.clear(); dat.resize(2 * n - 1, def); laz...
#include <bits/stdc++.h> using namespace std; #define int long long // BEGIN CUT HERE struct RUP { int n; vector<int> dat, laz; const int def = INT_MAX; RUP() {} RUP(int n_) { init(n_); } void init(int n_) { n = 1; while (n < n_) n *= 2; dat.clear(); dat.resize(2 * n - 1, def); laz...
[ "control_flow.return.add" ]
132,847
132,848
u924665348
cpp
p02350
#include <bits/stdc++.h> using namespace std; using Int = long long; // BEGIN CUT HERE template <typename T, typename E> struct RBST { int xor128() { static int x = 123456789; static int y = 362436069; static int z = 521288629; static int w = 88675123; int t; t = x ^ (x << 11); x = y; ...
#include <bits/stdc++.h> using namespace std; using Int = long long; // BEGIN CUT HERE template <typename T, typename E> struct RBST { int xor128() { static int x = 123456789; static int y = 362436069; static int z = 521288629; static int w = 88675123; int t; t = x ^ (x << 11); x = y; ...
[ "assignment.value.change", "identifier.change", "call.function.change" ]
132,849
132,850
u924665348
cpp
p02350
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; const int MAX_N = 1 << 17; const ll INF = 1LL << 60; class RMQ2 { public: struct data { bool type; // 0 - empty , 1 - update ll value; }; ll n, dat[2 * MAX_N - 1]; data td[2 * MAX_N - 1]; RMQ2() { n ...
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; const int MAX_N = 1 << 17; const ll INF = INT_MAX; class RMQ2 { public: struct data { bool type; // 0 - empty , 1 - update ll value; }; ll n, dat[2 * MAX_N - 1]; data td[2 * MAX_N - 1]; RMQ2() { n = ...
[ "variable_declaration.value.change", "identifier.replace.add", "literal.replace.remove", "expression.operation.binary.change", "expression.operation.binary.remove" ]
132,851
132,852
u776402923
cpp
p02350
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; const int MAX_N = 1 << 17; const ll INF = INT_MAX; /* RMQ and RUQ ?????????????°?????????????(RMQ) ????????????????????´??????(RUQ) */ class RMQ2 { public: struct data { bool type; // 0 - empty , 1 - update ...
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; typedef long long ll; const int MAX_N = 1 << 17; const ll INF = INT_MAX; /* RMQ and RUQ ?????????????°?????????????(RMQ) ????????????????????´??????(RUQ) */ class RMQ2 { public: struct data { bool type; // 0 - empty , 1 - update ...
[ "call.arguments.add" ]
132,853
132,854
u776402923
cpp
p02350
#include <bits/stdc++.h> using namespace std; /* RMQ and RUQ 区間の最小値を得る(RMQ) 区間の値を変更する(RUQ) */ class RMQ { public: typedef long long ll; ll INF = 1LL << 55; struct data { bool type; // 0 - empty , 1 - update ll value; }; ll n, n_; vector<ll> dat; vector<data> td; int toMax; // 0 -> Rang...
#include <bits/stdc++.h> using namespace std; /* RMQ and RUQ 区間の最小値を得る(RMQ) 区間の値を変更する(RUQ) */ class RMQ { public: typedef long long ll; ll INF = 1LL << 55; struct data { bool type; // 0 - empty , 1 - update ll value; }; ll n, n_; vector<ll> dat; vector<data> td; int toMax; // 0 -> Rang...
[ "call.arguments.change" ]
132,855
132,856
u776402923
cpp
p02350
#include "algorithm" #include "bitset" #include "climits" #include "cmath" #include "cstdio" #include "functional" #include "iomanip" #include "iostream" #include "list" #include "map" #include "numeric" #include "queue" #include "random" #include "set" #include "stack" #include "string" #include "unordered_map" #inclu...
#include "algorithm" #include "bitset" #include "climits" #include "cmath" #include "cstdio" #include "functional" #include "iomanip" #include "iostream" #include "list" #include "map" #include "numeric" #include "queue" #include "random" #include "set" #include "stack" #include "string" #include "unordered_map" #inclu...
[ "literal.number.change", "call.arguments.change", "call.function.change" ]
132,859
132,860
u352407731
cpp
p02350
#include "algorithm" #include "bitset" #include "climits" #include "cmath" #include "cstdio" #include "functional" #include "iomanip" #include "iostream" #include "list" #include "map" #include "numeric" #include "queue" #include "random" #include "set" #include "stack" #include "string" #include "unordered_map" #inclu...
#include "algorithm" #include "bitset" #include "climits" #include "cmath" #include "cstdio" #include "functional" #include "iomanip" #include "iostream" #include "list" #include "map" #include "numeric" #include "queue" #include "random" #include "set" #include "stack" #include "string" #include "unordered_map" #inclu...
[ "literal.number.change", "call.arguments.change" ]
132,861
132,860
u352407731
cpp
p02350
#include <algorithm> #include <climits> #include <functional> #include <iostream> #include <vector> using namespace std; template <typename MonoidType, typename OperatorType> struct LazySegmentTree { using MMtoM = function<MonoidType(MonoidType, MonoidType)>; using OOtoO = function<OperatorType(OperatorType, Opera...
#include <algorithm> #include <climits> #include <functional> #include <iostream> #include <vector> using namespace std; template <typename MonoidType, typename OperatorType> struct LazySegmentTree { using MMtoM = function<MonoidType(MonoidType, MonoidType)>; using OOtoO = function<OperatorType(OperatorType, Opera...
[ "expression.operation.binary.remove" ]
132,868
132,869
u155634813
cpp
p02350
#include <bits/stdc++.h> #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 reps(i, n) for (int i = 1; i <= int(n); i++) #define rreps(i, n) for (int i = int(n); i >= 1; i--) #define repi(i, a, b) for (int i = int(a); i < int(b); i++) #define each(x, y) ...
#include <bits/stdc++.h> #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 reps(i, n) for (int i = 1; i <= int(n); i++) #define rreps(i, n) for (int i = int(n); i >= 1; i--) #define repi(i, a, b) for (int i = int(a); i < int(b); i++) #define each(x, y) ...
[ "literal.number.change" ]
132,874
132,875
u135795997
cpp
p02350
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; const int INF = 1e9; const ll LINF = 1e18; template <class S, class T> ostream &operator<<(ostream &out, const pair<S, T> &o) { out << "(" << o.first << "," << o.second << ")"; return out; } tem...
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; const int INF = 1e9; const ll LINF = 1e18; template <class S, class T> ostream &operator<<(ostream &out, const pair<S, T> &o) { out << "(" << o.first << "," << o.second << ")"; return out; } tem...
[ "expression.operation.binary.add" ]
132,876
132,877
u929568713
cpp
p02350
#include <algorithm> #include <iostream> #pragma warning(disable : 4996) using namespace std; long long seg[1 << 19], seg2[1 << 19], n, v, a, b, c, d, INF = (1LL << 31) - 1, size_ = 1; void push(int u) { if (seg[u] == INF) return; seg[u * 2] = seg[u]; ...
#include <algorithm> #include <iostream> #pragma warning(disable : 4996) using namespace std; long long seg[1 << 19], seg2[1 << 19], n, v, a, b, c, d, INF = (1LL << 31) - 1, size_ = 1; void push(int u) { if (seg[u] == INF) return; seg[u * 2] = seg[u]; ...
[ "call.add" ]
132,880
132,881
u852311840
cpp
p02350
#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 each(a, b) for (auto(a) : (b)) #define all(v) (v).begin(), (v).end() #define fi first #define se second #define pb push_back #define show(x) cout << #x...
#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 each(a, b) for (auto(a) : (b)) #define all(v) (v).begin(), (v).end() #define fi first #define se second #define pb push_back #define show(x) cout << #x...
[ "literal.string.change", "call.arguments.change" ]
132,886
132,887
u131811591
cpp
p02350
#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 each(a, b) for (auto(a) : (b)) #define all(v) (v).begin(), (v).end() #define fi first #define se second #define pb push_back #define show(x) cout << #x...
#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 each(a, b) for (auto(a) : (b)) #define all(v) (v).begin(), (v).end() #define fi first #define se second #define pb push_back #define show(x) cout << #x...
[ "identifier.change", "function.return_value.change" ]
132,889
132,890
u131811591
cpp
p02350
#include <bits/stdc++.h> #define range(i, a, b) for (int i = (a); i < (b); i++) #define rep(i, b) for (int i = 0; i < (b); i++) #define all(a) (a).begin(), (a).end() #define show(x) cerr << #x << " = " << (x) << endl; // const int INF = 1e8; using namespace std; struct RMQ { using T = int; T operator()(const T &a,...
#include <bits/stdc++.h> #define range(i, a, b) for (int i = (a); i < (b); i++) #define rep(i, b) for (int i = 0; i < (b); i++) #define all(a) (a).begin(), (a).end() #define show(x) cerr << #x << " = " << (x) << endl; // const int INF = 1e8; using namespace std; struct RMQ { using T = int; T operator()(const T &a,...
[ "call.remove" ]
132,891
132,892
u452212317
cpp
p02350
#include <bits/stdc++.h> using namespace std; using ll = long long; int id = INT_MAX; int id2 = -1; int merge(int l, int r) { return min(l, r); } int merge2(int l, int r) { return r == id2 ? l : r; } unsigned xor128() { static unsigned x = 123456789, y = 362436069, z = 521288629, w = 88675123; unsigned t = x ^ (x...
#include <bits/stdc++.h> using namespace std; using ll = long long; int id = INT_MAX; int id2 = -1; int merge(int l, int r) { return min(l, r); } int merge2(int l, int r) { return r == id2 ? l : r; } unsigned xor128() { static unsigned x = 123456789, y = 362436069, z = 521288629, w = 88675123; unsigned t = x ^ (x...
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
132,893
132,894
u527286045
cpp
p02350
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<ll, ll> P; #define fi first #define se second #define repl(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++) #define rep(i, n) repl(i, 0, n) #define each(itr, v) for (auto itr : v) #define pb push_back #defi...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<ll, ll> P; #define fi first #define se second #define repl(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++) #define rep(i, n) repl(i, 0, n) #define each(itr, v) for (auto itr : v) #define pb push_back #defi...
[ "variable_declaration.value.change", "identifier.change" ]
132,897
132,898
u629590130
cpp
p02350
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i, n) for (int i = 0; i < n; ++i) #define FOR(i, a, b) ...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <deque> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i, n) for (int i = 0; i < n; ++i) #define FOR(i, a, b) ...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
132,899
132,900
u346550152
cpp
p02350
#include <bits/stdc++.h> using namespace std; #define fst(t) std::get<0>(t) #define snd(t) std::get<1>(t) #define thd(t) std::get<2>(t) #define unless(p) if (!(p)) #define until(p) while (!(p)) using ll = long long; using P = std::tuple<int, int>; using ui = unsigned int; const int dx[8] = {-1, 1, 0, 0, -1, -1, 1, ...
#include <bits/stdc++.h> using namespace std; #define fst(t) std::get<0>(t) #define snd(t) std::get<1>(t) #define thd(t) std::get<2>(t) #define unless(p) if (!(p)) #define until(p) while (!(p)) using ll = long long; using P = std::tuple<int, int>; using ui = unsigned int; const int dx[8] = {-1, 1, 0, 0, -1, -1, 1, ...
[ "call.add" ]
132,905
132,906
u788273968
cpp
p02361
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int> pint; typedef vector<int> vint; #define rep(i, n) for (int i = 0; i < (n); i++) #define pb push_back const int INF = 1001001001001001001ll; struct edge { int to, cost; edge(int to, int cost) : to(to), cost(cost) {} }; int...
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int, int> pint; typedef vector<int> vint; #define rep(i, n) for (int i = 0; i < (n); i++) #define pb push_back const int INF = 1001001001001001001ll; struct edge { int to, cost; edge(int to, int cost) : to(to), cost(cost) {} }; int...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "assignment.variable.change", "variable_access.subscript.index.change" ]
132,955
132,956
u113716229
cpp
p02361
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using names...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> using names...
[ "call.add" ]
132,967
132,968
u700120734
cpp
p02361
#include <iostream> #include <vector> #define MIN(a, b) ((a < b) ? a : b) #define INF 1000000001 #define N 100000 using namespace std; struct edge { int source; int target; int weight; }; vector<edge> edges; int distances[N]; int prev_distances[N] = {0}; int main() { int V, E, r; cin >> V >> E >> r; ...
#include <iostream> #include <vector> #define MIN(a, b) ((a < b) ? a : b) #define INF 1000000001 #define N 100000 using namespace std; struct edge { int source; int target; int weight; }; vector<edge> edges; int distances[N]; int prev_distances[N] = {0}; int main() { int V, E, r; cin >> V >> E >> r; ...
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
132,969
132,970
u743887543
cpp
p02361
// Created by Vignesh Manoharan #include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int, int...
// Created by Vignesh Manoharan #include <algorithm> #include <cassert> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <vector> using namespace std; typedef long long ll; typedef vector<int> vi; typedef pair<int, int...
[ "identifier.change", "call.arguments.change" ]
132,987
132,988
u338335545
cpp
p02361
#include <algorithm> #include <functional> #include <iostream> #include <queue> #include <vector> using namespace std; #define WHITE 0 #define GRAY 1 #define BLACK 2 #define MAX_N 150000 #define INF 1355135500 priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> Q; int d[MAX_N], col[MAX_N...
#include <algorithm> #include <functional> #include <iostream> #include <queue> #include <vector> using namespace std; #define WHITE 0 #define GRAY 1 #define BLACK 2 #define MAX_N 150000 #define INF 1355135500 priority_queue<pair<int, int>, vector<pair<int, int>>, greater<pair<int, int>>> Q; int d[MAX_N], col[MAX_N...
[]
132,994
132,995
u852311840
cpp
p02361
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <vector> using namespace std; #define int long long inline int in() { int32_t x; scanf("%d", &x); return x; } inline string getStr() { char ch[200000]; scanf("%s", ch); return ch; } inline ch...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <vector> using namespace std; #define int long long inline int in() { int32_t x; scanf("%d", &x); return x; } inline string getStr() { char ch[200000]; scanf("%s", ch); return ch; } inline ch...
[ "literal.number.change", "expression.operation.binary.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
132,998
132,999
u721482420
cpp
p02361
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <vector> using namespace std; #define int long long inline int in() { int32_t x; scanf("%d", &x); return x; } inline string getStr() { char ch[200000]; scanf("%s", ch); return ch; } inline ch...
#include <algorithm> #include <iostream> #include <map> #include <math.h> #include <queue> #include <stack> #include <vector> using namespace std; #define int long long inline int in() { int32_t x; scanf("%d", &x); return x; } inline string getStr() { char ch[200000]; scanf("%s", ch); return ch; } inline ch...
[ "literal.number.change", "expression.operation.binary.change", "misc.opposites", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
133,000
132,999
u721482420
cpp
p02361
#include <bits/stdc++.h> using namespace std; #define fi first #define se second const int MAXN = 100000; typedef pair<int, int> ii; typedef vector<ii> vii; vii adjList[MAXN]; int dist[MAXN]; bitset<MAXN> inq; queue<int> q; int main() { int N, E, S; cin >> N >> E >> S; for (int i = 0; i < N; i++) { i...
#include <bits/stdc++.h> using namespace std; #define fi first #define se second const int MAXN = 100000; typedef pair<int, int> ii; typedef vector<ii> vii; vii adjList[MAXN]; int dist[MAXN]; bitset<MAXN> inq; queue<int> q; int main() { int N, E, S; cin >> N >> E >> S; for (int i = 0; i < E; i++) { i...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
133,002
133,003
u750156626
cpp
p02361
// GRL_1_A #include <iostream> #include <math.h> #include <queue> #include <vector> #define N 10000000000 using namespace std; struct edge { int adj; int dis; }; int main() { int V, E, r, s, t, d, x; vector<vector<edge>> A; vector<int> distance; queue<int> ver; edge e; cin >> V >> E >> r; A.resize...
// GRL_1_A #include <iostream> #include <math.h> #include <queue> #include <vector> #define N 1000000000 using namespace std; struct edge { int adj; int dis; }; int main() { int V, E, r, s, t, d, x; vector<vector<edge>> A; vector<int> distance; queue<int> ver; edge e; cin >> V >> E >> r; A.resize(...
[ "preprocessor.define.value.change", "literal.integer.change" ]
133,018
133,017
u913726760
cpp
p02361
#include <iostream> #include <vector> const int MAX_V = 100000; const int MAX_E = 500000; int r; int INF = -1; //??????fromk???????????????to???????????????cost?????? struct edge { int from, to, cost; }; edge es[MAX_E]; long long d[MAX_V]; //???????????¢ int V, E; // V???????????°???E???????????° // s??...
#include <iostream> #include <vector> const int MAX_V = 100000; const int MAX_E = 500000; int r; long long INF = 10e15; //??????fromk???????????????to???????????????cost?????? struct edge { int from, to, cost; }; edge es[MAX_E]; long long d[MAX_V]; //???????????¢ int V, E; // V???????????°???E???????????...
[ "variable_declaration.type.primitive.change", "variable_declaration.type.widen.change", "literal.number.change", "variable_declaration.value.change" ]
133,027
133,026
u748994841
cpp
p02361
#include <iostream> #include <queue> #include <vector> using namespace std; #define INF 10000000001 class E { public: int rel, cost; E(int rel, int cost) { this->rel = rel; this->cost = cost; } }; vector<E> G[100000]; int main() { int v = 0; // num of vertices int e = 0; // num of edges int r = 0...
#include <iostream> #include <queue> #include <vector> using namespace std; #define INF 1000000001 class E { public: int rel, cost; E(int rel, int cost) { this->rel = rel; this->cost = cost; } }; vector<E> G[100000]; int main() { int v = 0; // num of vertices int e = 0; // num of edges int r = 0; /...
[ "preprocessor.define.value.change", "literal.integer.change" ]
133,052
133,050
u010662750
cpp
p02361
#include "bits/stdc++.h" using namespace std; #include <chrono> //????????? #pragma region MACRO #define putans(x) \ std::cerr << "[ answer ]: "; \ cout << (x) << endl #define dputans(x) ...
#include "bits/stdc++.h" using namespace std; #include <chrono> //????????? #pragma region MACRO #define putans(x) \ std::cerr << "[ answer ]: "; \ cout << (x) << endl #define dputans(x) ...
[ "literal.number.change", "variable_declaration.value.change" ]
133,059
133,060
u832114536
cpp
p02361
#include <algorithm> #include <functional> #include <iostream> #include <queue> #include <vector> using namespace std; int n, m, s; vector<int> et[100000]; vector<int> ec[100000]; int minDist[100000]; int INF = 1145141919; void dijkstra() { for (int i = 0; i < n; i++) minDist[i] = INF; typedef pair<int, int> ...
#include <algorithm> #include <functional> #include <iostream> #include <queue> #include <vector> using namespace std; int n, m, s; vector<int> et[100000]; vector<int> ec[100000]; int minDist[100000]; int INF = 1145141919; void dijkstra() { for (int i = 0; i < n; i++) minDist[i] = INF; typedef pair<int, int> ...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
133,081
133,082
u911041619
cpp
p02361
#include <iostream> #include <limits> #include <queue> #include <vector> using namespace std; struct edge { int v; int weight; edge(int v, int w) : v(v), weight(w) {} }; bool operator<(const edge &a, const edge &b) { return a.weight > b.weight; } int main() { auto const INF = numeric_limits<int>::max(); ...
#include <iostream> #include <limits> #include <queue> #include <vector> using namespace std; struct edge { int v; int weight; edge(int v, int w) : v(v), weight(w) {} }; bool operator<(const edge &a, const edge &b) { return a.weight > b.weight; } int main() { auto const INF = numeric_limits<int>::max(); ...
[ "expression.operation.binary.change" ]
133,121
133,122
u957470671
cpp
p02361
#include <bits/stdc++.h> using namespace std; #define INF 1e9 typedef struct { int cost; int to; } edge; int main() { int V, E, r; vector<edge> v[100000]; cin >> V >> E >> r; for (int i = 0; i < E; i++) { int s; edge t; cin >> s >> t.to >> t.cost; v[s].push_back(t); } int d[100000]; f...
#include <bits/stdc++.h> using namespace std; #define INF 1e9 typedef struct { int cost; int to; } edge; int main() { int V, E, r; vector<edge> v[100000]; cin >> V >> E >> r; for (int i = 0; i < E; i++) { int s; edge t; cin >> s >> t.to >> t.cost; v[s].push_back(t); } int d[100000]; f...
[ "assignment.variable.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change" ]
133,123
133,124
u278641778
cpp
p02361
#include <functional> #include <iostream> #include <queue> #include <string> #include <vector> // 1.7E +/- 308 // const static double INF = 1.7e+308; // 4,294,967,295 const static unsigned int INF = 4294967294; class Graph { public: // エッジ struct Edge { // 接続先のノード番号 int node; // 移動コスト int cost; ...
#include <functional> #include <iostream> #include <queue> #include <string> #include <vector> // 3.40282347e+38 // 2,147,483,647 const static int INF = 2147483647; class Graph { public: // エッジ struct Edge { // 接続先のノード番号 int node; // 移動コスト int cost; // コンストラクタ Edge(const int node, const in...
[ "variable_declaration.type.narrow.change", "literal.number.change", "variable_declaration.value.change" ]
133,136
133,137
u090563342
cpp
p02361
#include <functional> #include <iostream> #include <queue> #include <string> #include <vector> // 1.7E +/- 308 // const static double INF = 1.7e+308; // 4,294,967,295 const static unsigned int INF = 4294967294; class Graph { public: // エッジ struct Edge { // 接続先のノード番号 int node; // 移動コスト int cost; ...
#include <functional> #include <iostream> #include <queue> #include <string> #include <vector> // intの最大値 const static int INF = 2147483647; class Graph { public: // エッジ struct Edge { // 接続先のノード番号 int node; // 移動コスト int cost; // コンストラクタ Edge(const int node, const int cost) : node(node), co...
[ "variable_declaration.type.narrow.change", "literal.number.change", "variable_declaration.value.change" ]
133,136
133,138
u090563342
cpp
p02361
#include <functional> #include <iostream> #include <queue> #include <string> #include <vector> // 1.7E +/- 308 // const static double INF = 1.7e+308; // 4,294,967,295 const static unsigned int INF = 4294967294; class Graph { public: // エッジ struct Edge { // 接続先のノード番号 int node; // 移動コスト int cost; ...
#include <functional> #include <iostream> #include <queue> #include <string> #include <vector> // intの最大値 const static int INF = 2147483647; class Graph { public: // エッジ struct Edge { // 接続先のノード番号 int node; // 移動コスト int cost; // コンストラクタ Edge(const int node, const int cost) : node(node), co...
[ "variable_declaration.type.narrow.change", "literal.number.change", "variable_declaration.value.change" ]
133,136
133,139
u090563342
cpp
p02361
#include <bits/stdc++.h> using namespace std; template <typename T> struct RadixHeap { using uint = unsigned; vector<pair<uint, T>> v[33]; uint size, last; RadixHeap() : size(0), last(0) {} bool empty() const { return size == 0; } inline int getbit(int a) { return a ? 32 - __builtin_clz(a) : 0; } v...
#include <bits/stdc++.h> using namespace std; template <typename T> struct RadixHeap { using uint = unsigned; vector<pair<uint, T>> v[33]; uint size, last; RadixHeap() : size(0), last(0) {} bool empty() const { return size == 0; } inline int getbit(int a) { return a ? 32 - __builtin_clz(a) : 0; } v...
[ "control_flow.branch.if.condition.change" ]
133,145
133,146
u095377734
cpp