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 |
|---|---|---|---|---|---|---|---|
p03954 | #include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int n, A[N], B[N], M[N];
bool Solve(int md) {
for (int i = 1; i <= n + n - 1; i++)
B[i] = (A[i] >= md);
B[0] = B[n + n] = -1;
memset(M, 0, sizeof(M));
for (int i = 1; i <= n + n - 1; i++)
if (B[i] == B[i - 1] || B[i] == B[i + 1])
... | #include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int n, A[N], B[N], M[N];
bool Solve(int md) {
for (int i = 1; i <= n + n - 1; i++)
B[i] = (A[i] >= md);
B[0] = B[n + n] = -1;
memset(M, 0, sizeof(M));
for (int i = 1; i <= n + n - 1; i++)
if (B[i] == B[i - 1] || B[i] == B[i + 1])
... | [
"literal.number.change",
"variable_access.subscript.index.change",
"function.return_value.change"
] | 1,486,647 | 1,486,648 | u704326829 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int n, A[N], B[N], M[N];
bool Solve(int md) {
for (int i = 1; i <= n + n - 1; i++)
B[i] = (A[i] >= md);
B[0] = B[n + n] = -1;
memset(M, 0, sizeof(M));
for (int i = 1; i <= n + n - 1; i++)
if (B[i] == B[i - 1] || B[i] == B[i + 1])
... | #include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int n, A[N], B[N], M[N];
bool Solve(int md) {
for (int i = 1; i <= n + n - 1; i++)
B[i] = (A[i] >= md);
B[0] = B[n + n] = -1;
memset(M, 0, sizeof(M));
for (int i = 1; i <= n + n - 1; i++)
if (B[i] == B[i - 1] || B[i] == B[i + 1])
... | [
"literal.number.change",
"variable_access.subscript.index.change",
"function.return_value.change"
] | 1,486,649 | 1,486,648 | u704326829 | cpp |
p03954 | #include <cstdio>
const int N = 2e5 + 5;
int a[N], mid, l, r, n, ans = 0;
inline bool get(int x) { return !(x <= mid); }
inline bool check() {
for (int i = 1; i < n; i++) {
if (get(a[n + i - 1]) == get(a[n + i]))
return get(n + i);
if (get(a[n - i + 1]) == get(a[n - i]))
return get(n - i);
}
r... | #include <cstdio>
const int N = 2e5 + 5;
int a[N], mid, l, r, n, ans = 0;
inline bool get(int x) { return !(x <= mid); }
inline bool check() {
for (int i = 1; i < n; i++) {
if (get(a[n + i - 1]) == get(a[n + i]))
return get(a[n + i]);
if (get(a[n - i + 1]) == get(a[n - i]))
return get(a[n - i]);
... | [
"call.arguments.change",
"function.return_value.change"
] | 1,486,654 | 1,486,655 | u389411299 | cpp |
p03954 | #define _USE_MATH_DEFINES
#include <bits/stdc++.h> //////////////////////////////////////////
#define deb(...) /////////////////////////////////////////////////
#define DBP(...) /////////////////////////////////////////////////
#ifdef LOC ///////////////////////////////////////////////////... | #define _USE_MATH_DEFINES
#include <bits/stdc++.h> //////////////////////////////////////////
#define deb(...) /////////////////////////////////////////////////
#define DBP(...) /////////////////////////////////////////////////
#ifdef LOC ///////////////////////////////////////////////////... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,486,656 | 1,486,657 | u018915813 | cpp |
p03954 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long LL;
const int N = 200005;
int a[N], n;
bool big(int x, int y, int k) { return a[x] >= k && a[y] >= k; }
bool small(int x, int y, int k) { return a[x] < k && a[y] < k; }
bool check(int x) {
for (int u =... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long LL;
const int N = 200005;
int a[N], n;
bool big(int x, int y, int k) { return a[x] >= k && a[y] >= k; }
bool small(int x, int y, int k) { return a[x] < k && a[y] < k; }
bool check(int x) {
for (int u =... | [
"assignment.change"
] | 1,486,669 | 1,486,671 | u182586630 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
using lint = long long int;
using pint = pair<int, int>;
using plint = pair<lint, lint>;
struct fast_ios {
fast_ios() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(20);
};
} fast_ios_;
#define FOR(i, begin, end) ... | #include <bits/stdc++.h>
using namespace std;
using lint = long long int;
using pint = pair<int, int>;
using plint = pair<lint, lint>;
struct fast_ios {
fast_ios() {
cin.tie(0);
ios::sync_with_stdio(false);
cout << fixed << setprecision(20);
};
} fast_ios_;
#define FOR(i, begin, end) ... | [
"assignment.change"
] | 1,486,672 | 1,486,676 | u110383845 | cpp |
p03954 | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int a[200100], n;
bool check(int x) {
for (int i = 1; i <= 2 * n - 1; i++) {
if ((a[n - i] < x && a[n - i - 1] < x) ||
(a[n + i] < x && a[n + i + 1] < x))
return false;
if ((a[n - i] >= x && a[n - i - 1] >= x) ||
... | #include <algorithm>
#include <cstdio>
#include <cstring>
using namespace std;
int a[200100], n;
bool check(int x) {
for (int i = 0; i <= n - 1; i++) {
if ((a[n - i] < x && a[n - i - 1] < x) ||
(a[n + i] < x && a[n + i + 1] < x))
return false;
if ((a[n - i] >= x && a[n - i - 1] >= x) ||
... | [
"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.remove"
] | 1,486,690 | 1,486,691 | u582157285 | cpp |
p03954 | #include <cstdio>
#include <cstdlib>
#include <iostream>
#define mid ((l + r) >> 1)
const int N = 2e5 + 5;
int n, v[N];
inline bool check(int x) { // true 偏大左移 , false 偏小右移
for (int i = 0; i < n - 1; ++i) {
if ((v[n + i] > x && v[n + i + 1] > x) ||
(v[n - i] > x && v[n - i - 1] > x))
return false... | #include <cstdio>
#include <cstdlib>
#include <iostream>
#define mid ((l + r) >> 1)
const int N = 2e5 + 5;
int n, v[N];
inline bool check(int x) { // true 偏大左移 , false 偏小右移
for (int i = 0; i < n - 1; ++i) {
if ((v[n + i] > x && v[n + i + 1] > x) ||
(v[n - i] > x && v[n - i - 1] > x))
return false... | [
"control_flow.branch.if.condition.change"
] | 1,486,693 | 1,486,694 | u686162329 | cpp |
p03954 | /*
Author: QAQ-Automaton
LANG: C++
PROG: d.cpp
Mail: cnyalilk@vip.qq.com
*/
#include <bits/stdc++.h>
#define debug(...) fprintf(stderr, __VA_ARGS__)
#define DEBUG printf("Passing [%s] in LINE %d\n", __FUNCTION__, __LINE__)
#define Debug debug("Passing [%s] in LINE %d\n", __FUNCTION__, __LINE__)
#define all(x) x.begin()... | /*
Author: QAQ-Automaton
LANG: C++
PROG: d.cpp
Mail: cnyalilk@vip.qq.com
*/
#include <bits/stdc++.h>
#define debug(...) fprintf(stderr, __VA_ARGS__)
#define DEBUG printf("Passing [%s] in LINE %d\n", __FUNCTION__, __LINE__)
#define Debug debug("Passing [%s] in LINE %d\n", __FUNCTION__, __LINE__)
#define all(x) x.begin()... | [
"literal.number.change",
"variable_access.subscript.index.change",
"function.return_value.change",
"expression.operation.binary.remove"
] | 1,486,711 | 1,486,706 | u228297051 | cpp |
p03954 | #include <algorithm>
#include <complex>
#include <iostream>
#include <queue>
#include <vector>
#define lol(i, n) for (int i = 0; i < n; i++)
#define mod 1000000007
typedef long long ll;
using namespace std;
#define N 200010
ll n, a[N];
int main() {
cin >> n;
lol(i, 2 * n - 1) cin >> a[i];
ll l = 1, r = 2 * n;
... | #include <algorithm>
#include <complex>
#include <iostream>
#include <queue>
#include <vector>
#define lol(i, n) for (int i = 0; i < n; i++)
#define mod 1000000007
typedef long long ll;
using namespace std;
#define N 200010
ll n, a[N];
int main() {
cin >> n;
lol(i, 2 * n - 1) cin >> a[i];
ll l = 1, r = 2 * n;
... | [
"assignment.add",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 1,486,717 | 1,486,716 | u924885571 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
// #define int ll
using PII = pair<int, int>;
#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(x) x.begin(), x.end()
template <typename T> T &chmin(T &a, const T &b) { return a = min(a, b); }
templat... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
// #define int ll
using PII = pair<int, int>;
#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(x) x.begin(), x.end()
template <typename T> T &chmin(T &a, const T &b) { return a = min(a, b); }
templat... | [
"expression.operation.binary.remove"
] | 1,486,718 | 1,486,720 | u333917945 | cpp |
p03954 | // g++ -std=c++11 a.cpp
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <typeinfo>
#incl... | // g++ -std=c++11 a.cpp
#include <algorithm>
#include <assert.h>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <typeinfo>
#incl... | [
"control_flow.branch.else.remove",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"assignment.add"
] | 1,486,734 | 1,486,735 | u010004797 | cpp |
p03954 | #include <bits/stdc++.h>
#define N 200020
#define ll long long
using namespace std;
inline int read() {
int x = 0, f = 1;
char ch = getchar();
while (ch > '9' || ch < '0')
ch == '-' && (f = 0) || (ch = getchar());
while (ch <= '9' && ch >= '0')
x = (x << 3) + (x << 1) + ch - '0', ch = getchar();
retur... | #include <bits/stdc++.h>
#define N 200020
#define ll long long
using namespace std;
inline int read() {
int x = 0, f = 1;
char ch = getchar();
while (ch > '9' || ch < '0')
ch == '-' && (f = 0) || (ch = getchar());
while (ch <= '9' && ch >= '0')
x = (x << 3) + (x << 1) + ch - '0', ch = getchar();
retur... | [
"control_flow.break.add"
] | 1,486,739 | 1,486,742 | u383992322 | cpp |
p03954 | #include <bits/stdc++.h>
#define LL long long
using namespace std;
const int N = 1e5 + 10;
int n, m, a[N * 2], b[N * 2];
int check(int mid) {
int dis = 0x3f3f3f3f;
for (int i = 1; i <= n * 2 - 1; ++i)
b[i] = (a[i] >= mid);
int ans = b[1];
for (int i = 1; i < n * 2 - 1; ++i) {
if (b[i] == b[i + 1]) {
... | #include <bits/stdc++.h>
#define LL long long
using namespace std;
const int N = 1e5 + 10;
int n, m, a[N * 2], b[N * 2];
int check(int mid) {
int dis = 0x3f3f3f3f;
for (int i = 1; i <= n * 2 - 1; ++i)
b[i] = (a[i] >= mid);
int ans = b[1];
for (int i = 1; i < n * 2 - 1; ++i) {
if (b[i] == b[i + 1]) {
... | [
"assignment.change"
] | 1,486,744 | 1,486,746 | u165906724 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int n, a[N];
int b[N];
int check(int k) {
for (int i = 1; i < n * 2; i++)
b[i] = a[i] > k;
int m = n / 2;
int L = m, R = m;
while (L > 1 && b[L] != b[L - 1])
L--;
while (R < n * 2 - 1 && b[R] != b[R + 1])
R++;
if (L == m || R ==... | #include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int n, a[N];
int b[N];
int check(int k) {
for (int i = 1; i < n * 2; i++)
b[i] = a[i] > k;
// for (int i=1;i<n*2;i++)
// printf("%d",b[i]);
int m = n;
int L = m, R = m;
while (L > 1 && b[L] != b[L - 1])
L--;
while (R < n * 2 - 1 ... | [
"expression.operation.binary.remove"
] | 1,486,754 | 1,486,756 | u773881973 | cpp |
p03954 | // by xxj
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#in... | // by xxj
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#in... | [
"assignment.change"
] | 1,486,789 | 1,486,790 | u776618439 | cpp |
p03954 | #include <bits/stdc++.h>
#include <ext/hash_map>
#include <ext/numeric>
using namespace std;
using namespace __gnu_cxx;
#define REP(i, n) for ((i) = 0; (i) < (n); (i)++)
#define rep(i, x, n) for ((i) = (x); (i) < (n); (i)++)
#define REV(i, n) for ((i) = (n); (i) >= 0; (i)--)
#define FORIT(it, x) for ((it) = (x).begin... | #include <bits/stdc++.h>
#include <ext/hash_map>
#include <ext/numeric>
using namespace std;
using namespace __gnu_cxx;
#define REP(i, n) for ((i) = 0; (i) < (n); (i)++)
#define rep(i, x, n) for ((i) = (x); (i) < (n); (i)++)
#define REV(i, n) for ((i) = (n); (i) >= 0; (i)--)
#define FORIT(it, x) for ((it) = (x).begin... | [
"identifier.replace.remove",
"literal.replace.add",
"variable_access.subscript.index.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 1,486,800 | 1,486,802 | u362821344 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define llu unsigned long long
#define ld double
#define llu unsigned long long
#define rep(i, x, y) for (int i = int(x); i < int(y); ++i)
#define For(i, x, y) for (int i = int(x); i <= int(y); ++i)
#define FOr(i, x, y) for (int i = int(x); i >= int(y);... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define llu unsigned long long
#define ld double
#define llu unsigned long long
#define rep(i, x, y) for (int i = int(x); i < int(y); ++i)
#define For(i, x, y) for (int i = int(x); i <= int(y); ++i)
#define FOr(i, x, y) for (int i = int(x); i >= int(y);... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.branch.if.condition.change"
] | 1,486,823 | 1,486,829 | u443701185 | cpp |
p03954 | #include <bits/stdc++.h>
const int N = 100010;
int a[N << 1];
int big[N << 1];
int n;
bool check(int mid) {
for (int i = 0; i < 2 * n - 1; ++i) {
big[i] = a[i] >= mid;
}
if (big[n - 1] == big[n - 2] || big[n - 1] == big[n])
return big[n - 1];
int left = n - 1;
while (left > 0 && big[left] != big[le... | #include <bits/stdc++.h>
const int N = 100010;
int a[N << 1];
int big[N << 1];
int n;
bool check(int mid) {
for (int i = 0; i < 2 * n - 1; ++i) {
big[i] = a[i] >= mid;
}
if (big[n - 1] == big[n - 2] || big[n - 1] == big[n])
return big[n - 1];
int left = n - 1;
while (left > 0 && big[left] != big[le... | [
"assignment.change"
] | 1,486,834 | 1,486,835 | u981966125 | cpp |
p03954 | #include <algorithm>
#include <cstdio>
using namespace std;
const int N = 200200;
int i, j, k, n, m, l, r, mid, ch, ff;
int a[N];
void R(int &x) {
ff = x = 0;
ch = getchar();
while (ch < '0' || '9' < ch) {
if (ch == '-')
ff = 1;
ch = getchar();
}
while ('0' <= ch && ch <= '9')
x = x * 10 + c... | #include <algorithm>
#include <cstdio>
using namespace std;
const int N = 200200;
int i, j, k, n, m, l, r, mid, ch, ff;
int a[N];
void R(int &x) {
ff = x = 0;
ch = getchar();
while (ch < '0' || '9' < ch) {
if (ch == '-')
ff = 1;
ch = getchar();
}
while ('0' <= ch && ch <= '9')
x = x * 10 + c... | [
"control_flow.branch.while.replace.add",
"control_flow.loop.if.replace.remove"
] | 1,486,852 | 1,486,854 | u265073302 | cpp |
p03954 | #include <algorithm>
#include <cstdio>
using namespace std;
const int N = 200200;
int i, j, k, n, m, l, r, mid, ch, ff;
int a[N];
void R(int &x) {
ff = x = 0;
ch = getchar();
while (ch < '0' || '9' < ch) {
if (ch == '-')
ff = 1;
ch = getchar();
}
while ('0' <= ch && ch <= '9')
x = x * 10 + c... | #include <algorithm>
#include <cstdio>
using namespace std;
const int N = 200200;
int i, j, k, n, m, l, r, mid, ch, ff;
int a[N];
void R(int &x) {
ff = x = 0;
ch = getchar();
while (ch < '0' || '9' < ch) {
if (ch == '-')
ff = 1;
ch = getchar();
}
while ('0' <= ch && ch <= '9')
x = x * 10 + c... | [
"control_flow.branch.while.replace.add",
"control_flow.loop.if.replace.remove"
] | 1,486,857 | 1,486,854 | u265073302 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int nn, n;
int a[N << 1];
int small(int x, int y, int k) { return (a[x] <= k && a[y] <= k); }
int big(int x, int y, int k) { return (a[x] > k && a[y] > k); }
bool check(int k) {
if (small(n, n - 1, k) || small(n, n + 1, k))
return 0;
if (... | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int nn, n;
int a[N << 1];
int small(int x, int y, int k) { return (a[x] <= k && a[y] <= k); }
int big(int x, int y, int k) { return (a[x] > k && a[y] > k); }
bool check(int k) {
if (small(n, n - 1, k) || small(n, n + 1, k))
return 0;
if (... | [
"identifier.change",
"call.function.change",
"function.return_value.change"
] | 1,486,869 | 1,486,870 | u178440299 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int nn, n;
int a[N << 1];
int small(int x, int y, int k) { return (a[x] <= k && a[y] <= k); }
int big(int x, int y, int k) { return (a[x] > k && a[y] > k); }
bool check(int k) {
if (small(n, n - 1, k) || small(n, n + 1, k))
return 0;
if (... | #include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int nn, n;
int a[N << 1];
int small(int x, int y, int k) { return (a[x] <= k && a[y] <= k); }
int big(int x, int y, int k) { return (a[x] > k && a[y] > k); }
bool check(int k) {
if (small(n, n - 1, k) || small(n, n + 1, k))
return 0;
if (... | [
"expression.operation.unary.add",
"function.return_value.change"
] | 1,486,869 | 1,486,871 | u178440299 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 5;
int n, N, a[MAXN << 1], b[MAXN << 1];
struct data {
int l, r, val;
} d[MAXN];
int re(int limit) {
memset(b, -1, sizeof(b));
int num = 0;
for (int i = 1; i <= N; i++) {
b[i] = a[i] >= limit ? 1 : 0;
}
for (int i = 1; i < N; i++) ... | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 5;
int n, N, a[MAXN << 1], b[MAXN << 1];
struct data {
int l, r, val;
} d[MAXN];
int re(int limit) {
memset(b, -1, sizeof(b));
int num = 0;
for (int i = 1; i <= N; i++) {
b[i] = a[i] >= limit ? 1 : 0;
}
for (int i = 1; i < N; i++) ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,486,872 | 1,486,874 | u115033193 | cpp |
p03954 | #include <bits/stdc++.h>
typedef unsigned int uint;
typedef long long ll;
typedef unsigned long long ull;
typedef double lf;
typedef long double llf;
typedef std::pair<int, int> pii;
#define xx first
#define yy second
template <typename T> inline T max(T a, T b) { return a > b ? a : b; }
template <typename T> inline... | #include <bits/stdc++.h>
typedef unsigned int uint;
typedef long long ll;
typedef unsigned long long ull;
typedef double lf;
typedef long double llf;
typedef std::pair<int, int> pii;
#define xx first
#define yy second
template <typename T> inline T max(T a, T b) { return a > b ? a : b; }
template <typename T> inline... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,486,877 | 1,486,891 | u351372349 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
int N;
int A[200010];
bool judge(int mid) {
bool k[200020] = {0}, f[200020] = {0}, F = false;
if (A[0] >= mid)
k[0] = true;
else
k[0] = false;
for (int i = 1; i < N * 2 - 1; i++) {
if (A[i] >= mid)
k[i] = true;
else
k[i] = false;
i... | #include <bits/stdc++.h>
using namespace std;
int N;
int A[200010];
bool judge(int mid) {
bool k[200020] = {0}, f[200020] = {0}, F = false;
if (A[0] >= mid)
k[0] = true;
else
k[0] = false;
for (int i = 1; i < N * 2 - 1; i++) {
if (A[i] >= mid)
k[i] = true;
else
k[i] = false;
i... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"function.return_value.change"
] | 1,486,897 | 1,486,899 | u205655980 | cpp |
p03954 | // Median Pyramid Hard
// * frank_c1
// * 2017 / 11 / 09
#include <bits/stdc++.h>
using namespace std;
const int maxn = (int)(2e5) + 5;
int a[maxn], b[maxn];
int n;
bool chk(int x) {
for (int i = 1; i <= 2 * n - 1; ++i)
b[i] = (a[i] >= x);
if (b[n] == b[n - 1] || b[n] == b[n + 1])
return b[n];
int l = ... | // Median Pyramid Hard
// * frank_c1
// * 2017 / 11 / 09
#include <bits/stdc++.h>
using namespace std;
const int maxn = (int)(2e5) + 5;
int a[maxn], b[maxn];
int n;
bool chk(int x) {
for (int i = 1; i <= 2 * n - 1; ++i)
b[i] = (a[i] >= x);
if (b[n] == b[n - 1] || b[n] == b[n + 1])
return b[n];
int l = ... | [
"variable_declaration.remove",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 1,486,902 | 1,486,904 | u249726977 | cpp |
p03954 | #include <bits/stdc++.h>
#define N 200009
using namespace std;
int n, h[N], a[N], b[N], c[N];
int check(int x) {
int i;
for (i = 1; i < n; i++)
b[i] = (a[i] >= x);
memset(c, -1, sizeof(c));
for (i = 2; i < n; i++)
if (b[i] == b[i - 1])
c[i] = c[i - 1] = b[i];
int head = 0, tail = 0;
for (i = ... | #include <bits/stdc++.h>
#define N 200009
using namespace std;
int n, h[N], a[N], b[N], c[N];
int check(int x) {
int i;
for (i = 1; i < n; i++)
b[i] = (a[i] >= x);
memset(c, -1, sizeof(c));
for (i = 2; i < n; i++)
if (b[i] == b[i - 1])
c[i] = c[i - 1] = b[i];
int head = 0, tail = 0;
for (i = ... | [
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove"
] | 1,486,943 | 1,486,945 | u070528238 | cpp |
p03954 | #include <bits/stdc++.h>
#define sqr(x) ((x) * (x))
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define ld long double
#define vi vector<int>
#define HEAP(...) priority_queue<__VA_ARGS__>
#define heap(...) \
priority_queue<__... | #include <bits/stdc++.h>
#define sqr(x) ((x) * (x))
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define ld long double
#define vi vector<int>
#define HEAP(...) priority_queue<__VA_ARGS__>
#define heap(...) \
priority_queue<__... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.initializer.change"
] | 1,486,955 | 1,486,967 | u488167351 | cpp |
p03954 | #include <bits/stdc++.h>
#define xx first
#define yy second
#define mp make_pair
#define pb push_back
#define mset(x, y) memset(x, y, sizeof x)
#define mcpy(x, y) memcpy(x, y, sizeof x)
using namespace std;
typedef long long LL;
typedef pair<int, int> pii;
inline int Read() {
int x = 0, f = 1, c = getchar();
for ... | #include <bits/stdc++.h>
#define xx first
#define yy second
#define mp make_pair
#define pb push_back
#define mset(x, y) memset(x, y, sizeof x)
#define mcpy(x, y) memcpy(x, y, sizeof x)
using namespace std;
typedef long long LL;
typedef pair<int, int> pii;
inline int Read() {
int x = 0, f = 1, c = getchar();
for ... | [
"control_flow.return.add"
] | 1,486,973 | 1,486,975 | u877679608 | cpp |
p03954 | #include <bits/stdc++.h>
#define xx first
#define yy second
#define mp make_pair
#define pb push_back
#define mset(x, y) memset(x, y, sizeof x)
#define mcpy(x, y) memcpy(x, y, sizeof x)
using namespace std;
typedef long long LL;
typedef pair<int, int> pii;
inline int Read() {
int x = 0, f = 1, c = getchar();
for ... | #include <bits/stdc++.h>
#define xx first
#define yy second
#define mp make_pair
#define pb push_back
#define mset(x, y) memset(x, y, sizeof x)
#define mcpy(x, y) memcpy(x, y, sizeof x)
using namespace std;
typedef long long LL;
typedef pair<int, int> pii;
inline int Read() {
int x = 0, f = 1, c = getchar();
for ... | [
"variable_declaration.value.change",
"identifier.change",
"variable_access.subscript.index.change",
"function.return_value.change"
] | 1,486,976 | 1,486,975 | u877679608 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
int n, m;
int a[222222], b[222222];
bool ok(int x) {
int s = n;
for (int i = 1; i <= m; ++i)
b[i] = a[i] >= x;
int dist = 1 << 20;
int an;
for (int i = 2; i <= n; ++i)
if (b[i] == b[i - 1]) {
if (s - i < dist) {
dist = s - i;
an = ... | #include <bits/stdc++.h>
using namespace std;
int n, m;
int a[222222], b[222222];
bool ok(int x) {
int s = n;
for (int i = 1; i <= m; ++i)
b[i] = a[i] >= x;
int dist = 1 << 20;
int an = b[1];
for (int i = 2; i <= n; ++i)
if (b[i] == b[i - 1]) {
if (s - i < dist) {
dist = s - i;
... | [
"variable_declaration.value.change"
] | 1,486,985 | 1,486,987 | u384645789 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
//#define FILE_IO
int N;
int v[200005];
int b[200005];
bool median(int val) {
for (int i = 1; i <= 2 * N - 1; i++)
b[i] = (v[i] <= val);
int cnt = 0;
for (int i = 1; i < 2 * N - 1; i++)
if (b[i] == b[i + 1])
cnt++;
if (!cnt)
return v[1];
for... | #include <bits/stdc++.h>
using namespace std;
//#define FILE_IO
int N;
int v[200005];
int b[200005];
bool median(int val) {
for (int i = 1; i <= 2 * N - 1; i++)
b[i] = (v[i] <= val);
int cnt = 0;
for (int i = 1; i < 2 * N - 1; i++)
if (b[i] == b[i + 1])
cnt++;
if (!cnt)
return b[1];
for... | [
"identifier.change",
"function.return_value.change"
] | 1,487,008 | 1,487,011 | u533606242 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, x, y) for (int i = (x); i < (y); ++i)
#define debug(x) #x << "=" << (x)
#ifdef DEBUG
#define _GLIBCXX_DEBUG
#define print(x) std::cerr << debug(x) << " (L:" << __LINE__ << ")" << std::endl
#else
#define print(x)
#endif
const int inf = 1e9;
const int64_t in... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, x, y) for (int i = (x); i < (y); ++i)
#define debug(x) #x << "=" << (x)
#ifdef DEBUG
#define _GLIBCXX_DEBUG
#define print(x) std::cerr << debug(x) << " (L:" << __LINE__ << ")" << std::endl
#else
#define print(x)
#endif
const int inf = 1e9;
const int64_t in... | [
"expression.operation.binary.remove"
] | 1,487,018 | 1,487,022 | u759266806 | cpp |
p03954 | // Giorgi Kldiashvili
#include <bits/stdc++.h>
#define fr first
#define sc second
using namespace std;
int n;
int a[200020];
bool b[200020], c[200020];
bool check(int x) {
for (int i = 1; i <= 2 * n - 1; ++i)
b[i] = (a[i] > x) ? true : false;
b[0] = !b[1];
b[2 * n] = !(b[2 * n - 1]);
for (int i = 1; i ... | // Giorgi Kldiashvili
#include <bits/stdc++.h>
#define fr first
#define sc second
using namespace std;
int n;
int a[200020];
bool b[200020], c[200020];
bool check(int x) {
for (int i = 1; i <= 2 * n - 1; ++i)
b[i] = (a[i] > x) ? true : false;
b[0] = b[1];
b[2 * n] = (b[2 * n - 1]);
for (int i = 1; i <=... | [
"expression.operation.unary.logical.remove",
"assignment.change"
] | 1,487,026 | 1,487,029 | u059937237 | cpp |
p03954 | // Giorgi Kldiashvili
#include <bits/stdc++.h>
#define fr first
#define sc second
using namespace std;
int n;
int a[200020];
bool b[200020], c[200020];
bool check(int x) {
for (int i = 1; i <= 2 * n - 1; ++i)
b[i] = (a[i] > x) ? true : false;
b[0] = b[1];
b[2 * n] = (b[2 * n - 1]);
for (int i = 1; i <=... | // Giorgi Kldiashvili
#include <bits/stdc++.h>
#define fr first
#define sc second
using namespace std;
int n;
int a[200020];
bool b[200020], c[200020];
bool check(int x) {
for (int i = 1; i <= 2 * n - 1; ++i)
b[i] = (a[i] > x) ? true : false;
b[0] = b[1];
b[2 * n] = (b[2 * n - 1]);
for (int i = 1; i <=... | [
"assignment.change"
] | 1,487,031 | 1,487,029 | u059937237 | cpp |
p03954 | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <ciso646>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <queue>
#includ... | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <ciso646>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <queue>
#includ... | [
"expression.operation.binary.remove"
] | 1,487,045 | 1,487,046 | u579875569 | cpp |
p03954 |
#include <algorithm>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include... |
#include <algorithm>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,487,055 | 1,487,056 | u558671021 | cpp |
p03954 | #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 fi first
#define se second
#define mp make_pair
#define pb push_back
#define fbo find_by_order
#define ook order_of_key
typedef long long ll;
typedef pair<ll... | #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 fi first
#define se second
#define mp make_pair
#define pb push_back
#define fbo find_by_order
#define ook order_of_key
typedef long long ll;
typedef pair<ll... | [
"assignment.change"
] | 1,487,059 | 1,487,060 | u955723966 | cpp |
p03953 | #include <bits/stdc++.h>
#define FOR(i, a, b) for (ll i = (a); i < (ll)(b); i++)
#define REP(i, n) FOR(i, 0, n)
#define YYS(x, arr) for (auto &x : arr)
#define ALL(x) (x).begin(), (x).end()
#define SORT(x) sort((x).begin(), (x).end())
#define REVERSE(x) reverse((x).begin(), (x).end())
#define UNIQUE(x) (x).erase(uniqu... | #include <bits/stdc++.h>
#define FOR(i, a, b) for (ll i = (a); i < (ll)(b); i++)
#define REP(i, n) FOR(i, 0, n)
#define YYS(x, arr) for (auto &x : arr)
#define ALL(x) (x).begin(), (x).end()
#define SORT(x) sort((x).begin(), (x).end())
#define REVERSE(x) reverse((x).begin(), (x).end())
#define UNIQUE(x) (x).erase(uniqu... | [
"assignment.change"
] | 1,486,623 | 1,486,624 | u612341606 | cpp |
p03953 | // This is getting accepted!
// I HATE BUG
// God Of The Bugs
#include <bits/stdc++.h>
using namespace std;
#define ms(s, n) memset(s, n, sizeof(s))
#define FI first
#define SE second
#define pb push_back
#define mp make_pair
#define ll long long
#define sz(a) ((int)(a).size())
#define __builtin_popcount __builtin_po... | // This is getting accepted!
// I HATE BUG
// God Of The Bugs
#include <bits/stdc++.h>
using namespace std;
#define ms(s, n) memset(s, n, sizeof(s))
#define FI first
#define SE second
#define pb push_back
#define mp make_pair
#define ll long long
#define sz(a) ((int)(a).size())
#define __builtin_popcount __builtin_po... | [
"literal.string.change",
"call.arguments.change"
] | 1,486,633 | 1,486,634 | u805114384 | cpp |
p03953 | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <ciso646>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <queue>
#includ... | #include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <ciso646>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <queue>
#includ... | [
"assignment.value.change",
"identifier.change"
] | 1,486,688 | 1,486,692 | u579875569 | cpp |
p03953 | #include <cstdio>
#include <vector>
using namespace std;
int x[100000];
int a[100000];
vector<int> mul(vector<int> &v, vector<int> &w) {
int i;
vector<int> z(v.size());
for (i = 0; i < v.size(); i++)
z[w[v[i]]] = i;
return z;
}
vector<int> pow(vector<int> &v, long long k) {
int i;
vector<int> ans;... | #include <cstdio>
#include <vector>
using namespace std;
int x[100000];
int a[100000];
vector<int> mul(vector<int> &v, vector<int> &w) {
int i;
vector<int> z(v.size());
for (i = 0; i < v.size(); i++)
z[i] = w[v[i]];
return z;
}
vector<int> pow(vector<int> &v, long long k) {
int i;
vector<int> ans;... | [
"assignment.change"
] | 1,486,745 | 1,486,747 | u387061829 | cpp |
p03953 | #include <bits/stdc++.h>
typedef long long i64;
const int N = 100000 + 10;
int n, m, a[N];
i64 k, x[N], y[N], z[N];
int p[N], q[N];
void comp(int lhs[], int rhs[]) {
static int res[N];
for (int i = 1; i < n; ++i)
res[i] = rhs[lhs[i]];
std::copy(res + 1, res + n, lhs + 1);
}
void power(int base[], i64 ex... | #include <bits/stdc++.h>
typedef long long i64;
const int N = 100000 + 10;
int n, m, a[N];
i64 k, x[N], y[N], z[N];
int p[N], q[N];
void comp(int lhs[], int rhs[]) {
static int res[N];
for (int i = 1; i < n; ++i)
res[i] = rhs[lhs[i]];
std::copy(res + 1, res + n, lhs + 1);
}
void power(int base[], i64 ex... | [
"identifier.change",
"call.arguments.change",
"assignment.variable.change",
"variable_access.subscript.index.change"
] | 1,486,762 | 1,486,764 | u113982187 | cpp |
p03953 | #include <bits/stdc++.h>
using namespace std;
#define fo(i, a, b) for (int i = (a); i < (b); i++)
#define pb push_back
#define eb emplace_back
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
#define N 123456
int n, m, x, to[66][N];
ll k;
ll a[N], d[N], dans[N], ans[N];
int main() {
scanf("%... | #include <bits/stdc++.h>
using namespace std;
#define fo(i, a, b) for (int i = (a); i < (b); i++)
#define pb push_back
#define eb emplace_back
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
#define N 123456
int n, m, x, to[66][N];
ll k;
ll a[N], d[N], dans[N], ans[N];
int main() {
scanf("%... | [
"control_flow.branch.if.condition.change",
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change",
"assignment.value.change"
] | 1,486,779 | 1,486,778 | u339233816 | cpp |
p03953 | #ifndef __clang__
#pragma GCC optimize("-O3")
#endif
#ifdef ONLINE_JUDGE
#define NDEBUG 1
#endif
#define _GLIBCXX_USE_CXX11_ABI 0
#include <bits/stdc++.h>
#include <stdio.h>
#define DESTRUCT2(p, a, b) \
auto a = get<0>(p); ... | #ifndef __clang__
#pragma GCC optimize("-O3")
#endif
#ifdef ONLINE_JUDGE
#define NDEBUG 1
#endif
#define _GLIBCXX_USE_CXX11_ABI 0
#include <bits/stdc++.h>
#include <stdio.h>
#define DESTRUCT2(p, a, b) \
auto a = get<0>(p); ... | [
"assignment.variable.change",
"identifier.change",
"variable_access.subscript.index.change",
"assignment.value.change"
] | 1,486,809 | 1,486,815 | u434413111 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
int n;
int a[200010], c[200010];
int ans;
int read() {
int x = 0, f = 1;
char c = getchar();
while (c < '0' || c > '9') {
if (c == '-')
f = -1;
c = getchar();
}
while (c >= '0' && c <= '9') {
x = (x << 1) + (x << 3) + c - '0';
c = getchar();... | #include <bits/stdc++.h>
using namespace std;
int n;
int a[200010], c[200010];
int ans;
int read() {
int x = 0, f = 1;
char c = getchar();
while (c < '0' || c > '9') {
if (c == '-')
f = -1;
c = getchar();
}
while (c >= '0' && c <= '9') {
x = (x << 1) + (x << 3) + c - '0';
c = getchar();... | [
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"expression.operation.binary.remove"
] | 1,486,821 | 1,486,822 | u089230684 | cpp |
p03954 | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
const int N = 5e5;
int a[N], w[N], n;
int judge(int x) {
for (int i = 1; i <= 2 * n - 1; i++)
a[i] = w[i] > x;
for (int i = n, j = n; i > 1; i--, j++) {
if (a[i] == a[i - 1])
return a[i] == 0;
if (a[j] == a[j + 1])
... | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
const int N = 5e5;
int a[N], w[N], n;
int judge(int x) {
for (int i = 1; i <= 2 * n - 1; i++)
a[i] = w[i] > x;
for (int i = n, j = n; i > 1; i--, j++) {
if (a[i] == a[i - 1])
return a[i] == 0;
if (a[j] == a[j + 1])
... | [
"assignment.change"
] | 1,486,824 | 1,486,825 | u987355664 | cpp |
p03954 | #include <cstdio>
using namespace std;
const int NN = 1e5 + 5, N2N = NN * 2 - 1;
int N, A[N2N], B[N2N];
bool check(int m) {
for (int i = 1; i <= 2 * N - 1; ++i)
B[i] = (A[i] >= m);
bool type = 0;
for (int i = 1; i < 2 * N - 1; ++i)
if (B[i] == B[i + 1]) {
type = 1;
break;
}
if (!type) {
... | #include <cstdio>
using namespace std;
const int NN = 1e5 + 5, N2N = NN * 2 - 1;
int N, A[N2N], B[N2N];
bool check(int m) {
for (int i = 1; i <= 2 * N - 1; ++i)
B[i] = (A[i] >= m);
bool type = 0;
for (int i = 1; i < 2 * N - 1; ++i)
if (B[i] == B[i + 1]) {
type = 1;
break;
}
if (!type) {
... | [] | 1,486,841 | 1,486,842 | u794599871 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, n) for (int i = a; i < n; i++)
int n, m;
int a[500010];
int b[500010];
bool check(int x) {
int front1 = (x < a[m]);
int front2 = front1;
int now1, now2;
int asd = -1; //优先最近
rep(i, 1, n) {
// if(x>a[i])
// {
// now=1;
// }
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, n) for (int i = a; i < n; i++)
int n, m;
int a[500010];
int b[500010];
bool check(int x) {
int front1 = (x < a[m]);
int front2 = front1;
int now1, now2;
int asd = -1; //优先最近
rep(i, 1, m) {
// if(x>a[i])
// {
// now=1;
// }
... | [
"identifier.change",
"call.arguments.change"
] | 1,486,846 | 1,486,847 | u384188992 | cpp |
p03954 | #include <bits/stdc++.h>
#define all(x) x.begin(), x.end()
#define pb push_back
using namespace std;
using ll = long long;
using vi = vector<ll>;
using pi = pair<ll, ll>;
const int maxn = 5050, mlg = 17, mod = 1e9 + 7;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
bool can(vi a) {
// for(auto i... | #include <bits/stdc++.h>
#define all(x) x.begin(), x.end()
#define pb push_back
using namespace std;
using ll = long long;
using vi = vector<ll>;
using pi = pair<ll, ll>;
const int maxn = 5050, mlg = 17, mod = 1e9 + 7;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
bool can(vi a) {
// for(auto i... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 1,486,850 | 1,486,851 | u084411645 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
//#define cerr if (false) cerr
#define db(x) cerr << #x << "=" << x << endl
#define db2(x, y) cerr << #x << "=" << x << "," << #y << "=" << y << endl
#define db3(x, y, z) \
cerr << #x << "=" << x << "," << #y << "=... | #include <bits/stdc++.h>
using namespace std;
//#define cerr if (false) cerr
#define db(x) cerr << #x << "=" << x << endl
#define db2(x, y) cerr << #x << "=" << x << "," << #y << "=" << y << endl
#define db3(x, y, z) \
cerr << #x << "=" << x << "," << #y << "=... | [
"identifier.change",
"control_flow.branch.if.condition.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,486,856 | 1,486,859 | u735075555 | cpp |
p03954 | // InterestingLSY
// codeforces&github: interestingLSY, qq: 2659723130
// 《幽灵公主》是真的好看!
#ifdef intLSY
#include <intlsy/stdc++.h>
#else
#include <bits/stdc++.h>
#endif
#include <bits/c++0x_warning.h>
using namespace std;
#define il inline
#define elif else if
// Type
#define ld double
#define ll long long
#define ull un... | // InterestingLSY
// codeforces&github: interestingLSY, qq: 2659723130
// 《幽灵公主》是真的好看!
#ifdef intLSY
#include <intlsy/stdc++.h>
#else
#include <bits/stdc++.h>
#endif
#include <bits/c++0x_warning.h>
using namespace std;
#define il inline
#define elif else if
// Type
#define ld double
#define ll long long
#define ull un... | [
"literal.number.change",
"variable_declaration.value.change",
"call.arguments.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,486,860 | 1,486,862 | u065793287 | cpp |
p03954 | // InterestingLSY
// codeforces&github: interestingLSY, qq: 2659723130
// 《幽灵公主》是真的好看!
#ifdef intLSY
#include <intlsy/stdc++.h>
#else
#include <bits/stdc++.h>
#endif
#include <bits/c++0x_warning.h>
using namespace std;
#define il inline
#define elif else if
// Type
#define ld double
#define ll long long
#define ull un... | // InterestingLSY
// codeforces&github: interestingLSY, qq: 2659723130
// 《幽灵公主》是真的好看!
#ifdef intLSY
#include <intlsy/stdc++.h>
#else
#include <bits/stdc++.h>
#endif
#include <bits/c++0x_warning.h>
using namespace std;
#define il inline
#define elif else if
// Type
#define ld double
#define ll long long
#define ull un... | [
"literal.number.change",
"variable_declaration.value.change",
"call.arguments.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 1,486,866 | 1,486,862 | u065793287 | cpp |
p03954 | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using ll = long long;
using namespace std;
int main() {
int n;
cin >> n;
int a[2 * n - 1];
for (auto &ai : a)
cin >> ai;
int l = 1, r = n + 1;
while (r - l > 1) {
int m = (l + r) / 2;
bool prev = (a[... | #include <algorithm>
#include <iostream>
#include <queue>
#include <string>
#include <vector>
using ll = long long;
using namespace std;
int main() {
int n;
cin >> n;
int a[2 * n - 1];
for (auto &ai : a)
cin >> ai;
int l = 1, r = 2 * n;
while (r - l > 1) {
int m = (l + r) / 2;
bool prev = (a[... | [
"expression.operation.binary.remove"
] | 1,486,876 | 1,486,878 | u956758464 | cpp |
p03954 | /*
Though leaves are many , the root is one.
Through all the lying days of my youth
I swayed my leaves and flowers in the sun.
Now I may wither into the truth.
- William Butler Yeats
*/
//#pragma GCC optimize("Ofast,no-stack-protector")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,m... | /*
Though leaves are many , the root is one.
Through all the lying days of my youth
I swayed my leaves and flowers in the sun.
Now I may wither into the truth.
- William Butler Yeats
*/
//#pragma GCC optimize("Ofast,no-stack-protector")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,m... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 1,486,879 | 1,486,880 | u588911593 | cpp |
p03954 | #pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("fast-math")
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
#define int long long
#define F first
#define S second
#define all(v) v.begin(), v.end()
#defin... | #pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("fast-math")
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
#define int long long
#define F first
#define S second
#define all(v) v.begin(), v.end()
#defin... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one",
"identifier.change",
"io.output.change"
] | 1,486,883 | 1,486,884 | u606919221 | cpp |
p03954 | #include <bits/stdc++.h>
const int kN = 2e5 + 5;
int n, a[kN];
bool Check(int mid) {
for (int i = 0; i < n - 1; ++i) {
if ((a[n + i] > mid) == (a[n + i + 1] > mid))
return (a[n + i] > mid);
if ((a[n - i] > mid) == (a[n - i - 1] > mid))
return (a[n - i] > mid);
}
return a[1] > mid;
}
int mai... | #include <bits/stdc++.h>
const int kN = 2e5 + 5;
int n, a[kN];
bool Check(int mid) {
for (int i = 0; i < n - 1; ++i) {
if ((a[n + i] > mid) == (a[n + i + 1] > mid))
return (a[n + i] > mid);
if ((a[n - i] > mid) == (a[n - i - 1] > mid))
return (a[n - i] > mid);
}
return a[1] > mid;
}
int mai... | [
"assignment.change"
] | 1,486,885 | 1,486,886 | u252537217 | cpp |
p03954 | #include <bits/stdc++.h>
const int kN = 2e5 + 5;
int n, a[kN];
bool Check(int mid) {
for (int i = 0; i < n; ++i) {
if ((a[n + i] > mid) == (a[n + i + 1] > mid))
return (a[n + i] > mid);
if ((a[n - i] > mid) == (a[n - i - 1] > mid))
return (a[n - i] > mid);
}
return a[1] > mid;
}
int main() ... | #include <bits/stdc++.h>
const int kN = 2e5 + 5;
int n, a[kN];
bool Check(int mid) {
for (int i = 0; i < n - 1; ++i) {
if ((a[n + i] > mid) == (a[n + i + 1] > mid))
return (a[n + i] > mid);
if ((a[n - i] > mid) == (a[n - i - 1] > mid))
return (a[n - i] > mid);
}
return a[1] > mid;
}
int mai... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one"
] | 1,486,887 | 1,486,886 | u252537217 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
auto Nextint = []() -> int {
int x;
scanf("%d", &x);
return x;
};
int n, a[1000001];
bool check(int x) {
vector<int> pos;
auto func = [x](int p) -> bool { return a[p] >= x; };
auto proc = [](bool a, bool b, bool c) -> bool { return a == b || b == c; };
for (... | #include <bits/stdc++.h>
using namespace std;
auto Nextint = []() -> int {
int x;
scanf("%d", &x);
return x;
};
int n, a[1000001];
bool check(int x) {
vector<int> pos;
auto func = [x](int p) -> bool { return a[p] >= x; };
auto proc = [](bool a, bool b, bool c) -> bool { return a == b || b == c; };
for (... | [
"identifier.replace.remove",
"literal.replace.add",
"call.arguments.change",
"function.return_value.change",
"expression.operation.binary.remove",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 1,486,905 | 1,486,906 | u723721005 | cpp |
p03954 | // AT2165
#include <cstdio>
const int MAXN = (int)1e5;
int n, a[2 * MAXN + 5];
inline bool check(int x) {
for (int i = 0; i < n; i++) {
if ((a[n + i] <= x && a[n + i + 1] <= x) ||
(a[n - i] <= x && a[n - i - 1] <= x))
return true;
if ((a[n + i] > x && a[n + i + 1] > x) ||
(a[n - i] > x... | // AT2165
#include <cstdio>
const int MAXN = (int)1e5;
int n, a[2 * MAXN + 5];
inline bool check(int x) {
for (int i = 0; i < n - 1; i++) {
if ((a[n + i] <= x && a[n + i + 1] <= x) ||
(a[n - i] <= x && a[n - i - 1] <= x))
return true;
if ((a[n + i] > x && a[n + i + 1] > x) ||
(a[n - i]... | [
"control_flow.loop.for.condition.change",
"misc.off_by_one",
"literal.number.change",
"variable_access.subscript.index.change",
"function.return_value.change",
"expression.operation.binary.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_on... | 1,486,918 | 1,486,920 | u263933075 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10;
int n, a[N], b[N];
void read(int &x) {
int f = 1;
x = 0;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = x * 10 + ch - '0';
ch = getch... | #include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10;
int n, a[N], b[N];
void read(int &x) {
int f = 1;
x = 0;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-')
f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
x = x * 10 + ch - '0';
ch = getch... | [
"expression.operation.unary.arithmetic.remove",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,486,933 | 1,486,935 | u476418095 | cpp |
p03954 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;
const int N = 200200;
int n, a[N], tmp[N], ans;
bool check(int x) {
for (int i = 1; i <= 2 * n - 1; i++)
tmp[i] = (a[i] >= x);
int l, r;
l = r = n;
for (; l >= 1; l--, r++) {
if (tmp[l]... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;
const int N = 200200;
int n, a[N], tmp[N], ans;
bool check(int x) {
for (int i = 1; i <= 2 * n - 1; i++)
tmp[i] = (a[i] >= x);
int l, r;
l = r = n;
for (; l >= 1; l--, r++) {
if (tmp[l]... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 1,486,937 | 1,486,939 | u476418095 | cpp |
p03954 | #include <bits/stdc++.h>
#define taskname "A"
#define pb push_back
#define mp make_pair
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
typedef pair<ll, ll> ii;
c... | #include <bits/stdc++.h>
#define taskname "A"
#define pb push_back
#define mp make_pair
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;
typedef pair<ll, ll> ii;
c... | [
"expression.operator.compare.change",
"assignment.value.change",
"expression.operation.binary.change",
"control_flow.loop.for.condition.change"
] | 1,486,946 | 1,486,948 | u368329754 | cpp |
p03954 | #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;
#ifdef ENABLE_DEBUG
#define dump(a) cerr << #a << "=" << a << endl
#define dumparr(a, n) cerr << #a << "[" << n << "]=" << a[n] << endl
#else
#define dump(a)
#define du... | #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;
#ifdef ENABLE_DEBUG
#define dump(a) cerr << #a << "=" << a << endl
#define dumparr(a, n) cerr << #a << "[" << n << "]=" << a[n] << endl
#else
#define dump(a)
#define du... | [
"literal.number.change",
"expression.operation.binary.change"
] | 1,486,949 | 1,486,950 | u634743753 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
typedef long long lint;
typedef long double louble;
template <typename T1, typename T2> inline T1 max(T1 a, T2 b) {
return a < b ? b : a;
}
template <typename T1, typename T2> inline T1 min(T1 a, T2 b) {
return a < b ? a : b;
}
namespace ae86 {
const int bufl = 1 << ... | #include <bits/stdc++.h>
using namespace std;
typedef long long lint;
typedef long double louble;
template <typename T1, typename T2> inline T1 max(T1 a, T2 b) {
return a < b ? b : a;
}
template <typename T1, typename T2> inline T1 min(T1 a, T2 b) {
return a < b ? a : b;
}
namespace ae86 {
const int bufl = 1 << ... | [
"variable_declaration.value.change",
"identifier.change"
] | 1,486,952 | 1,486,953 | u326034736 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ii pair<int, int>
#define app push_back
#define all(a) a.begin(), a.end()
#define bp __builtin_popcount
#define ll long long
#define mp make_pair
#define f first
#define s second
#define lb lower_bound
#define ub upper_bound
#define Time (doubl... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define ii pair<int, int>
#define app push_back
#define all(a) a.begin(), a.end()
#define bp __builtin_popcount
#define ll long long
#define mp make_pair
#define f first
#define s second
#define lb lower_bound
#define ub upper_bound
#define Time (doubl... | [
"expression.operation.binary.remove",
"assignment.change"
] | 1,486,957 | 1,486,958 | u655490856 | cpp |
p03954 | #include <bits/stdc++.h>
#define pb push_back
#define F first
#define S second
#define all(x) x.begin(), x.end()
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> pll;
const ll N = 2e5 + 30, Mod = 1e9 + 7;
const ll SQ = 330;
ll a[N], b[N], n;
bool ok(ll x) {
for (int i = 1; i <... | #include <bits/stdc++.h>
#define pb push_back
#define F first
#define S second
#define all(x) x.begin(), x.end()
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> pll;
const ll N = 2e5 + 30, Mod = 1e9 + 7;
const ll SQ = 330;
ll a[N], b[N], n;
bool ok(ll x) {
for (int i = 1; i <... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.branch.else.remove",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"control_flow.return.add"
] | 1,486,959 | 1,486,960 | u399326102 | cpp |
p03954 | #include <bits/stdc++.h>
#define ll long long
using namespace std;
const int N = 1000006, INF = 1000000009;
long long a[N], b[N], t[N], n, u;
int main() {
ios_base::sync_with_stdio(false);
cin >> n;
n *= 2;
n--;
for (int i = 1; i <= n; i++)
cin >> a[i];
int l = 1, r = n;
int k = n / 2 + 1;
while (l ... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
const int N = 1000006, INF = 1000000009;
long long a[N], b[N], t[N], n, u;
int main() {
ios_base::sync_with_stdio(false);
cin >> n;
n *= 2;
n--;
for (int i = 1; i <= n; i++)
cin >> a[i];
int l = 1, r = n;
int k = n / 2 + 1;
while (l ... | [
"control_flow.branch.if.condition.change"
] | 1,486,970 | 1,486,971 | u486258212 | cpp |
p03954 | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <cassert>
#include <cctype>
#include <complex>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#includ... | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <cassert>
#include <cctype>
#include <complex>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <math.h>
#include <queue>
#includ... | [
"identifier.change",
"expression.operation.binary.change",
"control_flow.loop.for.condition.change",
"control_flow.branch.if.condition.change"
] | 1,486,998 | 1,486,999 | u545022164 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(2 * n - 1);
for (int i = 0; i < 2 * n - 1; i++)
cin >> a[i];
int lb = 1, ub = 2 * n;
while (ub - lb > 1) {
int mid = (lb + ub) / 2;
vector<int> flag(2 * n - 1);
for (int i = 0; i < 2 * n - 1; i++) {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(2 * n - 1);
for (int i = 0; i < 2 * n - 1; i++)
cin >> a[i];
int lb = 1, ub = 2 * n;
while (ub - lb > 1) {
int mid = (lb + ub) / 2;
vector<int> flag(2 * n - 1);
for (int i = 0; i < 2 * n - 1; i++) {
... | [
"identifier.replace.add",
"literal.replace.remove",
"io.output.change"
] | 1,487,001 | 1,487,004 | u283229916 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(2 * n - 1);
for (int i = 0; i < 2 * n - 1; i++)
cin >> a[i];
int lb = 1, ub = 2 * n;
while (ub - lb > 1) {
int mid = (lb + ub) / 2;
vector<int> flag(2 * n - 1);
for (int i = 0; i < 2 * n - 1; i++) {
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(2 * n - 1);
for (int i = 0; i < 2 * n - 1; i++)
cin >> a[i];
int lb = 1, ub = 2 * n;
while (ub - lb > 1) {
int mid = (lb + ub) / 2;
vector<int> flag(2 * n - 1);
for (int i = 0; i < 2 * n - 1; i++) {
... | [] | 1,487,005 | 1,487,004 | u283229916 | cpp |
p03954 | // Ilm kave oi, you know ...
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int MOD = (int)1e9 + 7;
const int MAXN = (int)3e5 + 3;
const int infint = (int)1e9 + 3;
const ll inf = (ll)1e12;
int n, a[MAXN], b[MAXN];
bool check(int mid) {
for (int i = 0; i < n; i++)
... | // Ilm kave oi, you know ...
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int MOD = (int)1e9 + 7;
const int MAXN = (int)3e5 + 3;
const int infint = (int)1e9 + 3;
const ll inf = (ll)1e12;
int n, a[MAXN], b[MAXN];
bool check(int mid) {
for (int i = 0; i < n; i++)
... | [] | 1,487,007 | 1,487,009 | u346195361 | cpp |
p03954 | // Ilm kave oi, you know ...
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int MOD = (int)1e9 + 7;
const int MAXN = (int)1e5 + 3;
const int infint = (int)1e9 + 3;
const ll inf = (ll)1e12;
int n, a[MAXN], b[MAXN];
bool check(int mid) {
for (int i = 0; i < n; i++)
... | // Ilm kave oi, you know ...
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int MOD = (int)1e9 + 7;
const int MAXN = (int)3e5 + 3;
const int infint = (int)1e9 + 3;
const ll inf = (ll)1e12;
int n, a[MAXN], b[MAXN];
bool check(int mid) {
for (int i = 0; i < n; i++)
... | [
"literal.number.change",
"expression.operation.binary.change"
] | 1,487,010 | 1,487,009 | u346195361 | cpp |
p03954 | #include <bits/stdc++.h>
#define rb(a, b, c) for (int a = b; a <= c; a++)
#define rl(a, b, c) for (int a = b; a >= c; a--)
#define niv vector<int>
#define LL (long long)
#define IT iterator
#define II(a, b) make_pair(a, b)
#define FIR first
#define SEC second
using namespace std;
const int INF = 0x3f3f3f3f;
typedef pai... | #include <bits/stdc++.h>
#define rb(a, b, c) for (int a = b; a <= c; a++)
#define rl(a, b, c) for (int a = b; a >= c; a--)
#define niv vector<int>
#define LL (long long)
#define IT iterator
#define II(a, b) make_pair(a, b)
#define FIR first
#define SEC second
using namespace std;
const int INF = 0x3f3f3f3f;
typedef pai... | [] | 1,487,012 | 1,487,013 | u751730221 | cpp |
p03954 | #include <bits/stdc++.h>
#define rb(a, b, c) for (int a = b; a <= c; a++)
#define rl(a, b, c) for (int a = b; a >= c; a--)
#define niv vector<int>
#define LL (long long)
#define IT iterator
#define II(a, b) make_pair(a, b)
#define FIR first
#define SEC second
using namespace std;
const int INF = 0x3f3f3f3f;
typedef pai... | #include <bits/stdc++.h>
#define rb(a, b, c) for (int a = b; a <= c; a++)
#define rl(a, b, c) for (int a = b; a >= c; a--)
#define niv vector<int>
#define LL (long long)
#define IT iterator
#define II(a, b) make_pair(a, b)
#define FIR first
#define SEC second
using namespace std;
const int INF = 0x3f3f3f3f;
typedef pai... | [
"identifier.change",
"call.arguments.change",
"identifier.replace.add",
"literal.replace.remove"
] | 1,487,016 | 1,487,013 | u751730221 | cpp |
p03954 | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define opr iterator
typedef long long ll;
using namespace std;
int n;
int per[100001];
bool ok[100001];
void get(int standard) {
for (int i = 1; i <= 2 * n - 1; i++) {
ok[i] = (per[i] >= standard);
}
return... | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define opr iterator
typedef long long ll;
using namespace std;
int n;
int per[200001];
bool ok[200001];
void get(int standard) {
for (int i = 1; i <= 2 * n - 1; i++) {
ok[i] = (per[i] >= standard);
// cout... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 1,487,030 | 1,487,027 | u597691811 | cpp |
p03954 | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define opr iterator
typedef long long ll;
using namespace std;
int n;
int per[100001];
bool ok[100001];
void get(int standard) {
for (int i = 1; i <= 2 * n - 1; i++) {
ok[i] = (per[i] >= standard);
}
return... | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define opr iterator
typedef long long ll;
using namespace std;
int n;
int per[200001];
bool ok[200001];
void get(int standard) {
for (int i = 1; i <= 2 * n - 1; i++) {
ok[i] = (per[i] >= standard);
// cout... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"identifier.change",
"io.output.change"
] | 1,487,034 | 1,487,027 | u597691811 | cpp |
p03954 | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define opr iterator
typedef long long ll;
using namespace std;
int n;
int per[100001];
bool ok[100001];
void get(int standard) {
for (int i = 1; i <= 2 * n - 1; i++) {
ok[i] = (per[i] >= standard);
}
return... | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define opr iterator
typedef long long ll;
using namespace std;
int n;
int per[200010];
bool ok[200010];
void get(int standard) {
for (int i = 1; i <= 2 * n - 1; i++) {
ok[i] = (per[i] >= standard);
// cout... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 1,487,030 | 1,487,035 | u597691811 | cpp |
p03954 | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define opr iterator
typedef long long ll;
using namespace std;
int n;
int per[100001];
bool ok[100001];
void get(int standard) {
for (int i = 1; i <= 2 * n - 1; i++) {
ok[i] = (per[i] >= standard);
}
return... | #include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
#define opr iterator
typedef long long ll;
using namespace std;
int n;
int per[200010];
bool ok[200010];
void get(int standard) {
for (int i = 1; i <= 2 * n - 1; i++) {
ok[i] = (per[i] >= standard);
// cout... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"identifier.change",
"io.output.change"
] | 1,487,034 | 1,487,035 | u597691811 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int n, a[N];
int b[N];
bool chk(int x) {
for (int i = 0; i < n + n - 1; ++i) {
b[i] = a[i] >= x;
}
int mid = n;
for (int l = mid, r = mid; l > 0; --l, ++r) {
if (b[l] == b[l - 1]) {
return b[l];
}
if (b[r] == b[r + 1]) {
... | #include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int n, a[N];
int b[N];
bool chk(int x) {
for (int i = 0; i < n + n - 1; ++i) {
b[i] = a[i] >= x;
}
int mid = n - 1;
for (int l = mid, r = mid; l > 0; --l, ++r) {
if (b[l] == b[l - 1]) {
return b[l];
}
if (b[r] == b[r + 1])... | [
"assignment.change"
] | 1,487,039 | 1,487,041 | u274463010 | cpp |
p03954 | #include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int n, a[N];
int b[N];
bool chk(int x) {
for (int i = 0; i < n + n - 1; ++i) {
b[i] = a[i] >= x;
}
int mid = n;
for (int l = mid, r = mid; l > 0; --l, ++r) {
if (b[l] == b[l - 1]) {
return b[l];
}
if (b[r] == b[r + 1]) {
... | #include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int n, a[N];
int b[N];
bool chk(int x) {
for (int i = 0; i < n + n - 1; ++i) {
b[i] = a[i] >= x;
}
int mid = n - 1;
for (int l = mid, r = mid; l > 0; --l, ++r) {
if (b[l] == b[l - 1]) {
return b[l];
}
if (b[r] == b[r + 1])... | [
"identifier.change",
"variable_access.subscript.index.change",
"function.return_value.change"
] | 1,487,042 | 1,487,041 | u274463010 | cpp |
p03956 | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i, a, b) for (int i = (a), _end_ = (b); i <= _end_; i++)
#define DREP(i, a, b) for (int i = (a), _end_ = (b); i >= _end_; i--)
#define EREP(i, u) for (int i = start[u]; i; i = e[i].next)
#define fi first
#define se second
#define mkr(a, b) m... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i, a, b) for (int i = (a), _end_ = (b); i <= _end_; i++)
#define DREP(i, a, b) for (int i = (a), _end_ = (b); i >= _end_; i--)
#define EREP(i, u) for (int i = start[u]; i; i = e[i].next)
#define fi first
#define se second
#define mkr(a, b) m... | [
"assignment.change"
] | 1,487,076 | 1,487,077 | u057222094 | cpp |
p03956 | /*Program from Luvwgyx*/
#include <algorithm>
#include <cstdio>
#include <cstring>
#define ll long long
using namespace std;
const int maxn = 2e5 + 10;
struct node {
int to, nxt, w;
} e[maxn << 1];
int n, m, tot, bel, sec, flag, cnt[3], head[maxn], vis[maxn], col[maxn];
int read() {
int x = 0, f = 1;
char ch = ge... | /*Program from Luvwgyx*/
#include <algorithm>
#include <cstdio>
#include <cstring>
#define ll long long
using namespace std;
const int maxn = 1e5 + 10;
struct node {
int to, nxt, w;
} e[maxn << 1];
int n, m, tot, bel, sec, flag, cnt[3], head[maxn], vis[maxn], col[maxn];
int read() {
int x = 0, f = 1;
char ch = ge... | [
"literal.number.change",
"expression.operation.binary.change",
"assignment.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,487,081 | 1,487,082 | u302576580 | cpp |
p03956 | /*Program from Luvwgyx*/
#include <algorithm>
#include <cstdio>
#include <cstring>
#define ll long long
using namespace std;
const int maxn = 1e5 + 10;
struct node {
int to, nxt, w;
} e[maxn << 1];
int n, m, tot, bel, sec, flag, cnt[3], head[maxn], vis[maxn], col[maxn];
int read() {
int x = 0, f = 1;
char ch = ge... | /*Program from Luvwgyx*/
#include <algorithm>
#include <cstdio>
#include <cstring>
#define ll long long
using namespace std;
const int maxn = 1e5 + 10;
struct node {
int to, nxt, w;
} e[maxn << 1];
int n, m, tot, bel, sec, flag, cnt[3], head[maxn], vis[maxn], col[maxn];
int read() {
int x = 0, f = 1;
char ch = ge... | [
"assignment.change",
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,487,083 | 1,487,082 | u302576580 | cpp |
p03956 | #include <bits/stdc++.h>
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long LL;
template <typename T, typename TT>
ostream &operator<<(ostream &out, pair<T, TT> t) {
return out << "(" << t.X << "," << t.Y << ")";
}
template <typename T> ostream &operator<<(ostream &out, vector<T> t) {... | #include <bits/stdc++.h>
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long LL;
template <typename T, typename TT>
ostream &operator<<(ostream &out, pair<T, TT> t) {
return out << "(" << t.X << "," << t.Y << ")";
}
template <typename T> ostream &operator<<(ostream &out, vector<T> t) {... | [
"control_flow.branch.if.condition.change"
] | 1,487,086 | 1,487,087 | u890171625 | cpp |
p03956 | #include <bits/stdc++.h>
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long LL;
template <typename T, typename TT>
ostream &operator<<(ostream &out, pair<T, TT> t) {
return out << "(" << t.X << "," << t.Y << ")";
}
template <typename T> ostream &operator<<(ostream &out, vector<T> t) {... | #include <bits/stdc++.h>
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long LL;
template <typename T, typename TT>
ostream &operator<<(ostream &out, pair<T, TT> t) {
return out << "(" << t.X << "," << t.Y << ")";
}
template <typename T> ostream &operator<<(ostream &out, vector<T> t) {... | [
"control_flow.branch.if.condition.change",
"literal.number.change",
"assignment.value.change",
"variable_access.subscript.index.change",
"expression.operation.binary.change"
] | 1,487,088 | 1,487,087 | u890171625 | cpp |
p03956 | #include <algorithm>
#include <cstdio>
using namespace std;
typedef long long LL;
const int N = 1e5 + 10;
struct E {
int v, w, nt;
} e[N << 1];
int n, m, ok, poi, edg, tot, h[N], pai[N], cnt[3], vis[N << 1];
LL ans;
inline void add(int u, int v, int w1, int w2) {
e[++tot] = (E){v, w1, h[u]}, h[u] = tot;
e[++tot... | #include <algorithm>
#include <cstdio>
using namespace std;
typedef long long LL;
const int N = 1e5 + 10;
struct E {
int v, w, nt;
} e[N << 1];
int n, m, ok, poi, edg, tot = 1, h[N], pai[N], cnt[3], vis[N << 1];
LL ans;
inline void add(int u, int v, int w1, int w2) {
e[++tot] = (E){v, w1, h[u]}, h[u] = tot;
e[+... | [
"variable_declaration.value.change"
] | 1,487,089 | 1,487,090 | u781883464 | cpp |
p03956 | #include <algorithm>
#include <cstdio>
using namespace std;
typedef long long LL;
const int N = 1e5 + 10;
struct E {
int v, w, nt;
} e[N << 1];
int n, m, ok, poi, edg, tot, h[N], pai[N], cnt[3], vis[N << 1];
LL ans;
inline void add(int u, int v, int w1, int w2) {
e[++tot] = (E){v, w1, h[u]}, h[u] = tot;
e[++tot... | #include <algorithm>
#include <cstdio>
using namespace std;
typedef long long LL;
const int N = 1e5 + 10;
struct E {
int v, w, nt;
} e[N << 1];
int n, m, ok, poi, edg, tot = 1, h[N], pai[N], cnt[3], vis[N << 1];
LL ans;
inline void add(int u, int v, int w1, int w2) {
e[++tot] = (E){v, w1, h[u]}, h[u] = tot;
e[+... | [
"variable_declaration.value.change"
] | 1,487,091 | 1,487,090 | u781883464 | cpp |
p03956 | #include <bits/stdc++.h>
const int N = 100005;
using namespace std;
struct edge {
int to, next, v;
} e[N * 2];
int head[N], tot;
void add(int x, int y, int v) {
e[++tot] = (edge){y, head[x], v};
head[x] = tot;
}
int co[N], cnt[3];
int cnte, cntp, ok;
bool vis[N * 2];
void dfs(int x, int c) {
if (co[x] != -1) {
... | #include <bits/stdc++.h>
const int N = 100005;
using namespace std;
struct edge {
int to, next, v;
} e[N * 2];
int head[N], tot = 1;
void add(int x, int y, int v) {
e[++tot] = (edge){y, head[x], v};
head[x] = tot;
}
int co[N], cnt[3];
int cnte, cntp, ok;
bool vis[N * 2];
void dfs(int x, int c) {
if (co[x] != -1... | [
"variable_declaration.value.change"
] | 1,487,094 | 1,487,095 | u579191570 | cpp |
p03956 | #include <bits/stdc++.h>
using namespace std;
#define N 1111116
#define next nxt
int n, m, x[N], y[N], z[N], w[N], next[N], p[N], h[N][3];
long long cnt, cmt, c[3], ans;
void travel(int x, int k) {
if (!h[x][0] && !h[x][1] && !h[x][2])
cnt++;
h[x][k] = 1;
c[k]++;
for (int t = p[x]; t; t = next[t]) {
i... | #include <bits/stdc++.h>
using namespace std;
#define N 1111116
#define next nxt
int n, m, x[N], y[N], z[N], w[N], next[N], p[N], h[N][3];
long long cnt, cmt, c[3], ans;
void travel(int x, int k) {
if (!h[x][0] && !h[x][1] && !h[x][2])
cnt++;
h[x][k] = 1;
c[k]++;
for (int t = p[x]; t; t = next[t]) {
i... | [
"assignment.change"
] | 1,487,106 | 1,487,107 | u812155455 | cpp |
p03956 | #include <bits/stdc++.h>
#define pb push_back
using namespace std;
const int N = 100005, fc[3] = {2, 0, 1}, bc[3] = {1, 2, 0};
int n, m, col[N], V[3], num;
long long ans;
bool vis[N], ok;
vector<int> E1[N], E2[N];
void dfs(int x, int c) {
col[x] = c, V[c]++, vis[x] = true, num += E1[x].size();
for (int v : E1[x]... | #include <bits/stdc++.h>
#define pb push_back
using namespace std;
const int N = 100005, fc[3] = {2, 0, 1}, bc[3] = {1, 2, 0};
int n, m, col[N], V[3], num;
long long ans;
bool vis[N], ok;
vector<int> E1[N], E2[N];
void dfs(int x, int c) {
col[x] = c, V[c]++, vis[x] = true, num += E1[x].size();
for (int v : E1[x]... | [
"assignment.change"
] | 1,487,113 | 1,487,114 | u729132437 | cpp |
p03956 | // This amazing code is by Eric Sunli Chen.
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
using ... | // This amazing code is by Eric Sunli Chen.
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
using ... | [
"assignment.add"
] | 1,487,117 | 1,487,118 | u149667584 | cpp |
p03956 | #include <algorithm>
#include <iostream>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LL long long
using namespace std;
inline int read() {
int sum = 0;
char c = getchar();
bool f = 0;
while (c < '0' || c > '9') {
if (c == '-')
f = 1;
c = getchar();
}
whi... | #include <algorithm>
#include <iostream>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LL long long
using namespace std;
inline int read() {
int sum = 0;
char c = getchar();
bool f = 0;
while (c < '0' || c > '9') {
if (c == '-')
f = 1;
c = getchar();
}
whi... | [
"assignment.change"
] | 1,487,119 | 1,487,120 | u774588203 | cpp |
p03956 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#define L long long
using namespace std;
int n, m, x[100010], f[10], q, r;
vector<int> a[100010], b[100010];
long long p;
inline void dfs(int i) {
int j;
f[x[i]]++;
q++;
for (j... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#define L long long
using namespace std;
int n, m, x[100010], f[10], q, r;
vector<int> a[100010], b[100010];
long long p;
inline void dfs(int i) {
int j;
f[x[i]]++;
q++;
for (j... | [
"assignment.change"
] | 1,487,123 | 1,487,124 | u773072209 | cpp |
p03956 | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <str... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <str... | [
"assignment.change"
] | 1,487,127 | 1,487,128 | u670220889 | cpp |
p03956 | #include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;
#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x, to) for (x = 0; x < (to); x++)
#define FORR(x, arr) for (auto &x : arr)
#define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++)
#define ALL(a) (a.begin()), ... | #include <bits/stdc++.h>
using namespace std;
typedef signed long long ll;
#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x, to) for (x = 0; x < (to); x++)
#define FORR(x, arr) for (auto &x : arr)
#define ITR(x, c) for (__typeof(c.begin()) x = c.begin(); x != c.end(); x++)
#define ALL(a) (a.begin()), ... | [] | 1,487,129 | 1,487,130 | u452725238 | cpp |
p03957 | #include <algorithm>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)n; i++)
using namespace std;
typedef long long ll;
int main() {
string s;
cin >> s;
int c = -1;
rep(i, s.length()) {
if (c != -1 && s[i] == 'C') {
c = i;
continue;
}
if (c != -1 &&... | #include <algorithm>
#include <iostream>
#include <vector>
#define rep(i, n) for (int i = 0; i < (int)n; i++)
using namespace std;
typedef long long ll;
int main() {
string s;
cin >> s;
int c = -1;
rep(i, s.length()) {
if (c == -1 && s[i] == 'C') {
c = i;
continue;
}
if (c != -1 &&... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,487,135 | 1,487,136 | u336949031 | cpp |
p03957 | #include <bits/stdc++.h>
using namespace std;
#define v(type) vector<type>
int main() {
string s;
cin >> s;
bool c = true, f = true;
for (int i = 0; i < s.size(); i++) {
if (c && s[i] == 'C')
c = false;
if (f && s[i] == 'F')
f = false;
}
if (!c && !f)
cout << "Yes" << endl;
else
... | #include <bits/stdc++.h>
using namespace std;
#define v(type) vector<type>
int main() {
string s;
cin >> s;
bool c = true, f = true;
for (int i = 0; i < s.size(); i++) {
if (c && s[i] == 'C')
c = false;
if (!c && f && s[i] == 'F')
f = false;
}
if (!c && !f)
cout << "Yes" << endl;
... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 1,487,137 | 1,487,138 | u528258842 | cpp |
p03957 | /*
author : nishi5451
created: 12.08.2020 00:28:53
*/
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
int main() {
string s;
cin >> s;
bool flag1 = false;
rep(i, s.size()) {
if (s[i] == 'C' && flag1 == false)
flag1 = true;... | /*
author : nishi5451
created: 12.08.2020 00:28:53
*/
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
int main() {
string s;
cin >> s;
bool flag1 = false;
rep(i, s.size()) {
if (s[i] == 'C' && flag1 == false)
flag1 = true;... | [
"literal.string.change",
"control_flow.branch.if.condition.change"
] | 1,487,139 | 1,487,140 | u033937898 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.