buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int x, n;
int *p;
int minor;
int major;
int in_p;
scanf("%d", &x);
scanf("%d", &n);
p = (int *)malloc(sizeof(int) * n);
for (int i = 0; i < n; i++) {
scanf("%d", &p[i]);
}
for (int j = 0; j <= x; j++) {
in_p = 0;
for (int k = 0; k... | #include <stdio.h>
#include <stdlib.h>
int main(void) {
int x, n;
int *p;
int minor = -1;
int major = 101;
int in_p;
scanf("%d", &x);
scanf("%d", &n);
p = (int *)malloc(sizeof(int) * n);
for (int i = 0; i < n; i++) {
scanf("%d", &p[i]);
}
for (int j = 0; j <= x; j++) {
in_p = 0;
for (i... | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 0 | 270 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int x, n;
cin >> x >> n;
int arr[n];
for (int i = 0; i < n; ++i)
cin >> arr[i];
sort(arr, arr + n);
int ans = 0;
int mindif = min(abs(x - arr[0]), abs(x - arr[n - 1]));
for (int i = 0; i <= mindif; ++i) {
if (!binary... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int x, n;
cin >> x >> n;
int arr[n];
for (int i = 0; i < n; ++i)
cin >> arr[i];
sort(arr, arr + n);
int ans = 0;
int mindif = min(abs(x - arr[0]), abs(x - arr[n - 1]));
for (int i = 0; i <= mindif + 1; ++i) {
if (!bi... | [["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 177 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rrep(i, n) for (int i = 1; i <= n; i++)
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return (a * b) / gcd(a, b); }
using P = pair<int, int>;
template <class T> bool chmax... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rrep(i, n) for (int i = 1; i <= n; i++)
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return (a * b) / gcd(a, b); }
using P = pair<int, int>;
template <class T> bool chmax... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 322 |
#include <bits/stdc++.h>
using namespace std;
bool T = false;
int main() {
int X, N;
cin >> X >> N;
vector<int> p(N);
for (int i = 0; i < N; i++) {
cin >> p[i];
}
sort(p.begin(), p.end());
reverse(p.begin(), p.end());
int ans = 0, min = 1e9;
for (int i = 100; i >= -1; i--) {
for (int j = 0; ... | #include <bits/stdc++.h>
using namespace std;
bool T = false;
int main() {
int X, N;
cin >> X >> N;
vector<int> p(N);
for (int i = 0; i < N; i++) {
cin >> p[i];
}
sort(p.begin(), p.end());
reverse(p.begin(), p.end());
int ans = 0, min = 1e9;
for (int i = 110; i >= -10; i--) {
for (int j = 0;... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 180 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, n, k;
cin >> x >> n;
k = x;
vector<int> p(n);
for (int i = 0; i < n; i++) {
cin >> p.at(i);
}
for (int i = 0; i < 102; i++) {
int t = 0;
for (int j = 0; j < n; j++) {
if (x - i == p.at(j)) {
t = 1;
}
}
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, n, k;
cin >> x >> n;
k = x;
vector<int> p(n);
for (int i = 0; i < n; i++) {
cin >> p.at(i);
}
for (int i = 0; i < 102; i++) {
int t = 0;
for (int j = 0; j < n; j++) {
if (x - i == p.at(j)) {
t = 1;
}
}
... | [["+", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 7, 8, 9, 0, 1, 0, 35]] | 1 | 195 |
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
vector<int> p(N);
for (int i = 0; i < N; i++) {
cin >> p[i];
}
int min = 110;
int ans = 0;
for (int i = 100; i > -3; i--) {
int check = 0;
for (int j = 0; j < N; j++) {
if ... | #include <cmath>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
vector<int> p(N);
for (int i = 0; i < N; i++) {
cin >> p[i];
}
int min = 110;
int ans = X;
for (int i = 101; i > -3; i--) {
int check = 0;
for (int j = 0; j < N; j++) {
if ... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 22], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 164 |
x,n=list(map(int,input().split(" ")))
if 0<n:
p=list(map(int,input().split(" ")))
e_min=1000
r=[]
for i in range(min(p)):
if (x-i in p):
pass
else:
print(x-i)
break
if (x+i in p):
pass
else:
print(x+i)
... | x,n=list(map(int,input().split(" ")))
if 0<n:
p=list(map(int,input().split(" ")))
e_min=1000
r=[]
for i in range(100):
if (x-i in p):
pass
else:
print(x-i)
break
if (x+i in p):
pass
else:
print(x+i)
... | [["-", 0, 7, 12, 652, 3, 4, 0, 652, 63, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 22], ["-", 12, 652, 3, 4, 0, 652, 3, 4, 0, 25], ["+", 64, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 109 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int64_t x, n;
cin >> x >> n;
vector<int64_t> p(n);
for (auto &pi : p) {
cin >> pi;
}
int64_t diff = 1000;
int64_t ans = -1;
bool is_end = false;
for (int64_t i = -1; i < 101; ++i) {
bool a = true;
for (auto pi ... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int64_t x, n;
cin >> x >> n;
vector<int64_t> p(n);
for (auto &pi : p) {
cin >> pi;
}
int64_t diff = 1000;
int64_t ans = -1;
bool is_end = false;
for (int64_t i = 0; i <= 101; ++i) {
bool a = true;
for (auto pi ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 161 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define Y cout << "YES\n"
#define N cout << "NO\n"
#define REP(i, a, b) for (int i = a; i <= b; i++)
#define R(i, n) for (int i = 0; i < n; i++)
#define RE(i, a, b) for (int i = a; i >= b; i--)
int prime[1000010], p[100001][2];
int fun() {
int k = 0;... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define Y cout << "YES\n"
#define N cout << "NO\n"
#define REP(i, a, b) for (int i = a; i <= b; i++)
#define R(i, n) for (int i = 0; i < n; i++)
#define RE(i, a, b) for (int i = a; i >= b; i--)
int prime[1000010], p[100001][2];
int fun() {
int k = 0;... | [["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 47], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 20], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 299 |
x, n = map(int, input().split())
try:
lst = list(map(int, input().split()))
except:
lst = []
if x not in lst or lst == []:
print(x)
else:
for _ in range(1, 101):
mx = max(x - _, 0)
mn = min(x + _, 100)
if mx not in lst:
print(mx)
break
elif mn not in lst:
print(mn)
... | x, n = map(int, input().split())
try:
lst = list(map(int, input().split()))
except:
lst = []
flg = 0
if x not in lst or lst == []:
print(x)
else:
for _ in range(1, 101):
mx = max(x - _, 0)
mn = min(x + _, 101)
if mx not in lst:
print(mx)
break
elif mn not in lst:
print(m... | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 0, 1, 0, 662, 12, 652, 3, 4, 0, 612], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 612]] | 5 | 110 |
#include <bits/stdc++.h>
using namespace std;
int x, n, a[105];
int main() {
cin >> x >> n;
if (n == 0) {
cout << x << endl;
return 0;
}
for (int i = 1; i <= n; i++)
cin >> a[i];
for (int i = 1; i <= 100; i++) {
int a1 = x - i, a2 = x + i, f1 = 1, f2 = 1;
for (int j = 1; j <= n; j++) {
... | #include <bits/stdc++.h>
using namespace std;
int x, n, a[105];
int main() {
cin >> x >> n;
if (n == 0) {
cout << x << endl;
return 0;
}
for (int i = 1; i <= n; i++)
cin >> a[i];
for (int i = 0; i <= 100; i++) {
int a1 = x - i, a2 = x + i, f1 = 1, f2 = 1;
for (int j = 1; j <= n; j++) {
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 211 |
#include <bits/stdc++.h>
using namespace std;
int x, n, p, c[105];
vector<int> v;
int left(int t) {
int l = 0, r = v.size();
while (l < r) {
int m = (l + r) / 2;
if (v[m] < t)
l = m + 1;
else
r = m;
}
return v[l - 1];
}
int right(int t) {
int l = 0, r = v.size();
while (l < r) {
... | #include <bits/stdc++.h>
using namespace std;
int x, n, p, c[105];
vector<int> v;
int left(int t) {
int l = 0, r = v.size();
while (l < r) {
int m = (l + r) / 2;
if (v[m] < t)
l = m + 1;
else
r = m;
}
return v[l - 1];
}
int right(int t) {
int l = 0, r = v.size();
while (l < r) {
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 286 |
#include <iostream>
#include <set>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
set<int> num;
for (int i = 0; i <= 100; i++) {
num.insert(i);
}
int p;
for (int i = 0; i < N; i++) {
cin >> p;
num.erase(p);
}
int abs_min = 100;
int min_num = 0;
for (auto elem : num) {
... | #include <iostream>
#include <set>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
set<int> num;
for (int i = 0; i <= 101; i++) {
num.insert(i);
}
int p;
for (int i = 0; i < N; i++) {
cin >> p;
num.erase(p);
}
int abs_min = 100;
int min_num = 0;
for (auto elem : num) {
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 135 |
X, N = map(int, input().split())
if N:
P = list(map(int, input().split()))
distance = 10000
ans = 0
for cadi in range(100, 0, -1):
if not cadi in P :
if distance >= ( cadi - X ) * ( cadi - X ):
distance = ( cadi - X ) * ( cadi - X )
ans = cadi
print(ans)
else:
print(X) | X, N = map(int, input().split())
if N:
P = list(map(int, input().split()))
distance = 10000
ans = 0
for cadi in range(101, -2, -1):
if not cadi in P :
if distance >= ( cadi - X ) * ( cadi - X ):
distance = ( cadi - X ) * ( cadi - X )
ans = cadi
print(ans)
else:
print(X) | [["-", 64, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 64, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 7, 12, 652, 3, 4, 0, 664, 17, 33], ["+", 0, 7, 12, 652, 3, 4, 0, 664, 28, 612]] | 5 | 102 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, n;
cin >> x >> n;
vector<int> p(n);
for (int i = 0; i < n; i++) {
cin >> p[i];
}
int low, high;
for (int i = x;; i--) {
auto it = std::find(p.begin(), p.end(), i);
if (it == p.end()) {
low = i;
break;
}
}
f... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, n;
cin >> x >> n;
vector<int> p(n);
for (int i = 0; i < n; i++) {
cin >> p[i];
}
int low, high;
for (int i = x;; i--) {
auto it = std::find(p.begin(), p.end(), i);
if (it == p.end()) {
low = i;
break;
}
}
f... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 201 |
x,n = map(int,input().split())
if n ==0:
print(x)
exit()
p = set(list(map(int,input().split())))
s = {i for i in range(1,101)}
kouho = s.difference(p)
sa = float('inf')
ans = float('inf')
for i in kouho:
if sa > (abs(i-x)):
sa = abs(i-x)
ans = i
print(ans)
| x,n = map(int,input().split())
if n ==0:
print(x)
exit()
p = set(list(map(int,input().split())))
s = {i for i in range(-5,102)}
kouho = s.difference(p)
sa = float('inf')
ans = float('inf')
for i in kouho:
if sa > (abs(i-x)):
sa = abs(i-x)
ans = i
print(ans)
| [["-", 12, 689, 0, 659, 12, 652, 3, 4, 0, 612], ["+", 0, 659, 12, 652, 3, 4, 0, 664, 17, 33], ["+", 0, 659, 12, 652, 3, 4, 0, 664, 28, 612], ["+", 12, 689, 0, 659, 12, 652, 3, 4, 0, 612]] | 5 | 118 |
x, n = list(map(int, input().split()))
ps = list(map(int, input().split())) if n else []
pss = [0] * 101
for p in ps:
pss[p] = 1
#print(pss)
for i in range(101):
if x - i > -1 and pss[x - i] == 0:
print(x - i)
break
if x + i < 101 and pss[x + i] == 0:
print(x + i)
break
| x, n = list(map(int, input().split()))
ps = list(map(int, input().split())) if n else []
pss = [0] * 102
for p in ps:
pss[p] = 1
#print(pss)
for i in range(102):
if x - i > -1 and pss[x - i] == 0:
print(x - i)
break
if x + i < 102 and pss[x + i] == 0:
print(x + i)
break
| [["-", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["+", 0, 656, 0, 1, 0, 662, 12, 657, 12, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 57, 15, 679, 31, 666, 0, 612], ["+", 8, 196, 0, 57, 15, 679, 31, 666, 0, 612]] | 5 | 115 |
// ================
// Himanshu Lal
// MNIT Jaipur
// ================
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define TEZ \
ios_base::sync_with_stdio(false); ... | // ================
// Himanshu Lal
// MNIT Jaipur
// ================
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define TEZ \
ios_base::sync_with_stdio(false); ... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 254 |
#define MOD 1000000007
#if 1
//------------------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
template <class T> struct Entry {
static void Run() { T().Run(); }
};
struct MyMain;
//------------------------------------------------------------
#if defined(TEST)
#include "t... | #define MOD 1000000007
#if 1
//------------------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
template <class T> struct Entry {
static void Run() { T().Run(); }
};
struct MyMain;
//------------------------------------------------------------
#if defined(TEST)
#include "t... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 4,739 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define vl vector<ll>
#define vi vector<ll>
#define pi pair<ll, ll>
#define TC \
int t; \
cin >> t; ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define vl vector<ll>
#define vi vector<ll>
#define pi pair<ll, ll>
#define TC \
int t; \
cin >> t; ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 204 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
vector<int> p(N);
for (int i = 0; i < N; i++) {
cin >> p.at(i);
}
int sw = 200;
int sw1;
int sw2 = 0;
int sw3 = X;
for (int i = 0; i < 101; i++) {
if (X - i < 0) {
sw1 = i - X;
} else {
sw1 =... | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
vector<int> p(N);
for (int i = 0; i < N; i++) {
cin >> p.at(i);
}
int sw = 200;
int sw1;
int sw2 = 0;
int sw3 = X;
for (int i = 0; i < 102; i++) {
if (X - i < 0) {
sw1 = i - X;
} else {
sw1 =... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 183 |
#include <algorithm>
#include <bitset>
#include <chrono>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <stack>
#include <unordered_map>
#include <vector>
using namespace std;
using ll = long long;
const ll INF = (ll)1e18 + 1;
const ll... | #include <algorithm>
#include <bitset>
#include <chrono>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <stack>
#include <unordered_map>
#include <vector>
using namespace std;
using ll = long long;
const ll INF = (ll)1e18 + 1;
const ll... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["-", 64, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 64, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 57, 64, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 57, 64, 9, 0, 7, 15, 16, 12, 13]] | 1 | 308 |
/**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author
*/
#include <fstream>
#include <iostream>
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define mod 1000000007
int getTheAnswer() { return 42; }
using namespace std;
using ll = long long;
class ... | /**
* code generated by JHelper
* More info: https://github.com/AlexeyDmitriev/JHelper
* @author
*/
#include <fstream>
#include <iostream>
#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define mod 1000000007
int getTheAnswer() { return 42; }
using namespace std;
using ll = long long;
class ... | [["-", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 50, 49, 80, 81, 13], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 245 |
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
bool f(bool *b, int index) {
if (index >= 100 || index <= 0) {
cout << index << endl;
return true;
}
if (!b[index]) {
cout << index << endl;
return true;
}
return false;
}
int... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
bool f(bool *b, int index) {
if (index >= 101 || index <= 0) {
cout << index << endl;
return true;
}
if (!b[index]) {
cout << index << endl;
return true;
}
return false;
}
int... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 221 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, n;
cin >> x >> n;
int a, f[n + 5], q = 0, w = 0;
memset(f, 0, sizeof(f));
for (int i = 1; i <= n; i++) {
cin >> a;
f[a] = 1;
}
for (int i = x; i <= 105; i++) {
if (f[i] == 0) {
// cout<<i<<endl;
q = i; // da
br... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, n;
cin >> x >> n;
int a, f[200], q = 0, w = 0;
memset(f, 0, sizeof(f));
for (int i = 1; i <= n; i++) {
cin >> a;
f[a] = 1;
}
for (int i = x; i <= 105; i++) { // cout<<f[i]<<endl;
if (f[i] == 0) {
q = i; // da
break;... | [["-", 8, 9, 0, 43, 49, 80, 81, 16, 31, 22], ["-", 8, 9, 0, 43, 49, 80, 81, 16, 17, 72], ["-", 8, 9, 0, 43, 49, 80, 81, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13]] | 1 | 173 |
x,n=map(int,input().split())
if n>0:
p=list(map(int,input().split()))
else:
p=[]
minx=0
absx=101
for i in range(101):
if i in p:
continue
else:
cabs=abs(x-i)
if cabs < absx:
absx=cabs
minx=i
if absx==101:
if x>50:
minx=101
print(minx) | x,n=map(int,input().split())
if n>0:
p=list(map(int,input().split()))
else:
p=[]
minx=0
absx=101
for i in range(102):
if i in p:
continue
else:
cabs=abs(x-i)
if cabs < absx:
absx=cabs
minx=i
if absx==101:
if x>51:
minx=101
print(minx) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 57, 64, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 0, 612]] | 5 | 102 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
#define rep(i, strt, end) for (long long i = strt; i < end; i++)
int main() {
long long x, n;
cin >> x >> n;
long long p[n + 1];
map<long long, long long> amt;
long long maxVl = 101;
rep(... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <vector>
using namespace std;
#define rep(i, strt, end) for (long long i = strt; i < end; i++)
int main() {
long long x, n;
cin >> x >> n;
long long p[n + 1];
map<long long, long long> amt;
long long maxVl = 101;
rep(... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 166 |
#: Author - Soumya Saurav
import sys,io,os,time
from collections import defaultdict
from collections import OrderedDict
from collections import deque
from itertools import combinations
from itertools import permutations
import bisect,math,heapq
alphabet = "abcdefghijklmnopqrstuvwxyz"
input = sys.stdin.readline
######... | #: Author - Soumya Saurav
import sys,io,os,time
from collections import defaultdict
from collections import OrderedDict
from collections import deque
from itertools import combinations
from itertools import permutations
import bisect,math,heapq
alphabet = "abcdefghijklmnopqrstuvwxyz"
input = sys.stdin.readline
######... | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 172 |
import numpy as np
def resolve():
import sys
input = sys.stdin.readline
xn = [int(x) for x in input().rstrip().split()]
x = xn[0]
n = xn[1]
if n == 0:
print(x)
exit()
p = [int(x) for x in input().rstrip().split()]
num_list = [i for i in range(1, 101) if not i in p]
... | import numpy as np
def resolve():
import sys
input = sys.stdin.readline
xn = [int(x) for x in input().rstrip().split()]
x = xn[0]
n = xn[1]
if n == 0:
print(x)
exit()
p = [int(x) for x in input().rstrip().split()]
num_list = [i for i in range(0, 102) if not i in p]
... | [["-", 12, 658, 0, 659, 12, 652, 3, 4, 0, 612], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 612]] | 5 | 142 |
X,N = map(int,input().split())
if N!=0:
p=list(map(int,input().split()))
p.sort()
for i in range(X,101):
if i not in p:
min_=i
dif_min=i-X
break;
for i in range(X,0,-1):
if i not in p:
max_=i
dif_max=X-i
break;
i... | X,N = map(int,input().split())
if N!=0:
p=list(map(int,input().split()))
p.sort()
for i in range(X,102):
if i not in p:
min_=i
dif_min=i-X
break;
for i in range(X,-1,-1):
if i not in p:
max_=i
dif_max=X-i
break;
... | [["-", 64, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 64, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 7, 12, 652, 3, 4, 0, 664, 17, 33], ["+", 0, 7, 12, 652, 3, 4, 0, 664, 28, 612]] | 5 | 119 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
std::set<int> p_set;
int p;
for (int i = 0; i < N; i++) {
cin >> p;
p_set.insert(p);
}
int ans = 1000;
for (int i = -100; i <= 100; i++) {
if (p_set.count(i) > 0) {
continue; // 含まれる
}
if (ab... | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
std::set<int> p_set;
int p;
for (int i = 0; i < N; i++) {
cin >> p;
p_set.insert(p);
}
int ans = 1000;
for (int i = -100; i <= 200; i++) {
if (p_set.count(i) > 0) {
continue; // 含まれる
}
if (ab... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 157 |
x, n = map(int, input().split())
if n != 0:
p = list(map(int, input().split()))
else:
print(x)
exit()
ABS = 10 ** 9
ans = 0
for i in range(102):
if i in p:continue
temp = abs(i - x)
if ABS > temp:
ABS = temp
ans = i
else:
print(ans)
exit() | x, n = map(int, input().split())
if n != 0:
p = list(map(int, input().split()))
else:
print(x)
exit()
ABS = 10 ** 9
ans = 0
for i in range(102):
if i in p:continue
temp = abs(i - x)
if ABS > temp:
ABS = temp
ans = i
print(ans) | [["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95], ["-", 0, 7, 8, 196, 0, 57, 75, 76, 0, 102], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 97 |
#include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define F first
#define S second
const ll mod = 1e9 + 7;
const ll INF = 922337203685477;
#define pb push_back
#define deb(x) cout << '>' << #x << ':' << x << endl;
#define fastio \
... | #include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define F first
#define S second
const ll mod = 1e9 + 7;
const ll INF = 922337203685477;
#define pb push_back
#define deb(x) cout << '>' << #x << ':' << x << endl;
#define fastio \
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 7, 15, 16, 12, 23, 0, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 23, 0, 13]] | 1 | 183 |
x,n=map(int,input().split())
if n==0:
print(100)
else:
a=list(map(int,input().split()))
l=[x+i for i in range(101)]
s=[x-i for i in range(101)]
m=min(len(l),min(s))
mada=1
k=0
while mada:
if s[k] not in a:
ans=s[k]
mada=0
break
elif l[k] not in a:
ans=l[k]
mada=0
... | x,n=map(int,input().split())
if n==0:
print(x)
else:
a=list(map(int,input().split()))
l=[x+i for i in range(101)]
s=[x-i for i in range(101)]
m=min(len(l),min(s))
mada=1
k=0
while mada:
if s[k] not in a:
ans=s[k]
mada=0
break
elif l[k] not in a:
ans=l[k]
mada=0
... | [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 612], ["+", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22]] | 5 | 142 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
typedef long long ll;
#define INF 1000000007
#define fori for (int i = 0; i < 3; i++)
int main() {
int x, n, tmp, minn = INF;
cin >> x >> n;
map<int, int> p;
for (int i = 0; i < n; i++) {
cin >> tmp;
p[tmp] = 1;
}
... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
typedef long long ll;
#define INF 1000000007
#define fori for (int i = 0; i < 3; i++)
int main() {
int x, n, tmp, minn = INF;
cin >> x >> n;
map<int, int> p;
for (int i = 0; i < n; i++) {
cin >> tmp;
p[tmp] = 1;
}
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 161 |
x, n = map(int, input().split())
if n == 0:
print(x)
exit()
P = list(map(int, input().split()))
length = 101
ans = 101
for i in range(-100,101):
if not i in P:
if abs(x-i)<length:
length = abs(x-i)
ans = i
print(ans)
| x, n = map(int, input().split())
if n == 0:
print(x)
exit()
P = list(map(int, input().split()))
length = 102
ans = 102
for i in range(-100,201):
if not (i in P):
if abs(x-i)<length:
length = abs(x-i)
ans = i
print(ans)
| [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 57, 15, 681, 28, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 681, 28, 23, 0, 25]] | 5 | 93 |
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
vector<int> vec(N);
for (int i = 0; i < N; i++) {
cin >> vec.at(i);
}
int j = 0;
int target = X;
while (true) {
int flag = 1;
for (int i = 0; i < N; i++) {
if (vec.at(i) == target) ... | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
vector<int> vec(N);
for (int i = 0; i < N; i++) {
cin >> vec.at(i);
}
int j = 0;
int target = X;
while (true) {
int flag = 1;
for (int i = 0; i < N; i++) {
if (vec.at(i) == target) ... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["-", 64, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 64, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 110], ["-", 75, 76, 0, 9, 0, 1, 0, 11, 17, 32], ["-", 0, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["-", 0, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 75, 76, 0, 9, 0,... | 1 | 157 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
set<int> p;
int pi;
for (int i = 0; i < N; i++) {
cin >> pi;
p.insert(pi);
}
int abs = 100, ans, i = X;
while (i >= 0) {
if (p.count(i) == 0 && abs > X - i) {
abs = X - i;
ans = i;
break;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
set<int> p;
int pi;
for (int i = 0; i < N; i++) {
cin >> pi;
p.insert(pi);
}
int abs = 100, ans, i = X;
while (i >= 0) {
if (p.count(i) == 0 && abs > X - i) {
abs = X - i;
ans = i;
break;
... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13]] | 1 | 167 |
#include <bits/stdc++.h>
#include <algorithm>
#include <vector>
using namespace std;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define deg_to_rad(deg) (((deg) / 360) * 2 * M_PI)
#define rad_to_deg(rad) (((rad) / 2 / M_PI) * 360)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n)... | #include <bits/stdc++.h>
#include <algorithm>
#include <vector>
using namespace std;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define deg_to_rad(deg) (((deg) / 360) * 2 * M_PI)
#define rad_to_deg(rad) (((rad) / 2 / M_PI) * 360)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n)... | [["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 229 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, n, cn;
set<int> cs;
cin >> x >> n;
for (int j = 0; j < n; j++) {
cin >> cn;
cs.insert(cn);
}
for (int j = 0; j < 100; j++) {
if (x - j >= 0 && cs.find(x - j) == cs.end()) {
cout << x - j;
break;
} else if (x + j <... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, n, cn;
set<int> cs;
cin >> x >> n;
for (int j = 0; j < n; j++) {
cin >> cn;
cs.insert(cn);
}
for (int j = 0; j < 100; j++) {
if (x - j >= -1 && cs.find(x - j) == cs.end()) {
cout << x - j;
break;
} else if (x + j ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 141 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, n;
cin >> x >> n;
cin.ignore();
vector<int> p;
int tmp;
for (int i = 0; i < n; i++) {
cin >> tmp;
p.push_back(tmp);
}
if (n != 0) {
cin.ignore();
}
sort(p.begin(), p.end());
int p_ptr = 0;
int min = INT_MAX;
int ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, n;
cin >> x >> n;
cin.ignore();
vector<int> p;
int tmp;
for (int i = 0; i < n; i++) {
cin >> tmp;
p.push_back(tmp);
}
if (n != 0) {
cin.ignore();
}
sort(p.begin(), p.end());
int p_ptr = 0;
int min = INT_MAX;
int ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 184 |
#include <bits/stdc++.h>
#include <iomanip>
using namespace std;
#define ll long long
#define vpll vector<pair<ll, ll>>
#define vpii vector<pair<int, int>>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define mem(a, b) memset(a, b, sizeof a);
#define M 1000000007
#define bs(a, b, x) binary_search(a, b, x)
templa... | #include <bits/stdc++.h>
#include <iomanip>
using namespace std;
#define ll long long
#define vpll vector<pair<ll, ll>>
#define vpii vector<pair<int, int>>
#define pii pair<int, int>
#define pll pair<ll, ll>
#define mem(a, b) memset(a, b, sizeof a);
#define M 1000000007
#define bs(a, b, x) binary_search(a, b, x)
templa... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 273 |
/**
* Hi, I'm Arpan.
* Hardwork beats talent if talents doesn't work hard, friend me if you want
* to. ✌.|•͡˘‿•͡˘|.✌
*
*/
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
typedef pair<int, int> pi;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<string> vs;
#define inv(v) ... |
/**
* Hi, I'm Arpan.
* Hardwork beats talent if talents doesn't work hard, friend me if you want
* to. ✌.|•͡˘‿•͡˘|.✌
*
*/
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
typedef pair<int, int> pi;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<string> vs;
#define inv(v) ... | [["-", 75, 76, 0, 9, 0, 43, 49, 50, 51, 13], ["+", 75, 76, 0, 9, 0, 43, 49, 50, 51, 13]] | 1 | 243 |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
//#include <stack>
//#include <queue>
//#include <cstdio>
#include <cmath>
#include <iterator>
#include <map>
//#include <list>
#include <iomanip>
using namespace std;
#define IOS ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
#defin... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
//#include <stack>
//#include <queue>
//#include <cstdio>
#include <cmath>
#include <iterator>
#include <map>
//#include <list>
#include <iomanip>
using namespace std;
#define IOS ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
#defin... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 284 |
x, n = list(map(int, input().split()))
if n != 0:
p = list(map(int, input().split()))
lists = []
for i in range(0, 101):
if i in p:
continue
lists.append(i)
ans = lists[0]
mins = abs(lists[0] - x)
for i in range(1, len(lists)):
dist = abs(lists[i]-x)
if mins > dist:
ans = lists... | x, n = list(map(int, input().split()))
if n != 0:
p = list(map(int, input().split()))
lists = []
for i in range(0, 102):
if i in p:
continue
lists.append(i)
ans = lists[0]
mins = abs(lists[0] - x)
for i in range(1, len(lists)):
dist = abs(lists[i]-x)
if mins > dist:
ans = lists... | [["-", 64, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 64, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 132 |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
vector<int> p(N);
for (int i = 0; i < N; i++) {
cin >> p[i];
}
vector<bool> a(101, true);
for (int i = 0; i < N; i++) {
a[p[i]] = false;
}
int min_dif = 120;
... | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
int X, N;
cin >> X >> N;
vector<int> p(N);
for (int i = 0; i < N; i++) {
cin >> p[i];
}
vector<bool> a(201, true);
for (int i = 0; i < N; i++) {
a[p[i]] = false;
}
int min_dif = 300;
... | [["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 157 |
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int x, n;
cin >> x >> n;
vector<int> p(n);
for (int i = 0; i < n; i++) {
cin >> p[i];
}
int ans = 1000;
int val = 1000;
for (int i = -100; i <= 100; i++) {
if (find(p.begin(), p.end(), i) != p.end())... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int x, n;
cin >> x >> n;
vector<int> p(n);
for (int i = 0; i < n; i++) {
cin >> p[i];
}
int ans = 1000;
int val = 1000;
for (int i = -100; i <= 200; i++) {
if (find(p.begin(), p.end(), i) != p.end())... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 146 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int x, n;
cin >> x >> n;
int dis, min = 150, idx;
vector<int> p(n);
rep(i, n) { cin >> p[i]; }
bool flg;
for (int i = 1; i <= 101; i++) {
flg = true;
rep(j, n) {
if ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; i++)
int main() {
int x, n;
cin >> x >> n;
int dis, min = 150, idx = 1;
vector<int> p(n);
rep(i, n) { cin >> p[i]; }
bool flg;
for (int i = 0; i <= 101; i++) {
flg = true;
rep(j, n) {
... | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 155 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, a, b) for (ll i = (a); i < (b); i++)
#define PER(i, a, b) for (ll i = (a); i >= (b); i--)
#define rep(i, n) REP(i, 0, n)
#define per(i, n) PER(i, n, 0)
#define ALL(a) (a).begin(), (a).end()
const ll INF = 1e18 + 18;
const ll MAX = 200000... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, a, b) for (ll i = (a); i < (b); i++)
#define PER(i, a, b) for (ll i = (a); i >= (b); i--)
#define rep(i, n) REP(i, 0, n)
#define per(i, n) PER(i, n, 0)
#define ALL(a) (a).begin(), (a).end()
const ll INF = 1e18 + 18;
const ll MAX = 200000... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 225 |
using namespace std;
#define _CRT_SECURE_NO_WARNINGS
#pragma target("avx")
#pragma optimize("O3")
#pragma optimize("unroll-loops")
#include <algorithm>
#include <bitset>
#include <cfloat>
#include <cmath>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#incl... | using namespace std;
#define _CRT_SECURE_NO_WARNINGS
#pragma target("avx")
#pragma optimize("O3")
#pragma optimize("unroll-loops")
#include <algorithm>
#include <bitset>
#include <cfloat>
#include <cmath>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#incl... | [["-", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 673 |
x, n = map(int, input().split())
if n != 0:
ps = list(map(int, input().split()))
ans = 0
sa = x
for i in range(0, 102):
if i not in ps and abs(x-i) < sa:
ans = i
sa = x-i
print(ans, sa)
print(ans)
else:
print(x) | x, n = map(int, input().split())
if n != 0:
ps = list(map(int, input().split()))
ans = 0
sa = x
for i in range(0, 102):
if i not in ps and abs(x-i) < sa:
ans = i
sa = x-i
print(ans)
else:
print(x) | [["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 0, 57, 64, 196, 0, 1, 0, 652, 63, 22], ["-", 64, 196, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 93 |
function Main(input) {
// 1行目がinput[0], 2行目がinput[1], …に入る
input = input.split("\n");
let x = parseInt(input[0].split(" ")[0]);
let n = parseInt(input[0].split(" ")[1]);
if (n == 0) {
console.log(x);
return;
}
let p_n = input[1].split(" ").map(Number);
let buf = 0;
for (let i = 0;; i++) ... | function Main(input) {
// 1行目がinput[0], 2行目がinput[1], …に入る
input = input.split("\n");
let x = parseInt(input[0].split(" ")[0]);
let n = parseInt(input[0].split(" ")[1]);
if (n == 0) {
console.log(x);
return;
}
let p_n = input[1].split(" ").map(Number);
let buf = 10000;
for (let i = 0;; i... | [["-", 0, 435, 8, 556, 0, 570, 0, 200, 51, 555], ["+", 0, 435, 8, 556, 0, 570, 0, 200, 51, 555]] | 2 | 198 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define dump(x) cerr << #x << "=" << x << endl
#define dump2(x, y) cerr << #x << "=" << x << "," << #y << "=" << y << endl
#define dump3(x, y, z) \
cerr << #x << "=" << x << "," << #y << "=" <... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define dump(x) cerr << #x << "=" << x << endl
#define dump2(x, y) cerr << #x << "=" << x << "," << #y << "=" << y << endl
#define dump3(x, y, z) \
cerr << #x << "=" << x << "," << #y << "=" <... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 49, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 64, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64... | 1 | 307 |
X, N = map(int, input().split())
if N != 0:
p = list(map(int, input().split()))
if N == 0:
print(X)
else:
m = 1000
n = 1000
for i in range(201):
c = i - 100
d = abs(X - c)
if c not in p:
if d < m:
m = d
n = c
elif d ==... | X, N = map(int, input().split())
if N != 0:
p = list(map(int, input().split()))
if N == 0:
print(X)
else:
m = 1000
n = 1000
for i in range(102):
c = i
d = abs(X - c)
if c not in p:
if d < m:
m = d
n = c
elif d == m and... | [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 17, 33], ["-", 8, 196, 0, 1, 0, 662, 12, 657, 12, 612]] | 5 | 109 |
# coding: utf-8
X,N=map(int,input().split())
P=[]
if N!=0:
P=list(map(int,input().split()))
K=[]
for i in range(1,102):
if not(i in P):
K.append(i)
ans=[]
for i in range(len(K)):
ans.append([abs(X-K[i]),K[i]])
ans.sort()
A=[]
for i in range(len(ans)):
if ans[i][0]==ans[0][0]:
A.appe... | # coding: utf-8
X,N=map(int,input().split())
P=[]
if N!=0:
P=list(map(int,input().split()))
K=[]
for i in range(102):
if not(i in P):
K.append(i)
ans=[]
for i in range(len(K)):
ans.append([abs(X-K[i]),K[i]])
ans.sort()
A=[]
for i in range(len(ans)):
if ans[i][0]==ans[0][0]:
A.append... | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 163 |
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
int main() {
ios_base ::sync_with_stdio(false);
cin.tie(NULL);
int x, n;
cin >> x >> n;
int vet[n];
for (int i = 0; i < n; i++)
cin >> vet[i];
int ans = x;
int mn = INT_MAX;
for (int i = -100; i <= 100; i++) {
if (abs(x - m... | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
int main() {
ios_base ::sync_with_stdio(false);
cin.tie(NULL);
int x, n;
cin >> x >> n;
int vet[n];
for (int i = 0; i < n; i++)
cin >> vet[i];
int ans = x;
int mn = INT_MAX;
for (int i = -100; i <= 1000; i++) {
if (abs(x - ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 169 |
#include <algorithm>
#include <iomanip>
#include <iostream>
using namespace std;
void Main() {
// input
int X, N;
cin >> X >> N;
int nums[100 + 1];
for (int i = 0; i <= 100; i++) {
nums[i] = 1;
}
for (int i = 0; i < N; i++) {
int p;
cin >> p;
nums[p] = 0;
}
// translate
int ans = ... |
#include <algorithm>
#include <iomanip>
#include <iostream>
using namespace std;
void Main() {
// input
int X, N;
cin >> X >> N;
int nums[100 + 2];
for (int i = 0; i <= 101; i++) {
nums[i] = 1;
}
for (int i = 0; i < N; i++) {
int p;
cin >> p;
nums[p] = 0;
}
// translate
int ans = ... | [["-", 8, 9, 0, 43, 49, 80, 81, 16, 12, 13], ["+", 8, 9, 0, 43, 49, 80, 81, 16, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 188 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, n;
cin >> x >> n;
vector<int> p(n);
for (auto &e : p)
cin >> e;
int ans = 1e9;
for (int i = -100; i <= 100; i++) {
bool flag = true;
for (int j = 0; j < n; j++) {
if (i == p[j]) {
flag = false;
break;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, n;
cin >> x >> n;
vector<int> p(n);
for (auto &e : p)
cin >> e;
int ans = 1e9;
for (int i = -100; i <= 101; i++) {
bool flag = true;
for (int j = 0; j < n; j++) {
if (i == p[j]) {
flag = false;
break;
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 141 |
#include <algorithm>
#include <bits/stdc++.h>
#include <functional>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define DEBUG
#define PI 3.141592653589793238462643383279
#define _GLIBCXX_DEBUG
#ifdef DEBUG
#define s(...) show(__VA_ARGS__);
#define sl(...) ... | #include <algorithm>
#include <bits/stdc++.h>
#include <functional>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
#define DEBUG
#define PI 3.141592653589793238462643383279
#define _GLIBCXX_DEBUG
#ifdef DEBUG
#define s(...) show(__VA_ARGS__);
#define sl(...) ... | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21]] | 1 | 691 |
X,N = map(int,input().split())
if(N==0):
print(X)
else:
P = [int(i) for i in input().split()]
A = []
for i in range(101):
if not i in P:
A.append([abs(X-i),i])
A.sort()
s = A[0][0]
B = [[i,j] for i,j in A if i==s]
B.sort(key = lambda x:x[1])
print(B[0][1]) | X,N = map(int,input().split())
if(N==0):
print(X)
else:
P = [int(i) for i in input().split()]
A = []
for i in range(-100,201):
if not i in P:
A.append([abs(X-i),i])
A.sort()
s = A[0][0]
B = [[i,j] for i,j in A if i==s]
B.sort(key = lambda x:x[1])
print(B[0][1]) | [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 7, 12, 652, 3, 4, 0, 664, 17, 33], ["+", 0, 7, 12, 652, 3, 4, 0, 664, 28, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 137 |
x, n = map(int, input().split())
if n == 0:
print(x)
else:
p = list(map(int, input().split()))
dif = 1
while True:
if not x - dif in p:
a = x - dif
break
elif not x + dif in p:
a = x + dif
break
dif += 1
print(a) | x, n = map(int, input().split())
if n == 0:
print(x)
else:
p = list(map(int, input().split()))
dif = 0
while True:
if not x - dif in p:
a = x - dif
break
elif not x + dif in p:
a = x + dif
break
dif += 1
print(a) | [["-", 75, 76, 8, 196, 0, 1, 0, 662, 12, 612], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 12, 612]] | 5 | 85 |
#include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <random>
#include <stack>
#include <string>
#include <algorithm>
#include <fstream>
#include <vector>
#define ll long long int
using namespace std;
int main(void) {
int x, n, tmp;
int res, res_u;
vector<int> p;
cin >> x >> n... | #include <cmath>
#include <iomanip>
#include <iostream>
#include <queue>
#include <random>
#include <stack>
#include <string>
#include <algorithm>
#include <fstream>
#include <vector>
#define ll long long int
using namespace std;
int main(void) {
int x, n, tmp;
int res, res_u;
vector<int> p;
cin >> x >> n... | [["+", 0, 14, 8, 9, 0, 57, 15, 339, 51, 22], ["+", 0, 14, 8, 9, 0, 57, 15, 339, 0, 25], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 57, 64, 9, 0, 57, 0, 121], ["+", 0, 57, 64, 9, 0, 57, 15, 339, 0, 24], ["+", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46]] | 1 | 213 |
#include <bits/stdc++.h>
#define rep(i, a, n) for (int i = a; i < n; i++)
#define repr(i, a, n) for (int i = n - 1; i >= a; i--)
using namespace std;
using ll = long long;
using P = pair<int, int>;
template <typename T> void chmin(T &a, T b) { a = min(a, b); }
template <typename T> void chmax(T &a, T b) { a = max(a, b)... | #include <bits/stdc++.h>
#define rep(i, a, n) for (int i = a; i < n; i++)
#define repr(i, a, n) for (int i = n - 1; i >= a; i--)
using namespace std;
using ll = long long;
using P = pair<int, int>;
template <typename T> void chmin(T &a, T b) { a = min(a, b); }
template <typename T> void chmax(T &a, T b) { a = max(a, b)... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 254 |
x, n = map(int, input().split())
if n == 0:
print(x)
exit(0)
else:
p = [int(x) for x in input().split()]
p.sort()
ans1 = 100
ans2 = 100
flag = 1
for i in range(102):
if x-i not in p:
ans1 = x-i
flag = 0
if x+i not in p:
ans2 = x+i
flag = 0
if flag == 0:
... | x, n = map(int, input().split())
if n == 0:
print(x)
exit(0)
else:
p = [int(x) for x in input().split()]
p.sort()
ans1 = 300
ans2 = 300
flag = 1
for i in range(100):
if x-i not in p:
ans1 = x-i
flag = 0
if x+i not in p:
ans2 = x+i
flag = 0
if flag == 0:
... | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 12, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 121 |
x,n = map(int,input().split())
if n:
p = set(map(int,input().split()))
mini = float('inf')
ans = float('inf')
for i in range(-400,400):
if i not in p:
if abs(x-i)<mini:
mini = abs(x-i)
ans = i
elif abs(x-i)==mini and ans>i:
ans=i
print(ans) | x,n = map(int,input().split())
p = set()
if n:
p = set(map(int,input().split()))
mini = float('inf')
ans = float('inf')
for i in range(-400,400):
if i not in p:
if abs(x-i)<mini:
mini = abs(x-i)
ans = i
elif abs(x-i)==mini and ans>i:
ans=i
print(ans) | [["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 0, 32], ["+", 0, 656, 0, 1, 0, 662, 12, 652, 63, 22], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 662, 12, 652, 3, 4, 0, 25]] | 5 | 111 |
#include <bits/stdc++.h>
#define fr(i, b, e) for (int i = (b); i != (e); ++i)
#define rep(i, e) for (int i = 0; i != (e); ++i)
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long int li;
typedef long long int ll;
using graph = vector<vector<int>>;
using edgedp = vector<vector<pair<int, ll>>>;
const... | #include <bits/stdc++.h>
#define fr(i, b, e) for (int i = (b); i != (e); ++i)
#define rep(i, e) for (int i = 0; i != (e); ++i)
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long int li;
typedef long long int ll;
using graph = vector<vector<int>>;
using edgedp = vector<vector<pair<int, ll>>>;
const... | [["+", 75, 76, 0, 9, 0, 43, 49, 50, 0, 32], ["+", 75, 76, 0, 9, 0, 43, 49, 50, 51, 13]] | 1 | 248 |
# -*- coding: utf-8 -*-
## Library
import sys
from math import gcd
import math
from math import ceil,floor
import collections
from collections import Counter
import itertools
## input
# n=int(input())
# A,B,C,D=map(int, input().split())
# string = input()
# yoko = list(map(int, input().split()))
# tate = [int(i... | # -*- coding: utf-8 -*-
## Library
import sys
from math import gcd
import math
from math import ceil,floor
import collections
from collections import Counter
import itertools
## input
# n=int(input())
# A,B,C,D=map(int, input().split())
# string = input()
# yoko = list(map(int, input().split()))
# tate = [int(i... | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 170 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
using namespace std;
int main() {
int x, n;
cin >> x >> n;
map<int, int> m;
rep(i, n) {
int p;
cin >> p;
int pp = p - x;
m[pp] = 1;
}
if (m[0] != 1) {
cout << x << endl;
return 0;
}
int... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
using namespace std;
int main() {
int x, n;
cin >> x >> n;
map<int, int> m;
rep(i, n) {
int p;
cin >> p;
int pp = p - x;
m[pp] = 1;
}
if (m[0] != 1) {
cout << x << endl;
return 0;
}
int... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["-", 0, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 9, 0, 1, 0, 11, 12, 16, 17, 33]] | 1 | 155 |
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3")
#pragma GCC target("avx")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
typedef long long int ll;
#define int long long int
#define IOS ... | #include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("O3")
#pragma GCC target("avx")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
typedef long long int ll;
#define int long long int
#define IOS ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 397 |
x, n = map(int, input().split())
if n == 0:
print(x)
exit()
p = list(map(int, input().split()))
ans = 0
tmp = float("inf")
for i in range(1, 101):
if i not in p:
if abs(x - i) < tmp:
tmp = abs(x - i)
ans = i
print(ans) | x, n = map(int, input().split())
if n == 0:
print(x)
exit()
p = list(map(int, input().split()))
ans = 0
tmp = float("inf")
for i in range(1000):
if i not in p:
if abs(x - i) < tmp:
tmp = abs(x - i)
ans = i
print(ans) | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 21], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 97 |
import sys
N , M = (map(int , input().split()))
if M == 0:
print(N)
sys.exit()
A = list(map(int , input().split()))
aa = [i for i in range(-100,101)]
ans_list = {}
for i in aa:
if i not in A:
ans_list.update({i:abs(N-i)})
for i in ans_list:
if ans_list[i] == min(list(ans_list.values())):
... | import sys
N , M = (map(int , input().split()))
if M == 0:
print(N)
sys.exit()
A = list(map(int , input().split()))
aa = [i for i in range(-102,102)]
ans_list = {}
for i in aa:
if i not in A:
ans_list.update({i:abs(N-i)})
for i in ans_list:
if ans_list[i] == min(list(ans_list.values())):
... | [["-", 0, 659, 12, 652, 3, 4, 0, 664, 28, 612], ["+", 0, 659, 12, 652, 3, 4, 0, 664, 28, 612], ["-", 12, 658, 0, 659, 12, 652, 3, 4, 0, 612], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 612]] | 5 | 128 |
#include <bits/stdc++.h>
#define lld long long
#define pb push_back
#define mk make_pair
#define MAX (lld)1e18 + 7
#define lim (lld)1e9 + 7
#define MAX2 (int)2e5 + 9
#define ff first
#define ss second
#define fastio \
ios::sync_with_stdio(0); ... | #include <bits/stdc++.h>
#define lld long long
#define pb push_back
#define mk make_pair
#define MAX (lld)1e18 + 7
#define lim (lld)1e9 + 7
#define MAX2 (int)2e5 + 9
#define ff first
#define ss second
#define fastio \
ios::sync_with_stdio(0); ... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 382 |
import sys
import re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_upp... | import sys
import re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_upp... | [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 21]] | 5 | 279 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
int n;
cin >> x >> n;
vector<int> p(n);
for (int i = 0; i < n; i++) {
cin >> p.at(i);
}
p.push_back(100000);
sort(p.begin(), p.end());
int i = 0;
int min = 1000;
int ans = 0;
for (int a = -1; a <= 100; a++) {
if (a == p.... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x;
int n;
cin >> x >> n;
vector<int> p(n);
for (int i = 0; i < n; i++) {
cin >> p.at(i);
}
p.push_back(100000);
sort(p.begin(), p.end());
int i = 0;
int min = 1000;
int ans = 0;
for (int a = 0; a <= 101; a++) {
if (a == p.a... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 164 |
import sys
x, n = map(int, input().split(" "))
if n == 0:
print(x)
sys.exit(0)
p = list(map(int, input().split(" ")))
for i in range(1, 100):
if x - i not in p:
print(x-i)
break
if x + i not in p:
print(x+i)
break |
import sys
x, n = map(int, input().split(" "))
if n == 0:
print(x)
sys.exit(0)
p = list(map(int, input().split(" ")))
for i in range(0, 100):
if x - i not in p:
print(x-i)
break
if x + i not in p:
print(x+i)
break | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 96 |
#include <bits/stdc++.h>
using ll = long long;
using namespace std;
using Graph = vector<vector<ll>>;
int main() {
int x, n;
cin >> x >> n;
vector<int> p(n);
for (auto &&a : p) {
cin >> a;
}
sort(p.begin(), p.end());
int j = 0;
int tmp = INT32_MAX;
int ans = INT32_MAX;
for (int i = 0; i <= 100... | #include <bits/stdc++.h>
using ll = long long;
using namespace std;
using Graph = vector<vector<ll>>;
int main() {
int x, n;
cin >> x >> n;
vector<int> p(n);
for (auto &&a : p) {
cin >> a;
}
sort(p.begin(), p.end());
int j = 0;
int tmp = INT32_MAX;
int ans = INT32_MAX;
for (int i = -100; i <= ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 164 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
#define lli long long int
#define ulli unsigned long long int
#define ldb long double
#define pb push_back
#define popb pop_back
#define ins insert
#define si size()
#define sof sizeof()
#define be begin()
#define en end()
#de... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
#define lli long long int
#define ulli unsigned long long int
#define ldb long double
#define pb push_back
#define popb pop_back
#define ins insert
#define si size()
#define sof sizeof()
#define be begin()
#define en end()
#de... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 1,309 |
X, N = map(int, input().split())
p = set()
if N != 0:
p = set(map(int, input().split()))
pp = sorted(list({i for i in range(101)} - p))
ans = -100
for i in pp:
if abs(X - ans) > abs(X - i):
ans = i
print(ans) | X, N = map(int, input().split())
p = set()
if N != 0:
p = set(map(int, input().split()))
pp = sorted(list({i for i in range(102)} - p))
ans = -100
for i in pp:
if abs(X - ans) > abs(X - i):
ans = i
print(ans) | [["-", 31, 689, 0, 659, 12, 652, 3, 4, 0, 612], ["+", 31, 689, 0, 659, 12, 652, 3, 4, 0, 612]] | 5 | 94 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int X, N;
cin >> X >> N;
int p[N];
rep(i, N) cin >> p[i];
int ans = 0;
rep(i, 101) {
if (abs(X - i) < abs(X - ans)) {
int count = 0;
rep(j, N) {
if (p[j] == i)
c... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
int X, N;
cin >> X >> N;
int p[N];
rep(i, N) cin >> p[i];
int ans = 0;
rep(i, 102) {
if (abs(X - i) < abs(X - ans)) {
int count = 0;
rep(j, N) {
if (p[j] == i)
c... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 127 |
import itertools
import decimal
import math
import collections
import sys
input = sys.stdin.readline
X,N=map(int,input().split())
if(N==0):
ans=X
else:
ListP=list(map(int,input().split()))
min = 999999
for i in range(-101,101):
if(min > abs(X-i)):
if(i not in ListP):
... | import itertools
import decimal
import math
import collections
import sys
input = sys.stdin.readline
X,N=map(int,input().split())
if(N==0):
ans=X
else:
ListP=list(map(int,input().split()))
min = 999999
for i in range(-200,200):
if(min > abs(X-i)):
if(i not in ListP):
... | [["-", 0, 7, 12, 652, 3, 4, 0, 664, 28, 612], ["+", 0, 7, 12, 652, 3, 4, 0, 664, 28, 612], ["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 111 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
#define FOR(i, m, n) for (ll i = m; i < (n); i++)
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
using vi = vector<int>;
using vii = vector<vi>;
using pii = pair<int, int>;
using vl = vector<... | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < (n); ++i)
#define FOR(i, m, n) for (ll i = m; i < (n); i++)
#define all(x) (x).begin(), (x).end()
using namespace std;
typedef long long ll;
using vi = vector<int>;
using vii = vector<vi>;
using pii = pair<int, int>;
using vl = vector<... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 232 |
#include <bits/stdc++.h>
using namespace std;
#define all(v) v.begin(), v.end()
using in = int64_t;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define Yes cout << "Yes" << endl
#define No cout << "No" << endl
#define yes cout << "yes" << endl
#def... | #include <bits/stdc++.h>
using namespace std;
#define all(v) v.begin(), v.end()
using in = int64_t;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define Yes cout << "Yes" << endl
#define No cout << "No" << endl
#define yes cout << "yes" << endl
#def... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 251 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utilit... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <complex>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utilit... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 223 |
/*
Jai Shree Krishna !!
Radhe Radhe !!
उद्यमेन हि सिद्ध्यन्ति कार्याणि न मनोरथैः। नहि सुप्तस्य सिंहस्य मुखे प्रविशन्ति
मृगाः।।
*/
#include <bits/stdc++.h>
using namespace std;
#define int long long
typedef long long ll;
#define loop(i, n) ... | /*
Jai Shree Krishna !!
Radhe Radhe !!
उद्यमेन हि सिद्ध्यन्ति कार्याणि न मनोरथैः। नहि सुप्तस्य सिंहस्य मुखे प्रविशन्ति
मृगाः।।
*/
#include <bits/stdc++.h>
using namespace std;
#define int long long
typedef long long ll;
#define loop(i, n) ... | [["+", 0, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 0, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 394 |
#include <bits/stdc++.h>
#define rep(i, cc, n) for (int i = cc; i <= n; ++i)
using namespace std;
int main() {
int X, N;
cin >> X >> N;
set<int> s;
rep(i, 0, N - 1) {
int p;
cin >> p;
s.insert(p);
}
int m = 1001001001, ans = X;
rep(i, 1, 100) {
if (s.count(i) != 0)
continue;
e... | #include <bits/stdc++.h>
#define rep(i, cc, n) for (int i = cc; i <= n; ++i)
using namespace std;
int main() {
int X, N;
cin >> X >> N;
set<int> s;
rep(i, 0, N - 1) {
int p;
cin >> p;
s.insert(p);
}
int m = 1001001001, ans = X;
rep(i, 0, 101) {
if (s.count(i) != 0)
continue;
e... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 135 |
x, n = [int(e) for e in input().split()]
if n == 0:
print(x)
exit
p = [int(e) for e in input().split()]
for i in range(100):
if not (x - i) in p:
print(x - i)
break
if not (x + i) in p:
print(x + i)
break
| x, n = [int(e) for e in input().split()]
if n == 0:
print(x)
else:
p = [int(e) for e in input().split()]
for i in range(100):
if not (x - i) in p:
print(x - i)
break
if not (x + i) in p:
print(x + i)
break
| [["-", 0, 656, 0, 57, 64, 196, 0, 1, 0, 22], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 95], ["+", 36, 36, 0, 656, 0, 57, 75, 76, 0, 102]] | 5 | 90 |
//#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll, ll>>
#define VVL vector<vector<ll>>
#define VVP ve... | //#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll, ll>>
#define VVL vector<vector<ll>>
#define VVP ve... | [["-", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 225 |
def s0():return input()
def s1():return input().split()
def s2(n):return [input() for x in range(n)]
def s3(n):return [input().split() for _ in range(n)]
def s4(n):return [[x for x in s] for s in s2(n)]
def n0():return int(input())
def n1():return [int(x) for x in input().split()]
def n2(n):return [int(input()) for _ ... |
def s0():return input()
def s1():return input().split()
def s2(n):return [input() for x in range(n)]
def s3(n):return [input().split() for _ in range(n)]
def s4(n):return [[x for x in s] for s in s2(n)]
def n0():return int(input())
def n1():return [int(x) for x in input().split()]
def n2(n):return [int(input()) for _ ... | [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 57, 15, 666, 0, 23, 0, 24], ["+", 8, 196, 0, 57, 15, 666, 0, 23, 0, 25]] | 5 | 349 |
import sys
X, N = map(int, sys.stdin.readline().strip().split())
P = set(map(int, sys.stdin.readline().strip().split()))
ans = X
ans_v = X
for i in range(101):
if i in P:
continue
tmp = abs(X - i)
if tmp < ans or (tmp == ans and i < ans_v):
ans_v = i
ans = tmp
# print(ans, ... | import sys
X, N = map(int, sys.stdin.readline().strip().split())
P = set(map(int, sys.stdin.readline().strip().split()))
ans = X
ans_v = X
for i in range(102):
if i in P:
continue
tmp = abs(X - i)
if tmp < ans or (tmp == ans and i < ans_v):
ans_v = i
ans = tmp
# print(ans, ... | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 105 |
// Problem : C - Forbidden List
// Contest : AtCoder - AtCoder Beginner Contest 170
// URL : https://atcoder.jp/contests/abc170/tasks/abc170_c
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
// #pragma GCC optimize ("O3")
// #pragma GCC target ("sse4")
... |
// Problem : C - Forbidden List
// Contest : AtCoder - AtCoder Beginner Contest 170
// URL : https://atcoder.jp/contests/abc170/tasks/abc170_c
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)
// #pragma GCC optimize ("O3")
// #pragma GCC target ("sse4")
... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 441 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, p, q) for (ll i = p; i < q; i++)
int main(void) {
ll x, n;
ll ans = 0;
cin >> x >> n;
if (n == 0)
cout << x << endl;
else {
vector<ll> v = vector<ll>(n);
REP(i, 0, n) cin >> v[i];
REP(i, 1, 100) {
vec... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, p, q) for (ll i = p; i < q; i++)
int main(void) {
ll x, n;
ll ans = 0;
cin >> x >> n;
if (n == 0)
cout << x << endl;
else {
vector<ll> v = vector<ll>(n);
REP(i, 0, n) cin >> v[i];
REP(i, 1, 200) {
vec... | [["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 0, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 163 |
X,N=map(int,input().split())
if N==0:
print(X)
else:
p=set(map(int,input().split()))
i=-1
for j in range(101):
if abs(X-j)<abs(X-i) and not(j in p):
i=j
print(i) | X,N=map(int,input().split())
if N==0:
print(X)
else:
p=set(map(int,input().split()))
i=-1
for j in range(102):
if abs(X-j)<abs(X-i) and not(j in p):
i=j
print(i) | [["-", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612], ["+", 8, 196, 0, 7, 12, 652, 3, 4, 0, 612]] | 5 | 85 |
#include <bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define all(v) v.begin(), v.end()
#define ll long long int
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | #include <bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define all(v) v.begin(), v.end()
#define ll long long int
#define IOS \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); ... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 196 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
const ll MOD = 1e9 + 7;
const long long INF = 1LL << 60;
int main() {
int x, n;
cin >> x >> n;
vector<int> p(n);
rep(i, n) cin >> p.at(i);
set<int> st;
rep(i, n) st.insert(p.at(i));
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
const ll MOD = 1e9 + 7;
const long long INF = 1LL << 60;
int main() {
int x, n;
cin >> x >> n;
vector<int> p(n);
rep(i, n) cin >> p.at(i);
set<int> st;
rep(i, n) st.insert(p.at(i));
... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 33], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 12, 13], ["-", 8, 9, 0, 43, 49, 50, 51, 16, 17, 72]] | 1 | 182 |
"""
こんにちは。これはクシャルです
Author : thekushalghosh (クシャル)
Team : CodeDiggers
I prefer Python language over the C++ language :p :D
Visit my website : thekushalghosh.github.io
"""
import sys,math,cmath,time
start_time = time.time()
###########################################################... | """
こんにちは。これはクシャルです
Author : thekushalghosh (クシャル)
Team : CodeDiggers
I prefer Python language over the C++ language :p :D
Visit my website : thekushalghosh.github.io
"""
import sys,math,cmath,time
start_time = time.time()
###########################################################... | [["-", 64, 196, 0, 57, 15, 666, 0, 657, 17, 72], ["+", 64, 196, 0, 57, 15, 666, 0, 657, 17, 33], ["+", 0, 57, 64, 196, 0, 57, 15, 666, 667, 699], ["-", 0, 652, 3, 4, 0, 657, 31, 657, 17, 72], ["+", 0, 652, 3, 4, 0, 657, 31, 657, 17, 33], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 1, 0, 652, 3, 4, 0, 657, 17, 3... | 5 | 874 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <set>
#define mes(a, b) memset(a, b, sizeof a)
#define pb push_back
typedef unsigned long long int ull;
typedef long long int ll;
const int maxn = 1e5 + 20;
const int maxm = 1e5 + 10;
const ll mod = 1e9 + 7;
const ll... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <set>
#define mes(a, b) memset(a, b, sizeof a)
#define pb push_back
typedef unsigned long long int ull;
typedef long long int ll;
const int maxn = 1e5 + 20;
const int maxm = 1e5 + 10;
const ll mod = 1e9 + 7;
const ll... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 226 |
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
#define mem(ar, a) memset(ar, a, sizeof ar)
#define iOS \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define pb(x) push_bac... | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
#define mem(ar, a) memset(ar, a, sizeof ar)
#define iOS \
ios_base::sync_with_stdio(false); \
cin.tie(NULL);
#define pb(x) push_bac... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 222 |
#include <iostream>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int x, n, f[110];
cin >> x >> n;
rep(i, 101) { f[i] = 0; }
rep(i, n) {
int p;
cin >> p;
f[p] = 1;
}
int l, r;
l = x;
r = x;
while (l >= 0 || r <= 100) {
if (l >= 0) {
if (f[l] ... | #include <iostream>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int x, n, f[110];
cin >> x >> n;
rep(i, 102) { f[i] = 0; }
rep(i, n) {
int p;
cin >> p;
f[p] = 1;
}
int l, r;
l = x;
r = x;
while (l >= 0 || r <= 101) {
if (l >= 0) {
if (f[l] ... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 164 |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define PB push_back
#define ALL(x) (x).begin(), (x).end()
#define ALLR(x) (x).rbegin(), (x).rend()
#define MP make_pair
#define debug(args...) \
{ ... | #include <bits/stdc++.h>
using namespace std;
#define int long long
#define PB push_back
#define ALL(x) (x).begin(), (x).end()
#define ALLR(x) (x).rbegin(), (x).rend()
#define MP make_pair
#define debug(args...) \
{ ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 567 |
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespac... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespac... | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 13]] | 1 | 289 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.