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
p02361
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define RFOR(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--) #define REP(i, n) FOR(i, 0, n) #define RREP(i, n) RFOR(i, 0, n) #define LL long long #define INF INT_MAX / 3 const double EPS = 1e-14; const d...
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (int)(a); i < (int)(b); i++) #define RFOR(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--) #define REP(i, n) FOR(i, 0, n) #define RREP(i, n) RFOR(i, 0, n) #define LL long long #define INF INT_MAX / 3 const double EPS = 1e-14; const d...
[ "variable_declaration.type.primitive.change", "variable_declaration.type.widen.change", "literal.string.change", "call.arguments.change", "io.output.change" ]
133,156
133,155
u498077861
cpp
p02361
#include <algorithm> #include <cmath> #include <iostream> #include <numeric> #include <queue> #include <utility> #include <vector> using ll = long long; template <class T> using vec = std::vector<T>; template <class T> constexpr T nil = static_cast<T>(-1); template <class T> constexpr T inf = std::numeric_limits<T>...
#include <algorithm> #include <cmath> #include <iostream> #include <numeric> #include <queue> #include <utility> #include <vector> using ll = long long; template <class T> using vec = std::vector<T>; template <class T> constexpr T nil = static_cast<T>(-1); template <class T> constexpr T inf = std::numeric_limits<T>...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
133,157
133,158
u891005456
cpp
p02361
#include <iostream> #define MAX_V 100000 #define MAX_E 500000 #define INF 1e9 using namespace std; struct edge { int from, to, cost; }; edge es[MAX_E]; int d[MAX_V]; int V; int E; bool find_negative_loop(int s) { d[s] = 0; int count = 0; while (true) { bool update = false; count++; for (int i = 0; ...
#include <iostream> #define MAX_V 100000 #define MAX_E 500000 #define INF 1e9 using namespace std; struct edge { int from, to, cost; }; edge es[MAX_E]; int d[MAX_V]; int V; int E; bool find_negative_loop(int s) { d[s] = 0; int count = 0; while (true) { bool update = false; count++; for (int i = 0; ...
[ "control_flow.branch.if.condition.change" ]
133,175
133,176
u068682075
cpp
p02361
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; typedef vector<int> vint; typedef vector<ll> vll; typedef pair<int, int> pint; typedef pair<ll, ll> pll; #define range(i, a, b) for (i...
#include <algorithm> #include <cmath> #include <iostream> #include <map> #include <queue> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; typedef vector<int> vint; typedef vector<ll> vll; typedef pair<int, int> pint; typedef pair<ll, ll> pll; #define range(i, a, b) for (i...
[ "io.output.newline.add" ]
133,179
133,180
u624914682
cpp
p02364
#include <algorithm> #include <cctype> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <iostream> #include <limits> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <string...
#include <algorithm> #include <cctype> #include <cmath> #include <complex> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <iostream> #include <limits> #include <list> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <string...
[ "call.arguments.add" ]
133,212
133,213
u297043950
cpp
p02364
#include <algorithm> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <st...
#include <algorithm> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <st...
[ "expression.operation.binary.remove" ]
133,234
133,235
u159790944
cpp
p02364
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_3_A #include <climits> #include <iostream> #include <queue> #include <vector> using namespace std; int main(int arg, char **argv) { int V, E; cin >> V >> E; vector<vector<pair<int, int>>> A(E); for (int i = 0; i < E; i++) { int s, t, w; cin...
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_3_A #include <climits> #include <iostream> #include <queue> #include <vector> using namespace std; int main(int arg, char **argv) { int V, E; cin >> V >> E; vector<vector<pair<int, int>>> A(V); for (int i = 0; i < E; i++) { int s, t, w; c...
[]
133,240
133,241
u520728308
cpp
p02364
#include <algorithm> #include <iostream> #include <vector> using namespace std; #define MAX 10000 #define INFTY (1 << 29) class DisjointSet { public: vector<int> rank, p; DisjointSet() {} DisjointSet(int size) { rank.resize(size, 0); p.resize(size, 0); for (int i = 0; i < size; i++) makeSet(i)...
#include <algorithm> #include <iostream> #include <vector> using namespace std; #define MAX 10000 #define INFTY (1 << 29) class DisjointSet { public: vector<int> rank, p; DisjointSet() {} DisjointSet(int size) { rank.resize(size, 0); p.resize(size, 0); for (int i = 0; i < size; i++) makeSet(i)...
[ "call.function.change" ]
133,257
133,258
u722526744
cpp
p02364
#include <algorithm> #include <iostream> #include <vector> using namespace std; #define MAX 10000 #define INFTY (1 << 29) class DisjointSet { public: vector<int> rank, p; DisjointSet() {} DisjointSet(int size) { rank.resize(size, 0); p.resize(size, 0); for (int i = 0; i < size; i++) makeSet(i)...
#include <algorithm> #include <iostream> #include <vector> using namespace std; #define MAX 10000 #define INFTY (1 << 29) class DisjointSet { public: vector<int> rank, p; DisjointSet() {} DisjointSet(int size) { rank.resize(size, 0); p.resize(size, 0); for (int i = 0; i < size; i++) makeSet(i)...
[ "call.function.change" ]
133,259
133,258
u722526744
cpp
p02364
#include <algorithm> #include <iostream> #include <vector> using namespace std; #define MAX 10000 #define INFTY (1 << 29) class DisjointSet { public: vector<int> rank, p; DisjointSet() {} DisjointSet(int size) { rank.resize(size, 0); p.resize(size, 0); for (int i = 0; i < size; i++) makeSet(i)...
#include <algorithm> #include <iostream> #include <vector> using namespace std; #define MAX 10000 #define INFTY (1 << 29) class DisjointSet { public: vector<int> rank, p; DisjointSet() {} DisjointSet(int size) { rank.resize(size, 0); p.resize(size, 0); for (int i = 0; i < size; i++) makeSet(i)...
[ "literal.number.change", "call.arguments.change", "expression.operation.binary.change", "call.function.change" ]
133,260
133,258
u722526744
cpp
p02364
#include <algorithm> #include <iostream> #include <vector> using namespace std; #define MAX 10000 #define INFTY (1 << 29) class DisjointSet { public: vector<int> rank, p; DisjointSet() {} DisjointSet(int size) { rank.resize(size, 0); p.resize(size, 0); for (int i = 0; i < size; i++) makeSet(i)...
#include <algorithm> #include <iostream> #include <vector> using namespace std; #define MAX 10000 #define INFTY (1 << 29) class DisjointSet { public: vector<int> rank, p; DisjointSet() {} DisjointSet(int size) { rank.resize(size, 0); p.resize(size, 0); for (int i = 0; i < size; i++) makeSet(i)...
[ "call.function.change" ]
133,259
133,264
u722526744
cpp
p02364
#include <algorithm> #include <iostream> #include <vector> using namespace std; #define MAX 10000 #define INFTY (1 << 29) class DisjointSet { public: vector<int> rank, p; DisjointSet() {} DisjointSet(int size) { rank.resize(size, 0); p.resize(size, 0); for (int i = 0; i < size; i++) makeSet(i)...
#include <algorithm> #include <iostream> #include <vector> using namespace std; #define MAX 10000 #define INFTY (1 << 29) class DisjointSet { public: vector<int> rank, p; DisjointSet() {} DisjointSet(int size) { rank.resize(size, 0); p.resize(size, 0); for (int i = 0; i < size; i++) makeSet(i)...
[ "expression.operation.binary.remove", "call.function.change" ]
133,260
133,264
u722526744
cpp
p02364
#include <algorithm> #include <array> #include <cmath> #include <complex> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <map> #include <memory> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <un...
#include <algorithm> #include <array> #include <cmath> #include <complex> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <iterator> #include <map> #include <memory> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <tuple> #include <un...
[ "assignment.value.change", "expression.operation.binary.remove" ]
133,267
133,268
u287295208
cpp
p02364
// be name khoda // Pedram Sadeghian // :) #include <bits/stdc++.h> using namespace std; const int maxN = 1e5; int n, m, k1, k2, dad[maxN], high[maxN], ans; pair<int, pair<int, int>> P[maxN]; int root(int a) { if (dad[a] == a) return a; dad[a] = root(dad[a]); return dad[a]; } void merrge(int a, int b) { if...
// be name khoda // Pedram Sadeghian // :) #include <bits/stdc++.h> using namespace std; const int maxN = 1e5; int n, m, k1, k2, dad[maxN], high[maxN], ans; pair<int, pair<int, int>> P[maxN]; int root(int a) { if (dad[a] == a) return a; dad[a] = root(dad[a]); return dad[a]; } void merrge(int a, int b) { if...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
133,277
133,278
u301680461
cpp
p02364
// be name khoda // Pedram Sadeghian // :) #include <bits/stdc++.h> using namespace std; const int maxN = 1e5; int n, m, k1, k2, dad[maxN], high[maxN], ans; pair<int, pair<int, int>> P[maxN]; int root(int a) { if (dad[a] == a) return a; dad[a] = root(dad[a]); return dad[a]; } void merrge(int a, int b) { if...
// be name khoda // Pedram Sadeghian // :) #include <bits/stdc++.h> using namespace std; const int maxN = 1e5; int n, m, k1, k2, dad[maxN], high[maxN], ans; pair<int, pair<int, int>> P[maxN]; int root(int a) { if (dad[a] == a) return a; dad[a] = root(dad[a]); return dad[a]; } void merrge(int a, int b) { if...
[ "expression.operation.binary.remove" ]
133,279
133,278
u301680461
cpp
p02364
// BINARY_BOY!! // THINK TWICE CODE ONCE { TRUE } // ##### ### ## # ### ##### # # ##### #### # # // # # # # # # # # # # # # # # # # # # // ##### # # # # ##### ##### # ##### # # # // # # # # ## # # # # # # # # # # // ##### ### # #...
// BINARY_BOY!! // THINK TWICE CODE ONCE { TRUE } // ##### ### ## # ### ##### # # ##### #### # # // # # # # # # # # # # # # # # # # # # // ##### # # # # ##### ##### # ##### # # # // # # # # ## # # # # # # # # # # // ##### ### # #...
[ "call.add", "call.arguments.change", "function.return_value.change" ]
133,281
133,282
u984611864
cpp
p02364
#include <algorithm> #include <math.h> #include <queue> #include <stdio.h> #include <string> #include <utility> template <class T> class Node { public: Node() : parent(0), child(0){}; Node *parent; Node *child; T para; }; template <class T> class UnionFind { public: void Connect(Node<T> *a, Node<T> *b) { Vert...
#include <algorithm> #include <math.h> #include <queue> #include <stdio.h> #include <string> #include <utility> template <class T> class Node { public: Node() : parent(0), child(0){}; Node *parent; Node *child; T para; }; template <class T> class UnionFind { public: void Connect(Node<T> *a, Node<T> *b) { Vert...
[ "expression.operation.binary.remove", "literal.number.change", "expression.operation.binary.change" ]
133,287
133,286
u717748888
cpp
p02364
#include <algorithm> #include <math.h> #include <queue> #include <stdio.h> #include <string> #include <utility> template <class T> class Node { public: Node() : parent(0), child(0){}; Node *parent; Node *child; T para; }; template <class T> class UnionFind { public: void Connect(Node<T> *a, Node<T> *b) { Vert...
#include <algorithm> #include <math.h> #include <queue> #include <stdio.h> #include <string> #include <utility> template <class T> class Node { public: Node() : parent(0), child(0){}; Node *parent; Node *child; T para; }; template <class T> class UnionFind { public: void Connect(Node<T> *a, Node<T> *b) { Vert...
[ "expression.operation.binary.remove" ]
133,288
133,286
u717748888
cpp
p02364
#include <bits/stdc++.h> using namespace std; struct EDGE { int from, to, cost; }; bool operator<(const EDGE &a, const EDGE &b) { return a.cost < b.cost; } vector<EDGE> g; int par[10000]; int find(int x) { if (par[x] == x) return x; return par[x] = find(par[x]); } bool _union(int x, int y) { x = find(x);...
#include <bits/stdc++.h> using namespace std; struct EDGE { int from, to, cost; }; bool operator<(const EDGE &a, const EDGE &b) { return a.cost < b.cost; } vector<EDGE> g; int par[10000]; int find(int x) { if (par[x] == x) return x; return par[x] = find(par[x]); } bool _union(int x, int y) { x = find(x);...
[ "variable_declaration.name.change", "identifier.change", "control_flow.loop.for.initializer.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
133,289
133,290
u774648665
cpp
p02364
#include <bits/stdc++.h> using namespace std; struct EDGE { int from, to, cost; }; bool operator<(const EDGE &a, const EDGE &b) { return a.cost < b.cost; } vector<EDGE> g; int par[10000]; int find(int x) { if (par[x] == x) return x; return par[x] = find(par[x]); } bool _union(int x, int y) { x = find(x);...
#include <bits/stdc++.h> using namespace std; struct EDGE { int from, to, cost; }; bool operator<(const EDGE &a, const EDGE &b) { return a.cost < b.cost; } vector<EDGE> g; int par[10000]; int find(int x) { if (par[x] == x) return x; return par[x] = find(par[x]); } bool _union(int x, int y) { x = find(x);...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change" ]
133,291
133,290
u774648665
cpp
p02364
#include <algorithm> #include <iostream> #include <vector> using namespace std; // Union-Find Tree class DisjointSet { private: struct Node { int parent; int rank; }; public: DisjointSet(size_t n) : _nodes(n) { int i = 0; for (auto &node : _nodes) { node.parent = i++; node.rank = 0;...
#include <algorithm> #include <iostream> #include <vector> using namespace std; // Union-Find Tree class DisjointSet { private: struct Node { int parent; int rank; }; public: DisjointSet(size_t n) : _nodes(n) { int i = 0; for (auto &node : _nodes) { node.parent = i++; node.rank = 0;...
[ "misc.opposites", "expression.operator.compare.change", "call.arguments.change", "function.return_value.change", "expression.operation.binary.change" ]
133,297
133,298
u957470671
cpp
p02364
#include <algorithm> #include <iostream> #include <vector> using namespace std; // Union-Find Tree class DisjointSet { private: struct Node { int parent; int rank; }; public: DisjointSet(size_t n) : _nodes(n) { int i = 0; for (auto &node : _nodes) { node.parent = i++; node.rank = 0;...
#include <algorithm> #include <iostream> #include <vector> using namespace std; // Union-Find Tree class DisjointSet { private: struct Node { int parent; int rank; }; public: DisjointSet(size_t n) : _nodes(n) { int i = 0; for (auto &node : _nodes) { node.parent = i++; node.rank = 0;...
[ "misc.opposites", "expression.operator.compare.change", "call.arguments.change", "function.return_value.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
133,297
133,299
u957470671
cpp
p02364
#include <algorithm> #include <iostream> #include <queue> #include <vector> using namespace std; struct edge { int to, cost; }; typedef pair<int, int> P; const int MAX_V = 10000; const int INF = 1 << 28; int V; vector<edge> G[MAX_V]; int d[MAX_V]; bool vis[MAX_V]; int prim() { int res = 0; priority_queue<P, ...
#include <algorithm> #include <iostream> #include <queue> #include <vector> using namespace std; struct edge { int to, cost; }; typedef pair<int, int> P; const int MAX_V = 10000; const int INF = 1 << 28; int V; vector<edge> G[MAX_V]; int d[MAX_V]; bool vis[MAX_V]; int prim() { int res = 0; priority_queue<P, ...
[ "identifier.change", "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
133,316
133,317
u622083648
cpp
p02365
#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...
[ "control_flow.loop.condition.change", "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change" ]
133,332
133,333
u929568713
cpp
p02365
#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...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.condition.change" ]
133,334
133,333
u929568713
cpp
p02365
#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...
[]
133,335
133,333
u929568713
cpp
p02365
#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...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.condition.change" ]
133,336
133,333
u929568713
cpp
p02365
#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...
[ "literal.number.change" ]
133,335
133,337
u929568713
cpp
p02365
#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...
[ "control_flow.loop.condition.change", "expression.operator.compare.change" ]
133,332
133,338
u929568713
cpp
p02365
#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...
[]
133,334
133,338
u929568713
cpp
p02365
#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...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.condition.change" ]
133,336
133,338
u929568713
cpp
p02365
#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...
[]
133,339
133,338
u929568713
cpp
p02365
#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.operator.compare.change", "control_flow.loop.condition.change" ]
133,340
133,338
u929568713
cpp
p02362
#include <algorithm> #include <cstring> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; const int inf = 1e9 + 5; const int maxn = 100000; typedef vector<int> vi; typedef long long ll; #define fi first #define se second typedef pair<int, int> P; int d[maxn + 5]; bool visited...
#include <algorithm> #include <cstring> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; const int inf = 1e9 + 5; const int maxn = 100000; typedef vector<int> vi; typedef long long ll; #define fi first #define se second typedef pair<int, int> P; int d[maxn + 5]; bool visited...
[ "literal.string.change", "io.output.change" ]
133,432
133,433
u990186494
cpp
p02362
#include <bits/stdc++.h> #define GET_MACRO(_1, _2, _3, _4, _5, _6, _7, _8, NAME, ...) NAME #define pr(...) \ cerr << GET_MACRO(__VA_ARGS__, pr8, pr7, pr6, pr5, pr4, pr3, pr2, \ pr1)(__VA_ARGS__) ...
#include <bits/stdc++.h> #define GET_MACRO(_1, _2, _3, _4, _5, _6, _7, _8, NAME, ...) NAME #define pr(...) \ cerr << GET_MACRO(__VA_ARGS__, pr8, pr7, pr6, pr5, pr4, pr3, pr2, \ pr1)(__VA_ARGS__) ...
[ "literal.string.change", "literal.string.case.change", "io.output.change" ]
133,434
133,435
u776402923
cpp
p02362
#include <cstdio> #include <queue> #include <vector> using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef pair<ll, P> Q; ll v, e, r, s[1000], t[1000], d[1000], dp[1001], INF = 1e9; bool search() { for (ll i = 0; i < v; i++) dp[i] = INF; dp[r] = 0; for (ll i = 0; i < v; i++) { bool ...
#include <cstdio> #include <queue> #include <vector> using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef pair<ll, P> Q; ll v, e, r, s[2000], t[2000], d[2000], dp[1001], INF = 1e9; bool search() { for (ll i = 0; i < v; i++) dp[i] = INF; dp[r] = 0; for (ll i = 0; i < v; i++) { bool ...
[ "literal.number.change", "variable_declaration.array_dimensions.change", "identifier.change", "control_flow.branch.if.condition.change" ]
133,440
133,441
u864644066
cpp
p02362
#include <cstdio> #include <queue> #include <vector> using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef pair<ll, P> Q; ll v, e, r, s[2000], t[2000], d[2000], dp[1001], INF = 1e9; bool search() { for (ll i = 0; i < v; i++) dp[i] = INF; dp[r] = 0; for (ll i = 0; i < v; i++) { bool ...
#include <cstdio> #include <queue> #include <vector> using namespace std; typedef long long ll; typedef pair<ll, ll> P; typedef pair<ll, P> Q; ll v, e, r, s[2000], t[2000], d[2000], dp[1001], INF = 1e9; bool search() { for (ll i = 0; i < v; i++) dp[i] = INF; dp[r] = 0; for (ll i = 0; i < v; i++) { bool ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
133,442
133,441
u864644066
cpp
p02362
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define int long long #define rep(i, n) for (int i = 0; i < n; i++) #define MOD 1000000007 #define INF 1000000000000000 #define fi first #define se second #define all(v) v.begin(), v.end() int dx[] = {0, 1, 0, -1}, dy[] = {1, 0, -1, 0}; #define pb push...
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define int long long #define rep(i, n) for (int i = 0; i < n; i++) #define MOD 1000000007 #define INF 1000000000000000 #define fi first #define se second #define all(v) v.begin(), v.end() int dx[] = {0, 1, 0, -1}, dy[] = {1, 0, -1, 0}; #define pb push...
[ "call.add" ]
133,443
133,444
u710298092
cpp
p02362
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <queue> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define reg(i, a, b) for (int i = (a); i <= (b); i++) typedef long long int lli; typedef pair<int, int> mp; #define fir first #define sec sec...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <queue> #include <vector> using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define reg(i, a, b) for (int i = (a); i <= (b); i++) typedef long long int lli; typedef pair<int, int> mp; #define fir first #define sec sec...
[ "expression.operation.binary.remove" ]
133,445
133,446
u182677953
cpp
p02362
#include <cstdlib> #include <iostream> using namespace std; #define INF 1e9 #define MAX_E 500000 #define MAX_V 100000 struct edge { int u, v, cost; }; edge es[MAX_E]; int dis[MAX_V]; int V, E, r; void bellman_ford(int s) { for (int i = 0; i < V; i++) dis[i] = INF; dis[s] = 0; int count = 0; while (true...
#include <cstdlib> #include <iostream> using namespace std; #define INF 1e9 #define MAX_E 500000 #define MAX_V 100000 struct edge { int u, v, cost; }; edge es[MAX_E]; int dis[MAX_V]; int V, E, r; void bellman_ford(int s) { for (int i = 0; i < V; i++) dis[i] = INF; dis[s] = 0; int count = 0; while (true...
[ "control_flow.branch.if.condition.change", "literal.number.change", "call.arguments.change" ]
133,449
133,450
u467929102
cpp
p02362
#include <cstdlib> #include <iostream> using namespace std; #define INF 1e9 #define MAX_E 500000 #define MAX_V 100000 struct edge { int u, v, cost; }; edge es[MAX_E]; int dis[MAX_V]; int V, E, r; void bellman_ford(int s) { for (int i = 0; i < V; i++) dis[i] = INF; dis[s] = 0; int count = 0; while (true...
#include <cstdlib> #include <iostream> using namespace std; #define INF 1e9 #define MAX_E 500000 #define MAX_V 100000 struct edge { int u, v, cost; }; edge es[MAX_E]; int dis[MAX_V]; int V, E, r; void bellman_ford(int s) { for (int i = 0; i < V; i++) dis[i] = INF; dis[s] = 0; int count = 0; while (true...
[ "control_flow.branch.if.condition.change" ]
133,451
133,450
u467929102
cpp
p02362
#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 vector<int> vi; typedef vector<string> vs; typedef pair<int, int> pii...
#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 vector<int> vi; typedef vector<string> vs; typedef pair<int, int> pii...
[ "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
133,453
133,454
u877319405
cpp
p02362
// #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, j) for (int i = 0; i < (int)(j); i++) constexpr int INF = 1 << 28; struct Edge { int to; ll cost; Edge(int to, ll cost) : to(to), cost(cost) {} }; using EdgeList = vector<vector<Edge>>; using Vatex = int; constexpr ll INFL = 1LL...
// #include <bits/stdc++.h> using namespace std; using ll = long long; #define rep(i, j) for (int i = 0; i < (int)(j); i++) constexpr int INF = 1 << 28; struct Edge { int to; ll cost; Edge(int to, ll cost) : to(to), cost(cost) {} }; using EdgeList = vector<vector<Edge>>; using Vatex = int; constexpr ll INFL = 1LL...
[]
133,455
133,456
u426030396
cpp
p02362
#include <algorithm> #include <iostream> #include <queue> #include <vector> using namespace std; typedef pair<long long int, int> P; struct vertex { vector<P> E; // cost,to }; #define INF 5000000001 vertex V[100000]; long long int minimum[100000]; int main() { int NV, NE, r; cin >> NV >> NE >> r; fill(minimum,...
#include <algorithm> #include <iostream> #include <queue> #include <vector> using namespace std; typedef pair<long long int, int> P; struct vertex { vector<P> E; // cost,to }; #define INF 5000000001 vertex V[100000]; long long int minimum[100000]; int main() { int NV, NE, r; cin >> NV >> NE >> r; fill(minimum,...
[ "identifier.change", "variable_access.subscript.index.change", "control_flow.branch.if.condition.change", "assignment.value.change", "expression.operation.binary.change" ]
133,471
133,472
u696230892
cpp
p02362
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <queue> #include <vector> #define shosu(x) fixed << setprecision(x) using namespace std; typedef long long ll; typedef pair<int, int> P; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<P> vp; typedef vector<vp> vvp; typ...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <queue> #include <vector> #define shosu(x) fixed << setprecision(x) using namespace std; typedef long long ll; typedef pair<int, int> P; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<P> vp; typedef vector<vp> vvp; typ...
[ "assignment.value.change", "identifier.change", "call.arguments.change" ]
133,473
133,474
u496100636
cpp
p02362
#include <algorithm> #include <cstdio> #include <vector> using namespace std; #define INF 10000000 #define MAX_V 1000 int V, E; struct edge { int from, to, cost; }; vector<edge> edges; int d[MAX_V]; int main() { int f, t, c; int s; scanf("%d %d %d", &V, &E, &s); for (int i = 0; i < E; i++) { scanf("%d %...
#include <algorithm> #include <cstdio> #include <vector> using namespace std; #define INF 10000000 #define MAX_V 1000 int V, E; struct edge { int from, to, cost; }; vector<edge> edges; int d[MAX_V]; int main() { int f, t, c; int s; scanf("%d %d %d", &V, &E, &s); for (int i = 0; i < E; i++) { scanf("%d %...
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.add" ]
133,477
133,478
u544325767
cpp
p02362
#include <iostream> #include <math.h> using namespace std; //= AOJ GRL_1_A const int V_constraint = 1000, E_constraint = 2000, D_constraint = 10000; int V, E, R, S[E_constraint + 10], T[E_constraint + 10], D[E_constraint + 10], C[V_constraint + 10]; const int inf = V_constraint * D_constraint + 100; // int paren...
#include <iostream> #include <math.h> using namespace std; //= AOJ GRL_1_A const int V_constraint = 1000, E_constraint = 2000, D_constraint = 10000; int V, E, R, S[E_constraint + 10], T[E_constraint + 10], D[E_constraint + 10], C[V_constraint + 10]; const int inf = V_constraint * D_constraint + 100; // int paren...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "expression.operation.binary.remove" ]
133,485
133,484
u232012384
cpp
p02362
#include <bits/stdc++.h> #define P pair<int, int> #define rep(i, n) for (int i = 0; i < n; i++) #define INF 1 << 28 #define mk make_pair using namespace std; int main() { int n, m, t; cin >> n >> m >> t; vector<pair<int, int>> a[n]; rep(i, m) { int q, w, e; cin >> q >> w >> e; a[q].push_back(mk(w, e...
#include <bits/stdc++.h> #define P pair<int, int> #define rep(i, n) for (int i = 0; i < n; i++) #define INF 1 << 28 #define mk make_pair using namespace std; int main() { int n, m, t; cin >> n >> m >> t; vector<pair<int, int>> a[n]; rep(i, m) { int q, w, e; cin >> q >> w >> e; a[q].push_back(mk(w, e...
[ "literal.string.change", "io.output.change" ]
133,487
133,488
u962041986
cpp
p02362
#include <bits/stdc++.h> #define P pair<int, int> #define rep(i, n) for (int i = 0; i < n; i++) #define INF 1 << 28 #define mk make_pair using namespace std; int main() { int n, m, t; cin >> n >> m >> t; vector<pair<int, int>> a[n]; rep(i, m) { int q, w, e; cin >> q >> w >> e; a[q].push_back(mk(w, e...
#include <bits/stdc++.h> #define P pair<int, int> #define rep(i, n) for (int i = 0; i < n; i++) #define INF 1 << 28 #define mk make_pair using namespace std; int main() { int n, m, t; cin >> n >> m >> t; vector<pair<int, int>> a[n]; rep(i, m) { int q, w, e; cin >> q >> w >> e; a[q].push_back(mk(w, e...
[ "literal.number.change", "control_flow.branch.if.condition.change", "literal.string.change", "io.output.change" ]
133,487
133,489
u962041986
cpp
p02362
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; #define REP(i, n) for (int(i) = 0; (i) < (int...
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; #define REP(i, n) for (int(i) = 0; (i) < (int...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add" ]
133,494
133,495
u391016947
cpp
p02362
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; #define REP(i, n) for (int(i) = 0; (i) < (int...
#include <algorithm> #include <cmath> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <vector> using namespace std; typedef long long ll; #define REP(i, n) for (int(i) = 0; (i) < (int...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
133,496
133,495
u391016947
cpp
p02362
#include <bits/stdc++.h> using namespace std; template <typename T> struct edge { int src, to; T cost; edge(int to, T cost) : src(-1), to(to), cost(cost) {} edge(int src, int to, T cost) : src(src), to(to), cost(cost) {} edge &operator=(const int &x) { to = x; return *this; } operator int() ...
#include <bits/stdc++.h> using namespace std; template <typename T> struct edge { int src, to; T cost; edge(int to, T cost) : src(-1), to(to), cost(cost) {} edge(int src, int to, T cost) : src(src), to(to), cost(cost) {} edge &operator=(const int &x) { to = x; return *this; } operator int() ...
[]
133,497
133,498
u095377734
cpp
p02362
#include <algorithm> #include <assert.h> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++...
#include <algorithm> #include <assert.h> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++...
[ "identifier.change", "control_flow.branch.if.condition.change", "expression.operator.compare.change" ]
133,499
133,500
u214600613
cpp
p02362
#include <algorithm> #include <assert.h> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++...
#include <algorithm> #include <assert.h> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
133,502
133,500
u214600613
cpp
p02362
#include <algorithm> #include <cstdlib> #include <cstring> #include <iostream> #include <numeric> #include <queue> #include <stack> #include <vector> using namespace std; typedef long long ll; #define pb push_back #define rep(i, n) for (int i = 0; i < (n); ++i) #define rep2(i, s, n) for (int i = s; i < (n); ++i) #def...
#include <algorithm> #include <cstdlib> #include <cstring> #include <iostream> #include <numeric> #include <queue> #include <stack> #include <vector> using namespace std; typedef long long ll; #define pb push_back #define rep(i, n) for (int i = 0; i < (n); ++i) #define rep2(i, s, n) for (int i = s; i < (n); ++i) #def...
[ "variable_access.subscript.index.change", "control_flow.branch.if.condition.change" ]
133,507
133,508
u938674933
cpp
p02362
#include <iostream> #include <queue> #include <vector> using namespace std; typedef pair<long long, long long> P; int v, e, r; long long int INF = 1e10; struct edge { int to; long long cost; edge(int _to, long long _cost) : to(_to), cost(_cost) {} }; vector<edge> G[1010]; bool f[1010]; long long d[1010]; bool bel...
#include <iostream> #include <queue> #include <vector> using namespace std; typedef pair<long long, long long> P; int v, e, r; long long int INF = 1e10; struct edge { int to; long long cost; edge(int _to, long long _cost) : to(_to), cost(_cost) {} }; vector<edge> G[1010]; bool f[1010]; long long d[1010]; bool bel...
[]
133,515
133,516
u811386072
cpp
p02366
#include <algorithm> #include <iostream> #include <vector> using namespace std; constexpr int MAX_N = 100000; vector<int> pre_order( MAX_N, -1); // pre_order[i]:=??±???????????¢?´¢??§???????????????i????????£?????¨??????timer vector<int> post_order( MAX_N, -1); // post_order[i]:=??±???????????¢?´¢??§?...
#include <algorithm> #include <iostream> #include <vector> using namespace std; constexpr int MAX_N = 100000; vector<int> pre_order( MAX_N, -1); // pre_order[i]:=??±???????????¢?´¢??§???????????????i????????£?????¨??????timer vector<int> post_order( MAX_N, -1); // post_order[i]:=??±???????????¢?´¢??§?...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
133,521
133,522
u192037914
cpp
p02366
#include <algorithm> #include <climits> #include <iostream> #include <vector> using namespace std; const int V_MAX = 100000; vector<int> G[V_MAX]; vector<bool> check(V_MAX, false); vector<int> pre(V_MAX); vector<int> low(V_MAX, INT_MAX); vector<bool> articulation(V_MAX, false); int order; void dfs(int s, int p) { ...
#include <algorithm> #include <climits> #include <iostream> #include <vector> using namespace std; const int V_MAX = 100000; vector<int> G[V_MAX]; vector<bool> check(V_MAX, false); vector<int> pre(V_MAX, INT_MAX); vector<int> low(V_MAX, INT_MAX); vector<bool> articulation(V_MAX, false); int order; void dfs(int s, in...
[]
133,528
133,526
u176732165
cpp
p02366
#include <bits/stdc++.h> using namespace std; const int M = 1e5 + 10; int n, m, H[M]; vector<int> g[M]; bool cv[M], mark[M]; int dfs(int v, int par, int h) { int up = h, cnt = 0; mark[v] = true; H[v] = h; if (g[v].size() == 1 && v != 1) return h; for (auto u : g[v]) if (!mark[u]) { cnt++; ...
#include <bits/stdc++.h> using namespace std; const int M = 1e5 + 10; int n, m, H[M]; vector<int> g[M]; bool cv[M], mark[M]; int dfs(int v, int par, int h) { int up = h, cnt = 0; mark[v] = true; H[v] = h; if (g[v].size() == 1 && v != 1) return h; for (auto u : g[v]) if (!mark[u]) { cnt++; ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
133,564
133,565
u572849701
cpp
p02366
#include <bits/stdc++.h> using namespace std; const int M = 1e5 + 10; int n, m, H[M]; vector<int> g[M]; bool cv[M], mark[M]; int dfs(int v, int par, int h) { int up = h, cnt = 0; mark[v] = true; H[v] = h; if (g[v].size() == 1 && v != 1) return h; for (auto u : g[v]) if (!mark[u]) { cnt++; ...
#include <bits/stdc++.h> using namespace std; const int M = 1e5 + 10; int n, m, H[M]; vector<int> g[M]; bool cv[M], mark[M]; int dfs(int v, int par, int h) { int up = h, cnt = 0; mark[v] = true; H[v] = h; if (g[v].size() == 1 && v != 1) return h; for (auto u : g[v]) if (!mark[u]) { cnt++; ...
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
133,564
133,566
u572849701
cpp
p02366
#include <algorithm> #include <cstdio> #include <vector> using namespace std; vector<int> G[1000000]; vector<pair<int, int>> bridge; vector<int> articulation; int ord[1000000], low[1000000]; bool vis[1000000]; void dfs(int v, int p, int &k) { vis[v] = true; ord[v] = k++; low[v] = ord[v]; bool isArticulatio...
#include <algorithm> #include <cstdio> #include <vector> using namespace std; vector<int> G[1000000]; vector<pair<int, int>> bridge; vector<int> articulation; int ord[1000000], low[1000000]; bool vis[1000000]; void dfs(int v, int p, int &k) { vis[v] = true; ord[v] = k++; low[v] = ord[v]; bool isArticulatio...
[ "call.arguments.change", "expression.operation.binary.remove" ]
133,574
133,575
u041086527
cpp
p02366
#include <algorithm> #include <cstdio> #include <vector> using namespace std; vector<int> G[1000000]; vector<pair<int, int>> bridge; vector<int> articulation; int ord[1000000], low[1000000]; bool vis[1000000]; void dfs(int v, int p, int &k) { vis[v] = true; ord[v] = k++; low[v] = ord[v]; bool isArticulatio...
#include <algorithm> #include <cstdio> #include <vector> using namespace std; vector<int> G[1000000]; vector<pair<int, int>> bridge; vector<int> articulation; int ord[1000000], low[1000000]; bool vis[1000000]; void dfs(int v, int p, int &k) { vis[v] = true; ord[v] = k++; low[v] = ord[v]; bool isArticulatio...
[ "expression.operation.binary.remove" ]
133,576
133,575
u041086527
cpp
p02367
#include <algorithm> #include <iostream> #include <vector> using namespace std; struct Edge { int from, to; Edge(int f, int t) : from(f), to(t) {} }; using Edges = vector<Edge>; using Graph = vector<Edges>; class LowLink { public: LowLink(int n) : mGraph(n), mOrd(n), mLow(n), mUsed(n, false) {} void add_edge...
#include <algorithm> #include <iostream> #include <vector> using namespace std; struct Edge { int from, to; Edge(int f, int t) : from(f), to(t) {} }; using Edges = vector<Edge>; using Graph = vector<Edges>; class LowLink { public: LowLink(int n) : mGraph(n), mOrd(n), mLow(n), mUsed(n, false) {} void add_edge...
[ "call.arguments.add", "call.arguments.change" ]
133,588
133,589
u290671130
cpp
p02367
#include <algorithm> #include <iostream> #include <vector> using namespace std; int N, M, A[200009], B[200009], pre[200009], low[200009], cnts; vector<pair<int, int>> X[200009]; vector<int> G; void dfs(int pos, int par) { cnts++; pre[pos] = cnts; low[pos] = cnts; for (int i = 0; i < X[pos].size(); i++) { ...
#include <algorithm> #include <iostream> #include <vector> using namespace std; int N, M, A[200009], B[200009], pre[200009], low[200009], cnts; vector<pair<int, int>> X[200009]; vector<int> G; void dfs(int pos, int par) { cnts++; pre[pos] = cnts; low[pos] = cnts; for (int i = 0; i < X[pos].size(); i++) { ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "call.arguments.change" ]
133,596
133,597
u852311840
cpp
p02367
#include <bits/stdc++.h> using namespace std; #define int long long // <-----!!!!!!!!!!!!!!!!!!! #define rep(i, n) for (int i = 0; i < (n); i++) #define rep2(i, a, b) for (int i = (a); i < (b); i++) #define rrep(i, n) for (int i = (n)-1; i >= 0; i--) #define rrep2(i, a, b) for (int i = (b)-1; i >= (a); i--) #define al...
#include <bits/stdc++.h> using namespace std; #define int long long // <-----!!!!!!!!!!!!!!!!!!! #define rep(i, n) for (int i = 0; i < (n); i++) #define rep2(i, a, b) for (int i = (a); i < (b); i++) #define rrep(i, n) for (int i = (n)-1; i >= 0; i--) #define rrep2(i, a, b) for (int i = (b)-1; i >= (a); i--) #define al...
[ "preprocessor.define.value.change" ]
133,604
133,605
u529386725
cpp
p02369
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<pair<int, int>> vii; #define rrep(i, m, n) for (int(i) = (m); (i) < (n); (i)++) #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define rev(i, n) for (int(i) = (n)-1; (i) >= 0...
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<int, int> pii; typedef vector<int> vi; typedef vector<pair<int, int>> vii; #define rrep(i, m, n) for (int(i) = (m); (i) < (n); (i)++) #define rep(i, n) for (int(i) = 0; (i) < (n); (i)++) #define rev(i, n) for (int(i) = (n)-1; (i) >= 0...
[]
133,622
133,623
u959413365
cpp
p02369
#include <bits/stdc++.h> using namespace std; #define rep(i, x, y) for (int i = (x); i < (y); ++i) #define debug(x) #x << "=" << (x) #ifdef DEBUG #define _GLIBCXX_DEBUG #define show(x) std::cerr << debug(x) << " (L:" << __LINE__ << ")" << std::endl #else #define show(x) #endif typedef long long int ll; typedef pair<...
#include <bits/stdc++.h> using namespace std; #define rep(i, x, y) for (int i = (x); i < (y); ++i) #define debug(x) #x << "=" << (x) #ifdef DEBUG #define _GLIBCXX_DEBUG #define show(x) std::cerr << debug(x) << " (L:" << __LINE__ << ")" << std::endl #else #define show(x) #endif typedef long long int ll; typedef pair<...
[ "expression.operation.unary.add", "call.arguments.change" ]
133,629
133,630
u313705878
cpp
p02369
#include <algorithm> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <st...
#include <algorithm> #include <cctype> #include <cfloat> #include <climits> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <st...
[ "variable_declaration.name.change", "identifier.change", "control_flow.loop.for.initializer.change", "control_flow.loop.condition.change", "variable_access.subscript.index.change" ]
133,631
133,632
u159790944
cpp
p02369
#include <functional> #include <iostream> #include <vector> using namespace std; bool cycle_detection(vector<vector<int>> &G) { vector<bool> vis(G.size()); function<bool(int, int, bool)> rec = [&](int pos, int start, bool flag) { if (pos == start && flag) return true; if (flag) vis[pos] = true; ...
#include <functional> #include <iostream> #include <vector> using namespace std; bool cycle_detection(vector<vector<int>> &G) { vector<bool> vis(G.size()); function<bool(int, int, bool)> rec = [&](int pos, int start, bool flag) { if (pos == start && flag) return true; if (flag) vis[pos] = true; ...
[ "control_flow.loop.for.condition.change", "call.arguments.change", "control_flow.branch.if.condition.change", "call.arguments.add" ]
133,633
133,634
u823513038
cpp
p02369
#include <algorithm> #include <cstdio> #include <stack> #include <utility> #include <vector> using namespace std; using Weight = long long; static const Weight INF = 1LL << 57; struct Edge { size_t src, dst; Weight weight; Edge() {} Edge(size_t src, size_t dst, Weight weight = 1) : src(src), dst(dst), ...
#include <algorithm> #include <cstdio> #include <stack> #include <utility> #include <vector> using namespace std; using Weight = long long; static const Weight INF = 1LL << 57; struct Edge { size_t src, dst; Weight weight; Edge() {} Edge(size_t src, size_t dst, Weight weight = 1) : src(src), dst(dst), ...
[ "control_flow.branch.if.condition.change", "variable_access.subscript.index.change", "call.arguments.change" ]
133,642
133,643
u144532944
cpp
p02369
#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; #define debug(x) \ cerr << #x << " = "...
#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; #define debug(x) \ cerr << #x << " = "...
[ "control_flow.branch.else.remove", "control_flow.branch.else_if.replace.remove", "control_flow.branch.if.replace.add", "control_flow.return.add" ]
133,644
133,645
u452212317
cpp
p02367
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #de...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #de...
[ "identifier.change", "call.arguments.change" ]
133,650
133,651
u214600613
cpp
p02367
#include <bits/stdc++.h> using namespace std; int V, E; vector<bool> visited; vector<int> depth, lowlink, pars; void dfs(vector<vector<int>> &G, int p, int u, int d) { visited[u] = true; pars[u] = p; depth[u] = lowlink[u] = d; for (auto v : G[u]) if (v != p) { if (!visited[v]) { dfs(G, u, v...
#include <bits/stdc++.h> using namespace std; int V, E; vector<bool> visited; vector<int> depth, lowlink, pars; void dfs(vector<vector<int>> &G, int p, int u, int d) { visited[u] = true; pars[u] = p; depth[u] = lowlink[u] = d; for (auto v : G[u]) if (v != p) { if (!visited[v]) { dfs(G, u, v...
[ "io.output.newline.add" ]
133,652
133,653
u063091489
cpp
p02367
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; struct Bridge { int n; vector<vector<int>> G; vector<int> low, used, depth; set<pair<int, int>> ans; Bridge() {} Bridge(int sz) : n(sz), low(sz), used(sz), depth(sz), G(sz) {} void add(int a, int b) { G[a].push_back(b); G[b].p...
#include <bits/stdc++.h> using namespace std; typedef pair<int, int> P; struct Bridge { int n; vector<vector<int>> G; vector<int> low, used, depth; set<pair<int, int>> ans; Bridge() {} Bridge(int sz) : n(sz), low(sz), used(sz), depth(sz), G(sz) {} void add(int a, int b) { G[a].push_back(b); G[b].p...
[ "io.output.change" ]
133,658
133,659
u962041986
cpp
p02367
#include <bits/stdc++.h> using namespace std; #ifdef _DEBUG #define _GLIBCXX_DEBUG #include "dump.hpp" #else #define dump(...) #endif //#define int long long // typedef __int128_t Int; #define DBG 1 #define rep(i, a, b) for (int i = (a); i < (b); i++) #define rrep(i, a, b) for (int i = (b)-1; i >= (a); i--) #define lo...
#include <bits/stdc++.h> using namespace std; #ifdef _DEBUG #define _GLIBCXX_DEBUG #include "dump.hpp" #else #define dump(...) #endif //#define int long long // typedef __int128_t Int; #define DBG 1 #define rep(i, a, b) for (int i = (a); i < (b); i++) #define rrep(i, a, b) for (int i = (b)-1; i >= (a); i--) #define lo...
[]
133,663
133,664
u927516039
cpp
p02368
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vint; typedef pair<int, int> pint; typedef vector<pint> vpint; #define rep(i, n) for (int i = 0; i < (n); i++) #define reps(i, f, n) for (int i = (f); i < (n); i++) #define each(it, v) ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<int> vint; typedef pair<int, int> pint; typedef vector<pint> vpint; #define rep(i, n) for (int i = 0; i < (n); i++) #define reps(i, f, n) for (int i = (f); i < (n); i++) #define each(it, v) ...
[ "identifier.change" ]
133,696
133,697
u094024113
cpp
p02368
#include <algorithm> #include <cassert> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <ctime> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string>...
#include <algorithm> #include <cassert> #include <climits> #include <cmath> #include <complex> #include <cstdio> #include <cstring> #include <ctime> #include <deque> #include <iomanip> #include <iostream> #include <limits> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <string>...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
133,699
133,700
u155634813
cpp
p02368
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <vector> using namespace std; const int MAX_N = 10000; const int V = 10000; vector<int> G[MAX_N]; vector<int> rG[MAX_N]; vector<int> vs; //??°????????????????????? bool used[MAX_N]; //?????§???????????????????????? int cmp[MAX_N...
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <vector> using namespace std; const int MAX_N = 10000; const int V = 10000; vector<int> G[MAX_N]; vector<int> rG[MAX_N]; vector<int> vs; //??°????????????????????? bool used[MAX_N]; //?????§???????????????????????? int cmp[MAX_N...
[ "identifier.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "assignment.value.change", "call.arguments.change" ]
133,701
133,702
u131811591
cpp
p02368
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <vector> using namespace std; const int MAX_N = 10000; const int V = 10000; vector<int> G[MAX_N]; vector<int> rG[MAX_N]; vector<int> vs; //??°????????????????????? bool used[MAX_N]; //?????§???????????????????????? int cmp[MAX_N...
#include <algorithm> #include <cstdio> #include <cstring> #include <iostream> #include <vector> using namespace std; const int MAX_N = 10000; const int V = 10000; vector<int> G[MAX_N]; vector<int> rG[MAX_N]; vector<int> vs; //??°????????????????????? bool used[MAX_N]; //?????§???????????????????????? int cmp[MAX_N...
[ "assignment.value.change", "identifier.change", "call.arguments.change" ]
133,703
133,702
u131811591
cpp
p02368
#include <bits/stdc++.h> using namespace std; struct SCC { int V; vector<vector<int>> G, rG; vector<int> vs, used, cmp; SCC() {} SCC(int sz) : V(sz), G(sz), rG(sz), used(sz), cmp(sz) {} void add(int from, int to) { G[from].push_back(to); rG[to].push_back(from); } void dfs(int v) { used[v] =...
#include <bits/stdc++.h> using namespace std; struct SCC { int V; vector<vector<int>> G, rG; vector<int> vs, used, cmp; SCC() {} SCC(int sz) : V(sz), G(sz), rG(sz), used(sz), cmp(sz) {} void add(int from, int to) { G[from].push_back(to); rG[to].push_back(from); } void dfs(int v) { used[v] =...
[ "identifier.change", "function.return_value.change" ]
133,705
133,706
u962041986
cpp
p02368
#include <cstdio> #include <map> #include <vector> using namespace std; vector<int> G[20000]; vector<int> rG[20000]; int id[20000]; int rid[20000]; int cid[20000]; void enume(int s, int &n) { if (id[s]) return; id[s] = -1; for (int t : G[s]) enume(t, n); id[s] = ++n; rid[n] = s; } void dfs(int s, in...
#include <cstdio> #include <map> #include <vector> using namespace std; vector<int> G[20000]; vector<int> rG[20000]; int id[20000]; int rid[20000]; int cid[20000]; void enume(int s, int &n) { if (id[s]) return; id[s] = -1; for (int t : G[s]) enume(t, n); id[s] = ++n; rid[n] = s; } void dfs(int s, in...
[ "variable_declaration.value.change", "identifier.change", "control_flow.loop.for.initializer.change" ]
133,709
133,710
u714639016
cpp
p02368
#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include <algorithm> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #includ...
#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include <algorithm> #include <cctype> #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #includ...
[ "control_flow.loop.for.condition.change" ]
133,711
133,712
u383459112
cpp
p02371
#include <iostream> #include <queue> #include <vector> using namespace std; static const int MAX = 10000; static const int INFTY = (1 << 30); int n; int d[MAX]; class Edge { public: int t, w; Edge() {} Edge(int t, int w) : t(t), w(w) {} }; vector<Edge> G[MAX]; void bfs(int s) { for (int i = 0; i < n; i++) {...
#include <iostream> #include <queue> #include <vector> using namespace std; static const int MAX = 100000; static const int INFTY = (1 << 20); int n; int d[MAX]; class Edge { public: int t, w; Edge() {} Edge(int t, int w) : t(t), w(w) {} }; vector<Edge> G[MAX]; void bfs(int s) { for (int i = 0; i < n; i++) ...
[ "literal.number.change", "variable_declaration.value.change", "expression.operation.binary.change" ]
133,736
133,737
u425503937
cpp
p02371
#include <iostream> #include <queue> #include <vector> using namespace std; static const int MAX = 10000; static const int INFTY = (1 << 20); int n; int d[MAX]; class Edge { public: int t, w; Edge() {} Edge(int t, int w) : t(t), w(w) {} }; vector<Edge> G[MAX]; void bfs(int s) { for (int i = 0; i < n; i++) {...
#include <iostream> #include <queue> #include <vector> using namespace std; static const int MAX = 100000; static const int INFTY = (1 << 20); int n; int d[MAX]; class Edge { public: int t, w; Edge() {} Edge(int t, int w) : t(t), w(w) {} }; vector<Edge> G[MAX]; void bfs(int s) { for (int i = 0; i < n; i++) ...
[ "literal.number.change", "variable_declaration.value.change" ]
133,738
133,737
u425503937
cpp
p02371
#include <bits/stdc++.h> using namespace std; struct edge { int to; int cost; edge(int a, int b) : to(a), cost(b) {} }; vector<vector<edge>> e; int N; pair<int, int> dfs(int p, int par = -1) { if (e[p].size() == 1 && p >= 0) return make_pair(0, p); pair<int, int> res = make_pair(0, p); for (auto x :...
#include <bits/stdc++.h> using namespace std; struct edge { int to; int cost; edge(int a, int b) : to(a), cost(b) {} }; vector<vector<edge>> e; int N; pair<int, int> dfs(int p, int par = -1) { if (e[p].size() == 1 && par > 0) return make_pair(0, p); pair<int, int> res = make_pair(0, p); for (auto x ...
[]
133,741
133,742
u076064701
cpp
p02371
#include <bits/stdc++.h> using namespace std; struct edge { int to; int cost; edge(int a, int b) : to(a), cost(b) {} }; vector<vector<edge>> e; int N; pair<int, int> dfs(int p, int par = -1) { if (e[p].size() == 1 && p >= 0) return make_pair(0, p); pair<int, int> res = make_pair(0, p); for (auto x :...
#include <bits/stdc++.h> using namespace std; struct edge { int to; int cost; edge(int a, int b) : to(a), cost(b) {} }; vector<vector<edge>> e; int N; pair<int, int> dfs(int p, int par = -1) { if (e[p].size() == 1 && par >= 0) return make_pair(0, p); pair<int, int> res = make_pair(0, p); for (auto x...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
133,741
133,743
u076064701
cpp
p02371
#include <bits/stdc++.h> using namespace std; struct edge { int to; int cost; edge(int a, int b) : to(a), cost(b) {} }; vector<vector<edge>> e; int N; pair<int, int> dfs(int p, int par = -1) { pair<int, int> res = make_pair(0, 0); for (auto x : e[p]) { if (x.to == par) continue; auto t = dfs...
#include <bits/stdc++.h> using namespace std; struct edge { int to; int cost; edge(int a, int b) : to(a), cost(b) {} }; vector<vector<edge>> e; int N; pair<int, int> dfs(int p, int par = -1) { pair<int, int> res = make_pair(0, p); for (auto x : e[p]) { if (x.to == par) continue; auto t = dfs...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
133,749
133,750
u076064701
cpp
p02371
#include <bits/stdc++.h> using namespace std; struct edge { int to; int cost; edge(int a, int b) : to(a), cost(b) {} }; vector<vector<edge>> e; int N; pair<int, int> dfs(int p, int par = -1) { pair<int, int> res = make_pair(0, -1); for (auto x : e[p]) { if (x.to == par) continue; auto t = df...
#include <bits/stdc++.h> using namespace std; struct edge { int to; int cost; edge(int a, int b) : to(a), cost(b) {} }; vector<vector<edge>> e; int N; pair<int, int> dfs(int p, int par = -1) { pair<int, int> res = make_pair(0, p); for (auto x : e[p]) { if (x.to == par) continue; auto t = dfs...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
133,751
133,750
u076064701
cpp
p02371
#include <bits/stdc++.h> using namespace std; struct edge { int to; int cost; edge(int a, int b) : to(a), cost(b) {} }; vector<vector<edge>> e; int N; pair<int, int> dfs(int p, int par = -1) { pair<int, int> res = make_pair(0, 0); for (auto x : e[p]) { if (x.to == par) continue; auto t = dfs...
#include <bits/stdc++.h> using namespace std; struct edge { int to; int cost; edge(int a, int b) : to(a), cost(b) {} }; vector<vector<edge>> e; int N; pair<int, int> dfs(int p, int par = -1) { pair<int, int> res(0, p); for (auto x : e[p]) { if (x.to == par) continue; auto t = dfs(x.to, p); ...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
133,749
133,752
u076064701
cpp
p02371
#include <bits/stdc++.h> using namespace std; struct edge { int to; int cost; edge(int a, int b) : to(a), cost(b) {} }; vector<vector<edge>> e; int N; pair<int, int> dfs(int p, int par = -1) { pair<int, int> res = make_pair(0, -1); for (auto x : e[p]) { if (x.to == par) continue; auto t = df...
#include <bits/stdc++.h> using namespace std; struct edge { int to; int cost; edge(int a, int b) : to(a), cost(b) {} }; vector<vector<edge>> e; int N; pair<int, int> dfs(int p, int par = -1) { pair<int, int> res(0, p); for (auto x : e[p]) { if (x.to == par) continue; auto t = dfs(x.to, p); ...
[ "identifier.replace.add", "literal.replace.remove", "call.arguments.change" ]
133,751
133,752
u076064701
cpp
p02371
#include <iostream> #include <vector> using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } struct Edge { int from, to, weight; Edge(int f, int t, int w) : from(f), to(t), weight(w) {} }; using Edges = vector<Edge>; using Graph = v...
#include <iostream> #include <vector> using namespace std; template <class T> inline bool chmax(T &a, T b) { if (a < b) { a = b; return true; } return false; } struct Edge { int from, to, weight; Edge(int f, int t, int w) : from(f), to(t), weight(w) {} }; using Edges = vector<Edge>; using Graph = v...
[ "call.arguments.add" ]
133,753
133,754
u290671130
cpp
p02371
#include <algorithm> #include <iostream> #include <vector> using namespace std; const int maxN = 1e5 + 100; int n, m; vector<pair<int, int>> g[maxN]; int mx1[maxN], mx2[maxN]; bool mark[maxN]; #define mp make_pair void input() { cin >> n; for (int i = 1; i <= n - 1; i++) { int k1, k2, w; cin >> k1 >> k2 >...
#include <algorithm> #include <iostream> #include <vector> using namespace std; const int maxN = 1e5 + 100; int n, m; vector<pair<int, int>> g[maxN]; int mx1[maxN], mx2[maxN]; bool mark[maxN]; #define mp make_pair void input() { cin >> n; for (int i = 1; i <= n - 1; i++) { int k1, k2, w; cin >> k1 >> k2 >...
[ "assignment.value.change", "identifier.replace.add", "literal.replace.remove", "variable_access.subscript.index.change", "call.arguments.change", "expression.operation.binary.change" ]
133,767
133,768
u499895902
cpp
p02371
#include <algorithm> #include <cstdio> #include <functional> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> #define ll long long #define inf 999999999 #define pa pair<int, int> using namespace std; int n; vector<pa> a[100100]; vector<pa> ed; int d[100100]; void dfs(int u, int...
#include <algorithm> #include <cstdio> #include <functional> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> #define ll long long #define inf 999999999 #define pa pair<int, int> using namespace std; int n; vector<pa> a[100100]; vector<pa> ed; int d[100100]; void dfs(int u, int...
[ "identifier.change", "io.output.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
133,771
133,772
u835414158
cpp
p02371
#include <algorithm> #include <cstdio> #include <functional> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> #define ll long long #define inf 999999999 #define pa pair<int, int> using namespace std; int n; vector<pa> a[100100]; vector<pa> ed; int d[100100]; void dfs(int u, int...
#include <algorithm> #include <cstdio> #include <functional> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> #define ll long long #define inf 999999999 #define pa pair<int, int> using namespace std; int n; vector<pa> a[100100]; vector<pa> ed; int d[100100]; void dfs(int u, int...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "identifier.change", "io.output.change", "misc.off_by_one" ]
133,773
133,772
u835414158
cpp
p02371
#include <algorithm> #include <cstdio> #include <functional> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> #define ll long long #define inf 999999999 #define pa pair<int, int> using namespace std; int n; vector<pa> a[100100]; vector<pa> ed; int d[100100]; void dfs(int u, int...
#include <algorithm> #include <cstdio> #include <functional> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> #define ll long long #define inf 999999999 #define pa pair<int, int> using namespace std; int n; vector<pa> a[100100]; vector<pa> ed; int d[100100]; void dfs(int u, int...
[ "control_flow.loop.for.condition.change", "expression.operation.binary.remove", "identifier.change", "io.output.change" ]
133,774
133,772
u835414158
cpp
p02371
#include <algorithm> #include <cstdio> #include <functional> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> #define ll long long #define inf 999999999 #define pa pair<int, int> using namespace std; int n; vector<pa> a[100100]; vector<pa> ed; int d[100100]; void dfs(int u, int...
#include <algorithm> #include <cstdio> #include <functional> #include <iostream> #include <map> #include <queue> #include <string> #include <vector> #define ll long long #define inf 999999999 #define pa pair<int, int> using namespace std; int n; vector<pa> a[100100]; vector<pa> ed; int d[100100]; void dfs(int u, int...
[ "identifier.change", "io.output.change" ]
133,776
133,772
u835414158
cpp
p02371
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #define pb push_back #...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #define pb push_back #...
[ "assignment.change" ]
133,781
133,782
u214600613
cpp
p02371
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #define pb push_back #...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #define pb push_back #...
[ "assignment.change" ]
133,783
133,782
u214600613
cpp
p02371
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #define pb push_back #...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #define pb push_back #...
[]
133,784
133,782
u214600613
cpp
p02371
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #define pb push_back #...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <iostream> #include <map> #include <queue> #include <set> #include <sstream> #include <string> #include <utility> #include <vector> #define loop(i, a, b) for (int i = a; i < b; i++) #define rep(i, a) loop(i, 0, a) #define pb push_back #...
[]
133,781
133,785
u214600613
cpp