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 |
|---|---|---|---|---|---|---|---|
p02574 | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
// Policy based data structure
typedef tree<int, null_type, less_equal<int>, rb_tree_tag,
tree_order_statistics_node_update>
indexed_set;
#define ll long long int
#define pii pair<ll, ll>
... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
// Policy based data structure
typedef tree<int, null_type, less_equal<int>, rb_tree_tag,
tree_order_statistics_node_update>
indexed_set;
#define ll long long int
#define pii pair<ll, ll>
... | [
"preprocessor.define.value.change",
"literal.integer.change"
] | 270,832 | 270,833 | u159468591 | cpp |
p02574 | #include <bits/stdc++.h>
//{ START
using namespace std;
#define int int64_t
#define rep(i, a, n) for (int i = (a); i < (n); ++i)
#define reps(i, a, n) for (int i = (n - 1); i > (a - 1); --i)
#define arep(i, x) for (auto &&i : (x))
#define irep(i, x) for (auto i = (x).begin(); i != (x).end(); ++i)
#define rirep(i, x) f... | #include <bits/stdc++.h>
//{ START
using namespace std;
#define int int64_t
#define rep(i, a, n) for (int i = (a); i < (n); ++i)
#define reps(i, a, n) for (int i = (n - 1); i > (a - 1); --i)
#define arep(i, x) for (auto &&i : (x))
#define irep(i, x) for (auto i = (x).begin(); i != (x).end(); ++i)
#define rirep(i, x) f... | [] | 270,834 | 270,835 | u600244905 | cpp |
p02574 | #include <algorithm>
#include <iostream>
using namespace std;
const int sz = 1e6 + 1;
bool sieve[sz], f;
int cnt[sz], num[sz];
inline int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
void func(int n) {
int d = 2, pre = 0;
while (sieve[n]) {
if (n % d == 0) {
n /= d;
if (pre != d) {
... | #include <algorithm>
#include <iostream>
using namespace std;
const int sz = 1e6 + 1;
bool sieve[sz], f;
int cnt[sz], num[sz];
inline int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
void func(int n) {
int d = 2, pre = 0;
while (sieve[n]) {
if (n % d == 0) {
n /= d;
if (pre != d) {
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 270,839 | 270,840 | u529372794 | cpp |
p02574 | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < (ll)n; ++i)
using P = pair<ll, ll>;
int main() {
ll n;
cin >> n;
vector<ll> a(n);
vector<ll> c(1000005, 0);
rep(i, n) {
cin >> a.at(i);
c.at(a.at(i))++;
... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < (ll)n; ++i)
using P = pair<ll, ll>;
int main() {
ll n;
cin >> n;
vector<ll> a(n);
vector<ll> c(1000005, 0);
rep(i, n) {
cin >> a.at(i);
c.at(a.at(i))++;
... | [
"control_flow.loop.for.condition.change",
"literal.number.change",
"variable_declaration.value.change"
] | 270,843 | 270,844 | u548778623 | cpp |
p02574 | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < (ll)n; ++i)
using P = pair<ll, ll>;
int main() {
ll n;
cin >> n;
vector<ll> a(n);
vector<ll> c(1000005, 0);
rep(i, n) {
cin >> a.at(i);
c.at(a.at(i))++;
... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
using ll = long long;
#define rep(i, n) for (ll i = 0; i < (ll)n; ++i)
using P = pair<ll, ll>;
int main() {
ll n;
cin >> n;
vector<ll> a(n);
vector<ll> c(1000005, 0);
rep(i, n) {
cin >> a.at(i);
c.at(a.at(i))++;
... | [
"control_flow.loop.for.condition.change"
] | 270,845 | 270,844 | u548778623 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
const int N = 2e6;
long long prime[N];
int freq[N];
bool seive() {
for (int i = 2; i <= 1e6; i++) {
if (!prime[i]) {
int c = 0;
for (int j = 2 * i; j <= 1e6; j += i) {
prime[j]++;
if (freq[j]) {
if (c)
return false;
... | #include <bits/stdc++.h>
using namespace std;
const int N = 2e6;
long long prime[N];
int freq[N];
bool seive() {
for (int i = 2; i <= 1e6; i++) {
// if(freq[i]>1)return false ;
if (!prime[i]) {
int c = 0;
for (int j = i; j <= 1e6; j += i) {
prime[j]++;
if (freq[j]) {
if... | [
"control_flow.loop.for.initializer.change",
"expression.operation.binary.remove",
"variable_declaration.add"
] | 270,846 | 270,847 | u660313082 | cpp |
p02574 | #include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
#define sync \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define input(arr, n) ... | #include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
#define sync \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define input(arr, n) ... | [] | 270,848 | 270,849 | u181228520 | cpp |
p02574 | #include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
#define sync \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define input(arr, n) ... | #include <bits/stdc++.h>
typedef long long int ll;
typedef long double ld;
#define sync \
ios_base::sync_with_stdio(false); \
cin.tie(NULL)
#define input(arr, n) ... | [
"control_flow.loop.for.initializer.change",
"expression.operation.binary.remove"
] | 270,850 | 270,849 | u181228520 | cpp |
p02574 | #include <bits/stdc++.h>
#define be(v) (v).begin(), (v).end()
#define pb(q) push_back(q)
typedef long long ll;
using namespace std;
const ll mod = 1000000007, INF = (1LL << 60);
#define doublecout(a) cout << fixed << setprecision(10) << a << endl;
bool mp[1000001];
int p[1000001];
int M = 1000000;
bool prime(int n) {
... | #include <bits/stdc++.h>
#define be(v) (v).begin(), (v).end()
#define pb(q) push_back(q)
typedef long long ll;
using namespace std;
const ll mod = 1000000007, INF = (1LL << 60);
#define doublecout(a) cout << fixed << setprecision(10) << a << endl;
bool mp[1000001];
int p[1000001];
int M = 1000000;
bool prime(int n) {
... | [
"expression.operator.change"
] | 270,858 | 270,859 | u192903163 | cpp |
p02574 | #include <array>
#include <iostream>
#include <limits>
#include <utility>
#include <vector>
constexpr int MAX_A = 1'000'000;
std::array<int, MAX_A + 1> minPrime;
int main(void) {
std::fill(minPrime.begin(), minPrime.end(), std::numeric_limits<int>::max());
minPrime[0] = 1;
minPrime[1] = 1;
for (int p = 2; p <... | #include <array>
#include <iostream>
#include <limits>
#include <utility>
#include <vector>
constexpr int MAX_A = 1'000'000;
std::array<int, MAX_A + 1> minPrime;
int main(void) {
std::fill(minPrime.begin(), minPrime.end(), std::numeric_limits<int>::max());
minPrime[0] = 1;
minPrime[1] = 1;
for (int p = 2; p <... | [
"literal.string.change",
"expression.operation.binary.change"
] | 270,866 | 270,867 | u394853232 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
cin >> N;
bool pairwise = true;
vector<int> atable(10000005, 0);
vector<int> A(N);
for (auto &&e : A) {
cin >> e;
if (atable[e] > 0) {
pairwise = false;
}
atable[e]++;... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N;
cin >> N;
bool pairwise = true;
vector<int> atable(10000005, 0);
vector<int> A(N);
for (auto &&e : A) {
cin >> e;
if (e > 1 && atable[e] > 0) {
pairwise = false;
}
ata... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 270,874 | 270,873 | u782098901 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 7;
int n, cnt[N], freq[N], x[N], vi[N];
int main() {
#ifdef LOCAL
freopen("input", "r", stdin);
#endif
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", &x[i]);
freq[x[i]]++;
}
for (int i = 0; i < n; i++) {
if (vi[x[i... | #include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 7;
int n, cnt[N], freq[N], x[N], vi[N];
int main() {
#ifdef LOCAL
freopen("input", "r", stdin);
#endif
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", &x[i]);
freq[x[i]]++;
}
for (int i = 0; i < n; i++) {
if (vi[x[i... | [] | 270,875 | 270,876 | u249159799 | cpp |
p02574 | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fir first
#define sec second
#define SZ(a) (int)((a).size())
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef double db;
typedef pair<int, int> Pii;
typedef pair<ll, int> Pli;
typedef unsigned long long ul... | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fir first
#define sec second
#define SZ(a) (int)((a).size())
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
typedef double db;
typedef pair<int, int> Pii;
typedef pair<ll, int> Pli;
typedef unsigned long long ul... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 270,885 | 270,884 | u984971909 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define SPEED \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)
#define fileio ... | #include <bits/stdc++.h>
using namespace std;
#define SPEED \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0)
#define fileio ... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"assignment.value.change"
] | 270,895 | 270,894 | u621912640 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return true;
}
return false;
}
#define all(x) (x).beg... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return true;
}
return false;
}
#define all(x) (x).beg... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 270,897 | 270,898 | u133391510 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return true;
}
return false;
}
#define all(x) (x).beg... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return true;
}
return false;
}
#define all(x) (x).beg... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change",
"assignment.value.change",
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 270,899 | 270,898 | u133391510 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
const int mod = (int)(1e9) + 7;
using ll = long long;
vector<int> v(1000005);
int cnt[1000005];
int main() {
vector<int> primes;
for (int i = 2; i <= 1005; i++) {
int sq = sqrt(i);
int f = 0;
for (int j = 2; j <= sq; j++) {
if (i % j == 0)
... | #include <bits/stdc++.h>
using namespace std;
const int mod = (int)(1e9) + 7;
using ll = long long;
vector<int> v(1000005);
int cnt[1000005];
int main() {
vector<int> primes;
for (int i = 2; i <= 1005; i++) {
int sq = sqrt(i);
int f = 0;
for (int j = 2; j <= sq; j++) {
if (i % j == 0)
... | [
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change"
] | 270,906 | 270,907 | u916682527 | cpp |
p02574 | #include <bits/stdc++.h>
#include <math.h>
#include <time.h>
using namespace std;
#define ll long long
#define rep(i, n) for (int i = 0; i < n; i++)
const ll MOD = 1000000007;
const long double PI = 3.14159265358979;
const ll MAX = 0;
bool IsPrime(ll num) {
if (num < 2)
return false;
else if (num == 2)
ret... | #include <bits/stdc++.h>
#include <math.h>
#include <time.h>
using namespace std;
#define ll long long
#define rep(i, n) for (int i = 0; i < n; i++)
const ll MOD = 1000000007;
const long double PI = 3.14159265358979;
const ll MAX = 0;
bool IsPrime(ll num) {
if (num < 2)
return false;
else if (num == 2)
ret... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 270,912 | 270,909 | u102070373 | cpp |
p02574 | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define MOD 1000000007
#define MAX 100010
#define aout(a) \
REP(i, sizeof(a)) cout << a[i] << " "; ... | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define MOD 1000000007
#define MAX 100010
#define aout(a) \
REP(i, sizeof(a)) cout << a[i] << " "; ... | [
"literal.number.change",
"variable_declaration.value.change"
] | 270,921 | 270,922 | u809690311 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int a[2000005], b[2000005];
int mx = 1000005, cc = 0;
bool vis[2000005];
bool sieve() {
int cnt = 0;
for (int i = 2; i <= mx; i += 2) {
if (b[i] != 0)
cnt += b[i];
vis[i] = true;
}
if (cnt > 1)
return false;
for (int i = 3; i * i <= mx; i++) {
... | #include <bits/stdc++.h>
using namespace std;
int a[2000005], b[2000005];
int mx = 1000005, cc = 0;
bool vis[2000005];
bool sieve() {
int cnt = 0;
for (int i = 2; i <= mx; i += 2) {
if (b[i] != 0)
cnt += b[i];
vis[i] = true;
}
if (cnt > 1)
return false;
for (int i = 3; i * i <= mx; i++) {
... | [
"assignment.value.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 270,925 | 270,926 | u452374373 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int a[2000005], b[2000005];
int mx = 1000005, cc = 0;
bool vis[2000005];
bool sieve() {
int cnt = 0;
for (int i = 2; i <= mx; i += 2) {
if (b[i] != 0)
cnt += b[i];
vis[i] = true;
}
if (cnt > 1)
return false;
for (int i = 3; i <= mx; i++) {
i... | #include <bits/stdc++.h>
using namespace std;
int a[2000005], b[2000005];
int mx = 1000005, cc = 0;
bool vis[2000005];
bool sieve() {
int cnt = 0;
for (int i = 2; i <= mx; i += 2) {
if (b[i] != 0)
cnt += b[i];
vis[i] = true;
}
if (cnt > 1)
return false;
for (int i = 3; i * i <= mx; i++) {
... | [
"control_flow.loop.for.condition.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change",
"expression.operation.binary.change",
"assignment.value.change",
"identifier.change",
"variable_access.subscript.index.change"
] | 270,927 | 270,926 | u452374373 | cpp |
p02574 | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
#define reps(i, s, n) for (int(i) = (s); (i) < (n); (i)++)
#define rep(i, n) reps(i, 0, n)
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using vi ... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <string>
#include <vector>
#define reps(i, s, n) for (int(i) = (s); (i) < (n); (i)++)
#define rep(i, n) reps(i, 0, n)
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using vi ... | [
"control_flow.branch.if.condition.change",
"control_flow.branch.if.add"
] | 270,930 | 270,929 | u704411633 | cpp |
p02574 | #include <iostream>
#include <unordered_map>
#include <vector>
const int ps[] = {
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43,
47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107,
109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181,
191, 193, 19... | #include <iostream>
#include <unordered_map>
#include <vector>
const int ps[] = {
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43,
47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107,
109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181,
191, 193, 19... | [
"literal.string.change",
"expression.operation.binary.change"
] | 270,947 | 270,948 | u567677663 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int m;
cin >> m;
unordered_map<int, int> mp;
vector<int> v(m);
for (int &x : v)
cin >> x, mp[x]++;
int g = __gcd(v[0], v[1]);
for (int i =... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int m;
cin >> m;
unordered_map<int, int> mp;
vector<int> v(m);
for (int &x : v)
cin >> x, mp[x]++;
int g = __gcd(v[0], v[1]);
for (int i =... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.loop.for.initializer.change"
] | 270,952 | 270,950 | u363527821 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
using lli = long long;
#define rep(i, n) for (int i = 0; i < n; i++)
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return 1;
}
r... | #include <bits/stdc++.h>
using namespace std;
using lli = long long;
#define rep(i, n) for (int i = 0; i < n; i++)
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return 1;
}
r... | [
"literal.string.change",
"io.output.change"
] | 270,953 | 270,954 | u720447689 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
using lli = long long;
#define rep(i, n) for (int i = 0; i < n; i++)
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return 1;
}
r... | #include <bits/stdc++.h>
using namespace std;
using lli = long long;
#define rep(i, n) for (int i = 0; i < n; i++)
template <class T> bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return 1;
}
return 0;
}
template <class T> bool chmin(T &a, const T &b) {
if (b < a) {
a = b;
return 1;
}
r... | [
"literal.string.change",
"io.output.change",
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"assignment.variable.change"
] | 270,955 | 270,954 | u720447689 | cpp |
p02574 | // Shinchan Loves Coding :)))
#include <bits/stdc++.h>
#include <map>
#include <set>
#include <stack>
using namespace std;
#define night_rider \
ios::sync_with_stdio(false); \
cin.tie(NULL);
#define int long ... | // Shinchan Loves Coding :)))
#include <bits/stdc++.h>
#include <map>
#include <set>
#include <stack>
using namespace std;
#define night_rider \
ios::sync_with_stdio(false); \
cin.tie(NULL);
#define int long ... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 270,963 | 270,964 | u812895620 | cpp |
p02574 | #include <bits/stdc++.h>
#define ll long long int
#define MOD 1000000007
#define INF 1000000000000000000
using namespace std;
#define N 1000001
ll gcd(ll a, ll b) {
if (a < b)
return gcd(b, a);
if (b == 0)
return a;
else
return gcd(b, a % b);
}
vector<bool> isprime;
void make_table() {
isprime[... | #include <bits/stdc++.h>
#define ll long long int
#define MOD 1000000007
#define INF 1000000000000000000
using namespace std;
#define N 1000001
ll gcd(ll a, ll b) {
if (a < b)
return gcd(b, a);
if (b == 0)
return a;
else
return gcd(b, a % b);
}
vector<bool> isprime;
void make_table() {
isprime[... | [
"assignment.value.change",
"call.remove"
] | 270,969 | 270,970 | u755121033 | cpp |
p02574 | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <deque> // deque
#include <iomanip> // setprecision
#include <iostream> // cout, endl, cin
#include <map> // map
#include <math.h> // sqrt
#include <queue> // queue, priority_queue... | #include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <bitset> // bitset
#include <deque> // deque
#include <iomanip> // setprecision
#include <iostream> // cout, endl, cin
#include <map> // map
#include <math.h> // sqrt
#include <queue> // queue, priority_queue... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 270,971 | 270,972 | u204514518 | cpp |
p02574 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <regex>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
template... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <regex>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
template... | [
"control_flow.branch.if.condition.change"
] | 270,975 | 270,976 | u408910484 | cpp |
p02574 | #include <bits/stdc++.h>
#define fast() \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define ll long long int
using nam... | #include <bits/stdc++.h>
#define fast() \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define ll long long int
using nam... | [
"literal.string.change",
"io.output.change"
] | 270,981 | 270,982 | u723812958 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define MAXN 1000000
int n;
int a[1000005];
bool isPrime[1000005];
vector<int> primes;
bool isUsed[1000005];
int gcd(int a, int b) {
if (a > b)
swap(a, b);
if (a == 0)
return b;
if (a == 1)
return 1;
return gcd(a, b % a);
}
int main() {
scanf("%d",... | #include <bits/stdc++.h>
using namespace std;
#define MAXN 1000000
int n;
int a[1000005];
bool isPrime[1000005];
vector<int> primes;
bool isUsed[1000005];
int gcd(int a, int b) {
if (a > b)
swap(a, b);
if (a == 0)
return b;
if (a == 1)
return 1;
return gcd(a, b % a);
}
int main() {
scanf("%d",... | [
"expression.operation.unary.logical.remove",
"control_flow.branch.if.condition.change"
] | 270,993 | 270,992 | u401171259 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define MAXN 1000000
int n;
int a[1000005];
bool isPrime[100005];
vector<int> primes;
bool isUsed[1000005];
int gcd(int a, int b) {
if (a > b)
swap(a, b);
if (a == 0)
return b;
if (a == 1)
return 1;
return gcd(a, b % a);
}
int main() {
scanf("%d", ... | #include <bits/stdc++.h>
using namespace std;
#define MAXN 1000000
int n;
int a[1000005];
bool isPrime[1000005];
vector<int> primes;
bool isUsed[1000005];
int gcd(int a, int b) {
if (a > b)
swap(a, b);
if (a == 0)
return b;
if (a == 1)
return 1;
return gcd(a, b % a);
}
int main() {
scanf("%d",... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"expression.operation.unary.logical.remove",
"control_flow.branch.if.condition.change"
] | 270,994 | 270,992 | u401171259 | cpp |
p02574 |
#include <bits/stdc++.h>
#define loop(s, e, i) for (int i = s; i < e; ++i)
#define print(s) cout << s << endl;
using namespace std;
using ll = long long;
using lld = long long;
/*
浮動小数点の入力
cout << fixed << setprecision(9) << endl;
*/
ll gcd(ll a, ll b) {
if (a < b) {
return gcd(b, a);
}
while (b != 0) {
... |
#include <bits/stdc++.h>
#define loop(s, e, i) for (int i = s; i < e; ++i)
#define print(s) cout << s << endl;
using namespace std;
using ll = long long;
using lld = long long;
/*
浮動小数点の入力
cout << fixed << setprecision(9) << endl;
*/
ll gcd(ll a, ll b) {
if (a < b) {
return gcd(b, a);
}
while (b != 0) {
... | [
"assignment.value.change"
] | 270,996 | 270,997 | u111653921 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define F first
#define S second
#define pb push_back
#define mp make_pair
ll gcd(ll a, ll b) {
if (a == 0)
return b;
return gcd(b % a, a);
}
ll lcm(ll a, ll b) { return (a / gcd(a, b)) * b; }
int main() {
ios_base::sync_with_stdio(fa... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define F first
#define S second
#define pb push_back
#define mp make_pair
ll gcd(ll a, ll b) {
if (a == 0)
return b;
return gcd(b % a, a);
}
ll lcm(ll a, ll b) { return (a / gcd(a, b)) * b; }
int main() {
ios_base::sync_with_stdio(fa... | [
"identifier.change",
"variable_declaration.array_dimensions.change"
] | 271,012 | 271,013 | u705313695 | cpp |
p02574 | // Mayank Agarwal
// IIIT Hyderabad
#include <bits/stdc++.h>
using namespace std;
const long long int M = 1000000007;
#define ll long long int
#define ld double
#define pb push_back
#define mp make_pair
ll power(ll x, ll y, ll p) {
ll res = 1;
x = x % p;
while (y > 0) {
if (y & 1)
res = (res * x) % p... | // Mayank Agarwal
// IIIT Hyderabad
#include <bits/stdc++.h>
using namespace std;
const long long int M = 1000000007;
#define ll long long int
#define ld double
#define pb push_back
#define mp make_pair
ll power(ll x, ll y, ll p) {
ll res = 1;
x = x % p;
while (y > 0) {
if (y & 1)
res = (res * x) % p... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.condition.change",
"control_flow.loop.for.condition.change"
] | 271,014 | 271,015 | u688108715 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int maxGCD(vector<int> v) {
int i;
int vmax = 0;
for (i = 0; i < v.size(); i++) {
vmax = max(v[i], vmax);
}
vector<int> count(vmax + 5, 0);
for (i = 0; i < v.size(); i++) {
count[v[i]]++;
}
for (i = vmax; i >= 1; i--) {
int j = i;
int cnt = ... | #include <bits/stdc++.h>
using namespace std;
int maxGCD(vector<int> v) {
int i;
int vmax = 0;
for (i = 0; i < v.size(); i++) {
vmax = max(v[i], vmax);
}
vector<int> count(vmax + 5, 0);
for (i = 0; i < v.size(); i++) {
count[v[i]]++;
}
for (i = vmax; i >= 1; i--) {
int j = i;
int cnt = ... | [
"identifier.replace.add",
"literal.replace.remove",
"function.return_value.change"
] | 271,016 | 271,017 | u906060038 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int maxGCD(vector<int> v) {
int i;
int vmax = 0;
for (i = 0; i < v.size(); i++) {
vmax = max(v[i], vmax);
}
vector<int> count(vmax + 5, 0);
for (i = 1; i < v.size(); i++) {
count[v[i]]++;
}
for (i = vmax; i >= 1; i--) {
int j = i;
int cnt = ... | #include <bits/stdc++.h>
using namespace std;
int maxGCD(vector<int> v) {
int i;
int vmax = 0;
for (i = 0; i < v.size(); i++) {
vmax = max(v[i], vmax);
}
vector<int> count(vmax + 5, 0);
for (i = 0; i < v.size(); i++) {
count[v[i]]++;
}
for (i = vmax; i >= 1; i--) {
int j = i;
int cnt = ... | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"identifier.replace.add",
"literal.replace.remove",
"function.return_value.change"
] | 271,018 | 271,017 | u906060038 | cpp |
p02574 | #include <algorithm>
#include <cmath>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
const int mod = 1000000007;
const int MOD = 998244353;
const ll INF = 10000000000... | #include <algorithm>
#include <cmath>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
const int mod = 1000000007;
const int MOD = 998244353;
const ll INF = 10000000000... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change",
"call.add"
] | 271,026 | 271,027 | u475843109 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
// def
#define debug(x) cout << #x << ": " << x << '\n'
#define out(x) cout << x << '\n'
#define repeat(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define revrepeat(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--)
#define rep(i, n) for (int i = 0; i < (int)(n)... | #include <bits/stdc++.h>
using namespace std;
// def
#define debug(x) cout << #x << ": " << x << '\n'
#define out(x) cout << x << '\n'
#define repeat(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define revrepeat(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--)
#define rep(i, n) for (int i = 0; i < (int)(n)... | [] | 271,028 | 271,029 | u765690804 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int gcd(int x, int y) {
while (1) {
y %= x;
if (y == 0)
return x;
x %= y;
if (x == 0)
return y;
}
}
int main() {
int n;
cin >> n;
int N = 1000001;
vector<int> furui(N);
for (int i = 0; i < N; i++)
furui[i] = i;
for (int i = 2;... | #include <bits/stdc++.h>
using namespace std;
int gcd(int x, int y) {
while (1) {
y %= x;
if (y == 0)
return x;
x %= y;
if (x == 0)
return y;
}
}
int main() {
int n;
cin >> n;
int N = 1000001;
vector<int> furui(N);
for (int i = 0; i < N; i++)
furui[i] = i;
for (int i = 2;... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 271,032 | 271,033 | u507850687 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ull unsigned long long
#define ll long long
#define M 1000000007
#define pb push_back
#define p_q priority_queue
#define pii pair<ll, ll>
#define vi vector<ll>
#define vii vector<pii>
#define mi map<ll, ll>
#define mii map<pii, ll>
#define all(... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ull unsigned long long
#define ll long long
#define M 1000000007
#define pb push_back
#define p_q priority_queue
#define pii pair<ll, ll>
#define vi vector<ll>
#define vii vector<pii>
#define mi map<ll, ll>
#define mii map<pii, ll>
#define all(... | [
"literal.string.change",
"io.output.change"
] | 271,034 | 271,035 | u723726300 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
// const long long MOD = 998244353;
const long long INF_LL = 1e18 + 11;
const int INF_int = 1e9 + 11;
#define ll long long
#define mp std::make_pair
#define rep(i, n) for (int i = 0; i < n; i++)
#define lrep(i, n) for (long long i = 0; i < n; ... | #include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
// const long long MOD = 998244353;
const long long INF_LL = 1e18 + 11;
const int INF_int = 1e9 + 11;
#define ll long long
#define mp std::make_pair
#define rep(i, n) for (int i = 0; i < n; i++)
#define lrep(i, n) for (long long i = 0; i < n; ... | [
"identifier.change",
"variable_access.subscript.index.change"
] | 271,040 | 271,041 | u467826805 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.ti... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.ti... | [
"call.arguments.change"
] | 271,044 | 271,045 | u616159561 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.ti... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.ti... | [
"call.arguments.change",
"assignment.change"
] | 271,046 | 271,045 | u616159561 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.ti... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fast \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.ti... | [
"call.arguments.change",
"assignment.change",
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 271,047 | 271,045 | u616159561 | cpp |
p02574 | #include <bits/stdc++.h>
#define LL long long
#define pb push_back
#define SZ(x) ((int)x.size() - 1)
#define ms(a, b) memset(a, b, sizeof a)
#define F(i, a, b) for (int i = (a); i <= (b); ++i)
#define DF(i, a, b) for (int i = (a); i >= (b); --i)
using namespace std;
inline int read() {
char ch = getchar();
int w = ... | #include <bits/stdc++.h>
#define LL long long
#define pb push_back
#define SZ(x) ((int)x.size() - 1)
#define ms(a, b) memset(a, b, sizeof a)
#define F(i, a, b) for (int i = (a); i <= (b); ++i)
#define DF(i, a, b) for (int i = (a); i >= (b); --i)
using namespace std;
inline int read() {
char ch = getchar();
int w = ... | [
"call.arguments.change"
] | 271,061 | 271,062 | u927286612 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define EPS 0.0000000001
#define pb push_back
#define space " "
#define ar array
#define pi pair<int, int>
#define ff first
#define ss second
void solve() {
int n;
int maxN = 1000000;
cin >> n;
bool pairwise = true... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
#define EPS 0.0000000001
#define pb push_back
#define space " "
#define ar array
#define pi pair<int, int>
#define ff first
#define ss second
void solve() {
int n;
int maxN = 1000000;
cin >> n;
bool pairwise = true... | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"expression.operation.binary.change",
"literal.string.change",
"io.output.change"
] | 271,063 | 271,064 | u631728946 | cpp |
p02574 | #include <bits/stdc++.h>
#define int long long
using namespace std;
int f[1000005] = {0};
const int N = 1000001;
int p[1000001];
bool vis[N];
int get_prime() {
vis[1] = 1;
int k = 0;
for (int i = 2; i < N; i++) {
if (!vis[i])
p[k++] = i;
for (int j = 0; j < k && p[j] * i < N; j++) {
vis[p[j] *... | #include <bits/stdc++.h>
#define int long long
using namespace std;
int f[1000005] = {0};
const int N = 1000001;
int p[1000001];
bool vis[N];
int get_prime() {
vis[1] = 1;
int k = 0;
for (int i = 2; i < N; i++) {
if (!vis[i])
p[k++] = i;
for (int j = 0; j < k && p[j] * i < N; j++) {
vis[p[j] *... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 271,065 | 271,066 | u368383065 | cpp |
p02574 | #include <bits/stdc++.h>
#define int long long
using namespace std;
int f[1000005] = {0};
const int N = 1000001;
int p[1000001];
bool vis[N];
int get_prime() {
vis[1] = 1;
int k = 0;
for (int i = 2; i < N; i++) {
if (!vis[i])
p[k++] = i;
for (int j = 0; j < k && p[j] * i < N; j++) {
vis[p[j] *... | #include <bits/stdc++.h>
#define int long long
using namespace std;
int f[1000005] = {0};
const int N = 1000001;
int p[1000001];
bool vis[N];
int get_prime() {
vis[1] = 1;
int k = 0;
for (int i = 2; i < N; i++) {
if (!vis[i])
p[k++] = i;
for (int j = 0; j < k && p[j] * i < N; j++) {
vis[p[j] *... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.branch.if.condition.change"
] | 271,067 | 271,066 | u368383065 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
bool solve1(int N, vector<int> &A) {
sort(A.begin(), A.end());
vector<bool> V(1000001, false), W(1000001, false);
for (int i = 0; i < N; i++) {
if (V[A[i]] && A[i] != 1)
return false;
V[A[i]] = true;
}
for (int i = 2; i <= 1000000; i++) {
if (W... | #include <bits/stdc++.h>
using namespace std;
bool solve1(int N, vector<int> &A) {
sort(A.begin(), A.end());
vector<bool> V(1000001, false), W(1000001, false);
for (int i = 0; i < N; i++) {
if (V[A[i]] && A[i] != 1)
return false;
V[A[i]] = true;
}
for (int i = 2; i <= 1000000; i++) {
if (W... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 271,074 | 271,075 | u122034453 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_set \
tree<int, null_type, less<int>, rb_tree_tag, \
... | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_set \
tree<int, null_type, less<int>, rb_tree_tag, \
... | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"literal.number.change"
] | 271,076 | 271,077 | u877787247 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
using lint = long long int;
vector<vector<lint>> prime_table(int n) {
vector<vector<lint>> prime(n + 1);
for (int i = 2; i * i <= n; i++) {
if (prime[i].size())
continue;
for (int j = i + i; j <= n; j += i) {
prime[j].push_back(i);
}
}
retur... | #include <bits/stdc++.h>
using namespace std;
using lint = long long int;
vector<vector<lint>> prime_table(int n) {
vector<vector<lint>> prime(n + 1);
for (int i = 2; i <= n; i++) {
if (prime[i].size())
continue;
for (int j = i; j <= n; j += i) {
prime[j].push_back(i);
}
}
return prime;... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove",
"control_flow.loop.for.initializer.change"
] | 271,078 | 271,079 | u194268736 | cpp |
p02574 | /*starting with the name of almighty ALLAH*/
/*solved by RAKIB JOY*/
// Practice is the only shortcut to improve
#include <bits/stdc++.h>
#define ll long long int
#define pb push_back
#define vc vector
#define vi vc<int>
#define vl vc<ll>
#define dbg(x) cout << x << endl;
#define mp(x, y) make_pair(x, y)
#define yes db... | /*starting with the name of almighty ALLAH*/
/*solved by RAKIB JOY*/
// Practice is the only shortcut to improve
#include <bits/stdc++.h>
#define ll long long int
#define pb push_back
#define vc vector
#define vi vc<int>
#define vl vc<ll>
#define dbg(x) cout << x << endl;
#define mp(x, y) make_pair(x, y)
#define yes db... | [] | 271,082 | 271,083 | u116856225 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef pair<int, int> P;
typedef long long ll;
const int INF = 1001001001;
const ll INFL = 1e17;
const int MOD = 1e9 + 7;
int main() {
int n;
cin >> n;
vector<int> a(n);
vector<int> e(1000001);
rep(i, n) {
cin >... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef pair<int, int> P;
typedef long long ll;
const int INF = 1001001001;
const ll INFL = 1e17;
const int MOD = 1e9 + 7;
int main() {
int n;
cin >> n;
vector<int> a(n);
vector<int> e(1000001);
rep(i, n) {
cin >... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 271,086 | 271,087 | u033937898 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef pair<int, int> P;
typedef long long ll;
const int INF = 1001001001;
const ll INFL = 1e17;
const int MOD = 1e9 + 7;
int main() {
int n;
cin >> n;
vector<int> a(n);
vector<int> e(1000001);
rep(i, n) {
cin >... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef pair<int, int> P;
typedef long long ll;
const int INF = 1001001001;
const ll INFL = 1e17;
const int MOD = 1e9 + 7;
int main() {
int n;
cin >> n;
vector<int> a(n);
vector<int> e(1000001);
rep(i, n) {
cin >... | [
"variable_declaration.name.change",
"identifier.change",
"assignment.value.change",
"call.arguments.change"
] | 271,088 | 271,087 | u033937898 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> PP;
#define MOD 1000000007
//#define MOD 998244353
#define INF 2305843009213693951
//#define INF 810114514
#define PI 3.141592653589
#define setdouble setprecision
#define REP(i, n) for (ll i = 0; i < (n); ++i)
#define OREP(i, n) f... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> PP;
#define MOD 1000000007
//#define MOD 998244353
#define INF 2305843009213693951
//#define INF 810114514
#define PI 3.141592653589
#define setdouble setprecision
#define REP(i, n) for (ll i = 0; i < (n); ++i)
#define OREP(i, n) f... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 271,089 | 271,090 | u554953477 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
using pll = pair<ll, ll>;
using Graph = vector<vector<ll>>;
#define all(v) v.begin(), v.end()
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep2(i, l, r) for (ll i = (l); i <= (ll)(r); i++)
#define rep3(i, l, r) for... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
using pll = pair<ll, ll>;
using Graph = vector<vector<ll>>;
#define all(v) v.begin(), v.end()
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep2(i, l, r) for (ll i = (l); i <= (ll)(r); i++)
#define rep3(i, l, r) for... | [
"literal.string.change",
"io.output.change"
] | 271,096 | 271,097 | u958873500 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
using pll = pair<ll, ll>;
using Graph = vector<vector<ll>>;
#define all(v) v.begin(), v.end()
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep2(i, l, r) for (ll i = (l); i <= (ll)(r); i++)
#define rep3(i, l, r) for... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
using pll = pair<ll, ll>;
using Graph = vector<vector<ll>>;
#define all(v) v.begin(), v.end()
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep2(i, l, r) for (ll i = (l); i <= (ll)(r); i++)
#define rep3(i, l, r) for... | [
"literal.string.change",
"io.output.change"
] | 271,098 | 271,097 | u958873500 | cpp |
p02574 | #include <bits/stdc++.h>
#define pb push_back
#define ll long long
#define f first
#define s second
#define ld long double
#define fa fflush(stdout);
#define mp make_pair
using namespace std;
void data() {
#ifdef NURS
freopen("main.in", "r", stdin);
freopen("main.out", "w", stdout);
#endif
ios_base::sync_with_st... | #include <bits/stdc++.h>
#define pb push_back
#define ll long long
#define f first
#define s second
#define ld long double
#define fa fflush(stdout);
#define mp make_pair
using namespace std;
void data() {
#ifdef NURS
freopen("main.in", "r", stdin);
freopen("main.out", "w", stdout);
#endif
ios_base::sync_with_st... | [
"control_flow.loop.for.condition.change"
] | 271,104 | 271,105 | u165212329 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_set \
tree<int, null_type, less<int>, rb_tree_tag, \
... | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_set \
tree<int, null_type, less<int>, rb_tree_tag, \
... | [] | 271,116 | 271,117 | u334545058 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_set \
tree<int, null_type, less<int>, rb_tree_tag, \
... | #include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define ordered_set \
tree<int, null_type, less<int>, rb_tree_tag, \
... | [] | 271,118 | 271,117 | u334545058 | cpp |
p02574 | #pragma GCC optimize(2)
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#inc... | #pragma GCC optimize(2)
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#inc... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 271,119 | 271,120 | u513623897 | cpp |
p02574 | #include <bits/stdc++.h>
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define endl "\n"
#define ALL(a) ... | #include <bits/stdc++.h>
#define fastio \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
#define endl "\n"
#define ALL(a) ... | [
"control_flow.branch.if.condition.change"
] | 271,139 | 271,140 | u866535689 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
int main() {
int N;
cin >> N;
vector<int> A(N);
for (int i = 0; i < N; ++i)
cin >> A[i];
int MAX_A = 1e6 + 2;
vector<int> is_prime(MAX_A, 1),
min_prime(MAX_A); // min_prime[i] := i の最小の素因数
is... | #include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
int main() {
int N;
cin >> N;
vector<int> A(N);
for (int i = 0; i < N; ++i)
cin >> A[i];
int MAX_A = 1e6 + 2;
vector<int> is_prime(MAX_A, 1),
min_prime(MAX_A); // min_prime[i] := i の最小の素因数
is... | [
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 271,145 | 271,146 | u657901243 | cpp |
p02574 | #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() {
int n;
cin >> n;
vector<int> a(n);
rep(i, n) scanf("&d", a[i]);
vector<int> cnt(1000005);
vector<int> m(1000005);
rep(i, n) m[a[i]]++;
bool flag = t... | #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() {
int n;
cin >> n;
vector<int> a(n);
rep(i, n) scanf("%d", &a[i]);
vector<int> cnt(1000005);
vector<int> m(1000005);
rep(i, n) m[a[i]]++;
bool flag = ... | [
"literal.string.change",
"call.arguments.change",
"expression.operation.unary.reference.add"
] | 271,147 | 271,148 | u422506696 | cpp |
p02574 | #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() {
int n;
cin >> n;
vector<int> a(n);
rep(i, n) scanf("%d", a[i]);
vector<int> cnt(1000005);
vector<int> m(1000005);
rep(i, n) m[a[i]]++;
bool flag = t... | #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() {
int n;
cin >> n;
vector<int> a(n);
rep(i, n) scanf("%d", &a[i]);
vector<int> cnt(1000005);
vector<int> m(1000005);
rep(i, n) m[a[i]]++;
bool flag = ... | [
"expression.operation.unary.reference.add"
] | 271,149 | 271,148 | u422506696 | cpp |
p02574 | /*
これを入れて実行
g++ code.cpp
./a.out
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <... | /*
これを入れて実行
g++ code.cpp
./a.out
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <cstring>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 271,152 | 271,153 | u845000384 | cpp |
p02574 | #include <bits/stdc++.h>
const int N = 1e6;
int cnt[N + 1];
bool flg[N + 1];
std::vector<int> prime;
inline void eular() {
memset(flg, true, sizeof flg);
for (int i = 2; i <= N; ++i) {
if (flg[i]) {
prime.push_back(i);
}
for (std::vector<int>::iterator it = prime.begin();
it != prime.e... | #include <bits/stdc++.h>
const int N = 1e6;
int cnt[N + 1];
bool flg[N + 1];
std::vector<int> prime;
inline void eular() {
memset(flg, true, sizeof flg);
for (int i = 2; i <= N; ++i) {
if (flg[i]) {
prime.push_back(i);
}
for (std::vector<int>::iterator it = prime.begin();
it != prime.e... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"expression.operation.binary.change"
] | 271,154 | 271,155 | u321475483 | cpp |
p02574 | #include <bits/stdc++.h>
const int N = 1e3;
int cnt[N + 1];
bool flg[N + 1];
std::vector<int> prime;
inline void eular() {
memset(flg, true, sizeof flg);
for (int i = 2; i <= N; ++i) {
if (flg[i]) {
prime.push_back(i);
}
for (std::vector<int>::iterator it = prime.begin();
it != prime.e... | #include <bits/stdc++.h>
const int N = 1e6;
int cnt[N + 1];
bool flg[N + 1];
std::vector<int> prime;
inline void eular() {
memset(flg, true, sizeof flg);
for (int i = 2; i <= N; ++i) {
if (flg[i]) {
prime.push_back(i);
}
for (std::vector<int>::iterator it = prime.begin();
it != prime.e... | [
"literal.number.change",
"variable_declaration.value.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"expression.operation.binary.change"
] | 271,156 | 271,155 | u321475483 | cpp |
p02574 | #include "bits/stdc++.h"
using namespace std;
map<int, int> mp;
const int MAX_INT = 1000000;
int is_prime[MAX_INT + 1];
vector<int> P;
void calc(int N) {
while (-1 != is_prime[N]) {
int p = is_prime[N];
while (0 == N % p) {
N /= p;
}
mp[p]++;
}
if (-1 != N) {
mp[N]++;
}
return;
}
//... | #include "bits/stdc++.h"
using namespace std;
map<int, int> mp;
const int MAX_INT = 1000000;
int is_prime[MAX_INT + 1];
vector<int> P;
void calc(int N) {
while (-1 != is_prime[N]) {
int p = is_prime[N];
while (0 == N % p) {
N /= p;
}
mp[p]++;
}
if (1 != N) {
mp[N]++;
}
return;
}
//エ... | [
"expression.operation.unary.arithmetic.remove"
] | 271,161 | 271,162 | u835523614 | cpp |
p02574 | #include <algorithm>
#include <iostream>
#include <queue>
#include <stack>
#include <stdio.h>
#include <vector>
using ll = long long int;
const int INF = (1 << 30);
const ll INFLL = (1ll << 60);
const ll MOD = (ll)(1e9 + 7);
#define l_ength size
void mul_mod(ll &a, ll b) {
a *= b;
a %= MOD;
}
void add_mod(ll &a... | #include <algorithm>
#include <iostream>
#include <queue>
#include <stack>
#include <stdio.h>
#include <vector>
using ll = long long int;
const int INF = (1 << 30);
const ll INFLL = (1ll << 60);
const ll MOD = (ll)(1e9 + 7);
#define l_ength size
void mul_mod(ll &a, ll b) {
a *= b;
a %= MOD;
}
void add_mod(ll &a... | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 271,180 | 271,181 | u548624367 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
static const int MAX = 1e6;
int d[MAX + 1];
void eratos(int n) {
for (int i = 0; i <= n; i++) {
d[i] = i;
}
for (int i = 2; i * i <= n; i++) {
if (d[i] != i)
continue;
for (int j = i + i; j <= n; j += i) {
if (d[j] != j)... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
static const int MAX = 1e6;
int d[MAX + 1];
void eratos(int n) {
for (int i = 0; i <= n; i++) {
d[i] = i;
}
for (int i = 2; i * i <= n; i++) {
if (d[i] != i)
continue;
for (int j = i + i; j <= n; j += i) {
if (d[j] != j)... | [
"variable_declaration.type.change",
"identifier.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change"
] | 271,182 | 271,183 | u380412651 | cpp |
p02574 | #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) {
... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 271,188 | 271,189 | u499009346 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
const int N = 2000010;
int a[N], st[N];
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
int lcm(int a, int b) { return a * b / gcd(a, b); }
int main() {
int n;
cin >> n;
int sgcd;
for (int i = 1; i <= n; ++i) {
scanf("%d", &a[i]);
if (i == 1)
... | #include <bits/stdc++.h>
using namespace std;
const int N = 2000010;
int a[N], st[N];
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
int lcm(int a, int b) { return a * b / gcd(a, b); }
int main() {
int n;
cin >> n;
int sgcd;
for (int i = 1; i <= n; ++i) {
scanf("%d", &a[i]);
if (i == 1)
... | [
"control_flow.loop.for.condition.change"
] | 271,190 | 271,191 | u399191024 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const long long INF = 1001001001;
const long long MOD = 1000000007;
const double EPS = 1e-10;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
int a[n];
int g = 0;
for (int i = 0; i < n; i... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const long long INF = 1001001001;
const long long MOD = 1000000007;
const double EPS = 1e-10;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
int a[n];
int g = 0;
for (int i = 0; i < n; i... | [
"literal.string.change",
"io.output.change"
] | 271,194 | 271,195 | u440217234 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int64_t> s;
for (int i = 2; i < 1000000; i++) {
int C = 1;
for (int x : s) {
if (x * x > i) {
break;
}
if (i % x == 0) {
C = 0;
break;
}
}
if (C) {
s.push_bac... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int64_t> s;
for (int i = 2; i < 1000000; i++) {
int C = 1;
for (int x : s) {
if (x * x > i) {
break;
}
if (i % x == 0) {
C = 0;
break;
}
}
if (C) {
s.push_bac... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 271,198 | 271,199 | u158290747 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int64_t> s;
for (int i = 2; i < 1000000; i++) {
int C = 1;
for (int x : s) {
if (x * x > i) {
break;
}
if (i % x == 0) {
C = 0;
break;
}
}
if (C) {
s.push_bac... | #include <bits/stdc++.h>
using namespace std;
int main() {
int N;
cin >> N;
vector<int64_t> s;
for (int i = 2; i < 1000000; i++) {
int C = 1;
for (int x : s) {
if (x * x > i) {
break;
}
if (i % x == 0) {
C = 0;
break;
}
}
if (C) {
s.push_bac... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 271,200 | 271,199 | u158290747 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int N;
cin >> N;
vector<int> isA(1000001, 0), is_prime(1000001, 1);
for (int n = 0; n < N; ++n) {
int a;
cin >> a;
++isA[a];
}
bool setwise = true, pairwise = true;
fo... | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int N;
cin >> N;
vector<int> isA(1000001, 0), is_prime(1000001, 1);
for (int n = 0; n < N; ++n) {
int a;
cin >> a;
++isA[a];
}
bool setwise = true, pairwise = true;
fo... | [
"literal.string.change",
"io.output.change"
] | 271,205 | 271,206 | u912077483 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
const int64_t MOD = 1000000007;
typedef int64_t ll;
typedef uint64_t ull;
#define FOR(i, start, end) for (uint64_t i = start; i < end; i++)
#define REP(i, n) FOR(i, 0, n)
// 最大公約数gcd
// 最小公倍数lcm=m*n/gcd
uint64_t gcd(uint64_t m, uint64_t n) {
uint64_t temp;
while (m %... | #include <bits/stdc++.h>
using namespace std;
const int64_t MOD = 1000000007;
typedef int64_t ll;
typedef uint64_t ull;
#define FOR(i, start, end) for (uint64_t i = start; i < end; i++)
#define REP(i, n) FOR(i, 0, n)
// 最大公約数gcd
// 最小公倍数lcm=m*n/gcd
uint64_t gcd(uint64_t m, uint64_t n) {
uint64_t temp;
while (m %... | [
"call.add"
] | 271,207 | 271,208 | u925478083 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
bool p[1000006];
long long r[1000005], y, o, k[1000006], b, u, a, ans;
int gp() {
for (int i = 2; i <= 1000000; i++) {
if (p[i] == 0) {
for (int j = i * 2; j <= 1000000; j += i)
p[j] = 1;
}
}
for (int i = 2; i <= 1000000; i++) {
if (p[i] == 0... | #include <bits/stdc++.h>
using namespace std;
bool p[1000006];
long long r[1000005], y, o, k[1000006], b, u, a, ans;
int gp() {
for (int i = 2; i <= 1000000; i++) {
if (p[i] == 0) {
for (int j = i * 2; j <= 1000000; j += i)
p[j] = 1;
}
}
for (int i = 2; i <= 1000000; i++) {
if (p[i] == 0... | [] | 271,211 | 271,212 | u217830224 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
bool p[1000006];
long long r[1000005], y, o, k[1000006], b, u, a, ans;
int gp() {
for (int i = 2; i <= 1000000; i++) {
if (p[i] == 0) {
for (int j = i * 2; j <= 1000000; j += i)
p[j] = 1;
}
}
for (int i = 2; i <= 1000000; i++) {
if (p[i] == 0... | #include <bits/stdc++.h>
using namespace std;
bool p[1000006];
long long r[1000005], y, o, k[1000006], b, u, a, ans;
int gp() {
for (int i = 2; i <= 1000000; i++) {
if (p[i] == 0) {
for (int j = i * 2; j <= 1000000; j += i)
p[j] = 1;
}
}
for (int i = 2; i <= 1000000; i++) {
if (p[i] == 0... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change"
] | 271,213 | 271,212 | u217830224 | cpp |
p02574 | #include <bits/stdc++.h>
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = (a); i < (b); ++i)
#define rep(...) _overload3(__VA_ARGS__, repi, _rep, )(__VA_ARGS__)
#define ALL(x) x.begin(), x.end()
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = m... | #include <bits/stdc++.h>
#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for (int i = (a); i < (b); ++i)
#define rep(...) _overload3(__VA_ARGS__, repi, _rep, )(__VA_ARGS__)
#define ALL(x) x.begin(), x.end()
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = m... | [
"identifier.change",
"variable_access.subscript.index.change"
] | 271,218 | 271,219 | u174404613 | cpp |
p02574 | #include <algorithm>
#include <iostream>
#include <set>
#include <vector>
using namespace std;
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
int main() {
int n;
cin >> n;
vector<int> a(n);
set<int> s;
for (int i = 0; i < n; i++)
scanf("%d", &a[i]);
int gc = gcd(a[0], a[1]);
for (int i = 2... | #include <algorithm>
#include <iostream>
#include <set>
#include <vector>
using namespace std;
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; }
int main() {
int n;
cin >> n;
vector<int> a(n);
set<int> s;
for (int i = 0; i < n; i++)
scanf("%d", &a[i]);
int gc = gcd(a[0], a[1]);
for (int i = 2... | [
"control_flow.branch.if.condition.change",
"call.add"
] | 271,228 | 271,229 | u929453447 | cpp |
p02574 | #include <bits/stdc++.h>
#include <cmath>
using namespace std;
#define int long long int
#define pb push_back
#define ub upper_bound
#define lb lower_bound
#define mp make_pair
#define F first
#define S second
#define all(a) a.begin(), a.end()
#define endl '\n'
#define boost ... | #include <bits/stdc++.h>
#include <cmath>
using namespace std;
#define int long long int
#define pb push_back
#define ub upper_bound
#define lb lower_bound
#define mp make_pair
#define F first
#define S second
#define all(a) a.begin(), a.end()
#define endl '\n'
#define boost ... | [
"variable_declaration.value.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change"
] | 271,230 | 271,231 | u789849722 | cpp |
p02574 | #include <bits/stdc++.h>
#include <cmath>
using namespace std;
#define int long long int
#define pb push_back
#define ub upper_bound
#define lb lower_bound
#define mp make_pair
#define F first
#define S second
#define all(a) a.begin(), a.end()
#define endl '\n'
#define boost ... | #include <bits/stdc++.h>
#include <cmath>
using namespace std;
#define int long long int
#define pb push_back
#define ub upper_bound
#define lb lower_bound
#define mp make_pair
#define F first
#define S second
#define all(a) a.begin(), a.end()
#define endl '\n'
#define boost ... | [
"variable_declaration.type.change",
"variable_declaration.value.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change"
] | 271,232 | 271,231 | u789849722 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rrep(i, n) for (int i = (int)(n)-1; i >= 0; --i)
#define For(i, a, b) for (auto i = (a); i <= (b); ++i)
#define rFor(i, a, b) for (auto i = (b); i >= (a); --i)
#define call(var) cerr << #var << "=" << var << "\n";... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rrep(i, n) for (int i = (int)(n)-1; i >= 0; --i)
#define For(i, a, b) for (auto i = (a); i <= (b); ++i)
#define rFor(i, a, b) for (auto i = (b); i >= (a); --i)
#define call(var) cerr << #var << "=" << var << "\n";... | [] | 271,233 | 271,234 | u607594286 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int max_n = 1e6 + 6;
vector<int> spf;
void sieve() {
spf.resize(max_n, 1);
for (int num = 2; num < max_n; num++)
spf[num] = num;
for (int num = 2; num < max_n; num++) {
if (spf[num] != num)
continue;
for (int mult = 2 * num; mult < max_n; mult +... | #include <bits/stdc++.h>
using namespace std;
int max_n = 1e6 + 6;
vector<int> spf;
void sieve() {
spf.resize(max_n, 1);
for (int num = 2; num < max_n; num++)
spf[num] = num;
for (int num = 2; num < max_n; num++) {
if (spf[num] != num)
continue;
for (int mult = 2 * num; mult < max_n; mult +... | [
"literal.string.change",
"io.output.change"
] | 271,238 | 271,239 | u800932077 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int max_n = 1e6 + 6;
vector<int> spf;
void sieve() {
spf.resize(max_n, 1);
for (int num = 2; num < max_n; num++)
spf[num] = num;
for (int num = 2; num < max_n; num++) {
if (spf[num] == num) {
for (int mult = 2 * num; mult < max_n; mult += num) {
... | #include <bits/stdc++.h>
using namespace std;
int max_n = 1e6 + 6;
vector<int> spf;
void sieve() {
spf.resize(max_n, 1);
for (int num = 2; num < max_n; num++)
spf[num] = num;
for (int num = 2; num < max_n; num++) {
if (spf[num] == num) {
for (int mult = 2 * num; mult < max_n; mult += num) {
... | [
"literal.string.change",
"io.output.change"
] | 271,240 | 271,241 | u800932077 | cpp |
p02574 | /*** Template Begin ***/
#pragma region template
// #define USING_BOOST
#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 <iostr... | /*** Template Begin ***/
#pragma region template
// #define USING_BOOST
#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 <iostr... | [] | 271,245 | 271,246 | u821802586 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define DBG(x) \
(void)(cout << "L" << __LINE__ << ": " << #x << " = " << (x) << '\n')
#define Lower_bound(v, x) \
distance(v.begin(), lower_bound(v.beg... | #include <bits/stdc++.h>
using namespace std;
#define DBG(x) \
(void)(cout << "L" << __LINE__ << ": " << #x << " = " << (x) << '\n')
#define Lower_bound(v, x) \
distance(v.begin(), lower_bound(v.beg... | [
"call.remove"
] | 271,248 | 271,249 | u813096099 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
ll M = 1e9 + 7;
#define MAXN 10000005
ll spf[MAXN];
ll hash1[MAXN] = {0};
void sieve() {
spf[1] = 1;
for (ll i = 2; i < MAXN; i++)
spf[i] = i;
for (ll i = 4; i < MAXN; i += 2)
spf[i] = 2;
for (ll i = 3; i * i ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
ll M = 1e9 + 7;
#define MAXN 10000005
ll spf[MAXN];
ll hash1[MAXN] = {0};
void sieve() {
spf[1] = 1;
for (ll i = 2; i < MAXN; i++)
spf[i] = i;
for (ll i = 4; i < MAXN; i += 2)
spf[i] = 2;
for (ll i = 3; i * i ... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 271,254 | 271,255 | u326092257 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
int check[1000010];
int main(void) {
int n;
cin >> n;
int a[n + 5];
for (int i = 0; i < n; i++) {
cin >> a[i];
}
for (int i = 0; i < 1000006; i++) {
check[i] = 0;
}
int ts;
int pairwise = 1;
int setwise = 1;
for (int i = 0; i < n; i++) {
ts... | #include <bits/stdc++.h>
using namespace std;
int check[1000010];
int main(void) {
int n;
cin >> n;
int a[n + 5];
for (int i = 0; i < n; i++) {
cin >> a[i];
}
for (int i = 0; i < 1000006; i++) {
check[i] = 0;
}
int ts;
int pairwise = 1;
int setwise = 1;
for (int i = 0; i < n; i++) {
ts... | [
"identifier.replace.remove",
"literal.replace.add",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 271,261 | 271,262 | u057381804 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
inline ll read() {
char ch = getchar();
ll x = 0;
while (ch < '0' || ch > '9')
ch = getchar();
while (ch >= '0' && ch <= '9')
x = (x << 3) + (x << 1) + ch - '0', ch = getchar();
return x;
}
ll n, cnt;
ll a[2000010];
bool isnp[2000... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
inline ll read() {
char ch = getchar();
ll x = 0;
while (ch < '0' || ch > '9')
ch = getchar();
while (ch >= '0' && ch <= '9')
x = (x << 3) + (x << 1) + ch - '0', ch = getchar();
return x;
}
ll n, cnt;
ll a[2000010];
bool isnp[2000... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.remove"
] | 271,265 | 271,266 | u623001370 | cpp |
p02574 | /*
Task: I. Kevin and Grid
Link: http://codeforces.com/contest/1392/problem/I
Lang: cpp17
*/
#include <bits/stdc++.h>
using namespace std;
#define eb emplace_back
#define pb push_back
#define INF LLONG_MAX
#define FLT_INF pow(10.0, 16)
using ll = long long;
using vll = vector<ll>;
using ull = unsigned long long... | /*
Task: I. Kevin and Grid
Link: http://codeforces.com/contest/1392/problem/I
Lang: cpp17
*/
#include <bits/stdc++.h>
using namespace std;
#define eb emplace_back
#define pb push_back
#define INF LLONG_MAX
#define FLT_INF pow(10.0, 16)
using ll = long long;
using vll = vector<ll>;
using ull = unsigned long long... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 271,300 | 271,301 | u037182465 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(NULL)
typedef long long ll;
typedef long double ld;
#define trace(x) cerr << #x << ": " << x << endl;
... | #include <bits/stdc++.h>
using namespace std;
#define fast \
ios_base::sync_with_stdio(0); \
cin.tie(NULL)
typedef long long ll;
typedef long double ld;
#define trace(x) cerr << #x << ": " << x << endl;
... | [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.for.initializer.change",
"expression.operation.binary.change"
] | 271,303 | 271,304 | u244803291 | cpp |
p02574 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template <typename T>
using oset =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
stri... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ld long double
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template <typename T>
using oset =
tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
stri... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 271,307 | 271,308 | u126793530 | cpp |
p02574 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
#define fast ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
int arr[1000001];
int main() {
fast int n, z;
cin >> n;
int g;
bool b = 1;
for (int i = 0; i < n; i++) {
cin >> z;
if (i == 0)
g = z;
else
g = __gcd(z... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
#define fast ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
int arr[1000001];
int main() {
fast int n, z;
cin >> n;
int g;
bool b = 1;
for (int i = 0; i < n; i++) {
cin >> z;
if (i == 0)
g = z;
else
g = __gcd(z... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 271,317 | 271,314 | u217148004 | cpp |
p02574 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
#define fast ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
int arr[100001];
int main() {
fast int n, z;
cin >> n;
int g;
bool b = 1;
for (int i = 0; i < n; i++) {
cin >> z;
if (i == 0)
g = z;
else
g = __gcd(z,... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
#define fast ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
int arr[1000001];
int main() {
fast int n, z;
cin >> n;
int g;
bool b = 1;
for (int i = 0; i < n; i++) {
cin >> z;
if (i == 0)
g = z;
else
g = __gcd(z... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 271,318 | 271,314 | u217148004 | cpp |
p02574 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
#define fast ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
int arr[1001];
int main() {
fast int n, z;
cin >> n;
int g;
bool b = 1;
for (int i = 0; i < n; i++) {
cin >> z;
if (i == 0)
g = z;
else
g = __gcd(z, g... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
#define fast ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
int arr[1000001];
int main() {
fast int n, z;
cin >> n;
int g;
bool b = 1;
for (int i = 0; i < n; i++) {
cin >> z;
if (i == 0)
g = z;
else
g = __gcd(z... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 271,319 | 271,314 | u217148004 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.