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 |
|---|---|---|---|---|---|---|---|
p02580 | #include <bits/stdc++.h>
#define FASTIO \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
using namespace std;
using ll = long... | #include <bits/stdc++.h>
#define FASTIO \
ios::sync_with_stdio(0); \
cin.tie(0); \
cout.tie(0);
using namespace std;
using ll = long... | [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change"
] | 280,228 | 280,229 | u391675729 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 10;
struct node {
int x, y;
} a[N];
int cx[N], cy[N], idx, idy;
vector<int> xx, yy;
map<long long, int> mp;
int main() {
int n, m, k;
cin >> n >> m >> k;
for (int i = 0; i < k; i++) {
scanf("%d %d", &a[i].x, &a[i].y);
cx[a[i].x]++, cy[a[i... | #include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 10;
struct node {
int x, y;
} a[N];
int cx[N], cy[N], idx, idy;
vector<int> xx, yy;
map<long long, int> mp;
int main() {
int n, m, k;
cin >> n >> m >> k;
for (int i = 0; i < k; i++) {
scanf("%d %d", &a[i].x, &a[i].y);
cx[a[i].x]++, cy[a[i... | [
"assignment.value.change"
] | 280,230 | 280,231 | u318021652 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 10;
struct node {
int x, y;
} a[N];
int cx[N], cy[N], idx, idy;
vector<int> xx, yy;
map<long long, int> mp;
int main() {
int n, m, k;
cin >> n >> m >> k;
for (int i = 0; i < k; i++) {
scanf("%d %d", &a[i].x, &a[i].y);
cx[a[i].x]++, cy[a[i... | #include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 10;
struct node {
int x, y;
} a[N];
int cx[N], cy[N], idx, idy;
vector<int> xx, yy;
map<long long, int> mp;
int main() {
int n, m, k;
cin >> n >> m >> k;
for (int i = 0; i < k; i++) {
scanf("%d %d", &a[i].x, &a[i].y);
cx[a[i].x]++, cy[a[i... | [
"assignment.value.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 280,232 | 280,231 | u318021652 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
long long n, m, k, a[300010], b[300010], x[300010], y[300010], ans, c, d, f, aa,
bb;
int main() {
cin >> n >> m >> k;
for (int i = 0; i < k; i++) {
cin >> x[i] >> y[i];
a[x[i]]++;
b[y[i]]++;
}
for (int i = 1; i <= n; i++)
c = max(c, a[i]);
for... | #include <bits/stdc++.h>
using namespace std;
long long n, m, k, a[300010], b[300010], x[300010], y[300010], ans, c, d, f, aa,
bb;
int main() {
cin >> n >> m >> k;
for (int i = 0; i < k; i++) {
cin >> x[i] >> y[i];
a[x[i]]++;
b[y[i]]++;
}
for (int i = 1; i <= n; i++)
c = max(c, a[i]);
for... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 280,237 | 280,238 | u805468645 | cpp |
p02580 | // C++
//#pragma comment(linker, "/STACK:102400000,102400000")
// G++
//#define OPENSTACK
#define ONLINE_JUDGE
#include <algorithm>
#include <cctype>
#include <cstring>
#include <ctime>
#include <iostream>
#include <queue>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
typedef ... | // C++
//#pragma comment(linker, "/STACK:102400000,102400000")
// G++
//#define OPENSTACK
#define ONLINE_JUDGE
#include <algorithm>
#include <cctype>
#include <cstring>
#include <ctime>
#include <iostream>
#include <queue>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
typedef ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 280,241 | 280,242 | u219815678 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
using Graph = vector<vector<ll>>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep2(i, m, n) for (ll i = m; i < (ll)(n); i++)
#define rrep(i, n, m) for (ll i = n; i >= (ll)(m); i--)
const int dx[4] = {1, 0, -1, 0... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
using Graph = vector<vector<ll>>;
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep2(i, m, n) for (ll i = m; i < (ll)(n); i++)
#define rrep(i, n, m) for (ll i = n; i >= (ll)(m); i--)
const int dx[4] = {1, 0, -1, 0... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 280,247 | 280,248 | u427344224 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = (0); (i) < (int)(n); ++(i))
using ll = long long;
using P = pair<int, int>;
using namespace std;
#define INF ((1 << 30) - 1)
#define LLINF (1LL << 60)
#define EPS (1e-10)
int main() {
int h, w, n;
cin >> h >> w >> n;
vector<int> hs(h, ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = (0); (i) < (int)(n); ++(i))
using ll = long long;
using P = pair<int, int>;
using namespace std;
#define INF ((1 << 30) - 1)
#define LLINF (1LL << 60)
#define EPS (1e-10)
int main() {
int h, w, n;
cin >> h >> w >> n;
vector<int> hs(h, ... | [
"assignment.variable.change",
"identifier.change",
"call.arguments.change"
] | 280,255 | 280,256 | u482544950 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define ld long double
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) {
a = b;
return true;
... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define ld long double
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) {
a = b;
return true;
... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 280,262 | 280,263 | u876953939 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define ld long double
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) {
a = b;
return true;
... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define ld long double
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) {
a = b;
return true;
... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 280,264 | 280,263 | u876953939 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using p = pair<int, int>;
int main() {
int h, w;
long long m;
cin >> h >> w >> m;
vector<int> xx(h);
vector<int> yy(w);
set<p> s;
rep(i, m) {
int x, y;
cin >> x >> y;
--x;
--y;
xx[x] += 1;
y... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
using p = pair<int, int>;
int main() {
int h, w;
long long m;
cin >> h >> w >> m;
vector<int> xx(h);
vector<int> yy(w);
set<p> s;
rep(i, m) {
int x, y;
cin >> x >> y;
--x;
--y;
xx[x] += 1;
y... | [
"control_flow.break.remove",
"control_flow.return.add",
"function.return_value.change"
] | 280,268 | 280,269 | u866820581 | cpp |
p02580 | #define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (n); i++)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int h, w, m;
cin >> h >> w >> m;
vector<pair<int, int>> bomb(m);
rep(i, m) {
cin >> bomb[i].first >> bomb[i].second;
--bomb[i].first;
--bomb[i].sec... | #define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (n); i++)
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
int h, w, m;
cin >> h >> w >> m;
vector<pair<int, int>> bomb(m);
rep(i, m) {
cin >> bomb[i].first >> bomb[i].second;
--bomb[i].first;
--bomb[i].sec... | [
"variable_declaration.type.change"
] | 280,285 | 280,286 | u224353074 | cpp |
p02580 | #include "bits/stdc++.h"
#define rep(i, j) for (int i = 0; i < j; i++)
#define srep(i, j, k) for (int i = j; i < k; i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using ull = unsigned long long;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
... | #include "bits/stdc++.h"
#define rep(i, j) for (int i = 0; i < j; i++)
#define srep(i, j, k) for (int i = j; i < k; i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using ull = unsigned long long;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
... | [
"identifier.change"
] | 280,288 | 280,289 | u616794313 | cpp |
p02580 | #include "bits/stdc++.h"
#define rep(i, j) for (int i = 0; i < j; i++)
#define srep(i, j, k) for (int i = j; i < k; i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using ull = unsigned long long;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
... | #include "bits/stdc++.h"
#define rep(i, j) for (int i = 0; i < j; i++)
#define srep(i, j, k) for (int i = j; i < k; i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
using ull = unsigned long long;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
... | [
"identifier.change"
] | 280,290 | 280,291 | u616794313 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sz(x) (int)(x).size()
#define F first
#define S second
#define forn(i, n) for (int i = 0; i < (int)n; i++)
#define pb push_back
#define fastIO ios::sync_with_stdio(0), cin.tie(0)
#defin... | #include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sz(x) (int)(x).size()
#define F first
#define S second
#define forn(i, n) for (int i = 0; i < (int)n; i++)
#define pb push_back
#define fastIO ios::sync_with_stdio(0), cin.tie(0)
#defin... | [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change"
] | 280,306 | 280,307 | u342809635 | cpp |
p02580 | #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 rep(i, a, b) for (ll i = a; i < b; i++)
#define IOS \
ios::sync_with_stdio(0); ... | #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 rep(i, a, b) for (ll i = a; i < b; i++)
#define IOS \
ios::sync_with_stdio(0); ... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 280,317 | 280,318 | u635281988 | cpp |
p02580 | #include <algorithm>
#include <iostream>
#include <map>
using namespace std;
map<pair<int, int>, int> mp;
int r[1000009], c[1000009];
pair<int, int> r1[1000009], c1[1000009];
bool cmp(pair<int, int> x, pair<int, int> y) { return x.second > y.second; }
int main() {
int n, m, s;
cin >> n >> m >> s;
for (int i = 1;... | #include <algorithm>
#include <iostream>
#include <map>
using namespace std;
map<pair<int, int>, int> mp;
int r[1000009], c[1000009];
pair<int, int> r1[1000009], c1[1000009];
bool cmp(pair<int, int> x, pair<int, int> y) { return x.second > y.second; }
int main() {
int n, m, s;
cin >> n >> m >> s;
for (int i = 1;... | [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 280,334 | 280,335 | u025193796 | cpp |
p02580 | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#define mm(a, x) memset(a, x, sizeof(a))
#define sync \
std::ios::sync_with_stdio(false); \
std::cin... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#define mm(a, x) memset(a, x, sizeof(a))
#define sync \
std::ios::sync_with_stdio(false); \
std::cin... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 280,338 | 280,339 | u943501414 | cpp |
p02580 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int h, w, n;
cin >> h >> w >> n;
vector<int> hs(h), ws(w);
set<P> s;
rep(i, n) {
int r, c;
cin >> r >> c;
r--;
c--;
hs[r]++;
ws[c]... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int h, w, n;
cin >> h >> w >> n;
vector<int> hs(h), ws(w);
set<P> s;
rep(i, n) {
int r, c;
cin >> r >> c;
r--;
c--;
hs[r]++;
ws[c]... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 280,346 | 280,347 | u259578308 | cpp |
p02580 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int h, w, n;
cin >> h >> w >> n;
vector<int> hs(h), ws(w);
set<P> s;
rep(i, n) {
int r, c;
cin >> r >> c;
r--;
c--;
hs[r]++;
hs[c]... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int h, w, n;
cin >> h >> w >> n;
vector<int> hs(h), ws(w);
set<P> s;
rep(i, n) {
int r, c;
cin >> r >> c;
r--;
c--;
hs[r]++;
ws[c]... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 280,348 | 280,347 | u259578308 | cpp |
p02580 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int h, w, n;
cin >> h >> w >> n;
vector<int> hs(n), ws(n);
set<P> s;
rep(i, n) {
int r, c;
cin >> r >> c;
r--;
c--;
hs[r]++;
hs[c]... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int h, w, n;
cin >> h >> w >> n;
vector<int> hs(h), ws(w);
set<P> s;
rep(i, n) {
int r, c;
cin >> r >> c;
r--;
c--;
hs[r]++;
ws[c]... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 280,349 | 280,347 | u259578308 | cpp |
p02580 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int h, w, n;
cin >> h >> w >> n;
vector<int> hs(n), ws(n);
set<P> s;
rep(i, n) {
int r, c;
cin >> r >> c;
r--;
c--;
hs[r]++;
hs[c]... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using P = pair<int, int>;
using ll = long long;
int main() {
int h, w, n;
cin >> h >> w >> n;
vector<int> hs(h), ws(w);
set<P> s;
rep(i, n) {
int r, c;
cin >> r >> c;
r--;
c--;
hs[r]++;
ws[c]... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"variable_access.subscript.index.change"
] | 280,350 | 280,347 | u259578308 | cpp |
p02580 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rrep(i, n) for (int i = (n - 1); i >= 0; i--)
#define ALL(v) v.begin(), v.end()
using namespace std;
using P = pair<int, int>;
typedef long long ll;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rrep(i, n) for (int i = (n - 1); i >= 0; i--)
#define ALL(v) v.begin(), v.end()
using namespace std;
using P = pair<int, int>;
typedef long long ll;
template <class T> inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return 1;
... | [
"call.arguments.change"
] | 280,351 | 280,352 | u233586402 | cpp |
p02580 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define reps(i, s, n) for (int i = (s); i < (n); i++)
#define all(v) v.begin(), v.end()
#define outve(v) \
for (auto i : v) ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define reps(i, s, n) for (int i = (s); i < (n); i++)
#define all(v) v.begin(), v.end()
#define outve(v) \
for (auto i : v) ... | [
"control_flow.branch.if.condition.change"
] | 280,362 | 280,363 | u668191971 | cpp |
p02580 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define reps(i, s, n) for (int i = (s); i < (n); i++)
#define all(v) v.begin(), v.end()
#define outve(v) \
for (auto i : v) ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define reps(i, s, n) for (int i = (s); i < (n); i++)
#define all(v) v.begin(), v.end()
#define outve(v) \
for (auto i : v) ... | [
"variable_access.subscript.index.change"
] | 280,364 | 280,363 | u668191971 | cpp |
p02580 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define reps(i, s, n) for (int i = (s); i < (n); i++)
#define all(v) v.begin(), v.end()
#define outve(v) \
for (auto i : v) ... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define reps(i, s, n) for (int i = (s); i < (n); i++)
#define all(v) v.begin(), v.end()
#define outve(v) \
for (auto i : v) ... | [
"variable_access.subscript.index.change",
"identifier.change",
"call.arguments.change"
] | 280,365 | 280,363 | u668191971 | cpp |
p02580 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#define int long long
using namespace std;
const int INF = 3e5 + 5;
struct _node_data {
int x, y;
} aa[INF], bb[INF];
int h, w, m, cntx[INF], cnty[INF], ans;
map<int, map<int, bool>> Map;
bool cmp1(_node_data xx, _node_data yy) { return xx.x < ... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#define int long long
using namespace std;
const int INF = 3e5 + 5;
struct _node_data {
int x, y;
} aa[INF], bb[INF];
int h, w, m, cntx[INF], cnty[INF], ans;
map<int, map<int, bool>> Map;
bool cmp1(_node_data xx, _node_data yy) { return xx.x > ... | [
"misc.opposites",
"expression.operator.compare.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 280,366 | 280,367 | u363542490 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define int long long
map<int, int> row, col;
vector<int> a, b;
map<pair<int, int>, int> mp;
signed main() {
int n, m, k;
cin >> n >> m >> k;
int maxn_row = -1, maxn_col = -1;
for (int i = 0; i < k; i++) {
int x, y;
cin >> x >> y;
row[x]++, col[y]++;
... | #include <bits/stdc++.h>
using namespace std;
#define int long long
map<int, int> row, col;
vector<int> a, b;
map<pair<int, int>, int> mp;
signed main() {
int n, m, k;
cin >> n >> m >> k;
int maxn_row = -1, maxn_col = -1;
for (int i = 0; i < k; i++) {
int x, y;
cin >> x >> y;
row[x]++, col[y]++;
... | [] | 280,368 | 280,369 | u545770260 | cpp |
p02580 | #pragma GCC optimize("Ofast")
//#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
#define F first
#define S second
#define vec vector
#define pb push_back
#define pll pair<ll, ll>
#define pdd pair<ld, ld>
#define umap unordered_map
#define uset unordered_set
#define pii pair<int, int>
#define pnn pair<Node *,... | #pragma GCC optimize("Ofast")
//#pragma GCC target("avx,avx2,fma")
#include <bits/stdc++.h>
#define F first
#define S second
#define vec vector
#define pb push_back
#define pll pair<ll, ll>
#define pdd pair<ld, ld>
#define umap unordered_map
#define uset unordered_set
#define pii pair<int, int>
#define pnn pair<Node *,... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 280,379 | 280,380 | u896034488 | cpp |
p02580 | // 2020-08-22 21:32:54
#include <bits/stdc++.h>
#ifdef LOCAL
#include "lib/debug.hpp"
#else
#define debug(...) 1
#endif
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define rep(i, n) REP(i, 0, (n))
#define repc(i, n) REPC(i, 0, (n))
#define REP(i, n, m) for (int i = (int)(n); i < (int)... | // 2020-08-22 21:32:54
#include <bits/stdc++.h>
#ifdef LOCAL
#include "lib/debug.hpp"
#else
#define debug(...) 1
#endif
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define rep(i, n) REP(i, 0, (n))
#define repc(i, n) REPC(i, 0, (n))
#define REP(i, n, m) for (int i = (int)(n); i < (int)... | [] | 280,393 | 280,394 | u170199544 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define INF 1e12
#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 vp... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define INF 1e12
#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 vp... | [] | 280,404 | 280,405 | u110044127 | cpp |
p02580 | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
#define syosu(x) fixed << setprecision(x)
using namespace std;
typedef long long ll;
typedef unsigned int uint;
typedef unsigned long long ull;
typedef pair<int, int> P;
typedef pair<double, double> pdd;
typedef ... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
#define syosu(x) fixed << setprecision(x)
using namespace std;
typedef long long ll;
typedef unsigned int uint;
typedef unsigned long long ull;
typedef pair<int, int> P;
typedef pair<double, double> pdd;
typedef ... | [] | 280,410 | 280,411 | u434747175 | cpp |
p02580 | #include <memory.h>
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <uti... | #include <memory.h>
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <uti... | [
"control_flow.branch.if.condition.change"
] | 280,416 | 280,417 | u261965335 | cpp |
p02580 | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define cinf(n, x) \
for (int i = 0; i < (n); i++) \
cin >> x[i];
#define ft first
#define sc second
#defi... | #pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
#define cinf(n, x) \
for (int i = 0; i < (n); i++) \
cin >> x[i];
#define ft first
#define sc second
#defi... | [
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 280,426 | 280,427 | u619683748 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;
#define ALL(v) v.begin(), v.end()
#define vmax(v) *max_element(ALL(v))
#define vmin(v) *min_element(ALL(v))
#define chmax(x, a) x = max(x, a... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;
#define ALL(v) v.begin(), v.end()
#define vmax(v) *max_element(ALL(v))
#define vmin(v) *min_element(ALL(v))
#define chmax(x, a) x = max(x, a... | [
"identifier.change"
] | 280,435 | 280,436 | u552357043 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;
#define ALL(v) v.begin(), v.end()
#define vmax(v) *max_element(ALL(v))
#define vmin(v) *min_element(ALL(v))
#define chmax(x, a) x = max(x, a... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;
#define ALL(v) v.begin(), v.end()
#define vmax(v) *max_element(ALL(v))
#define vmin(v) *min_element(ALL(v))
#define chmax(x, a) x = max(x, a... | [
"literal.number.change",
"variable_declaration.value.change",
"identifier.change"
] | 280,437 | 280,436 | u552357043 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define REP(i, p, n) for (ll i = p; i < ll(n); ++i)
#define rep(i, n) REP(i, 0, n)
using ll = long long;
using pll = pair<ll, ll>;
int main() {
ll H, W, M;
cin >> H >> W >> M;
map<ll, ll> NX;
map<ll, ll> NY;
set<pll> P;
ll xn = 0, yn = 0;
rep(i, M) {
... | #include <bits/stdc++.h>
using namespace std;
#define REP(i, p, n) for (ll i = p; i < ll(n); ++i)
#define rep(i, n) REP(i, 0, n)
using ll = long long;
using pll = pair<ll, ll>;
int main() {
ll H, W, M;
cin >> H >> W >> M;
map<ll, ll> NX;
map<ll, ll> NY;
set<pll> P;
ll xn = 0, yn = 0;
rep(i, M) {
... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"io.output.change"
] | 280,443 | 280,444 | u039041830 | cpp |
p02580 | // E
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define all(v) v.begin(), v.end()
using namespace std;
typedef long long LL;
int frekx[300001], freky[300001], Segtree1[8000001], Segtree2[8000001];
vector<int> v[300001], v2[300001];
void build(int p, int L, in... | // E
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define all(v) v.begin(), v.end()
using namespace std;
typedef long long LL;
int frekx[300001], freky[300001], Segtree1[8000001], Segtree2[8000001];
vector<int> v[300001], v2[300001];
void build(int p, int L, in... | [
"identifier.change"
] | 280,450 | 280,451 | u911316809 | cpp |
p02580 | #include <bits/stdc++.h>
#define ntest 0
using namespace std;
long long h, w, m, x, y, res, mxX, mxY;
const long long k = 1e6;
set<long long> st;
long long r[300005], c[300005];
long long getH(long long x, long long y) { return x * k + y; }
void solve() {
cin >> h >> w >> m;
for (int i = 1; i <= m; ++i) {
cin... | #include <bits/stdc++.h>
#define ntest 0
using namespace std;
long long h, w, m, x, y, res, mxX, mxY;
const long long k = 1e6;
set<long long> st;
long long r[300005], c[300005];
long long getH(long long x, long long y) { return x * k + y; }
void solve() {
cin >> h >> w >> m;
for (int i = 1; i <= m; ++i) {
cin... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 280,454 | 280,455 | u507017575 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
struct A {
int cnt, idx;
A() { cnt = 0; }
} x[300001], y[300001];
bool cmp(A a, A b) { return a.cnt > b.cnt; }
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int h, w, m;
cin >> h >> w >> m;
int p, q;
unordered_set<ll> us;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
struct A {
int cnt, idx;
A() { cnt = 0; }
} x[300001], y[300001];
bool cmp(A a, A b) { return a.cnt > b.cnt; }
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int h, w, m;
cin >> h >> w >> m;
int p, q;
unordered_set<ll> us;
... | [
"control_flow.loop.for.initializer.change",
"assignment.change"
] | 280,473 | 280,474 | u504467586 | cpp |
p02580 | /// mAAria...
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | /// mAAria...
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define IOS \
ios::sync_with_stdio(0); \
cin.tie(0); ... | [] | 280,523 | 280,524 | u652712806 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define rep2(i, s, n) for (ll i = (s); i < (ll)(n); i++)
const ll MAX = 1001001;
const ll MOD = 1000000007;
int main() {
ll h, w, m;
cin >> h >> w >> m;
vector<ll> a(m), b... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
#define rep(i, n) for (ll i = 0; i < (ll)(n); ++i)
#define rep2(i, s, n) for (ll i = (s); i < (ll)(n); i++)
const ll MAX = 1001001;
const ll MOD = 1000000007;
int main() {
ll h, w, m;
cin >> h >> w >> m;
vector<ll> a(m), b... | [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change"
] | 280,525 | 280,526 | u387371565 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
int main() {
int H, W, M, h, w;
cin >> H >> W >> M;
set<pair<int, int>> st;
vector<int64_t> R(H, 0), C(W, 0), hs(M), ws(M);
for (int i = 0; i < M; i++) {
cin >> h >> w;
h--, w--;
R.at(h)++;
C.at(w)++;
hs.at(i) = h;
ws.at(i) = w;
st.ins... | #include <bits/stdc++.h>
using namespace std;
int main() {
int H, W, M, h, w;
cin >> H >> W >> M;
set<pair<int, int>> st;
vector<int64_t> R(H, 0), C(W, 0), hs(M), ws(M);
for (int i = 0; i < M; i++) {
cin >> h >> w;
h--, w--;
R.at(h)++;
C.at(w)++;
hs.at(i) = h;
ws.at(i) = w;
st.ins... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 280,537 | 280,538 | u543466827 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
int main() {
int H, W, M, h, w;
cin >> H >> W >> M;
set<pair<int, int>> st;
vector<int64_t> R(H, 0), C(W, 0), hs(M), ws(M);
for (int i = 0; i < M; i++) {
cin >> h >> w;
h--, w--;
R.at(h)++;
C.at(w)++;
hs.at(i) = h;
ws.at(i) = w;
st.ins... | #include <bits/stdc++.h>
using namespace std;
int main() {
int H, W, M, h, w;
cin >> H >> W >> M;
set<pair<int, int>> st;
vector<int64_t> R(H, 0), C(W, 0), hs(M), ws(M);
for (int i = 0; i < M; i++) {
cin >> h >> w;
h--, w--;
R.at(h)++;
C.at(w)++;
hs.at(i) = h;
ws.at(i) = w;
st.ins... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 280,539 | 280,538 | u543466827 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {... | #include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
template <class T> inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <class T> inline bool chmax(T &a, T b) {... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 280,542 | 280,543 | u028061225 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename T> using v2 = vector<vector<T>>;
template <typename T> inline v2<T> fill(int r, int c, const T &t) {
return v2<T>(r, vector<T>(c, t));
}
#define F first
#define S second
void solve() {
int h, w, m;
cin >> h >> w >> m;
vector... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <typename T> using v2 = vector<vector<T>>;
template <typename T> inline v2<T> fill(int r, int c, const T &t) {
return v2<T>(r, vector<T>(c, t));
}
#define F first
#define S second
void solve() {
int h, w, m;
cin >> h >> w >> m;
vector... | [
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 280,555 | 280,556 | u408943305 | cpp |
p02580 | #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... | [] | 280,581 | 280,582 | u108648546 | cpp |
p02580 | #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... | [
"identifier.change",
"expression.operation.binary.change"
] | 280,583 | 280,582 | u108648546 | 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 ff first
#define... |
// 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 ff first
#define... | [
"identifier.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 280,584 | 280,585 | u226058424 | cpp |
p02580 | // given n integers and an integer m such that n>m then there exits a pair
//(a-b) such that (a-b)%m==0
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
const ll M = 1000000007;
void solve() {
int r, c, m;
cin >> r >> c >> m;
int ans1 = 0, ans2 = 0, id1, id2;
map<int, int> p, q;
map<pa... | // given n integers and an integer m such that n>m then there exits a pair
//(a-b) such that (a-b)%m==0
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
const ll M = 1000000007;
void solve() {
int r, c, m;
cin >> r >> c >> m;
int ans1 = 0, ans2 = 0, id1, id2;
map<int, int> p, q;
map<pa... | [
"io.output.change",
"control_flow.return.add"
] | 280,592 | 280,593 | u422726351 | 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)
// #pragma GCC optimize("Ofast")
// #pragma GCC target("avx,avx2,fma")... |
// 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)
// #pragma GCC optimize("Ofast")
// #pragma GCC target("avx,avx2,fma")... | [
"assignment.change"
] | 280,594 | 280,595 | u774649089 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w, m;
cin >> h >> w >> m;
map<pair<int, int>, int> baku;
map<int, int> bh;
map<int, int> bw;
map<int, int> bhmax;
map<int, int> bwmax;
map<int, int> bh_flag;
map<int, int> bw_flag;
int tmp1, tmp2;
for (int i = 0; i < m; i++) {
c... | #include <bits/stdc++.h>
using namespace std;
int main() {
int h, w, m;
cin >> h >> w >> m;
map<pair<int, int>, int> baku;
map<int, int> bh;
map<int, int> bw;
map<int, int> bhmax;
map<int, int> bwmax;
map<int, int> bh_flag;
map<int, int> bw_flag;
int tmp1, tmp2;
for (int i = 0; i < m; i++) {
c... | [
"control_flow.branch.if.condition.change"
] | 280,603 | 280,604 | u285486772 | cpp |
p02580 | // AtCoder template
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; ++i)
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
map<pair<int, int>, int> mp;
int h, w, m;
cin >> h >> w >> m;
vector<pair<int, int>> row(h), col(w);
rep(i, h) row[... | // AtCoder template
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; ++i)
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
map<pair<int, int>, int> mp;
int h, w, m;
cin >> h >> w >> m;
vector<pair<int, int>> row(h), col(w);
rep(i, h) row[... | [
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change",
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 280,605 | 280,606 | u083190434 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
// print(fixed << setprecision(10));
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define repk(i, n, k) for (ll i = k; i < (n); i++)
#define all(n) n.begin(), n.end()
#define print(n) cout << n << endl
double PI = acos(-1.0);
int INF = 1e9;
ll LINF ... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
// print(fixed << setprecision(10));
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define repk(i, n, k) for (ll i = k; i < (n); i++)
#define all(n) n.begin(), n.end()
#define print(n) cout << n << endl
double PI = acos(-1.0);
int INF = 1e9;
ll LINF ... | [
"call.arguments.change",
"control_flow.branch.if.condition.change",
"call.arguments.add"
] | 280,609 | 280,610 | u713575610 | cpp |
p02580 | #include <algorithm>
#include <bitset>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define N (1000000000 + 7)
//#define N 99824... | #include <algorithm>
#include <bitset>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <stdio.h>
#include <string>
#include <utility>
#include <vector>
using namespace std;
#define N (1000000000 + 7)
//#define N 99824... | [
"identifier.change",
"io.output.change"
] | 280,632 | 280,633 | u744305661 | cpp |
p02580 | #include "bits/stdc++.h"
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ll h, w, m2;
cin >> h >> w >> m2;
vector<vector<ll>> m;
vector<vector<ll>> hh(h, vector<ll>(2, 0));
vector<vector<ll>> ww(w, vector<ll>(2, 0));
vector<l... | #include "bits/stdc++.h"
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ll h, w, m2;
cin >> h >> w >> m2;
vector<vector<ll>> m;
vector<vector<ll>> hh(h, vector<ll>(2, 0));
vector<vector<ll>> ww(w, vector<ll>(2, 0));
vector<l... | [
"control_flow.branch.if.condition.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 280,653 | 280,654 | u992471673 | cpp |
p02580 | // Always check for base cases
// Check for overflows and out of index
// Do something instead of sitting idle
#include <bits/stdc++.h>
#define ll long long
#define f first
#define s second
#define pb push_back
#define mod 1000000007
#define mod1 1000000009
#define hell 998244353
#define inf 1000000000000000000LL
#defi... | // Always check for base cases
// Check for overflows and out of index
// Do something instead of sitting idle
#include <bits/stdc++.h>
#define ll long long
#define f first
#define s second
#define pb push_back
#define mod 1000000007
#define mod1 1000000009
#define hell 998244353
#define inf 1000000000000000000LL
#defi... | [
"identifier.change"
] | 280,655 | 280,656 | u103799157 | cpp |
p02580 | #pragma GCC optimize(3, "Ofast", "inline")
#include <bits/stdc++.h>
#define ios std::ios::sync_with_stdio(false)
#define rep(i, a, n) for (int i = a; i <= n; i++)
#define per(i, n, a) for (int i = n; i >= a; i--)
#define repp(i, a, b) for (int i = a; i < b; i++)
#define mm(a, n) memset(a, n, sizeof(a))
#define pb push_... | #pragma GCC optimize(3, "Ofast", "inline")
#include <bits/stdc++.h>
#define ios std::ios::sync_with_stdio(false)
#define rep(i, a, n) for (int i = a; i <= n; i++)
#define per(i, n, a) for (int i = n; i >= a; i--)
#define repp(i, a, b) for (int i = a; i < b; i++)
#define mm(a, n) memset(a, n, sizeof(a))
#define pb push_... | [
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"assignment.add"
] | 280,659 | 280,660 | u013955897 | cpp |
p02580 | #include <bits/stdc++.h>
#define INF 2e9
#define MOD 1000000007
#define MOD9 998244353
#define intMAX 51000;
#define PI 3.14159265359
using namespace std;
typedef long long llong;
typedef long double ldouble;
using Graph = vector<vector<int>>;
int main() {
typedef pair<int, int> pair;
int H, W, M;
cin >> H >> W... | #include <bits/stdc++.h>
#define INF 2e9
#define MOD 1000000007
#define MOD9 998244353
#define intMAX 51000;
#define PI 3.14159265359
using namespace std;
typedef long long llong;
typedef long double ldouble;
using Graph = vector<vector<int>>;
int main() {
typedef pair<int, int> pair;
int H, W, M;
cin >> H >> W... | [
"expression.operation.unary.add",
"control_flow.branch.if.condition.change"
] | 280,672 | 280,673 | u108484707 | cpp |
p02580 | #include <bits/stdc++.h>
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define endl "\n"
using namespac... | #include <bits/stdc++.h>
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define endl "\n"
using namespac... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 280,682 | 280,683 | u866535689 | cpp |
p02580 | #include <bits/stdc++.h>
#define rep(i, l, r) for (int i = (l); i <= (r); i++)
#define per(i, r, l) for (int i = (r); i >= (l); i--)
#define mem(a, b) memset(a, b, sizeof a)
#define mp make_pair
using namespace std;
const int N = 3e5 + 5, MI = 1e6;
int read() {
static streambuf *in = cin.rdbuf();
#define gc ... | #include <bits/stdc++.h>
#define rep(i, l, r) for (int i = (l); i <= (r); i++)
#define per(i, r, l) for (int i = (r); i >= (l); i--)
#define mem(a, b) memset(a, b, sizeof a)
#define mp make_pair
using namespace std;
const int N = 3e5 + 5, MI = 1e6;
int read() {
static streambuf *in = cin.rdbuf();
#define gc ... | [
"expression.operation.binary.remove"
] | 280,694 | 280,695 | u826261996 | cpp |
p02580 | /* *****fireice**** */
#include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define vi vector<int>
#define vc vector<char>
#define vl vector<ll>
#define vii vector<pair<int, int>>
#define vll vector<pair<ll, ll>>
#define pii pair<int, int>
#define pb push_back
#define eb emplace_back
#define el '\... | /* *****fireice**** */
#include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define vi vector<int>
#define vc vector<char>
#define vl vector<ll>
#define vii vector<pair<int, int>>
#define vll vector<pair<ll, ll>>
#define pii pair<int, int>
#define pb push_back
#define eb emplace_back
#define el '\... | [
"assignment.change"
] | 280,738 | 280,739 | u093730269 | cpp |
p02580 | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
//----------------------- Print Function ----------------------//
inline void print() { cout << endl; }
template <typename First, typename... Rest>
void print(const First &first, const Rest &...rest) {
cout << first << ' ';
print(rest...);
}
... | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
//----------------------- Print Function ----------------------//
inline void print() { cout << endl; }
template <typename First, typename... Rest>
void print(const First &first, const Rest &...rest) {
cout << first << ' ';
print(rest...);
}
... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 280,744 | 280,745 | u736788838 | cpp |
p02580 | /* --------------------
| LOSER |
| ~NOOBOSS~ |
--------------------
*/
#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 inl(x) scanf("%lld", &x)
#define in(x) scanf("%d", ... | /* --------------------
| LOSER |
| ~NOOBOSS~ |
--------------------
*/
#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 inl(x) scanf("%lld", &x)
#define in(x) scanf("%d", ... | [
"call.remove"
] | 280,747 | 280,748 | u614233094 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define debug(n) cerr << #n << ':' << n << endl;
#define dline cerr << __LINE__ << endl;
using ll = long long;
template <class T, class U> using P = pair<T, U>;
template <class T> using Heap = priority_queue<T>;
template <class T> using heaP = priority_queue<T, vector<T>... | #include <bits/stdc++.h>
using namespace std;
#define debug(n) cerr << #n << ':' << n << endl;
#define dline cerr << __LINE__ << endl;
using ll = long long;
template <class T, class U> using P = pair<T, U>;
template <class T> using Heap = priority_queue<T>;
template <class T> using heaP = priority_queue<T, vector<T>... | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 280,755 | 280,756 | u691380397 | cpp |
p02580 | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
using ll = long long;
int main() {
int h, w, m;
cin >> h >> w >> m;
vector<int> kaburi[w];
int A[h], B[w];
rep(i, h) A[i] = 0;
rep(i, w) B[i] = 0;
rep(i, m) {
int a, b;
cin >> a >> b;
a--;
b--;
... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
using ll = long long;
int main() {
int h, w, m;
cin >> h >> w >> m;
vector<int> kaburi[w];
int A[h], B[w];
rep(i, h) A[i] = 0;
rep(i, w) B[i] = 0;
rep(i, m) {
int a, b;
cin >> a >> b;
a--;
b--;
... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 280,794 | 280,795 | u704011915 | cpp |
p02580 | //
// main.cpp
// CP-C++
//
// Created by ALOK KUMAR THAKUR on 05/05/20.
// Copyright © 2020 ALOK KUMAR THAKUR. All rights reserved.
//
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define tc() \
ll T; ... | //
// main.cpp
// CP-C++
//
// Created by ALOK KUMAR THAKUR on 05/05/20.
// Copyright © 2020 ALOK KUMAR THAKUR. All rights reserved.
//
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define tc() \
ll T; ... | [] | 280,801 | 280,802 | u463445762 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define ll long long
#define ld long double
#define MOD 1000000007
#define nl cout << bl
#define rt ll Q[100005] = {0}
#define mp make_pair
#define test() \... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define ll long long
#define ld long double
#define MOD 1000000007
#define nl cout << bl
#define rt ll Q[100005] = {0}
#define mp make_pair
#define test() \... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 280,817 | 280,818 | u840990750 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define ll long long
#define ld long double
#define MOD 1000000007
#define nl cout << bl
#define rt ll Q[100005] = {0}
#define mp make_pair
#define test() \... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define ll long long
#define ld long double
#define MOD 1000000007
#define nl cout << bl
#define rt ll Q[100005] = {0}
#define mp make_pair
#define test() \... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 280,819 | 280,818 | u840990750 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define ll long long
#define ld long double
#define MOD 1000000007
#define nl cout << bl
#define rt ll Q[100005] = {0}
#define mp make_pair
#define test() \... | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define ll long long
#define ld long double
#define MOD 1000000007
#define nl cout << bl
#define rt ll Q[100005] = {0}
#define mp make_pair
#define test() \... | [
"control_flow.break.add"
] | 280,820 | 280,818 | u840990750 | cpp |
p02580 |
/*
* Created By: 'Present_Sir'
* Created On: Saturday 22 August 2020 08:07:43 PM IST
*/
#include <bits/stdc++.h>
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define all(v) v.begin()... |
/*
* Created By: 'Present_Sir'
* Created On: Saturday 22 August 2020 08:07:43 PM IST
*/
#include <bits/stdc++.h>
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define all(v) v.begin()... | [
"control_flow.return.add"
] | 280,821 | 280,822 | u017126737 | cpp |
p02580 | #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) (... | [
"expression.operation.binary.add"
] | 280,834 | 280,835 | u221285045 | cpp |
p02580 | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <chrono>
#include <cstdio>
#include <ctime>
#include <ctype.h>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <r... | #include <algorithm>
#include <assert.h>
#include <bitset>
#include <chrono>
#include <cstdio>
#include <ctime>
#include <ctype.h>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <r... | [
"control_flow.loop.for.condition.change"
] | 280,856 | 280,857 | u127959355 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll h, w, m;
cin >> h >> w >> m;
vector<pair<ll, ll>> bombs(m);
vector<ll> h_count(h), w_count(w);
for (ll i = 0; i < m; i++) {
ll hi, wi;
cin >> hi >> wi;
hi--;
wi--;
bombs[i] = {hi, wi};
h_count[hi]++;
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ll h, w, m;
cin >> h >> w >> m;
vector<pair<ll, ll>> bombs(m);
vector<ll> h_count(h), w_count(w);
for (ll i = 0; i < m; i++) {
ll hi, wi;
cin >> hi >> wi;
hi--;
wi--;
bombs[i] = {hi, wi};
h_count[hi]++;
... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 280,862 | 280,863 | u073731976 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef long long ll;
typedef long double ld;
const int mod = 998244353;
const ll inf = 3e18 + 5;
int add(int a, int b) { return (a += b) < mod ? a ... | #include <bits/stdc++.h>
using namespace std;
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef long long ll;
typedef long double ld;
const int mod = 998244353;
const ll inf = 3e18 + 5;
int add(int a, int b) { return (a += b) < mod ? a ... | [
"misc.opposites",
"variable_declaration.value.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"assignment.value.change"
] | 280,866 | 280,867 | u788461451 | 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>
#include <ext/pb_ds/assoc_container.hpp>
#inc... |
// 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>
#include <ext/pb_ds/assoc_container.hpp>
#inc... | [
"expression.operation.unary.add",
"call.arguments.change"
] | 280,871 | 280,872 | u422600158 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<pii> vpii;
typedef vector<pll> vpll;
typedef vector<string> vs;
typedef vector<vi> vvi;
typ... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<pii> vpii;
typedef vector<pll> vpll;
typedef vector<string> vs;
typedef vector<vi> vvi;
typ... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 280,873 | 280,874 | u257544682 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<pii> vpii;
typedef vector<pll> vpll;
typedef vector<string> vs;
typedef vector<vi> vvi;
typ... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<pii> vpii;
typedef vector<pll> vpll;
typedef vector<string> vs;
typedef vector<vi> vvi;
typ... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 280,875 | 280,874 | u257544682 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define pii pair<int, int>
#define pll pair<ll, ll>
#define mkp make_pair
#define pb push_back
#define pf push_front
#define popb pop_back
#define popf pop_front
#define ff first
#define ss second
#define endl "\n"
#define MOD 1... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#define pii pair<int, int>
#define pll pair<ll, ll>
#define mkp make_pair
#define pb push_back
#define pf push_front
#define popb pop_back
#define popf pop_front
#define ff first
#define ss second
#define endl "\n"
#define MOD 1... | [
"assignment.value.change",
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 280,888 | 280,889 | u137145433 | cpp |
p02580 | #include "bits/stdc++.h"
const int INF = 1e9;
int main() {
std::ios_base::sync_with_stdio(false);
std::cout.tie(nullptr);
std::cin.tie(nullptr);
int h, w, m;
std::cin >> h >> w >> m;
std::map<int, int> cntx, cnty;
std::map<int, std::map<int, int>> cnt;
for (int i = 0, x, y; i < m; i++) {
std::c... | #include "bits/stdc++.h"
const int INF = 1e9;
int main() {
std::ios_base::sync_with_stdio(false);
std::cout.tie(nullptr);
std::cin.tie(nullptr);
int h, w, m;
std::cin >> h >> w >> m;
std::map<int, int> cntx, cnty;
std::map<int, std::map<int, int>> cnt;
for (int i = 0, x, y; i < m; i++) {
std::c... | [
"identifier.change"
] | 280,900 | 280,901 | u081540241 | cpp |
p02580 | #include "bits/stdc++.h"
const int INF = 1e9;
int main() {
std::ios_base::sync_with_stdio(false);
std::cout.tie(nullptr);
std::cin.tie(nullptr);
int h, w, m;
std::cin >> h >> w >> m;
std::map<int, int> cntx, cnty;
std::map<int, std::map<int, int>> cnt;
for (int i = 0, x, y; i < m; i++) {
std::c... | #include "bits/stdc++.h"
const int INF = 1e9;
int main() {
std::ios_base::sync_with_stdio(false);
std::cout.tie(nullptr);
std::cin.tie(nullptr);
int h, w, m;
std::cin >> h >> w >> m;
std::map<int, int> cntx, cnty;
std::map<int, std::map<int, int>> cnt;
for (int i = 0, x, y; i < m; i++) {
std::c... | [
"identifier.change",
"variable_access.subscript.index.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 280,902 | 280,901 | u081540241 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pii pair<int, int>
#define _FastIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pii pair<int, int>
#define _FastIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | [
"misc.opposites",
"variable_declaration.value.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 280,903 | 280,904 | u958323734 | cpp |
p02580 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <numeric>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using PV = pair<int, vector<int>>;
using PII = pair<int, int>;
void show(vector<int> &v) {
for (auto x : v) {
printf("%d ", x);
}
printf(... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <numeric>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
using PV = pair<int, vector<int>>;
using PII = pair<int, int>;
void show(vector<int> &v) {
for (auto x : v) {
printf("%d ", x);
}
printf(... | [
"call.arguments.change"
] | 280,913 | 280,914 | u590241855 | cpp |
p02580 | #include <algorithm>
#include <iostream>
#include <map>
using namespace std;
typedef pair<int, int> P;
int main() {
int h, w, m;
cin >> h >> w >> m;
int x[300005]{0}, y[100005]{0};
map<P, int> mp;
for (int i = 0; i < m; i++) {
int a, b;
cin >> a >> b;
a--;
b--;
x[a]++;
y[b]++;
mp[... | #include <algorithm>
#include <iostream>
#include <map>
using namespace std;
typedef pair<int, int> P;
int main() {
int h, w, m;
cin >> h >> w >> m;
int x[300005]{0}, y[300005]{0};
map<P, int> mp;
for (int i = 0; i < m; i++) {
int a, b;
cin >> a >> b;
a--;
b--;
x[a]++;
y[b]++;
mp[... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 280,923 | 280,922 | u681557252 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
int main() {
int H, W, M;
cin >> H >> W >> M;
vector<int> h(M), w(M);
// vector<vector<int>> h_vec(H, vector<int>()), w_vec(W, vector<int>());
// vector<pair<int, vector<int>>> h_vec(H, pair<int, vector<int>>()), w_vec(W,
// pair<int, vector<int>>());
vector<... | #include <bits/stdc++.h>
using namespace std;
int main() {
int H, W, M;
cin >> H >> W >> M;
vector<int> h(M), w(M);
// vector<vector<int>> h_vec(H, vector<int>()), w_vec(W, vector<int>());
// vector<pair<int, vector<int>>> h_vec(H, pair<int, vector<int>>()), w_vec(W,
// pair<int, vector<int>>());
vector<... | [
"identifier.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 280,928 | 280,929 | u982630224 | cpp |
p02580 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define pb push_back
#define ll long long
#define si short int
#define speed ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define pill pair<ll, ll>
#define f first
#define s second
#define pilc pair<ll, char>
#define all(a) (a).begin(), (a).end(... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define pb push_back
#define ll long long
#define si short int
#define speed ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0)
#define pill pair<ll, ll>
#define f first
#define s second
#define pilc pair<ll, char>
#define all(a) (a).begin(), (a).end(... | [
"variable_declaration.value.change",
"identifier.change",
"control_flow.loop.for.initializer.change"
] | 280,939 | 280,940 | u479223170 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(void) {
// Your code here!
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll i, mr, mc, h, w, m, x, y;
cin >> h >> w >> m;
ll r[h], c[w];
for (i = 0; i < h; i++)
r[i] = 0;
for (i = 0; i < w; i++)
c[i] = 0;
set<pa... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(void) {
// Your code here!
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll i, mr, mc, h, w, m, x, y;
cin >> h >> w >> m;
ll r[h], c[w];
for (i = 0; i < h; i++)
r[i] = 0;
for (i = 0; i < w; i++)
c[i] = 0;
set<pa... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 280,945 | 280,946 | u105724567 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(void) {
// Your code here!
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int i, mr, mc, h, w, m, x, y;
cin >> h >> w >> m;
int r[h], c[w];
for (i = 0; i < h; i++)
r[i] = 0;
for (i = 0; i < w; i++)
c[i] = 0;
set<... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(void) {
// Your code here!
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll i, mr, mc, h, w, m, x, y;
cin >> h >> w >> m;
ll r[h], c[w];
for (i = 0; i < h; i++)
r[i] = 0;
for (i = 0; i < w; i++)
c[i] = 0;
set<pa... | [
"variable_declaration.type.change",
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 280,947 | 280,946 | u105724567 | cpp |
p02580 | // abc176_e
#include <bits/stdc++.h>
#ifdef LOCAL
#include "../cxx-prettyprint/prettyprint.hpp"
#endif
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;
#define REP(i, n) for (int(i) = 0; (i) < (int)(n); ++(i))
#define REPN(i, m, n) for (int(i) = m; (i) < (int)(n); +... | // abc176_e
#include <bits/stdc++.h>
#ifdef LOCAL
#include "../cxx-prettyprint/prettyprint.hpp"
#endif
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;
#define REP(i, n) for (int(i) = 0; (i) < (int)(n); ++(i))
#define REPN(i, m, n) for (int(i) = m; (i) < (int)(n); +... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 280,950 | 280,951 | u614550445 | cpp |
p02580 | #pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#define int long long
#define double long double
#define mp make_pair
#define pb push_back
#define er erase
#define cl clear
#define sw swap
#define br break
#define ct continue
#define rt return
#define ... | #pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#define int long long
#define double long double
#define mp make_pair
#define pb push_back
#define er erase
#define cl clear
#define sw swap
#define br break
#define ct continue
#define rt return
#define ... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 280,963 | 280,964 | u886860078 | cpp |
p02580 | #include <bits/stdc++.h>
#define rep(a, b, c) for (int a = b; a <= c; a++)
#define per(a, b, c) for (int a = b; a >= c; a--)
#define ios \
; \
ios::sync_with_stdio(false); ... | #include <bits/stdc++.h>
#define rep(a, b, c) for (int a = b; a <= c; a++)
#define per(a, b, c) for (int a = b; a >= c; a--)
#define ios \
; \
ios::sync_with_stdio(false); ... | [
"call.arguments.change"
] | 280,965 | 280,966 | u320672088 | cpp |
p02580 | #pragma GCC optimize("Ofast")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
template <class T>
using ordered_set =
__gnu_pbds::tree<T, __gnu_pbds::null_type... | #pragma GCC optimize("Ofast")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
template <class T>
using ordered_set =
__gnu_pbds::tree<T, __gnu_pbds::null_type... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 280,976 | 280,977 | u996215337 | cpp |
p02580 | #include <bits/stdc++.h>
#define nl endl
#define dbg(a) cout << #a << "=" << a << endl
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
#define nl endl
#define dbg(a) cout << #a << "=" << a << endl
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 280,982 | 280,983 | u070598651 | cpp |
p02580 | #include <algorithm>
#include <stdio.h>
long long h, w, m, c, d, mx, my, e, f, l, r, t, k;
long long x[300000];
long long y[300000];
long long z[300000];
long long u[300000];
long long v[300000];
int main() {
scanf("%lld%lld%lld", &h, &w, &m);
for (int i = 0; i < m; i++) {
scanf("%lld%lld", &c, &d);
c--;
... | #include <algorithm>
#include <stdio.h>
long long h, w, m, c, d, mx, my, e, f, l, r, t, k;
long long x[300000];
long long y[300000];
long long z[300000];
long long u[300000];
long long v[300000];
int main() {
scanf("%lld%lld%lld", &h, &w, &m);
for (int i = 0; i < m; i++) {
scanf("%lld%lld", &c, &d);
c--;
... | [
"assignment.value.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 280,988 | 280,989 | u546925116 | cpp |
p02580 | #include <bits/stdc++.h>
#define REP(i, s, n) for (int i = s; i < (int)(n); i++)
#define ALL(a) a.begin(), a.end()
#define MOD 1000000007
using namespace std;
using ll = long long;
int main() {
cin.tie(0);
cout.tie(0);
ios::sync_with_stdio(false);
int H, W, M;
cin >> H >> W >> M;
map<pair<int, int>, bool>... | #include <bits/stdc++.h>
#define REP(i, s, n) for (int i = s; i < (int)(n); i++)
#define ALL(a) a.begin(), a.end()
#define MOD 1000000007
using namespace std;
using ll = long long;
int main() {
cin.tie(0);
cout.tie(0);
ios::sync_with_stdio(false);
int H, W, M;
cin >> H >> W >> M;
map<pair<int, int>, bool>... | [
"assignment.add"
] | 280,992 | 280,993 | u483992368 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define dd double
#define endl "\n"
#define pb push_back
#define all(v) v.begin(), v.end()
#define mp make_pair
#define fi first
#define se second
#define vll vector<ll>
#define pll pair<ll, ll>
#define fo(i, n) for (int i = 0; i < n; i++)
#define fo1(i... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define dd double
#define endl "\n"
#define pb push_back
#define all(v) v.begin(), v.end()
#define mp make_pair
#define fi first
#define se second
#define vll vector<ll>
#define pll pair<ll, ll>
#define fo(i, n) for (int i = 0; i < n; i++)
#define fo1(i... | [
"expression.operation.binary.add"
] | 280,994 | 280,995 | u986517779 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
int n, m, q, sumr[330000], sumc[330000], x, y, ans;
int ansr[330000], ansc[330000];
long long maxr, maxc, totr, totc;
map<pair<int, int>, bool> mp;
int main() {
scanf("%d%d%d", &n, &m, &q);
for (int i = 1; i <= q; i++) {
scanf("%d%d", &x, &y);
sumr[x]++;
if ... | #include <bits/stdc++.h>
using namespace std;
int n, m, q, sumr[330000], sumc[330000], x, y, ans;
int ansr[330000], ansc[330000];
long long maxr, maxc, totr, totc;
map<pair<int, int>, bool> mp;
int main() {
scanf("%d%d%d", &n, &m, &q);
for (int i = 1; i <= q; i++) {
scanf("%d%d", &x, &y);
sumr[x]++;
if ... | [
"assignment.value.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 281,021 | 281,022 | u860376430 | 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 int long long // [9,223,372,036,854,775,807 to -9.....808] 19 digits
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define mp make_pair
#define vi ... | #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 int long long // [9,223,372,036,854,775,807 to -9.....808] 19 digits
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define mp make_pair
#define vi ... | [] | 281,027 | 281,028 | u503353376 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> ii;
int h, w, m;
map<int, int> r;
map<int, int> c;
vector<int> maxr, maxc;
int maxrval, maxcval;
map<ii, bool> istarget;
int main() {
scanf("%d%d%d", &h, &w, &m);
for (int i = 0; i < m; i++) {
int curh, curw;
scanf("%d%d", &curh, &curw)... | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> ii;
int h, w, m;
map<int, int> r;
map<int, int> c;
vector<int> maxr, maxc;
int maxrval, maxcval;
map<ii, bool> istarget;
int main() {
scanf("%d%d%d", &h, &w, &m);
for (int i = 0; i < m; i++) {
int curh, curw;
scanf("%d%d", &curh, &curw)... | [
"control_flow.branch.if.add"
] | 281,029 | 281,030 | u401171259 | cpp |
p02580 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int h, w, m;
cin >> h >> w >> m;
set<pair<int, int>> st;
vector<int> a(h + 1), b(w + 1);
for (int i = 0; i < m; i++) {
int u, v;
cin >> u >> v;
st.insert(make_pair(u, v));
a[u]++;
b[v]++;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int h, w, m;
cin >> h >> w >> m;
set<pair<int, int>> st;
vector<int> a(h + 1), b(w + 1);
for (int i = 0; i < m; i++) {
int u, v;
cin >> u >> v;
st.insert(make_pair(u, v));
a[u]++;
b[v]++;
... | [
"identifier.change"
] | 281,036 | 281,037 | u235970759 | cpp |
p02580 | /*{{{*/
#include "bits/stdc++.h"
using namespace std;
#define MT make_tuple
#define all(x) begin(x), end(x)
#define putchar(x) cout << (x)
static int fastio = []() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.precision(17);
return 0;
}();
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count... | /*{{{*/
#include "bits/stdc++.h"
using namespace std;
#define MT make_tuple
#define all(x) begin(x), end(x)
#define putchar(x) cout << (x)
static int fastio = []() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.precision(17);
return 0;
}();
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count... | [
"call.arguments.add"
] | 281,042 | 281,043 | u097873932 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.