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 |
|---|---|---|---|---|---|---|---|
p02578 | // #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef string str;
typedef long long ll;
typedef double db;
typedef pair<int, int> pii;
typedef map<int, int> mii;
typedef vector<int> vi;
typedef vector<bool> vb;
#define pb push_back
#define fi first
#define se second
#define in insert
#define... | // #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef string str;
typedef long long ll;
typedef double db;
typedef pair<int, int> pii;
typedef map<int, int> mii;
typedef vector<int> vi;
typedef vector<bool> vb;
#define pb push_back
#define fi first
#define se second
#define in insert
#define... | [
"variable_declaration.type.change"
] | 278,890 | 278,891 | u518027311 | cpp |
p02578 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define mod 1000000007
#define all(v) v.begin(), v.end()
#define pb push_back
#define size(v) (int)v.size()
#define fast \
ios_base::sync_with_stdio(false); ... |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define mod 1000000007
#define all(v) v.begin(), v.end()
#define pb push_back
#define size(v) (int)v.size()
#define fast \
ios_base::sync_with_stdio(false); ... | [
"assignment.change",
"call.arguments.change"
] | 278,892 | 278,893 | u742642200 | cpp |
p02578 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int ans = 0;
int a0 = 0;
for (int i = 0; i < n; ++i) {
int a;
cin >> a;
if (a < a0) {
ans += a0 - a;
a = a0;
}
a0 = a;
}
cout << ans << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
long long ans = 0;
int a0 = 0;
for (int i = 0; i < n; ++i) {
int a;
cin >> a;
if (a < a0) {
ans += a0 - a;
a = a0;
}
a0 = a;
}
cout << ans << endl;
return 0;
}
| [
"variable_declaration.type.primitive.change",
"variable_declaration.type.widen.change"
] | 278,894 | 278,895 | u346214077 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> pii;
int h, w;
pii C, D;
const int INF = 1e9;
char grid[1001][1001];
struct state {
int i, j, magicused;
state(int a = 0, int b = 0, int c = 0) {
i = ... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> pii;
int h, w;
pii C, D;
const int INF = 1e9;
char grid[1001][1001];
struct state {
int i, j, magicused;
state(int a = 0, int b = 0, int c = 0) {
i = ... | [
"literal.string.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 278,898 | 278,899 | u281053019 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w;
cin >> h >> w;
long long dx[4] = {0, 1, 0, -1};
long long dy[4] = {1, 0, -1, 0};
pair<int, int> c, d;
cin >> c.first >> c.second;
cin >> d.first >> d.second;
c.first--;
c.second--;
d.first--;
d.second--;
vector<string> a(h);
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w;
cin >> h >> w;
long long dx[4] = {0, 1, 0, -1};
long long dy[4] = {1, 0, -1, 0};
pair<int, int> c, d;
cin >> c.first >> c.second;
cin >> d.first >> d.second;
c.first--;
c.second--;
d.first--;
d.second--;
vector<string> a(h);
... | [
"control_flow.branch.if.condition.change",
"identifier.change"
] | 278,913 | 278,914 | u161616073 | cpp |
p02579 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iomanip> //double精度 setprecision
#include <iostream>
#include <map>
#include <numeric> //lcm
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
//#include <atcoder/all>
using namespace std;
// using namespace atcoder;
... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iomanip> //double精度 setprecision
#include <iostream>
#include <map>
#include <numeric> //lcm
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
//#include <atcoder/all>
using namespace std;
// using namespace atcoder;
... | [
"literal.number.change",
"io.output.change"
] | 278,922 | 278,923 | u829737781 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PRINT(a) cout << (a) << endl
#define pb push_back
#define eb emplace_back
#define mp make_pair
#defin... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PRINT(a) cout << (a) << endl
#define pb push_back
#define eb emplace_back
#define mp make_pair
#defin... | [
"call.function.change",
"identifier.change",
"expression.operation.binary.change"
] | 278,924 | 278,925 | u868089307 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
#define INF 12345678
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int h, w;
cin >> h >> w;
int ch, cw, dh, dw;
cin >> ch >> cw >> dh >> dw;
ch--;
cw--;
dh--;
dw--;
vector<vector<char>> s(h, vector<char>(w));
for (int i = 0; i < h; i++) {
... | #include <bits/stdc++.h>
using namespace std;
#define INF 12345678
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int h, w;
cin >> h >> w;
int ch, cw, dh, dw;
cin >> ch >> cw >> dh >> dw;
ch--;
cw--;
dh--;
dw--;
vector<vector<char>> s(h, vector<char>(w));
for (int i = 0; i < h; i++) {
... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.branch.if.condition.change"
] | 278,928 | 278,929 | u989336028 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
#define ALL(x) x.begin(), x.end()
#define RALL(x) x.rbegin(), x.rend()
#define MP make_pair
#define PB push_back
#define X first
#define Y second
typedef long long int lld;
typedef pair<int, int> pii;
typedef pair<lld, lld> pll;
const int maxn = (int)1e3 + 5;
const int ... | #include <bits/stdc++.h>
using namespace std;
#define ALL(x) x.begin(), x.end()
#define RALL(x) x.rbegin(), x.rend()
#define MP make_pair
#define PB push_back
#define X first
#define Y second
typedef long long int lld;
typedef pair<int, int> pii;
typedef pair<lld, lld> pll;
const int maxn = (int)1e3 + 5;
const int ... | [
"identifier.change",
"call.arguments.change"
] | 278,930 | 278,931 | u835820697 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int, int>;
#define FOR(i, a, b) for (int i = a; i < b; ++i)
#define FORR(i, a, b) for (int i = b - 1; i >= a; --i)
#define REP(i, n) FOR(i, 0, n)
#define REPR(i, n) FORR(i, 0,... | #include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int, int>;
#define FOR(i, a, b) for (int i = a; i < b; ++i)
#define FORR(i, a, b) for (int i = b - 1; i >= a; --i)
#define REP(i, n) FOR(i, 0, n)
#define REPR(i, n) FORR(i, 0,... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 278,945 | 278,946 | u234015814 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
char s[1010][1010];
ll dis[1010][1010];
bool f[1010][1010];
int main() {
ll h, w, sy, sx, gy, gx;
cin >> h >> w >> sy >> sx >> gy >> gx;
for (int i = 1; i <= h; i++)
for (int j = 1; j <= w; j++) {
cin >> s[i][j];
dis[i][j] = 1e9;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
char s[1010][1010];
ll dis[1010][1010];
bool f[1010][1010];
int main() {
ll h, w, sy, sx, gy, gx;
cin >> h >> w >> sy >> sx >> gy >> gx;
for (int i = 1; i <= h; i++)
for (int j = 1; j <= w; j++) {
cin >> s[i][j];
dis[i][j] = 1e9;
... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"assignment.variable.change",
"expression.operation.binary.change"
] | 278,953 | 278,954 | u774202056 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
char s[1010][1010];
ll dis[1010][1010];
bool f[1010][1010];
int main() {
ll h, w, sy, sx, gy, gx;
cin >> h >> w >> sy >> sx >> gy >> gx;
for (int i = 1; i <= h; i++)
for (int j = 1; j <= w; j++) {
cin >> s[i][j];
dis[i][j] = 1e9;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
char s[1010][1010];
ll dis[1010][1010];
bool f[1010][1010];
int main() {
ll h, w, sy, sx, gy, gx;
cin >> h >> w >> sy >> sx >> gy >> gx;
for (int i = 1; i <= h; i++)
for (int j = 1; j <= w; j++) {
cin >> s[i][j];
dis[i][j] = 1e9;
... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"assignment.variable.change",
"expression.operation.binary.change"
] | 278,955 | 278,954 | u774202056 | cpp |
p02579 | #include <bits/stdc++.h>
// tabaicho see https://boostjp.github.io/tips/multiprec-int.html
// #include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
// cpp_int
// int128_t
// int256_t
// int512_t
// int1024_t
// uint128_t
// uint256_t
// uint512_t
// uint1024_t
#define int long long
... | #include <bits/stdc++.h>
// tabaicho see https://boostjp.github.io/tips/multiprec-int.html
// #include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
// cpp_int
// int128_t
// int256_t
// int512_t
// int1024_t
// uint128_t
// uint256_t
// uint512_t
// uint1024_t
#define int long long
... | [] | 279,005 | 279,006 | u834777932 | cpp |
p02579 | #include <bits/stdc++.h>
#define fastio() \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define N 1005
using namespace std;
const int inf = 1e7;
char grid[N][N];
priority_queue<tuple<int, int, int>> q;
in... | #include <bits/stdc++.h>
#define fastio() \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define N 1005
using namespace std;
const int inf = 1e7;
char grid[N][N];
priority_queue<tuple<int, int, int>> q;
in... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 279,059 | 279,060 | u719873358 | cpp |
p02579 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define FAST \
ios_base::sync_with_stdio(false); \
cin.tie(0);
const double EPS = 1e-9;
const double PI = acos(-1);
const int knightDir[8]... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define FAST \
ios_base::sync_with_stdio(false); \
cin.tie(0);
const double EPS = 1e-9;
const double PI = acos(-1);
const int knightDir[8]... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"control_flow.branch.else.remove",
"control_flow.loop.condition.change"
] | 279,090 | 279,091 | u782976395 | cpp |
p02579 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define FAST \
ios_base::sync_with_stdio(false); \
cin.tie(0);
const double EPS = 1e-9;
const double PI = acos(-1);
const int knightDir[8]... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define FAST \
ios_base::sync_with_stdio(false); \
cin.tie(0);
const double EPS = 1e-9;
const double PI = acos(-1);
const int knightDir[8][... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.condition.change",
"assignment.value.change"
] | 279,090 | 279,093 | u782976395 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
using pint = pair<int, int>;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
const int MOD = 1000000009;
const long long INF = 1LL << 60;
int main() {
int H, W;
cin >> H >> W;
pint s;
cin >> s.first >>... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
using pint = pair<int, int>;
int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};
const int MOD = 1000000009;
const long long INF = 1LL << 60;
int main() {
int H, W;
cin >> H >> W;
pint s;
cin >> s.first >>... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 279,095 | 279,096 | u998732100 | cpp |
p02579 | #include <bits/stdc++.h>
#define f(i, a, b, c) for (int i = a; i < b; i += c)
#define fr(i, a, b, c) for (int i = a; i >= b; i -= c)
#define fit(it, v) for (auto it = v.begin(); it != v.end(); ++it)
#define frit(it, v) for (auto it = v.rbegin(); it != v.rend(); ++it)
#define all(v) v.begin(), v.end()
#define allr(v) v... | #include <bits/stdc++.h>
#define f(i, a, b, c) for (int i = a; i < b; i += c)
#define fr(i, a, b, c) for (int i = a; i >= b; i -= c)
#define fit(it, v) for (auto it = v.begin(); it != v.end(); ++it)
#define frit(it, v) for (auto it = v.rbegin(); it != v.rend(); ++it)
#define all(v) v.begin(), v.end()
#define allr(v) v... | [] | 279,101 | 279,102 | u907172631 | cpp |
p02579 | /* ###########################
# Author : Pranay Garg #
# College : SGSITS #
###########################
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define ll long long int
#define ull unsigned long long int
#define ironman ... | /* ###########################
# Author : Pranay Garg #
# College : SGSITS #
###########################
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define ll long long int
#define ull unsigned long long int
#define ironman ... | [
"literal.number.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"variable_declaration.name.change",
"identifier.change"
] | 279,155 | 279,156 | u374444191 | cpp |
p02579 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
using ll = long long;
using db = double;
///***************************************************** CONSTANTS
///******************************************************//... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
using ll = long long;
using db = double;
///***************************************************** CONSTANTS
///******************************************************//... | [
"literal.number.change",
"assignment.value.change",
"control_flow.branch.if.condition.change"
] | 279,171 | 279,172 | u424277585 | cpp |
p02579 | #include <algorithm>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
const int inf = 0x3f3f3f3f;
typedef pair<int, int> pii;
int G[1005][1005];
int cost[1005][1005];
int n, m;
int stx, sty, edx, edy;
int op[4][2] = {{0, 1}, {0, -1}, {-1, 0}, {1, 0}};
void show(void) {
for (int i = 1; i <... | #include <algorithm>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
const int inf = 0x3f3f3f3f;
typedef pair<int, int> pii;
int G[1005][1005];
int cost[1005][1005];
int n, m;
int stx, sty, edx, edy;
int op[4][2] = {{0, 1}, {0, -1}, {-1, 0}, {1, 0}};
void show(void) {
for (int i = 1; i <... | [
"call.remove"
] | 279,182 | 279,183 | u467285925 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define fastio() \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define fastio() \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | [
"literal.number.change",
"call.arguments.change"
] | 279,187 | 279,188 | u946009151 | cpp |
p02579 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) v.begin(), v.end()
#define len(x) (ll)(x).length()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1e9;
const int di[] = {-1, 0, 1, 0};
const int dj[] = {0, -1, 0, 1};
int main() {
int h, w;
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) v.begin(), v.end()
#define len(x) (ll)(x).length()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1e9;
const int di[] = {-1, 0, 1, 0};
const int dj[] = {0, -1, 0, 1};
int main() {
int h, w;
... | [
"call.function.change",
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 279,223 | 279,222 | u818755983 | cpp |
p02579 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) v.begin(), v.end()
#define len(x) (ll)(x).length()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1e9;
const int di[] = {-1, 0, 1, 0};
const int dj[] = {0, -1, 0, 1};
int main() {
int h, w;
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define all(v) v.begin(), v.end()
#define len(x) (ll)(x).length()
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
const int INF = 1e9;
const int di[] = {-1, 0, 1, 0};
const int dj[] = {0, -1, 0, 1};
int main() {
int h, w;
... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one",
"call.function.change",
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 279,224 | 279,222 | u818755983 | cpp |
p02579 | #include <bits/stdc++.h> // This will work only for g++ compiler.
#include <ext/pb_ds/assoc_container.hpp> // Used to include policy based data structure
using namespace __gnu_pbds; // Only for g++ compiler
using namespace std;
#define for0(i, n) for (int i = 0; i < (int)(n); ++i) // 0 based indexing
#de... | #include <bits/stdc++.h> // This will work only for g++ compiler.
#include <ext/pb_ds/assoc_container.hpp> // Used to include policy based data structure
using namespace __gnu_pbds; // Only for g++ compiler
using namespace std;
#define for0(i, n) for (int i = 0; i < (int)(n); ++i) // 0 based indexing
#de... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 279,227 | 279,228 | u036870695 | cpp |
p02579 | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <memory>
#include <queue>
#inc... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <memory>
#include <queue>
#inc... | [] | 279,244 | 279,245 | u947236878 | cpp |
p02579 | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <memory>
#include <queue>
#inc... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <memory>
#include <queue>
#inc... | [
"variable_declaration.type.change"
] | 279,247 | 279,248 | u947236878 | cpp |
p02579 | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <memory>
#include <queue>
#inc... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <memory>
#include <queue>
#inc... | [] | 279,249 | 279,248 | u947236878 | cpp |
p02579 | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <memory>
#include <queue>
#inc... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <memory>
#include <queue>
#inc... | [] | 279,250 | 279,251 | u947236878 | cpp |
p02579 | #include <cmath>
#include <iostream>
#include <queue>
using namespace std;
bool is_integer(double x) { return floor(x) == ceil(x); }
class Move {
public:
int w;
int h;
int warp;
};
int main() {
int h, w;
int ch, cw, dh, dw;
char s[1001][1001] = {'#'};
cin >> h >> w >> ch >> cw >> dh >> dw;
for (int i = ... | #include <cmath>
#include <iostream>
#include <queue>
using namespace std;
bool is_integer(double x) { return floor(x) == ceil(x); }
class Move {
public:
int w;
int h;
int warp;
};
int main() {
int h, w;
int ch, cw, dh, dw;
char s[1001][1001] = {'#'};
cin >> h >> w >> ch >> cw >> dh >> dw;
for (int i = ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 279,283 | 279,284 | u693953100 | cpp |
p02579 | #include <bits/stdc++.h>
#include <iostream>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int di[] = {-1, 0, 1, 0};
const int dj[] = {0, 1, 0, -1};
int main() {
int h, w;
cin >> h >> w;
int ch, cw;
cin >> ch >> cw;
int dh, dw;
cin... | #include <bits/stdc++.h>
#include <iostream>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
const int di[] = {-1, 0, 1, 0};
const int dj[] = {0, 1, 0, -1};
int main() {
int h, w;
cin >> h >> w;
int ch, cw;
cin >> ch >> cw;
int dh, dw;
cin... | [
"identifier.change",
"expression.operation.binary.change"
] | 279,309 | 279,310 | u825099493 | cpp |
p02579 | #if loc || local
#define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using ll = int_fast64_t;
using pll = pair<ll, ll>;
constexpr ll INF = 1LL << 60;
constexpr ll MOD = 1e9 + 7;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
... | #if loc || local
#define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (ll i = 0; i < (n); ++i)
using ll = int_fast64_t;
using pll = pair<ll, ll>;
constexpr ll INF = 1LL << 60;
constexpr ll MOD = 1e9 + 7;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 279,323 | 279,324 | u423624748 | cpp |
p02579 | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = int;
const ll MOD = 1000000007;
// const ll MOD=998244353;
const long long INF = 1 << 30;
const double pi = acos(-1.0);
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
... | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = int;
const ll MOD = 1000000007;
// const ll MOD=998244353;
const long long INF = 1 << 30;
const double pi = acos(-1.0);
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {... | [] | 279,341 | 279,342 | u605687528 | cpp |
p02579 | #include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
int a[1010][1010], f[1010][1010], u[4] = {-1, 1, 0, 0}, v[4] = {0, 0, 1, -1};
deque<pair<int, int>> q;
int n, m, x1, y1, x2, y2;
char s;
int main() {
int i, j, t1, t2, x0, y0;
cin >> n >> m;
memset(f, 10, sizeof(f));
... | #include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
using namespace std;
int a[1010][1010], f[1010][1010], u[4] = {-1, 1, 0, 0}, v[4] = {0, 0, 1, -1};
deque<pair<int, int>> q;
int n, m, x1, y1, x2, y2;
char s;
int main() {
int i, j, t1, t2, x0, y0;
cin >> n >> m;
memset(f, 10, sizeof(f));
... | [
"identifier.change",
"call.arguments.change"
] | 279,343 | 279,344 | u558647011 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
#define rep2(i, m, n) for (int i = (m); i < (n); ++i)
#define rep(i, n) rep2(i, 0, n)
typedef long long int ll;
typedef long double ld;
typedef pair<int, int> P;
template <typename T> struct V : vector<T> { using vector<T>::vector; };
V()->V<int>;
V(size_t)->V<int>;
templat... | #include <bits/stdc++.h>
using namespace std;
#define rep2(i, m, n) for (int i = (m); i < (n); ++i)
#define rep(i, n) rep2(i, 0, n)
typedef long long int ll;
typedef long double ld;
typedef pair<int, int> P;
template <typename T> struct V : vector<T> { using vector<T>::vector; };
V()->V<int>;
V(size_t)->V<int>;
templat... | [
"identifier.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 279,399 | 279,398 | u389007679 | cpp |
p02579 | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define REP(a, b) for (int a = 0; a < (b); ++a)
#define REP1(i, n) for (int i = 1; i <= (n); ++i)
#define debug(x) cerr << #x << ": " << x << '\n'
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define YES() pri... | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define REP(a, b) for (int a = 0; a < (b); ++a)
#define REP1(i, n) for (int i = 1; i <= (n); ++i)
#define debug(x) cerr << #x << ": " << x << '\n'
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define YES() pri... | [
"identifier.change",
"expression.operation.binary.change"
] | 279,406 | 279,407 | u311671153 | cpp |
p02579 | /**
* @copyright (c) 2020 Daisuke Hashimoto
*/
#include <bits/stdc++.h>
using namespace std;
using Pair = pair<int64_t, int64_t>;
constexpr int64_t kInf = INT64_MAX / 2L;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int64_t H, W;
cin >> H >> W;
int64_t start_r, start_c;
cin >> start_r >> start... | /**
* @copyright (c) 2020 Daisuke Hashimoto
*/
#include <bits/stdc++.h>
using namespace std;
using Pair = pair<int64_t, int64_t>;
constexpr int64_t kInf = INT64_MAX / 2L;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int64_t H, W;
cin >> H >> W;
int64_t start_r, start_c;
cin >> start_r >> start... | [
"expression.operation.unary.add",
"call.arguments.change"
] | 279,418 | 279,419 | u394961950 | cpp |
p02579 | /**
* @copyright (c) 2020 Daisuke Hashimoto
*/
#include <bits/stdc++.h>
using namespace std;
using Pair = pair<int64_t, int64_t>;
constexpr int64_t kInf = INT64_MAX / 2L;
// std::cout << std::setprecision(20) << 1.1 << endl;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int64_t H, W;
cin >> H >> W... | /**
* @copyright (c) 2020 Daisuke Hashimoto
*/
#include <bits/stdc++.h>
using namespace std;
using Pair = pair<int64_t, int64_t>;
constexpr int64_t kInf = INT64_MAX / 2L;
// std::cout << std::setprecision(20) << 1.1 << endl;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int64_t H, W;
cin >> H >> W... | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change"
] | 279,420 | 279,421 | u394961950 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
#define int ll
#define ll long long
#define I32_MAX 2147483647
#define I64_MAX 9223372036854775807LL
#define I64_MAX2 1223372036854775807LL
#define INF I64_MAX2
// #define MOD 1000000007
#define MOD 998244353
#define MEM_SIZE 101010
#define DEBUG_OUT true
#define ALL(x) (... | #include <bits/stdc++.h>
using namespace std;
#define int ll
#define ll long long
#define I32_MAX 2147483647
#define I64_MAX 9223372036854775807LL
#define I64_MAX2 1223372036854775807LL
#define INF I64_MAX2
// #define MOD 1000000007
#define MOD 998244353
#define MEM_SIZE 101010
#define DEBUG_OUT true
#define ALL(x) (... | [
"variable_declaration.name.change",
"identifier.change"
] | 279,423 | 279,424 | u221285045 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
#define int ll
#define ll long long
#define I32_MAX 2147483647
#define I64_MAX 9223372036854775807LL
#define I64_MAX2 1223372036854775807LL
#define INF I64_MAX2
// #define MOD 1000000007
#define MOD 998244353
#define MEM_SIZE 101010
#define DEBUG_OUT true
#define ALL(x) (... | #include <bits/stdc++.h>
using namespace std;
#define int ll
#define ll long long
#define I32_MAX 2147483647
#define I64_MAX 9223372036854775807LL
#define I64_MAX2 1223372036854775807LL
#define INF I64_MAX2
// #define MOD 1000000007
#define MOD 998244353
#define MEM_SIZE 101010
#define DEBUG_OUT true
#define ALL(x) (... | [
"variable_declaration.name.change",
"identifier.change",
"expression.operation.unary.arithmetic.remove",
"control_flow.branch.if.condition.change"
] | 279,425 | 279,424 | u221285045 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
#define int ll
#define ll long long
#define I32_MAX 2147483647
#define I64_MAX 9223372036854775807LL
#define I64_MAX2 1223372036854775807LL
#define INF I64_MAX2
// #define MOD 1000000007
#define MOD 998244353
#define MEM_SIZE 101010
#define DEBUG_OUT true
#define ALL(x) (... | #include <bits/stdc++.h>
using namespace std;
#define int ll
#define ll long long
#define I32_MAX 2147483647
#define I64_MAX 9223372036854775807LL
#define I64_MAX2 1223372036854775807LL
#define INF I64_MAX2
// #define MOD 1000000007
#define MOD 998244353
#define MEM_SIZE 101010
#define DEBUG_OUT true
#define ALL(x) (... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change",
"variable_declaration.name.change",
"expression.operation.unary.arithmetic.remove",
"control_flow.branch.if.condition.change"
] | 279,426 | 279,424 | u221285045 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pld pair<long double, int>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pb push_back
#define ff first
#define ss second
#define SZ(x) ((int)(x).size())
#define ld long double
mt19937 rng(chrono::steady_clock::now().time_since_epoc... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pld pair<long double, int>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define pb push_back
#define ff first
#define ss second
#define SZ(x) ((int)(x).size())
#define ld long double
mt19937 rng(chrono::steady_clock::now().time_since_epoc... | [
"misc.opposites",
"expression.operator.compare.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 279,453 | 279,454 | u827016215 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define f first
#define s second
ll a, b, c, d, h, w;
ll xDir[4] = {0, 0, -1, 1};
ll yDir[4] = {1, -1, 0, 0};
bool mat[1005][1005];
bool visited[1005][1005];
string s;
bool isValid(ll x, ll y) { return x >= 0 && x < h && y >= 0 && y < w; }
void solv... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define f first
#define s second
ll a, b, c, d, h, w;
ll xDir[4] = {0, 0, -1, 1};
ll yDir[4] = {1, -1, 0, 0};
bool mat[1005][1005];
bool visited[1005][1005];
string s;
bool isValid(ll x, ll y) { return x >= 0 && x < h && y >= 0 && y < w; }
void solv... | [
"call.function.change"
] | 279,471 | 279,472 | u978693879 | cpp |
p02579 | #pragma target("avx")
#pragma optimize("O3")
#include <bits/stdc++.h>
using ll = int_fast64_t;
using P = std::pair<ll, ll>;
using PP = std::pair<P, ll>;
using V = std::vector<ll>;
#define REP(i, b, e) for (ll i = b; i < e; i++)
#define fi first
#define se second
int dx[] = {0, 1, 0, -1, 1, 1, -1, -1}, dy[] = {1, 0, -... | #pragma target("avx")
#pragma optimize("O3")
#include <bits/stdc++.h>
using ll = int_fast64_t;
using P = std::pair<ll, ll>;
using PP = std::pair<P, ll>;
using V = std::vector<ll>;
#define REP(i, b, e) for (ll i = b; i < e; i++)
#define fi first
#define se second
int dx[] = {0, 1, 0, -1, 1, 1, -1, -1}, dy[] = {1, 0, -... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 279,489 | 279,490 | u242031676 | cpp |
p02579 | // Think simple yet elegant.
#include <bits/stdc++.h>
using namespace std;
#define fast \
ios::sync_with_stdio(0); \
cin.tie(0); \
... | // Think simple yet elegant.
#include <bits/stdc++.h>
using namespace std;
#define fast \
ios::sync_with_stdio(0); \
cin.tie(0); \
... | [
"identifier.change",
"call.arguments.change"
] | 279,511 | 279,510 | u159548042 | cpp |
p02579 | // Think simple yet elegant.
#include <bits/stdc++.h>
using namespace std;
#define fast \
ios::sync_with_stdio(0); \
cin.tie(0); \
... | // Think simple yet elegant.
#include <bits/stdc++.h>
using namespace std;
#define fast \
ios::sync_with_stdio(0); \
cin.tie(0); \
... | [
"identifier.change",
"call.arguments.change"
] | 279,509 | 279,512 | u159548042 | cpp |
p02579 | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#def... | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#def... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.change"
] | 279,560 | 279,559 | u108648546 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define ff first
#define ss second
typedef long long ll;
ll power(ll a, ll b) { // a^b
ll res = 1;
a = a % MOD;
while (b > 0) {
if (b & 1) {
res = (res * a) % MOD;
b--;
}
a = (a * a) % MOD;
b >>= 1;
}
return res;
... | #include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
#define ff first
#define ss second
typedef long long ll;
ll power(ll a, ll b) { // a^b
ll res = 1;
a = a % MOD;
while (b > 0) {
if (b & 1) {
res = (res * a) % MOD;
b--;
}
a = (a * a) % MOD;
b >>= 1;
}
return res;
... | [
"control_flow.loop.for.condition.change"
] | 279,581 | 279,582 | u392529716 | cpp |
p02579 | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
using P = pair<int, pair<int, int>>;
int dx1[] = {-1, 0, 0, 1};
int dy1[] = {0, 1, -1, 0};
int main() {
int h, w;
cin >> h >> w;
int ch, cw, dh, dw;
cin >> ch >> cw;
cin >> dh >> dw;
vector<st... | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using namespace std;
using P = pair<int, pair<int, int>>;
int dx1[] = {-1, 0, 0, 1};
int dy1[] = {0, 1, -1, 0};
int main() {
int h, w;
cin >> h >> w;
int ch, cw, dh, dw;
cin >> ch >> cw;
cin >> dh >> dw;
vector<st... | [
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 279,605 | 279,606 | u828593789 | cpp |
p02579 | //#include <bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define io ios::sync_with_stdio(false)
using namespace std;
typedef long long ll... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <deque>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define io ios::sync_with_stdio(false)
using namespace std;
typedef long long ll;
const int inf = 0x3f3f3f3... | [
"call.function.change"
] | 279,641 | 279,642 | u469430461 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define INF 1e9
#define PB push_back
#define PF push_front
#define fi first
#define se second
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vi vector<int>
#define vpi vector<pii>
#define vll vector<ll>
#define vpl... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define INF 1e9
#define PB push_back
#define PF push_front
#define fi first
#define se second
#define pii pair<int, int>
#define pll pair<ll, ll>
#define vi vector<int>
#define vpi vector<pii>
#define vll vector<ll>
#define vpl... | [
"literal.number.change"
] | 279,654 | 279,655 | u110044127 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = 1001001001;
int main() {
int h, w;
cin >> h >> w;
int ch, dh, cw, dw;
cin >> ch >> cw >> dh >> dw;
ch--;
cw--;
dh--;
dw--;
vector<string> s(h);
for (int i = 0; i < h; ++i)
cin >> s[i];
vector<vector<int>> dis... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = 1001001001;
int main() {
int h, w;
cin >> h >> w;
int ch, dh, cw, dw;
cin >> ch >> cw >> dh >> dw;
ch--;
cw--;
dh--;
dw--;
vector<string> s(h);
for (int i = 0; i < h; ++i)
cin >> s[i];
vector<vector<int>> dis... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 279,662 | 279,663 | u679366464 | cpp |
p02579 | #include <algorithm>
#include <cstring>
#include <iostream>
#include <queue>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
constexpr int inf = 100000000;
struct Point {
Point(){};
Point(int h_, int w_) : h(h_), w... |
#include <algorithm>
#include <cstring>
#include <iostream>
#include <queue>
#include <string>
#include <utility>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
constexpr int inf = 100000000;
struct Point {
Point(){};
Point(int h_, int w_) : h(h_), ... | [
"literal.number.change",
"io.output.change"
] | 279,683 | 279,684 | u965093879 | cpp |
p02579 | #include <bits/stdc++.h>
#include <random>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define ll long long
#define fr first
#define sc second
#define pll pair<ll, ll>
#define all(v) v.begin(), v.end()
int H, W;
int sy, sx, gy, gx;
string arr[1000];
int dist[1000][1000];
int dy[] = {0, 0, -... | #include <bits/stdc++.h>
#include <random>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define ll long long
#define fr first
#define sc second
#define pll pair<ll, ll>
#define all(v) v.begin(), v.end()
int H, W;
int sy, sx, gy, gx;
string arr[1000];
int dist[1000][1000];
int dy[] = {0, 0, -... | [
"call.arguments.add",
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 279,707 | 279,708 | u798753617 | cpp |
p02579 | //---------------------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <numeric>
#include <sstream>
#include <vector>
//... | //---------------------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <numeric>
#include <sstream>
#include <vector>
//... | [
"assignment.value.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 279,719 | 279,720 | u825601908 | cpp |
p02579 | //---------------------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <numeric>
#include <sstream>
#include <vector>
//... | //---------------------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <numeric>
#include <sstream>
#include <vector>
//... | [
"call.arguments.change",
"assignment.value.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 279,721 | 279,720 | u825601908 | cpp |
p02579 | #include <deque>
#include <iostream>
#include <limits>
constexpr int N = 1000;
constexpr int M = 1000;
char map[N + 2][M + 2];
int dist[N + 2][M + 2];
struct point_t {
int x, y;
};
/*
.#.
1 3
1 1
3 1
.#.
*/
int main() {
int H, W;
std::cin >> H >> W;
point_t maze, target;
std::cin >> maze.x >> maze.y;
st... | #include <deque>
#include <iostream>
#include <limits>
constexpr int N = 1000;
constexpr int M = 1000;
char map[N + 2][M + 2];
int dist[N + 2][M + 2];
struct point_t {
int x, y;
};
int main() {
int H, W;
std::cin >> H >> W;
point_t maze, target;
std::cin >> maze.y >> maze.x;
std::cin >> target.y >> target... | [
"expression.operation.binary.change"
] | 279,746 | 279,747 | u314062912 | cpp |
p02579 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int n, m;
bool safe(int x, int y) { return x >= 0 && x < n && y >= 0 && y < m; }
int main() {
//... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int n, m;
bool safe(int x, int y) { return x >= 0 && x < n && y >= 0 && y < m; }
int main() {
//... | [
"control_flow.branch.if.condition.change"
] | 279,817 | 279,818 | u619248223 | cpp |
p02579 | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <se... | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <se... | [
"call.function.change"
] | 279,823 | 279,824 | u727064118 | cpp |
p02579 | #include <bits/stdc++.h>
#define ALL(x) (x).begin(), (x).end()
#define RALL(x) (x).rbegin(), (x).rend()
#define FSP(x) fixed << setprecision(x)
using namespace std;
using ll = long long;
constexpr ll INF = LLONG_MAX;
constexpr long double PI = acosl(-1);
void Yes() { cout << "Yes\n"; }
void No() { cout << "No\n"; }
voi... | #include <bits/stdc++.h>
#define ALL(x) (x).begin(), (x).end()
#define RALL(x) (x).rbegin(), (x).rend()
#define FSP(x) fixed << setprecision(x)
using namespace std;
using ll = long long;
constexpr ll INF = LLONG_MAX;
constexpr long double PI = acosl(-1);
void Yes() { cout << "Yes\n"; }
void No() { cout << "No\n"; }
voi... | [
"identifier.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 279,833 | 279,834 | u071019032 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, m, n) for (ll i = (ll)(m); i < (ll)(n); i++)
#define fi first
#define se second
long long mo = 1e9 + 7;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> Pii;
typedef pair<ll, ll> Pll;
typedef p... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(i, m, n) for (ll i = (ll)(m); i < (ll)(n); i++)
#define fi first
#define se second
long long mo = 1e9 + 7;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> Pii;
typedef pair<ll, ll> Pll;
typedef p... | [] | 279,865 | 279,866 | u601256797 | cpp |
p02579 | #include <sys/time.h>
#include <algorithm>
#include <cctype>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<int, i... | #include <sys/time.h>
#include <algorithm>
#include <cctype>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<int, i... | [
"assignment.change"
] | 279,889 | 279,890 | u389009751 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define loop(__x, __start, __end) for (int __x = __start; __x < __end; __x++)
typedef tuple<int, int, int> P;
vector<pair<int, int>> DXDY{{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
const int INF = 10000000;
int main() {
int sx, sy, tx, ty;
int h, w;
ci... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define loop(__x, __start, __end) for (int __x = __start; __x < __end; __x++)
typedef tuple<int, int, int> P;
vector<pair<int, int>> DXDY{{1, 0}, {-1, 0}, {0, 1}, {0, -1}};
const int INF = 10000000;
int main() {
int sx, sy, tx, ty;
int h, w;
ci... | [
"variable_declaration.name.change",
"identifier.change"
] | 279,922 | 279,923 | u823862638 | cpp |
p02579 | #include <bits/stdc++.h>
#define ll long long int
#define vec vector<ll>
#define mat vector<vec>
using namespace std;
const ll mod = 1000000007;
const ll inf = LONG_LONG_MAX;
ll dx[4] = {1, 0, -1, 0};
ll dy[4] = {0, -1, 0, 1};
ll dx8[8] = {1, 0, -1, 1, -1, 1, 0, -1};
ll dy8[8] = {1, 1, 1, 0, 0, -1, -1, -1};
int main... | #include <bits/stdc++.h>
#define ll long long int
#define vec vector<ll>
#define mat vector<vec>
using namespace std;
const ll mod = 1000000007;
const ll inf = LONG_LONG_MAX;
ll dx[4] = {1, 0, -1, 0};
ll dy[4] = {0, -1, 0, 1};
ll dx8[8] = {1, 0, -1, 1, -1, 1, 0, -1};
ll dy8[8] = {1, 1, 1, 0, 0, -1, -1, -1};
int main... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 279,924 | 279,925 | u016987091 | cpp |
p02579 | #include <bits/stdc++.h>
using namespace std;
template <typename T, typename U> using pv = vector<pair<T, U>>;
template <typename T> using matrix = vector<vector<T>>;
template <typename T> using pque = priority_queue<T>;
template <typename T> using lpque = priority_queue<T, vector<T>, greater<T>>;
using ll = long lon... | #include <bits/stdc++.h>
using namespace std;
template <typename T, typename U> using pv = vector<pair<T, U>>;
template <typename T> using matrix = vector<vector<T>>;
template <typename T> using pque = priority_queue<T>;
template <typename T> using lpque = priority_queue<T, vector<T>, greater<T>>;
using ll = long lon... | [
"identifier.change"
] | 279,936 | 279,937 | u195036695 | cpp |
p02579 | /*
____ ____ _
| _ \ _ __| _ \ ___ _ __ __| |_ __ ___
| | | | '__| | | |/ _ \ '_ \ / _` | '__/ _ \
| |_| | |_ | |_| | __/ | | | (_| | | | (_) |
|____/|_(_)|____/ \___|_| |_|\__,_|_| \___/
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_... | /*
____ ____ _
| _ \ _ __| _ \ ___ _ __ __| |_ __ ___
| | | | '__| | | |/ _ \ '_ \ / _` | '__/ _ \
| |_| | |_ | |_| | __/ | | | (_| | | | (_) |
|____/|_(_)|____/ \___|_| |_|\__,_|_| \___/
*/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_... | [
"control_flow.branch.if.condition.change",
"call.add"
] | 279,943 | 279,944 | u216673135 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define pai acos(-1)
#define ff first
#define ss second
#define ll long long
#define pb push_back
#define mp make_pair
#define pll pair<ll, ll>
#define sz(a) (ll) a.size()
#define endl "\n"
#define gcd(a, b) __gcd(a, b)
#define lcm(a, b) ((a)*((b)/gcd(a,b))
#define ... | #include <bits/stdc++.h>
using namespace std;
#define pai acos(-1)
#define ff first
#define ss second
#define ll long long
#define pb push_back
#define mp make_pair
#define pll pair<ll, ll>
#define sz(a) (ll) a.size()
#define endl "\n"
#define gcd(a, b) __gcd(a, b)
#define lcm(a, b) ((a)*((b)/gcd(a,b))
#define ... | [
"call.arguments.change"
] | 279,967 | 279,968 | u046590522 | cpp |
p02580 | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define mp make_pair
#define m... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define mp make_pair
#define m... | [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change"
] | 279,981 | 279,982 | u860546679 | cpp |
p02580 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
typedef char SINT8;
typedef short SINT16;
typedef int SINT32;
typedef long long SINT64;
typedef double DOUBLE;
#define MAX(a, b) ((a) > (b) ? ... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
typedef char SINT8;
typedef short SINT16;
typedef int SINT32;
typedef long long SINT64;
typedef double DOUBLE;
#define MAX(a, b) ((a) > (b) ? ... | [
"call.arguments.add",
"assignment.value.change",
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change"
] | 279,983 | 279,984 | u824905100 | cpp |
p02580 | #include <bits/stdc++.h>
#define rep(i, a, b) for (ll i = ll(a); i < ll(b); i++)
#define irep(i, a, b) for (ll i = ll(a); i >= ll(b); i--)
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
... | #include <bits/stdc++.h>
#define rep(i, a, b) for (ll i = ll(a); i < ll(b); i++)
#define irep(i, a, b) for (ll i = ll(a); i >= ll(b); i--)
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 279,994 | 279,995 | u499009346 | cpp |
p02580 | /*input
2 3 3
2 2
1 1
1 3
*/
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
// antbook p155
const int INF = 1001001001;
struct SegmentTree {
int n; // size/2
vector<int> dat; // segment tree
// n: num of elements
SegmentTree(int n_... | /*input
2 3 3
2 2
1 1
1 3
*/
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
// antbook p155
const int INF = 1001001001;
struct SegmentTree {
int n; // size/2
vector<int> dat; // a segment tree
// n: num of elements
SegmentTree(int ... | [
"identifier.change",
"variable_declaration.array_dimensions.change"
] | 279,996 | 279,997 | u965602776 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define PI 3.14159265358979323846
#define int long long
constexpr long long INF = numeric_limits<long long>::max() / 2;
constexpr int MOD = 1000000007;
using Graph = vector<vector<int>>;
signed main() {
cin.tie(nullptr... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define PI 3.14159265358979323846
#define int long long
constexpr long long INF = numeric_limits<long long>::max() / 2;
constexpr int MOD = 1000000007;
using Graph = vector<vector<int>>;
signed main() {
cin.tie(nullptr... | [
"control_flow.branch.if.condition.change"
] | 279,998 | 279,999 | u093973314 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define all(c) begin(c), end(c)
/*
*/
map<pair<ll, ll>, ll> MP;
int main() {
cin.tie(0);
ios::sync_with_stdio(0);
ll H, W, M;
cin >> H >> W >> M;
vector<ll> Y(M, 0), X(M, 0), YM(H, 0), XM(W, 0);
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < n; ++i)
#define all(c) begin(c), end(c)
/*
*/
map<pair<ll, ll>, ll> MP;
int main() {
cin.tie(0);
ios::sync_with_stdio(0);
ll H, W, M;
cin >> H >> W >> M;
vector<ll> Y(M, 0), X(M, 0), YM(H, 0), XM(W, 0);
... | [
"control_flow.branch.if.condition.change"
] | 280,007 | 280,008 | u071282706 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("unroll-loops")
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define int long long
#define fr(i, a, b) for (int i = a; i <= b; ++i)
#define rep(i, a, b) for (int i = a; i < (b); ++i)
#define trav(a, x) for (auto &a : x)
... | #include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("unroll-loops")
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define int long long
#define fr(i, a, b) for (int i = a; i <= b; ++i)
#define rep(i, a, b) for (int i = a; i < (b); ++i)
#define trav(a, x) for (auto &a : x)
... | [
"identifier.change",
"call.arguments.change"
] | 280,026 | 280,027 | u128142444 | cpp |
p02580 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define mp make_pair
#define pb(x) push_back(x)
#define vi vector<int>
#define vs vector<string>
#define vll vector<long long>
#define vc vector<char>
#define vs vector... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define mp make_pair
#define pb(x) push_back(x)
#define vi vector<int>
#define vs vector<string>
#define vll vector<long long>
#define vc vector<char>
#define vs vector... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 280,028 | 280,029 | u754279713 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
int p1, p2, a[300005], b[300005];
set<pair<int, int>> st;
vector<int> v1, v2;
int main() {
int h, w, m;
cin >> h >> w >> m;
while (m--) {
int x, y;
cin >> x >> y;
st.insert(make_pair(x, y));
a[x]++;
b[y]++;
if (a[x] > p1)
v1.clear(), ... | #include <bits/stdc++.h>
using namespace std;
int p1, p2, a[300005], b[300005];
set<pair<int, int>> st;
vector<int> v1, v2;
int main() {
int h, w, m;
cin >> h >> w >> m;
while (m--) {
int x, y;
cin >> x >> y;
st.insert(make_pair(x, y));
a[x]++;
b[y]++;
if (a[x] > p1)
v1.clear(), ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 280,030 | 280,031 | u226834541 | cpp |
p02580 | #include <bits/stdc++.h>
#include <stack>
using namespace std;
int main() {
int h, w, m;
cin >> h >> w >> m;
// stack<pair<int,int>> hs;
// stack<pair<int,int>> ws;
vector<int> hcnt(h, 0);
vector<int> wcnt(w, 0);
int hm = 0;
int wm = 0;
// vector<pair<int,int>> bomb;
set<pair<int, int>> bomb;
int... | #include <bits/stdc++.h>
#include <stack>
using namespace std;
int main() {
int h, w, m;
cin >> h >> w >> m;
vector<int> hcnt(h, 0);
vector<int> wcnt(w, 0);
int hm = 0;
int wm = 0;
set<pair<int, int>> bomb;
int cnt = -1;
for (int i = 0; i < m; i++) {
int y;
int x;
cin >> y >> x;
y--;
... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 280,032 | 280,033 | u332946309 | cpp |
p02580 | #include <iostream>
#include <set>
#include <vector>
using namespace std;
int main() {
int n, m, k;
cin >> n >> m >> k;
set<pair<int, int>> pos;
int xx[n + 1];
int yy[m + 1];
vector<int> x;
vector<int> y;
int maxx = 0;
int maxy = 0;
for (int i = 1; i <= n; ++i)
xx[i] = 0;
for (int i = 1; i <= ... | #include <iostream>
#include <set>
#include <vector>
using namespace std;
int main() {
int n, m, k;
cin >> n >> m >> k;
set<pair<int, int>> pos;
int xx[n + 1];
int yy[m + 1];
vector<int> x;
vector<int> y;
int maxx = 0;
int maxy = 0;
for (int i = 1; i <= n; ++i)
xx[i] = 0;
for (int i = 1; i <= ... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 280,034 | 280,035 | u267727566 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
int h, w, m, a[300001], b[300001], p1, p2;
typedef pair<int, int> pi;
set<pi> st;
int main() {
int i, j, x, y;
cin >> h >> w >> m;
vector<int> l, r;
for (i = 1; i <= m; ++i) {
cin >> x >> y;
st.insert(make_pair(x, y));
a[x]++;
b[y]++;
if (a[x] > ... | #include <bits/stdc++.h>
using namespace std;
int h, w, m, a[300001], b[300001], p1, p2;
typedef pair<int, int> pi;
set<pi> st;
int main() {
int i, j, x, y;
cin >> h >> w >> m;
vector<int> l, r;
for (i = 1; i <= m; ++i) {
cin >> x >> y;
st.insert(make_pair(x, y));
a[x]++;
b[y]++;
if (a[x] > ... | [
"identifier.change",
"call.arguments.change"
] | 280,038 | 280,039 | u256898389 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 3e5 + 5;
int h, w, n;
int rc[N], rw[N];
vector<int> totc, totw;
set<pair<int, int>> rcw;
int maxr, maxw;
int main() {
ios::sync_with_stdio(false);
cin >> h >> w >> n;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 3e5 + 5;
int h, w, n;
int rc[N], rw[N];
vector<int> totc, totw;
set<pair<int, int>> rcw;
int maxr, maxw;
int main() {
ios::sync_with_stdio(false);
cin >> h >> w >> n;
for (int i = 0; i < n; i++) {
int x, y;
cin >> x >> y;
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 280,040 | 280,041 | u485770546 | cpp |
p02579 | #include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
#define P 1000000007
#define rep(i, n) for (i = 0; i < n; ++i)
#define re(i, a, n) for (i = a; i < n; ++i)
#define repr(i, a, n) for (i = a; i >= n; --i)
#define pb push_back
#define mp make_pair
#define fi first
#define se second
ll binpow(ll x, ... | #include <bits/stdc++.h>
typedef long long int ll;
using namespace std;
#define P 1000000007
#define rep(i, n) for (i = 0; i < n; ++i)
#define re(i, a, n) for (i = a; i < n; ++i)
#define repr(i, a, n) for (i = a; i >= n; --i)
#define pb push_back
#define mp make_pair
#define fi first
#define se second
ll binpow(ll x, ... | [
"literal.number.change",
"assignment.variable.change",
"variable_access.subscript.index.change"
] | 280,058 | 280,059 | u777282225 | cpp |
p02579 | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
const ll inf = 1000000007;
inline int read() {
int x = 0, f = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = (x << 1) + (x << 3) + (ch ... | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
const ll inf = 1000000007;
inline int read() {
int x = 0, f = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = (x << 1) + (x << 3) + (ch ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"assignment.variable.change"
] | 280,079 | 280,080 | u542220989 | cpp |
p02579 | /*** Template Begin ***/
#pragma region template
#define USING_NAMESPACE
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#i... | /*** Template Begin ***/
#pragma region template
#define USING_NAMESPACE
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#i... | [
"assignment.change"
] | 280,089 | 280,090 | u821802586 | cpp |
p02579 | #include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define srep(i, s, t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(), a.end()
#define rrng(a) a.rbegin()... | #include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define srep(i, s, t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(), a.end()
#define rrng(a) a.rbegin()... | [
"expression.operation.binary.remove"
] | 280,093 | 280,094 | u814715203 | cpp |
p02579 | #include <bits/stdc++.h>
#define f(i, a, b) for (ll i = a; i < b; i++)
#define af(i, a, b) for (ll i = a; i >= b; i--)
#define rep(i, a, b, k) for (ll i = a; i < b; i += k)
#define arep(i, a, b, k) for (ll i = a; i >= b; i -= k)
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define sz(a)... | #include <bits/stdc++.h>
#define f(i, a, b) for (ll i = a; i < b; i++)
#define af(i, a, b) for (ll i = a; i >= b; i--)
#define rep(i, a, b, k) for (ll i = a; i < b; i += k)
#define arep(i, a, b, k) for (ll i = a; i >= b; i -= k)
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define sz(a)... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 280,095 | 280,096 | u834353617 | cpp |
p02579 | #define _CRT_SECURE_NO_DEPRECATE
#pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include "bits/stdc++.h"
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
// using namespace __gnu_pbds;
#define int long long int
#define SYNC ... | #define _CRT_SECURE_NO_DEPRECATE
#pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include "bits/stdc++.h"
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
// using namespace __gnu_pbds;
#define int long long int
#define SYNC ... | [
"identifier.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 280,114 | 280,115 | u606068762 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
const int nax = 3e5 + 5;
struct pair_hash {
inline long long operator()(const std::pair<int, int> &v) const {
return (long long)v.first * nax + v.second;
}
};
int main() {
int h, w, m, x, y;
unordered_set<pair<int, int>, pair_hash> set;
cin >> h >> w >> m;... | #include <bits/stdc++.h>
using namespace std;
const int nax = 3e5 + 5;
struct pair_hash {
inline long long operator()(const std::pair<int, int> &v) const {
return (long long)v.first * nax + v.second;
}
};
int main() {
int h, w, m, x, y;
unordered_set<pair<int, int>, pair_hash> set;
cin >> h >> w >> m;... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 280,150 | 280,151 | u630255265 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
vector<int> a[300001];
struct line {
int i, cnt;
inline bool operator<(const line &x) const { return cnt < x.cnt; }
} b[300001];
int h, w, m, x_[300001], y_[300001], ans, cntx[300001], cnty[300001],
vis[300001];
int main() {
scanf("%d%d%d", &h, &w, &m);
for (int... | #include <bits/stdc++.h>
using namespace std;
vector<int> a[300001];
struct line {
int i, cnt;
inline bool operator<(const line &x) const { return cnt > x.cnt; }
} b[300001];
int h, w, m, x_[300001], y_[300001], ans, cntx[300001], cnty[300001],
vis[300001];
int main() {
scanf("%d%d%d", &h, &w, &m);
for (int... | [
"misc.opposites",
"expression.operator.compare.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 280,154 | 280,155 | u115494307 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define print(x) cout << x << endl
#define prints(x) cout << x << " "
#define printline cout << endl
bool comp(const pair<ll, ll> a, const pair<ll, ll> b) {
return a.second > b.second;
}
int main() {
std::ios_base::sync_with_stdio(false);
ll h,... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define print(x) cout << x << endl
#define prints(x) cout << x << " "
#define printline cout << endl
bool comp(const pair<ll, ll> a, const pair<ll, ll> b) {
return a.second > b.second;
}
int main() {
std::ios_base::sync_with_stdio(false);
ll h,... | [
"expression.unary.arithmetic.add"
] | 280,159 | 280,160 | u537926697 | cpp |
p02580 | // Author : Mohamed sameh
#include <bits/stdc++.h>
typedef long long ll;
#define pb push_back
#define f first
#define s second
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define SZ(a) (int)a.size()
#define Flush fflush(stdout);
using namespace std;
const int N = 3e5 + 9, Lg = 26;
int R[N], C... | // Author : Mohamed sameh
#include <bits/stdc++.h>
typedef long long ll;
#define pb push_back
#define f first
#define s second
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define SZ(a) (int)a.size()
#define Flush fflush(stdout);
using namespace std;
const int N = 3e5 + 9, Lg = 26;
int R[N], C... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 280,177 | 280,178 | u886771373 | cpp |
p02580 | #include <bits/stdc++.h>
#include <unistd.h>
#define fi first
#define se second
#define rep(i, n) for (ll i = 0; i < (n); ++i)
#define rep1(i, n) for (ll i = 1; i <= (n); ++i)
#define rrep(i, n) for (ll i = (n)-1; i >= 0; --i)
#define ALL(a) a.begin(), a.end()
#define pb push_back
#define dame ... | #include <bits/stdc++.h>
#include <unistd.h>
#define fi first
#define se second
#define rep(i, n) for (ll i = 0; i < (n); ++i)
#define rep1(i, n) for (ll i = 1; i <= (n); ++i)
#define rrep(i, n) for (ll i = (n)-1; i >= 0; --i)
#define ALL(a) a.begin(), a.end()
#define pb push_back
#define dame ... | [
"identifier.change",
"call.arguments.change"
] | 280,181 | 280,182 | u442810826 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const static ll INF = 1e15;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
// __uint128_t
const ll MOD = 1e9 + 7;
int main() {
ll H, W, M;
cin >> H >> W >> M;
map<ll, ll> MH, MW;
vector<pair<ll, ll>> V(H + 1);
for (int i = 0; i < M; i+... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const static ll INF = 1e15;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
// __uint128_t
const ll MOD = 1e9 + 7;
int main() {
ll H, W, M;
cin >> H >> W >> M;
map<ll, ll> MH, MW;
vector<pair<ll, ll>> V(M);
for (int i = 0; i < M; i++) {... | [
"call.arguments.change",
"expression.operation.binary.change",
"expression.operation.binary.remove"
] | 280,183 | 280,184 | u521973174 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w, m;
cin >> h >> w >> m;
int r[m + 1] = {0}, c[m + 1] = {0};
set<pair<int, int>> p;
while (m--) {
int a, b;
cin >> a >> b;
p.insert({a, b});
r[a]++;
c[b]++;
}
int x = 1, y = 1;
for (int i = 1; i <= h; i++) {
if (r... | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w, m;
cin >> h >> w >> m;
int r[h + 1] = {0}, c[w + 1] = {0};
set<pair<int, int>> p;
while (m--) {
int a, b;
cin >> a >> b;
p.insert({a, b});
r[a]++;
c[b]++;
}
int x = 1, y = 1;
for (int i = 1; i <= h; i++) {
if (... | [
"identifier.change",
"expression.operation.binary.change"
] | 280,185 | 280,186 | u890894213 | cpp |
p02580 |
// Problem : E - Bomber
// Contest : AtCoder - AtCoder Beginner Contest 176
// URL : https://atcoder.jp/contests/abc176/tasks/abc176_e
// Memory Limit : 1024 MB
// Time Limit : 3000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#include <bits/stdc++.h>
using namespace std;
#define flush cin.ignore... |
// Problem : E - Bomber
// Contest : AtCoder - AtCoder Beginner Contest 176
// URL : https://atcoder.jp/contests/abc176/tasks/abc176_e
// Memory Limit : 1024 MB
// Time Limit : 3000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
#include <bits/stdc++.h>
using namespace std;
#define flush cin.ignore... | [
"assignment.value.change",
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 280,191 | 280,192 | u399236408 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
int main() {
long H, W, M;
cin >> H >> W >> M;
vector<long> K(M);
vector<long> O(M);
long h = H + 1;
long w = W + 1;
int m = max(h, w);
vector<long> A(m, 0);
vector<long> B(m, 0);
vector<long> a(m, 0);
vector<long> b(m, 0);
vector<long> D(m, 0);
v... | #include <bits/stdc++.h>
using namespace std;
int main() {
long H, W, M;
cin >> H >> W >> M;
vector<long> K(M);
vector<long> O(M);
long h = H + 1;
long w = W + 1;
int m = max(h, w);
vector<long> A(m, 0);
vector<long> B(m, 0);
vector<long> a(m, 0);
vector<long> b(m, 0);
vector<long> D(m, 0);
v... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.loop.for.initializer.change",
"expression.operator.compare.change"
] | 280,204 | 280,203 | u464957469 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
int main() {
long H, W, M;
cin >> H >> W >> M;
vector<long> K(M);
vector<long> O(M);
long h = H + 1;
long w = W + 1;
int m = max(h, w);
vector<long> A(m, 0);
vector<long> B(m, 0);
vector<long> a(m, 0);
vector<long> b(m, 0);
vector<long> D(m, 0);
v... | #include <bits/stdc++.h>
using namespace std;
int main() {
long H, W, M;
cin >> H >> W >> M;
vector<long> K(M);
vector<long> O(M);
long h = H + 1;
long w = W + 1;
int m = max(h, w);
vector<long> A(m, 0);
vector<long> B(m, 0);
vector<long> a(m, 0);
vector<long> b(m, 0);
vector<long> D(m, 0);
v... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.loop.for.initializer.change"
] | 280,205 | 280,203 | u464957469 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
int main() {
long H, W, M;
cin >> H >> W >> M;
vector<long> K(M);
vector<long> O(M);
long h = H + 1;
long w = W + 1;
int m = max(h, w);
vector<long> A(m, 0);
vector<long> B(m, 0);
vector<long> a(m, 0);
vector<long> b(m, 0);
vector<long> D(m, 0);
v... | #include <bits/stdc++.h>
using namespace std;
int main() {
long H, W, M;
cin >> H >> W >> M;
vector<long> K(M);
vector<long> O(M);
long h = H + 1;
long w = W + 1;
int m = max(h, w);
vector<long> A(m, 0);
vector<long> B(m, 0);
vector<long> a(m, 0);
vector<long> b(m, 0);
vector<long> D(m, 0);
v... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.loop.for.initializer.change"
] | 280,206 | 280,203 | u464957469 | cpp |
p02580 | #include <algorithm>
#include <iostream>
#include <set>
#include <string>
#include <vector>
//#include <bits/stdc++.h>
using namespace std;
typedef pair<long int, long int> P;
int main() {
long int H, W, M;
cin >> H >> W >> M;
long int h[M], w[M];
set<P> s;
vector<long int> x(H), y(W);
for (long int i = 0... | #include <algorithm>
#include <iostream>
#include <set>
#include <string>
#include <vector>
//#include <bits/stdc++.h>
using namespace std;
typedef pair<long int, long int> P;
int main() {
long int H, W, M;
cin >> H >> W >> M;
long int h[M], w[M];
set<P> s;
vector<long int> x(H), y(W);
for (long int i = 0... | [
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 280,207 | 280,208 | u214864255 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define input freopen("input.txt", "r", stdin)
#define output freopen("output.txt", "w", stdout)
#define si(a) scanf("%d", &a)
#define sii(a, b) scanf("%d%d", &a, &b)
#define siii(a, b, c) scanf("%d%d%d", &a, &b, &c)
#define pi(a) printf("%d", a)... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define input freopen("input.txt", "r", stdin)
#define output freopen("output.txt", "w", stdout)
#define si(a) scanf("%d", &a)
#define sii(a, b) scanf("%d%d", &a, &b)
#define siii(a, b, c) scanf("%d%d%d", &a, &b, &c)
#define pi(a) printf("%d", a)... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 280,216 | 280,217 | u231640005 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
const int MAXN = 300005;
int tree[4 * MAXN], kiri[MAXN], kanan[MAXN];
pii a[MAXN];
int query(int now, int L, int R, int x, int y) {
if (L >= x && R <= y)
return tree[now];
if (L > y || R < x)
return 0;
int mid = (L + R) / 2;
retu... | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
const int MAXN = 300005;
int tree[4 * MAXN], kiri[MAXN], kanan[MAXN];
pii a[MAXN];
int query(int now, int L, int R, int x, int y) {
if (L >= x && R <= y)
return tree[now];
if (L > y || R < x)
return 0;
int mid = (L + R) / 2;
retu... | [
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.unary.arithmetic.remove"
] | 280,226 | 280,227 | u626385806 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.