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 <bits/stdc++.h>
#define del(a, i) memset(a, i, sizeof(a))
#define ll long long
#define inl inline
#define il inl void
#define it inl int
#define ill inl ll
#define re register
#define ri re int
#define rl re ll
#define mid ((l + r) >> 1)
#define lowbit(x) (x & (-x))
#define INF 0x3f3f3f3f
using namespace std;
... | #include <bits/stdc++.h>
#define del(a, i) memset(a, i, sizeof(a))
#define ll long long
#define inl inline
#define il inl void
#define it inl int
#define ill inl ll
#define re register
#define ri re int
#define rl re ll
#define mid ((l + r) >> 1)
#define lowbit(x) (x & (-x))
#define INF 0x3f3f3f3f
using namespace std;
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]] | 1 | 582 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define REP(i, k, n) for (long long i = k; i < (long long)(n); i++)
#define all(a) a.begin(), a.end()
#define eb emplace_back
#define lb(v, k) (lower_bound(all(v), k) - v.begin())
#define ub(v, k) (upper_bound... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
#define REP(i, k, n) for (long long i = k; i < (long long)(n); i++)
#define all(a) a.begin(), a.end()
#define eb emplace_back
#define lb(v, k) (lower_bound(all(v), k) - v.begin())
#define ub(v, k) (upper_bound... | [["-", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78]] | 1 | 923 |
import sys
input_methods=['clipboard','file','key']
using_method=0
input_method=input_methods[using_method]
IN=lambda : map(int, input().split())
mod=1000000007
#+++++
def main():
#a = int(input())
x, y, a, b, c = IN()
al = list(IN())
al.sort(reverse=True)
bl = list(IN())
bl.sort(reverse = True)
cl = list(IN... | import sys
input_methods=['clipboard','file','key']
using_method=0
input_method=input_methods[using_method]
IN=lambda : map(int, input().split())
mod=1000000007
#+++++
def main():
#a = int(input())
x, y, a, b, c = IN()
al = list(IN())
al.sort(reverse=True)
bl = list(IN())
bl.sort(reverse = True)
cl = list(IN... | [["-", 0, 1, 0, 662, 12, 41, 0, 657, 12, 612], ["+", 0, 1, 0, 662, 12, 41, 0, 657, 12, 612], ["-", 75, 665, 64, 196, 0, 1, 0, 677, 31, 22], ["+", 75, 665, 64, 196, 0, 1, 0, 677, 31, 22]] | 5 | 378 |
X, Y, A, B, C = map(int, input().split())
P = list(map(int, input().split()))
Q = list(map(int, input().split()))
R = list(map(int, input().split()))
P.sort(reverse=True)
Q.sort(reverse=True)
R.sort(reverse=True)
A=P[:X]+Q[:Y]+R
A.sort(reverse=True)
print(A[X+Y]) | X, Y, A, B, C = map(int, input().split())
P = list(map(int, input().split()))
Q = list(map(int, input().split()))
R = list(map(int, input().split()))
P.sort(reverse=True)
Q.sort(reverse=True)
R.sort(reverse=True)
A=P[:X]+Q[:Y]+R
A.sort(reverse=True)
print(sum(A[:X+Y])) | [["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 24], ["+", 0, 652, 3, 4, 0, 206, 206, 663, 0, 102], ["+", 0, 652, 3, 4, 0, 652, 3, 4, 0, 25]] | 5 | 129 |
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> P;
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define REPR(i, n) for (int i = n - 1; i > 0; i--)
#define FOR(i, n, m) for (int i = n; i < (int)(m); i++)
#define PRINT(x) cout << x << endl
#define ALL(v) v.begin(), v.... | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> P;
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define REPR(i, n) for (int i = n - 1; i > 0; i--)
#define FOR(i, n, m) for (int i = n; i < (int)(m); i++)
#define PRINT(x) cout << x << endl
#define ALL(v) v.begin(), v.... | [["-", 0, 14, 8, 9, 0, 14, 49, 53, 49, 22], ["+", 0, 14, 8, 9, 0, 14, 49, 53, 49, 22]] | 1 | 376 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef double db;
typedef string str;
typedef pair<int, int> pi;
typedef pair<ll, ll> pl;
typedef pair<ld, ld> pd;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<ld> vd;
typedef vector<str> vs;
typedef vector<... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef double db;
typedef string str;
typedef pair<int, int> pi;
typedef pair<ll, ll> pl;
typedef pair<ld, ld> pd;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<ld> vd;
typedef vector<str> vs;
typedef vector<... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19]] | 1 | 590 |
X, Y, A, B, C = map(int, input().split())
P = list(map(int, input().split()))
Q = list(map(int, input().split()))
R = list(map(int, input().split()))
P = sorted(P, reverse=True)[:X]
Q = sorted(P, reverse=True)[:Y]
R = sorted(P, reverse=True)[:X+Y]
print(sum(sorted(P+Q+R, reverse=True)[:X+Y]))
| X, Y, A, B, C = map(int, input().split())
P = list(map(int, input().split()))
Q = list(map(int, input().split()))
R = list(map(int, input().split()))
P = sorted(P, reverse=True)[:X]
Q = sorted(Q, reverse=True)[:Y]
R = sorted(R, reverse=True)[:X+Y]
print(sum(sorted(P+Q+R, reverse=True)[:X+Y]))
| [["-", 0, 662, 12, 206, 51, 652, 3, 4, 0, 22], ["+", 0, 662, 12, 206, 51, 652, 3, 4, 0, 22]] | 5 | 141 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace s... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace s... | [["-", 49, 50, 51, 2, 3, 4, 0, 16, 31, 22], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 31, 22], ["-", 49, 50, 51, 2, 3, 4, 0, 16, 12, 22], ["+", 49, 50, 51, 2, 3, 4, 0, 16, 12, 22]] | 1 | 751 |
import sys
import heapq
def solve():
readline = sys.stdin.buffer.readline
mod = 10 ** 9 + 7
x, y, a, b, c = list(map(int, readline().split()))
p = list(map(int, readline().split()))
q = list(map(int, readline().split()))
r = [-1 * i for i in list(map(int, readline().split()))]
p.sort(rever... | import sys
import heapq
def solve():
readline = sys.stdin.buffer.readline
mod = 10 ** 9 + 7
x, y, a, b, c = list(map(int, readline().split()))
p = list(map(int, readline().split()))
q = list(map(int, readline().split()))
r = [-1 * i for i in list(map(int, readline().split()))]
p.sort(rever... | [["-", 0, 52, 8, 196, 0, 1, 0, 652, 63, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 219 |
X, Y, A, B, C = map(int, input().split())
p = sorted(list(map(int, input().split())), reverse=True)[:A]
q = sorted(list(map(int, input().split())), reverse=True)[:B]
r = list(map(int, input().split()))
ans = sum(sorted(p + q + r, reverse=True)[:X + Y])
print(ans) | X, Y, A, B, C = map(int, input().split())
p = sorted(list(map(int, input().split())), reverse=True)[:X]
q = sorted(list(map(int, input().split())), reverse=True)[:Y]
r = list(map(int, input().split()))
ans = sum(sorted(p + q + r, reverse=True)[:X + Y])
print(ans) | [["-", 0, 1, 0, 662, 12, 206, 206, 663, 0, 22], ["+", 0, 1, 0, 662, 12, 206, 206, 663, 0, 22]] | 5 | 122 |
#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265358979323846;
typedef long long ll;
const double EPS = 1e-9;
//#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep(i, n) for (ll i = 0; i < (n); ++i)
// typedef pair<ll, ll> P;
typedef pair<ll, ll> P;
const ll IN... | #include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265358979323846;
typedef long long ll;
const double EPS = 1e-9;
//#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep(i, n) for (ll i = 0; i < (n); ++i)
// typedef pair<ll, ll> P;
typedef pair<ll, ll> P;
const ll INF = 10e17;
#define cmin(... | [["-", 36, 36, 36, 36, 0, 30, 0, 58, 0, 148], ["-", 36, 36, 36, 36, 0, 30, 0, 58, 141, 22]] | 1 | 434 |
X, Y, A, B, C = map(int,input().split())
P = sorted(list(map(int,input().split())), reverse=True)
Q = sorted(list(map(int,input().split())), reverse=True)
R = sorted(list(map(int,input().split())), reverse=True)
P = P[:X]
Q = Q[:Y]
A = P + Q + R
A.sorted(reverse=True)
ans = sum(A[:X+Y])
print(ans) | X, Y, A, B, C = map(int,input().split())
P = sorted(list(map(int,input().split())), reverse=True)
Q = sorted(list(map(int,input().split())), reverse=True)
R = sorted(list(map(int,input().split())), reverse=True)
P = P[:X]
Q = Q[:Y]
A = P + Q + R
A.sort(reverse=True)
ans = sum(A[:X+Y])
print(ans) | [["-", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22], ["+", 0, 656, 0, 1, 0, 652, 63, 319, 319, 22]] | 5 | 139 |
def main():
x, y, a, b, c = map(int, input().split())
al = sorted(list(map(int, input().split())), reverse=True)[:x]
bl = sorted(list(map(int, input().split())), reverse=True)[:y]
cl = sorted(list(map(int, input().split())), reverse=True)
ans = 0
xi, yi = 0, 0
for i in cl:
if al:
... | def main():
x, y, a, b, c = map(int, input().split())
al = sorted(list(map(int, input().split())), reverse=True)[:x]
bl = sorted(list(map(int, input().split())), reverse=True)[:y]
cl = sorted(list(map(int, input().split())), reverse=True)
ans = 0
xi, yi = 0, 0
for i in cl:
if al:
... | [["-", 75, 76, 8, 196, 0, 1, 0, 662, 12, 612], ["+", 75, 76, 8, 196, 0, 1, 0, 662, 12, 612], ["-", 0, 57, 75, 76, 8, 196, 0, 57, 15, 22], ["+", 0, 57, 75, 76, 8, 196, 0, 57, 15, 22]] | 5 | 228 |
#include <bits/stdc++.h>
#define ll long long
using namespace std;
const int N = 2e5 + 5;
ll p[N], q[N], r[N], sum;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
for (int i = 0; i < a; i++) {
cin >> p[i];
}
for (int i = 0; i < ... | #include <bits/stdc++.h>
#define ll long long
using namespace std;
const int N = 2e5 + 5;
ll p[N], q[N], r[N], sum;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
for (int i = 0; i < a; i++) {
cin >> p[i];
}
for (int i = 0; i < ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19]] | 1 | 493 |
#include <bits/stdc++.h>
#define CFS \
cin.tie(nullptr); \
ios::sync_with_stdio(false);
#define CST(x) cout << fixed << setprecision(x);
using namespace std;
const int IINF = 1 << 30;
const ... | #include <bits/stdc++.h>
#define CFS \
cin.tie(nullptr); \
ios::sync_with_stdio(false);
#define CST(x) cout << fixed << setprecision(x);
using namespace std;
const int IINF = 1 << 30;
const ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 300 |
#include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define pb push_back
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define srep(i, s, t) for (int i = s; i < t; ++i)
#define rng(a) a.b... | #include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define pb push_back
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rrep(i, n) for (int i = 1; i <= (n); ++i)
#define drep(i, n) for (int i = (n)-1; i >= 0; --i)
#define srep(i, s, t) for (int i = s; i < t; ++i)
#define rng(a) a.b... | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 24], ["+", 0, 14, 8, 9, 0, 43, 39, 344, 141, 78], ["+", 8, 9, 0, 43, 39, 344, 3, 347, 0, 18], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 25], ["+", 8, 9, 0, 43, 39, 344, 3, 347, 0, 47]] | 1 | 733 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vector<ll>> vvll;
typedef vector<vector<vector<ll>>> vvvll;
typedef vector<bool> vb;
typedef vector<vector<bool>> vvb;
typedef vector<vector<vector<bool>>> vvvb;
typedef pair<ll, ll> pll;
typedef vector<pll> vpll... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vector<ll>> vvll;
typedef vector<vector<vector<ll>>> vvvll;
typedef vector<bool> vb;
typedef vector<vector<bool>> vvb;
typedef vector<vector<vector<bool>>> vvvb;
typedef pair<ll, ll> pll;
typedef vector<pll> vpll... | [["-", 0, 11, 31, 69, 341, 342, 0, 16, 12, 22], ["+", 0, 11, 31, 69, 341, 342, 0, 16, 12, 22]] | 1 | 880 |
def merge(A,B):
C = []
i = 0
j = 0
while i < len(A) and j < len(B):
if A[i]>B[j]:
C.append(A[i])
i += 1
else:
C.append(B[j])
j += 1
if len(A)>len(B):
C.extend(A[i:])
else:
C.extend(B[j:])
return C
X,Y,A,B,C = ... | def merge(A,B):
C = []
i = 0
j = 0
while i < len(A) and j < len(B):
if A[i]>B[j]:
C.append(A[i])
i += 1
else:
C.append(B[j])
j += 1
if len(A)-i>len(B)-j:
C.extend(A[i:])
else:
C.extend(B[j:])
return C
X,Y,A,B,... | [["+", 8, 196, 0, 57, 15, 666, 0, 657, 17, 33], ["+", 8, 196, 0, 57, 15, 666, 0, 657, 12, 22]] | 5 | 249 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int x, y, a, b, c;
scanf("%d %d %d %d %d", &x, &y, &a, &b, &c);
vector<ll> A(a), B(b), C(c);
for (ll &x : A)
scanf("%lld", &x);
for (ll &x : B)
scanf("%lld", &x);
for (ll &x : C)
scanf("%lld", &x);
sort(A.begin(... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int x, y, a, b, c;
scanf("%d %d %d %d %d", &x, &y, &a, &b, &c);
vector<ll> A(a), B(b), C(c);
for (ll &x : A)
scanf("%lld", &x);
for (ll &x : B)
scanf("%lld", &x);
for (ll &x : C)
scanf("%lld", &x);
sort(A.begin(... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 339 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pii pair<ll, ll>
#define _FastIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pii pair<ll, ll>
#define _FastIO \
ios_base::sync_with_stdio(0); \
cin.tie(0); ... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 335 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e5 + 5;
ll apple[3 * N];
bool cmp(ll a, ll b) { return a > b; }
int main() {
int x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
for (int i = 0; i < a; i++) {
cin >> apple[i];
}
sort(apple, apple + a, cmp);
for (int i = x; ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e5 + 5;
ll apple[3 * N];
bool cmp(ll a, ll b) { return a > b; }
int main() {
int x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
for (int i = 0; i < a; i++) {
cin >> apple[i];
}
sort(apple, apple + a, cmp);
for (int i = x; ... | [["+", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22]] | 1 | 222 |
//#include<bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
using namespace std;
#define int long long
#define ll long long
#define str string
#define db double
#define ac() cout << "Yes" << endl... | //#include<bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
using namespace std;
#define int long long
#define ll long long
#define str string
#define db double
#define ac() cout << "Yes" << endl... | [["-", 12, 11, 31, 118, 28, 69, 341, 342, 0, 22], ["+", 12, 11, 31, 118, 28, 69, 341, 342, 0, 22]] | 1 | 684 |
X,Y,A,B,C=map(int,input().split())
p=list(map(int,input().split()))
q=list(map(int,input().split()))
r=list(map(int,input().split()))
p.sort(reverse=True)
q.sort(reverse=True)
r.sort(reverse=True)
tot=sum(p[:X])+sum(q[:Y])
a=0
b=0
f=False
for i in r:
if f==True:
break
elif a==p and b==q:
brea... | X,Y,A,B,C=map(int,input().split())
p=list(map(int,input().split()))
q=list(map(int,input().split()))
r=list(map(int,input().split()))
p.sort(reverse=True)
q.sort(reverse=True)
r.sort(reverse=True)
tot=sum(p[:X])+sum(q[:Y])
a=0
b=0
f=False
for i in r:
if f==True:
break
elif a==X and b==Y:
brea... | [["-", 0, 57, 75, 665, 15, 679, 31, 666, 0, 22], ["+", 0, 57, 75, 665, 15, 679, 31, 666, 0, 22], ["-", 0, 57, 75, 665, 15, 679, 12, 666, 0, 22], ["+", 0, 57, 75, 665, 15, 679, 12, 666, 0, 22], ["-", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22], ["+", 8, 196, 0, 57, 75, 665, 15, 666, 0, 22]] | 5 | 359 |
X, Y, A, B, C = map(int, input().split())
p = sorted(map(int, input().split()), reverse=True)[: X]
q = sorted(map(int, input().split()), reverse=True)[: Y]
r = list(map(int, input().split()))
all = p + q + r
all.sort(reverse=True)
print((all[:X + Y])) | X, Y, A, B, C = map(int, input().split())
p = sorted(map(int, input().split()), reverse=True)[: X]
q = sorted(map(int, input().split()), reverse=True)[: Y]
r = list(map(int, input().split()))
all = p + q + r
all.sort(reverse=True)
print(sum(all[:X + Y])) | [["+", 0, 1, 0, 652, 3, 4, 0, 652, 63, 22]] | 5 | 116 |
#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
using P = pair<i64, i64>;
#define overload3(_1, _2, _3, name, ...) name
#define rep1(i, n) for (i64 i = 0LL; i < (n); ++i)
#define rep2(i, a, b) for (i64 i = (a); i < (b); ++i)
#define rep(...) overload3(__VA_ARGS__, rep2, rep1)(__VA_ARGS__)
#define... | #include <bits/stdc++.h>
using namespace std;
using i64 = long long;
using P = pair<i64, i64>;
#define overload3(_1, _2, _3, name, ...) name
#define rep1(i, n) for (i64 i = 0LL; i < (n); ++i)
#define rep2(i, a, b) for (i64 i = (a); i < (b); ++i)
#define rep(...) overload3(__VA_ARGS__, rep2, rep1)(__VA_ARGS__)
#define... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 540 |
x, y, a, b, c = map(int, input().split())
p_list = sorted(list(map(int, input().split())), reverse=True)
q_list = sorted(list(map(int, input().split())), reverse=True)
r_list = sorted(list(map(int, input().split())), reverse=True)
p_count = 0
q_count = 0
r_count = 0
total = 0
for i in range(0, x + y):
score_max = 0
... | x, y, a, b, c = map(int, input().split())
p_list = sorted(list(map(int, input().split())), reverse=True)
q_list = sorted(list(map(int, input().split())), reverse=True)
r_list = sorted(list(map(int, input().split())), reverse=True)
p_count = 0
q_count = 0
r_count = 0
total = 0
for i in range(0, x + y):
score_max = 0
... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22]] | 5 | 218 |
#include <bits/stdc++.h>
using namespace std;
#define INF (1 << 30)
#define EPS 1e-10
#define MOD 1000000007
using ll = long long;
ll x, y, a, b, c;
ll p[100000], q[100000], r[100000];
int main() {
priority_queue<ll> que;
cin >> x >> y >> a >> b >> c;
for (int i = 0; i < a; ++i)
cin >> p[i];
for (int i... | #include <bits/stdc++.h>
using namespace std;
#define INF (1 << 30)
#define EPS 1e-10
#define MOD 1000000007
using ll = long long;
ll x, y, a, b, c;
ll p[100000], q[100000], r[100000];
int main() {
priority_queue<ll> que;
cin >> x >> y >> a >> b >> c;
for (int i = 0; i < a; ++i)
cin >> p[i];
for (int i... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 267 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (int)(b); i++)
#define rrep(i, a, b) for (int i = (a); i >= (int)(b); i--)
#define all(x) (x).begin(), (x).end()
using i32 = int32_t;
using i64 = int64_t;
using f32 = float;
using f64 = double;
using P = pair<int, int>;
template ... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (int)(b); i++)
#define rrep(i, a, b) for (int i = (a); i >= (int)(b); i--)
#define all(x) (x).begin(), (x).end()
using i32 = int32_t;
using i64 = int64_t;
using f32 = float;
using f64 = double;
using P = pair<int, int>;
template ... | [["-", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78]] | 1 | 498 |
#include <algorithm>
#include <iostream>
#include <numeric>
#include <vector>
using namespace std;
typedef long long ll;
int X, Y, A, B, C;
vector<int> R, G, W;
vector<int> temp1, temp2;
void input_init(void) {
cin >> X >> Y >> A >> B >> C;
R.resize(A);
for (int i = 0; i < A; ++i)
cin >> R[i];
G.resize(B... | #include <algorithm>
#include <iostream>
#include <numeric>
#include <vector>
using namespace std;
typedef long long ll;
int X, Y, A, B, C;
vector<int> R, G, W;
vector<int> temp1, temp2;
void input_init(void) {
cin >> X >> Y >> A >> B >> C;
R.resize(A);
for (int i = 0; i < A; ++i)
cin >> R[i];
G.resize(B... | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22]] | 1 | 328 |
#include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define fi first
#define se second
#define all(vr) vr.begin(), vr.end()
#define pi pair<int, int>
typedef long long ll;
namespace myrand {
mt19937 mt(chrono::system_clock::now().time_since_epoch() /
chrono::microseconds... | #include <bits/stdc++.h>
using namespace std;
#define mp make_pair
#define pb push_back
#define fi first
#define se second
#define all(vr) vr.begin(), vr.end()
#define pi pair<int, int>
typedef long long ll;
namespace myrand {
mt19937 mt(chrono::system_clock::now().time_since_epoch() /
chrono::microseconds... | [["-", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13], ["+", 36, 36, 0, 30, 0, 43, 49, 80, 81, 13], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22]] | 1 | 579 |
x,y,a,b,c = map(int,input().split())
n = a+b+c
ar = list(map(int,input().split()))
br = list(map(int,input().split()))
cr = list(map(int,input().split()))
ls = []
for i in ar:
ls.append([i,1])
for i in br:
ls.append([i,2])
for i in cr:
ls.append([i,3])
ls.sort(reverse = True)
nx = 0
ny = 0
cnt = 0
res = 0
for ite... | x,y,a,b,c = map(int,input().split())
n = a+b+c
ar = list(map(int,input().split()))
br = list(map(int,input().split()))
cr = list(map(int,input().split()))
ls = []
for i in ar:
ls.append([i,1])
for i in br:
ls.append([i,2])
for i in cr:
ls.append([i,3])
ls.sort(reverse = True)
nx = 0
ny = 0
cnt = 0
res = 0
for ite... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 209 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define REP(i, d, n) for (int i = (d); i < (n); ++i)
#define all(v) v.begin(), v.end()
using ll = long long;
using P = pair<int, int>;
int main() {
int x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
vector<ll> p(a);
re... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define REP(i, d, n) for (int i = (d); i < (n); ++i)
#define all(v) v.begin(), v.end()
using ll = long long;
using P = pair<int, int>;
int main() {
int x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
vector<ll> p(a);
re... | [["-", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78], ["+", 0, 43, 49, 53, 54, 55, 0, 56, 39, 78]] | 1 | 263 |
x,y,a,b,c=map(int,input().split())
p=list(map(int,input().split()))
q=list(map(int,input().split()))
r=list(map(int,input().split()))
p.sort(reverse=True)
q.sort(reverse=True)
r.sort(reverse=True)
tmp=[]
for i in range(a):
tmp.append(p[i])
for j in range(b):
tmp.append(q[j])
for k in range(len(r)):
tmp.a... | x,y,a,b,c=map(int,input().split())
p=list(map(int,input().split()))
q=list(map(int,input().split()))
r=list(map(int,input().split()))
p.sort(reverse=True)
q.sort(reverse=True)
r.sort(reverse=True)
tmp=[]
for i in range(x):
tmp.append(p[i])
for j in range(y):
tmp.append(q[j])
for k in range(len(r)):
tmp.a... | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22]] | 5 | 186 |
#include <bits/stdc++.h>
#define rep(i, a, b) for (int i = (a); i <= (b); i++)
#define rng(a) a.begin(), a.end()
#define ina(n, a) \
cin >> n; \
for (int i = 1; i <= n; i++) ... | #include <bits/stdc++.h>
#define rep(i, a, b) for (int i = (a); i <= (b); i++)
#define rng(a) a.begin(), a.end()
#define ina(n, a) \
cin >> n; \
for (int i = 1; i <= n; i++) ... | [["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22]] | 1 | 393 |
x, y, a, b, c = map(int, input().split())
red = [int(x) for x in input().split()]
green = [int(x) for x in input().split()]
red.sort(reverse=True)
green.sort(reverse=True)
candidates = [int(x) for x in input().split()] + red[x:] + green[:y]
candidates.sort(reverse=True)
print(sum(candidates[:x+y])) | x, y, a, b, c = map(int, input().split())
red = [int(x) for x in input().split()]
green = [int(x) for x in input().split()]
red.sort(reverse=True)
green.sort(reverse=True)
candidates = [int(x) for x in input().split()] + red[:x] + green[:y]
candidates.sort(reverse=True)
print(sum(candidates[:x+y])) | [["-", 12, 657, 31, 657, 12, 206, 206, 663, 0, 22], ["+", 12, 657, 31, 657, 12, 206, 206, 663, 0, 22]] | 5 | 125 |
#include <bits/stdc++.h>
#define ff first
#define ss second
#define ll long long
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
vector<ll> p(a), q(b), r(c);
for (... | #include <bits/stdc++.h>
#define ff first
#define ss second
#define ll long long
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
vector<ll> p(a), q(b), r(c);
for (... | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 305 |
x,y,a,b,c=map(int,input().split())
red=sorted(list(map(int,input().split())),reverse=True)
green=sorted(list(map(int,input().split())),reverse=True)
white=sorted(list(map(int,input().split())),reverse=True)
eat_list=sorted(red[:x]+green[:y])
for i in range(min(len(eat_list),len(white))):
if eat_list[i]<white[i]:
... | x,y,a,b,c=map(int,input().split())
red=sorted(list(map(int,input().split())),reverse=True)
green=sorted(list(map(int,input().split())),reverse=True)
white=sorted(list(map(int,input().split())),reverse=True)
eat_list=sorted(red[:x]+green[:y])
for i in range(min(len(eat_list),len(white))):
if eat_list[i]<white[i]:
... | [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 163 |
#include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <chrono>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include ... | [["-", 15, 16, 12, 23, 0, 16, 31, 16, 17, 47], ["+", 15, 16, 12, 23, 0, 16, 31, 16, 17, 20], ["-", 15, 16, 12, 23, 0, 16, 12, 16, 17, 47], ["+", 15, 16, 12, 23, 0, 16, 12, 16, 17, 20]] | 1 | 582 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = (int)(n)-1; i >= 0; i--)
#define each(a, x) for (auto a : (x))
#define all(a) (a).begin(), (a).end()
#define chmin(a, b) ((a) = min((a), (b)))
#define chmax(a, b) ((a) = max((a), (b)))
#define in_range(x, l, r)... | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rrep(i, n) for (int i = (int)(n)-1; i >= 0; i--)
#define each(a, x) for (auto a : (x))
#define all(a) (a).begin(), (a).end()
#define chmin(a, b) ((a) = min((a), (b)))
#define chmax(a, b) ((a) = max((a), (b)))
#define in_range(x, l, r)... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 472 |
#include <bits/stdc++.h>
//#include<tr1/unordered_map>
#pragma GCC optimize("Ofast")
#define ll long long
#define pll pair<long long, long long>
#define pii pair<int, int>
#define mp make_pair
#define pb push_back
#define F first
#define S second
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define Forn(i, n) fo... | #include <bits/stdc++.h>
//#include<tr1/unordered_map>
#pragma GCC optimize("Ofast")
#define ll long long
#define pll pair<long long, long long>
#define pii pair<int, int>
#define mp make_pair
#define pb push_back
#define F first
#define S second
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define Forn(i, n) fo... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22]] | 1 | 285 |
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
ll red[100001];
ll gre[100001];
ll whi[100001];
int main() {
vector<ll> vec;
ll x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
ll i;
for (i = 0; i < a; i++)
scanf("%lld"... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
ll red[100001];
ll gre[100001];
ll whi[100001];
int main() {
vector<ll> vec;
ll x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
ll i;
for (i = 0; i < a; i++)
scanf("%lld"... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 326 |
import sys,math,copy,queue,itertools
from math import gcd
sys.setrecursionlimit(10**7)
LI = lambda : [int(x) for x in sys.stdin.readline().split()]
_LI = lambda : [int(x)-1 for x in sys.stdin.readline().split()]
NI = lambda : int(sys.stdin.readline())
INF = 10**18
MOD = 10**9 + 7
DD = ((1,0),(0,1),(-1,0),(0,-1))
X,Y,A,... | import sys,math,copy,queue,itertools
from math import gcd
sys.setrecursionlimit(10**7)
LI = lambda : [int(x) for x in sys.stdin.readline().split()]
_LI = lambda : [int(x)-1 for x in sys.stdin.readline().split()]
NI = lambda : int(sys.stdin.readline())
INF = 10**18
MOD = 10**9 + 7
DD = ((1,0),(0,1),(-1,0),(0,-1))
X,Y,A,... | [["-", 0, 1, 0, 662, 12, 657, 31, 634, 0, 612], ["+", 0, 1, 0, 662, 12, 657, 31, 634, 0, 22]] | 5 | 330 |
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(x) (x).begin(), (x).end()
#define endl "\n"
using ll = long long;
using P = pair<int, int>;
using mp = map<string, int>;
const int MOD = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
... | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; ++i)
#define all(x) (x).begin(), (x).end()
#define endl "\n"
using ll = long long;
using P = pair<int, int>;
using mp = map<string, int>;
const int MOD = 1e9 + 7;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 72], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 320 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll modulo = 1000000007ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
set<ll> s;
vector<ll> vec1(a), vec2(b), vec3(c);
for (ll i = 0; i < a; ++i) {
... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll modulo = 1000000007ll;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
multiset<ll> s;
vector<ll> vec1(a), vec2(b), vec3(c);
for (ll i = 0; i < a; ++i) {... | [["-", 0, 14, 8, 9, 0, 43, 39, 344, 141, 78], ["+", 0, 14, 8, 9, 0, 43, 39, 344, 141, 78]] | 1 | 382 |
X, Y, A, B, C = map(int, input().split())
*P, = map(int, input().split())
*Q, = map(int, input().split())
*R, = map(int, input().split())
P, Q = sorted(P, reverse=True), sorted(Q, reverse=True)
P, Q = P[:A], Q[:B]
ans = sum(sorted(P + Q + R, reverse=True)[:A + B])
print(ans) | X, Y, A, B, C = map(int, input().split())
*P, = map(int, input().split())
*Q, = map(int, input().split())
*R, = map(int, input().split())
P, Q = sorted(P, reverse=True), sorted(Q, reverse=True)
P, Q = P[:X], Q[:Y]
ans = sum(sorted(P + Q + R, reverse=True)[:X + Y])
print(ans) | [["-", 0, 662, 12, 432, 0, 206, 206, 663, 0, 22], ["+", 0, 662, 12, 432, 0, 206, 206, 663, 0, 22], ["-", 3, 4, 0, 206, 206, 663, 0, 657, 31, 22], ["+", 3, 4, 0, 206, 206, 663, 0, 657, 31, 22], ["-", 3, 4, 0, 206, 206, 663, 0, 657, 12, 22], ["+", 3, 4, 0, 206, 206, 663, 0, 657, 12, 22]] | 5 | 133 |
#include <bits/stdc++.h>
using namespace std;
#define MOD (long long int)(1e9 + 7)
#define ll long long int
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define reps(i, n) for (int i = 1; i <= (int)(n); i++)
#define REP(i, n) for (int i = n - 1; i >= 0; i--)
#define REPS(i, n) for (int i = n; i > 0; i--)
#defin... | #include <bits/stdc++.h>
using namespace std;
#define MOD (long long int)(1e9 + 7)
#define ll long long int
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define reps(i, n) for (int i = 1; i <= (int)(n); i++)
#define REP(i, n) for (int i = n - 1; i >= 0; i--)
#define REPS(i, n) for (int i = n; i > 0; i--)
#defin... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22]] | 1 | 573 |
#include <algorithm>
#include <climits>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
priority_queue<int> A, B, C;
vector<int> AA, BB, CC, DD;
int main() {
int x, y, a, b, c;
long long ans = 0;
cin >> x >> y >> a >> b >> c;
for (int i = 0; i < a; ++i) {
int t;
cin >> t;
... | #include <algorithm>
#include <climits>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
priority_queue<int> A, B, C;
vector<int> AA, BB, CC, DD;
int main() {
int x, y, a, b, c;
long long ans = 0;
cin >> x >> y >> a >> b >> c;
for (int i = 0; i < a; ++i) {
int t;
cin >> t;
... | [["-", 51, 16, 31, 16, 12, 2, 63, 118, 28, 22], ["+", 51, 16, 31, 16, 12, 2, 63, 118, 28, 22], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["-", 0, 57, 64, 1, 0, 11, 12, 69, 28, 22], ["+", 0, 57, 64, 1, 0, 11, 12, 69, 28, 22], ["-", 75, 76, 0, 1, 0, 11, 12, 69, 28, 22],... | 1 | 354 |
/*
このコード、と~おれ!
Be accepted!
∧_∧
(。・ω・。)つ━☆・*。
⊂ ノ ・゜+.
しーJ °。+ *´¨)
.· ´¸.·*´¨) ¸.·*¨)
(¸.·´ (¸.·'* ☆
*/
#include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <ios... | /*
このコード、と~おれ!
Be accepted!
∧_∧
(。・ω・。)つ━☆・*。
⊂ ノ ・゜+.
しーJ °。+ *´¨)
.· ´¸.·*´¨) ¸.·*¨)
(¸.·´ (¸.·'* ☆
*/
#include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iomanip>
#include <ios... | [["-", 0, 2, 3, 4, 0, 2, 3, 4, 0, 22], ["+", 0, 2, 3, 4, 0, 2, 3, 4, 0, 22]] | 1 | 733 |
X, Y, A, B, C = [int(s) for s in input().split()]
p_list = [int(s) for s in input().split()]
q_list = [int(s) for s in input().split()]
r_list = [int(s) for s in input().split()]
p_list = list(reversed(sorted(p_list)))
p_list = p_list[:X]
# print(X, p_list)
q_list = list(reversed(sorted(q_list)))
q_list = q_list[:Y]
... | X, Y, A, B, C = [int(s) for s in input().split()]
p_list = [int(s) for s in input().split()]
q_list = [int(s) for s in input().split()]
r_list = [int(s) for s in input().split()]
p_list = list(reversed(sorted(p_list)))
p_list = p_list[:X]
# print(X, p_list)
q_list = list(reversed(sorted(q_list)))
q_list = q_list[:Y]
... | [["-", 0, 57, 15, 679, 31, 666, 0, 657, 12, 22], ["+", 0, 57, 15, 679, 31, 666, 0, 657, 12, 22], ["-", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22], ["+", 0, 57, 15, 679, 12, 666, 0, 657, 12, 22], ["-", 0, 57, 75, 665, 15, 666, 0, 657, 12, 22], ["+", 0, 57, 75, 665, 15, 666, 0, 657, 12, 22]] | 5 | 340 |
#include <algorithm>
#include <complex>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <string>
#include <time.h>
#include <vector>
using namespace std;
typedef long long int llint;
typedef pair<int, int> pint;
t... | #include <algorithm>
#include <complex>
#include <functional>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdio.h>
#include <string.h>
#include <string>
#include <time.h>
#include <vector>
using namespace std;
typedef long long int llint;
typedef pair<int, int> pint;
t... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 1,484 |
#include "bits/stdc++.h"
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
vector<long> Sum(vector<long> array) {
long N = array.size() + 1;
vector<long> result(N);
result[0] = 0;
for (int i = 1; i < N; i++) {
result[i] = result[i - 1] + array[i - 1];
}
return result;
}
int main() {
... | #include "bits/stdc++.h"
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
vector<long> Sum(vector<long> array) {
long N = array.size() + 1;
vector<long> result(N);
result[0] = 0;
for (int i = 1; i < N; i++) {
result[i] = result[i - 1] + array[i - 1];
}
return result;
}
int main() {
... | [["-", 0, 69, 341, 342, 0, 16, 31, 16, 31, 22], ["+", 0, 69, 341, 342, 0, 16, 31, 16, 31, 22]] | 1 | 674 |
#include <algorithm>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
#define REP(i, p, n) for (ll i = p; i < ll(n... | #include <algorithm>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <tuple>
#include <vector>
using namespace std;
#define REP(i, p, n) for (ll i = p; i < ll(n... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["-", 0, 43, 49, 50, 51, 41, 15, 16, 12, 22], ["+", 0, 43, 49, 50, 51, 41, 15, 16, 12, 22]] | 1 | 434 |
X, Y, A, B, C = map(int, input().split())
AA = list(map(int, input().split()))
BB = list(map(int, input().split()))
CC = list(map(int, input().split()))
a = sorted(AA, reverse=True)
b = sorted(BB, reverse=True)
c = sorted(CC, reverse=True)
if X < A:
del a[X:]
elif Y < B:
del b[Y:]
NEW = a + b + c
NEWnew = sorted(... | X, Y, A, B, C = map(int, input().split())
AA = list(map(int, input().split()))
BB = list(map(int, input().split()))
CC = list(map(int, input().split()))
a = sorted(AA, reverse=True)
b = sorted(BB, reverse=True)
c = sorted(CC, reverse=True)
if X < A:
del a[X:]
if Y < B:
del b[Y:]
NEW = a + b + c
NEWnew = sorted(N... | [["-", 36, 36, 0, 656, 0, 57, 75, 665, 0, 683], ["+", 36, 36, 36, 36, 0, 656, 0, 57, 0, 121]] | 5 | 160 |
#include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define DIV 1000000007
using namespace std;
using ll = long long;
int main() {
int X, Y, A, B, C;
cin >> X >> Y >> A >> B >> C;
vector<ll> red(A), green(B), nor... | #include <algorithm>
#include <bits/stdc++.h>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
#define DIV 1000000007
using namespace std;
using ll = long long;
int main() {
int X, Y, A, B, C;
cin >> X >> Y >> A >> B >> C;
vector<ll> red(A), green(B), nor... | [["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 355 |
// Copyright 2020 yaito3014
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int X, Y, A, B, C;
cin >> X >> Y >> A >> B >> C;
deque<int64_t> p(A), q(B), r(C);
for (auto &e : p)
cin >> e;
for (auto &e : q)
cin >> e;
for (auto &e : r)
c... | // Copyright 2020 yaito3014
#include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int X, Y, A, B, C;
cin >> X >> Y >> A >> B >> C;
deque<int64_t> p(A), q(B), r(C);
for (auto &e : p)
cin >> e;
for (auto &e : q)
cin >> e;
for (auto &e : r)
c... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 22], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 22], ["-", 0, 41, 75, 16, 31, 2, 3, 4, 0, 22], ["+", 0, 41, 75, 16, 31, 2, 3, 4, 0, 22]] | 1 | 320 |
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <random>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string>
#include ... | #include <algorithm>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <random>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string>
#include ... | [["-", 0, 14, 8, 9, 0, 7, 26, 27, 17, 68], ["+", 0, 14, 8, 9, 0, 7, 26, 27, 17, 29]] | 1 | 1,617 |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
#define rep(i, x) for (int i = 0; i < x; i++)
#define rrep(i, x) for (int i = 1; i <= x; i++)
#define srep(i, s, t) for (int i = s; i < t; ++i)
using ll = long long;
using namespace std;
const int... | #include <algorithm>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
#define rep(i, x) for (int i = 0; i < x; i++)
#define rrep(i, x) for (int i = 1; i <= x; i++)
#define srep(i, s, t) for (int i = s; i < t; ++i)
using ll = long long;
using namespace std;
const int... | [["-", 0, 14, 8, 9, 0, 43, 39, 344, 141, 78], ["+", 0, 14, 8, 9, 0, 43, 39, 344, 141, 78]] | 1 | 331 |
#include <bits/stdc++.h>
using namespace std;
using i64 = long long;
#define endl "\n"
int main() {
i64 X, Y, A, B, C;
cin >> X >> Y >> A >> B >> C;
vector<pair<i64, i64>> ap(A + B + C);
for (i64 i = 0; i < A; i++) {
cin >> ap[i].first;
ap[i].second = 0;
}
for (i64 i = A; i < A + B; i++) {
cin ... | #include <bits/stdc++.h>
using namespace std;
using i64 = long long;
#define endl "\n"
int main() {
i64 X, Y, A, B, C;
cin >> X >> Y >> A >> B >> C;
vector<pair<i64, i64>> ap(A + B + C);
for (i64 i = 0; i < A; i++) {
cin >> ap[i].first;
ap[i].second = 0;
}
for (i64 i = A; i < A + B; i++) {
cin ... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18]] | 1 | 351 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int cmpnum(const void *n1, const void *n2) {
if (*(long *)n1 > *(long *)n2) {
return 1;
} else if (*(long *)n1 < *(long *)n2) {
return -1;
} else {
return 0;
}
}
int main() {
long long X, Y, a, b, c, maxa;
long long p[100000], q[100000... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int cmpnum(const void *n1, const void *n2) {
if (*(long *)n1 > *(long *)n2) {
return -1;
} else if (*(long *)n1 < *(long *)n2) {
return 1;
} else {
return 0;
}
}
int main() {
long long X, Y, a, b, c, maxa;
long long p[100000], q[100000... | [["-", 8, 9, 0, 57, 64, 9, 0, 37, 0, 13], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 13], ["-", 75, 76, 0, 57, 64, 9, 0, 37, 0, 13], ["+", 75, 76, 0, 57, 64, 9, 0, 37, 0, 13]] | 0 | 359 |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define ALL(x) (x).begin(), (x).end()
#define READ(x) (cin >> (x))
#define WRITE_N(x) (cout << (x) << endl)
#define WRITE(x) (cout << (x))
int main() {
// get values from input
... | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define ALL(x) (x).begin(), (x).end()
#define READ(x) (cin >> (x))
#define WRITE_N(x) (cout << (x) << endl)
#define WRITE(x) (cout << (x))
int main() {
// get values from input
... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 17, 33], ["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 328 |
/*
Author - Param Kothari
Ah shit, here we go again
*/
/* Ordered Set Implementaton:
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
typedef tree<
int,
null_type,
less<int>,
rb_tree_tag,
tree_order_statistics_node_update>
ordered_... | /*
Author - Param Kothari
Ah shit, here we go again
*/
/* Ordered Set Implementaton:
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
typedef tree<
int,
null_type,
less<int>,
rb_tree_tag,
tree_order_statistics_node_update>
ordered_... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["-", 51, 16, 12, 16, 12, 23, 0, 16, 31, 22], ["+", 51, 16, 12, 16, 12, 23, 0, 16, 31, 22], ["-", 51, 16, 12, 16, 12, 23, 0, 16, 12, 22], ["+", 51, 16, 12, 16, 12, 23, 0, 16, 12, 22]] | 1 | 391 |
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <vector>
#define maxn 100005
#define INF 1000000
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
ll x, y, a, b, c, arr[maxn], brr[maxn], c... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <stack>
#include <vector>
#define maxn 100005
#define INF 1000000
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
ll x, y, a, b, c, arr[maxn], brr[maxn], c... | [["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 599 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int X, Y, A, B, C;
cin >> X >> Y >> A >> B >> C;
vector<ll> p(A);
vector<ll> q(B);
vector<ll> r(C);
for (int i = 0; i < A; i++) {
cin >> p[i];
}
for (int i = 0; i < B... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int X, Y, A, B, C;
cin >> X >> Y >> A >> B >> C;
vector<ll> p(A);
vector<ll> q(B);
vector<ll> r(C);
for (int i = 0; i < A; i++) {
cin >> p[i];
}
for (int i = 0; i < B... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106]] | 1 | 502 |
#include <algorithm>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <vector>
using namespace std;
typedef long long ll;
const ll maxn = 1e6 + 10;
const ll inf = 0x3f3f3f3f3f3f3f3f;
void io() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
... | #include <algorithm>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <vector>
using namespace std;
typedef long long ll;
const ll maxn = 1e6 + 10;
const ll inf = 0x3f3f3f3f3f3f3f3f;
void io() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22]] | 1 | 363 |
#include <algorithm>
#include <iostream>
using namespace std;
bool cmp(int a, int b) { return a > b; }
int r[100000], g[100000], c1[100000];
int s[300000];
int main() {
int x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
long long ans = 0;
for (int i = 1; i <= a; i++) {
cin >> r[i];
}
for (int i = 1; i <= ... | #include <algorithm>
#include <iostream>
using namespace std;
bool cmp(int a, int b) { return a > b; }
int r[100000], g[100000], c1[100000];
int s[300000];
int main() {
int x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
long long ans = 0;
for (int i = 1; i <= a; i++) {
cin >> r[i];
}
for (int i = 1; i <= ... | [["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 344 |
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long ll;
const ll MAXN = 1e6 + 10;
ll aval[MAXN], bval[MAXN], cval[MAXN];
bool cmp(ll a, ll b) { return a > b; }
ll cnt;
ll val[MAXN];
int main() {
ll x, y, a, b, c;
scanf("%lld %lld %lld %lld %lld", &x, ... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
typedef long long ll;
const ll MAXN = 1e6 + 10;
ll aval[MAXN], bval[MAXN], cval[MAXN];
bool cmp(ll a, ll b) { return a > b; }
ll cnt;
ll val[MAXN];
int main() {
ll x, y, a, b, c;
scanf("%lld %lld %lld %lld %lld", &x, ... | [["-", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22], ["+", 0, 2, 3, 4, 0, 16, 31, 16, 12, 22]] | 1 | 367 |
X,Y,A,B,C = map(int,input().split())
p = list(map(int,input().split()))
q = list(map(int,input().split()))
r = list(map(int,input().split()))
p.sort(reverse=True)
q.sort(reverse=True)
r.sort(reverse=True)
Z = X+Y
P = p[:X]
Q = q[:Y]
R = r[:Z]
ans = 0
if X <= Y:
S = P + R
S.sort(reverse=True)
a = S[:X]
b = S[X:]... | X,Y,A,B,C = map(int,input().split())
p = list(map(int,input().split()))
q = list(map(int,input().split()))
r = list(map(int,input().split()))
p.sort(reverse=True)
q.sort(reverse=True)
r.sort(reverse=True)
Z = X+Y
P = p[:X]
Q = q[:Y]
R = r[:Z]
ans = 0
if X <= Y:
S = P + R
S.sort(reverse=True)
a = S[:X]
b = S[X:]... | [["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 21], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 261 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
const int N = 1e5 + 10;
ll A[N], B[N], C[N];
int main() {
int x, y, a, b, c;
scanf("%d %d %d %d %d", &x, &y, &a, &b, &c);
for (int i = 1; i <= a; i++)
scanf("%lld", &A[i]);
for (int i = 1; i <= b; i++)
scanf("%lld", &B[i]);
for (int i ... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
const int N = 1e5 + 10;
ll A[N], B[N], C[N];
int main() {
int x, y, a, b, c;
scanf("%d %d %d %d %d", &x, &y, &a, &b, &c);
for (int i = 1; i <= a; i++)
scanf("%lld", &A[i]);
for (int i = 1; i <= b; i++)
scanf("%lld", &B[i]);
for (int i ... | [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 365 |
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define FOR(i, x, n) for (ll i = x; i < n; i++)
#define pb push_back
#define pf push_front
#define ll long long
#define hii cout << "hii" << endl
#define pii pair<int... | #include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define FOR(i, x, n) for (ll i = x; i < n; i++)
#define pb push_back
#define pf push_front
#define ll long long
#define hii cout << "hii" << endl
#define pii pair<int... | [["-", 0, 43, 49, 50, 51, 4, 0, 16, 31, 22], ["+", 0, 43, 49, 50, 51, 4, 0, 16, 31, 22]] | 1 | 1,090 |
import math
red,green,x,y,z = map(int,input().split())
red_data = list(map(int,input().split()))
green_data = list(map(int,input().split()))
blank_data = list(map(int,input().split()))
red_data.sort(reverse=True)
green_data.sort(reverse=True)
blank_data.sort(reverse=True)
# check if colourless apples are better
... | import math
red,green,x,y,z = map(int,input().split())
red_data = list(map(int,input().split()))
green_data = list(map(int,input().split()))
blank_data = list(map(int,input().split()))
red_data.sort(reverse=True)
green_data.sort(reverse=True)
blank_data.sort(reverse=True)
# check if colourless apples are better
... | [["-", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612], ["+", 0, 7, 8, 196, 0, 57, 15, 666, 0, 612]] | 5 | 213 |
/*================= *\
| ID : aman__guta__ |
| LANG: C++ |
\*==================*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define pb push_back
#define mk make_pair
#define fs first
#define sc second
#define mod 1000000007
#define sp << " " <<
#define JOKER... | /*================= *\
| ID : aman__guta__ |
| LANG: C++ |
\*==================*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define pb push_back
#define mk make_pair
#define fs first
#define sc second
#define mod 1000000007
#define sp << " " <<
#define JOKER... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 1 | 786 |
#!usr/bin/env python3
import sys
import math
import string
import collections
import fractions
import random
from operator import itemgetter
import itertools
from collections import deque
import copy
import heapq
import bisect
MOD = 10 ** 9 + 7
INF = 10 ** 18
input = lambda: sys.stdin.readline().strip()
sys.setrecurs... | #!usr/bin/env python3
import sys
import math
import string
import collections
import fractions
import random
from operator import itemgetter
import itertools
from collections import deque
import copy
import heapq
import bisect
MOD = 10 ** 9 + 7
INF = 10 ** 18
input = lambda: sys.stdin.readline().strip()
sys.setrecurs... | [["-", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22], ["+", 36, 36, 0, 656, 0, 1, 0, 662, 31, 22]] | 5 | 448 |
import heapq as hp
x,y,a,b,c = map(int, input().split())
p = list(map(int, input().split()))
q = list(map(int, input().split()))
r = list(map(int, input().split()))
lp = hp.nlargest(x, p)
lq = hp.nlargest(y, q)
pq = lp + lq
lpq = hp.nlargest(x+y, pq)
lr = hp.nlargest(c, r)
d = min(len(lr),len(lpq))
for i in range(1,d)... | import heapq as hp
x,y,a,b,c = map(int, input().split())
p = list(map(int, input().split()))
q = list(map(int, input().split()))
r = list(map(int, input().split()))
lp = hp.nlargest(x, p)
lq = hp.nlargest(y, q)
pq = lp + lq
lpq = hp.nlargest(x+y, pq)
lr = hp.nlargest(c, r)
d = min(len(lr),len(lpq))
for i in range(1,d+... | [["+", 0, 7, 12, 652, 3, 4, 0, 657, 17, 72], ["+", 0, 7, 12, 652, 3, 4, 0, 657, 12, 612]] | 5 | 209 |
#include <bits/stdc++.h>
using namespace std;
long long p[100005], q[100005], r[100005];
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long x, y, a, b, c, c1, br = 0;
cin >> x >> y >> a >> b >> c;
c1 = c;
for (long long i = 0; i < a; ++i)
cin >> p[i];
for (long long i ... | #include <bits/stdc++.h>
using namespace std;
long long p[100005], q[100005], r[100005];
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
long long x, y, a, b, c, c1, br = 0;
cin >> x >> y >> a >> b >> c;
c1 = c;
for (long long i = 0; i < a; ++i)
cin >> p[i];
for (long long i ... | [["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 35], ["+", 64, 9, 0, 57, 75, 76, 0, 93, 0, 35]] | 1 | 425 |
#include <bits/stdc++.h>
using namespace std;
/* typedef */
typedef long long ll;
/* constant */
const int INF = 1 << 30;
const ll LINF = 1LL << 50;
const int NIL = -1;
const int MAX = 10000;
const int mod = 1000000007;
const double pi = 3.141592653589;
/* global variables */
/* function */
/* main */
int main() {
in... | #include <bits/stdc++.h>
using namespace std;
/* typedef */
typedef long long ll;
/* constant */
const int INF = 1 << 30;
const ll LINF = 1LL << 50;
const int NIL = -1;
const int MAX = 10000;
const int mod = 1000000007;
const double pi = 3.141592653589;
/* global variables */
/* function */
/* main */
int main() {
in... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22]] | 1 | 466 |
x,y,A,B,C = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
c = list(map(int,input().split()))
a = sorted(a)[::-1]
b = sorted(b)[::-1]
c = sorted(c)[::-1]
a = a[:x]
b = b[:y]
ans = a+b
ans = sorted(ans)
# ans = ans[::-1]
index = 0
# print(ans)
# print(c)
for i in rang... | x,y,A,B,C = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
c = list(map(int,input().split()))
a = sorted(a)[::-1]
b = sorted(b)[::-1]
c = sorted(c)[::-1]
a = a[:x]
b = b[:y]
ans = a+b
ans = sorted(ans)
# ans = ans[::-1]
index = 0
# print(ans)
# print(c)
for i in rang... | [["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 25], ["-", 36, 36, 0, 656, 0, 1, 0, 652, 63, 22], ["-", 0, 656, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 201 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y, A, B, C;
cin >> X >> Y >> A >> B >> C;
vector<int64_t> P(A), Q(B), R(C);
for (int i = 0; i < A; i++)
cin >> P[i];
for (int i = 0; i < B; i++)
cin >> Q[i];
for (int i = 0; i < C; i++)
cin >> R[i];
sort(P.rbegin(), P.rend());... | #include <bits/stdc++.h>
using namespace std;
int main() {
int X, Y, A, B, C;
cin >> X >> Y >> A >> B >> C;
vector<int64_t> P(A), Q(B), R(C);
for (int i = 0; i < A; i++)
cin >> P[i];
for (int i = 0; i < B; i++)
cin >> Q[i];
for (int i = 0; i < C; i++)
cin >> R[i];
sort(P.rbegin(), P.rend());... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 350 |
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
typedef long long ll;
ll a, b, c, n, i, j, k, m, t, arr[200005], ar[200005], arrr[200005],
temp[200005];
bool cmp(const ll a, const ll b) { return a > b; }
int main() {
string s;
cin >> n >> m >> a >> b >> c;
for... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
typedef long long ll;
ll a, b, c, n, i, j, k, m, t, arr[200005], ar[200005], arrr[200005],
temp[200005];
bool cmp(const ll a, const ll b) { return a > b; }
int main() {
string s;
cin >> n >> m >> a >> b >> c;
for... | [["+", 8, 9, 0, 1, 0, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 24], ["+", 0, 1, 0, 11, 12, 16, 12, 23, 0, 25]] | 1 | 399 |
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;
int main() {
ull X, Y, A, B, C;
cin >> X >> Y >> A >> B >> C;
vector<ull> p(A, 0);
vector<ull> q(B, 0);
vector<ull> r(C, 0);
for (int ii = 0; ii < A; ++ii) {
cin >> p[ii];
}
for (int ii = 0; ii < B... | #include <bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;
int main() {
ull X, Y, A, B, C;
cin >> X >> Y >> A >> B >> C;
vector<ull> p(A, 0);
vector<ull> q(B, 0);
vector<ull> r(C, 0);
for (int ii = 0; ii < A; ++ii) {
cin >> p[ii];
}
for (int ii = 0; ii < B... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 12, 22], ["-", 15, 339, 51, 16, 31, 23, 0, 16, 12, 22], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 12, 22], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 12,... | 1 | 562 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <numeric>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
ll X, Y, A, B, C;
ll p[100005];
ll q[100005];
ll r[100005];
vector<ll> pq;
int main() {
cin >> X >> Y >> A >> B >> C;
for (l... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <numeric>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
ll X, Y, A, B, C;
ll p[100005];
ll q[100005];
ll r[100005];
vector<ll> pq;
int main() {
cin >> X >> Y >> A >> B >> C;
for (l... | [["-", 0, 57, 64, 9, 0, 1, 0, 27, 17, 68], ["+", 0, 57, 64, 9, 0, 1, 0, 27, 17, 29]] | 1 | 353 |
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ar array
const int mxN = 1e5;
int x, y, a, b, c, p[mxN + 1], q[mxN + 1], r[2 * mxN];
ll ans;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cin >> x >> y >> a >> b >> c;
for (int i = 0; i < a; ++i)
cin >> p[i];
sort(p, p + a... | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ar array
const int mxN = 1e5;
int x, y, a, b, c, p[mxN + 1], q[mxN + 1], r[2 * mxN];
ll ans;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cin >> x >> y >> a >> b >> c;
for (int i = 0; i < a; ++i)
cin >> p[i];
sort(p, p + a... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 0, 7, 10, 43, 49, 50, 51, 16, 31, 22], ["+", 0, 7, 10, 43, 49, 50, 51, 16, 17, 33], ["+", 0, 7, 10, 43, 49, 50, 51, 16, 12, 22]] | 1 | 350 |
X, Y, A, B, C = list(map(int, input().split()))
p = list(map(int, input().split()))
q = list(map(int, input().split()))
r = list(map(int, input().split()))
p.sort(reverse=True)
q.sort(reverse=True)
r.sort(reverse=True)
shoku=[]
for i in range(X):
shoku.append(p[i])
for j in range(Y):
shoku.append(q[j])
sh... | X, Y, A, B, C = list(map(int, input().split()))
p = list(map(int, input().split()))
q = list(map(int, input().split()))
r = list(map(int, input().split()))
p.sort(reverse=True)
q.sort(reverse=True)
r.sort(reverse=True)
shoku=[]
for i in range(X):
shoku.append(p[i])
for j in range(Y):
shoku.append(q[j])
sh... | [["-", 0, 656, 0, 7, 12, 652, 3, 4, 0, 22], ["+", 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]] | 5 | 190 |
// minamoto
#include <bits/stdc++.h>
#define R register
#define fp(i, a, b) for (R int i = (a), I = (b) + 1; i < I; ++i)
#define fd(i, a, b) for (R int i = (a), I = (b)-1; i > I; --i)
#define go(u) for (int i = head[u], v = e[i].v; i; i = e[i].nx, v = e[i].v)
template <class T> inline bool cmax(T &a, const T &b) {
re... | // minamoto
#include <bits/stdc++.h>
#define R register
#define fp(i, a, b) for (R int i = (a), I = (b) + 1; i < I; ++i)
#define fd(i, a, b) for (R int i = (a), I = (b)-1; i > I; --i)
#define go(u) for (int i = head[u], v = e[i].v; i; i = e[i].nx, v = e[i].v)
template <class T> inline bool cmax(T &a, const T &b) {
re... | [["+", 0, 52, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 8, 9, 0, 1, 0, 34, 12, 27, 17, 29], ["+", 8, 9, 0, 1, 0, 34, 12, 27, 28, 22]] | 1 | 479 |
from heapq import heappush, heappop
X, Y, A, B, C = map(int, input().split())
H = []
for p in map(int, input().split()):
heappush(H, ((-p, 'r')))
for q in map(int, input().split()):
heappush(H, ((-q, 'g')))
for r in map(int, input().split()):
heappush(H, ((-r, '')))
count = X + Y
ans = 0
while count > 0:
h = ... | from heapq import heappush, heappop
X, Y, A, B, C = map(int, input().split())
H = []
for p in map(int, input().split()):
heappush(H, ((-p, 'r')))
for q in map(int, input().split()):
heappush(H, ((-q, 'g')))
for r in map(int, input().split()):
heappush(H, ((-r, '')))
count = X + Y
ans = 0
while count > 0:
h = ... | [["-", 0, 52, 8, 196, 0, 57, 15, 679, 17, 355], ["+", 0, 656, 0, 52, 8, 196, 0, 57, 0, 102], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["-", 8, 196, 0, 57, 75, 665, 15, 679, 17, 355], ["+", 0, 52, 8, 196, 0, 57, 75, 665, 0, 102], ["+", 0, 57, 75, 665, 64, 196, 0, 57, 0, 121]] | 5 | 210 |
#define rep(i, n) for (ll i = 0; i < n; i++)
#include "bits/stdc++.h"
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ll x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
vector<ll> p(a), q(b), r(c);
rep(i, a) cin >> p[i];
rep(i, b) cin >> q[i];
rep(i, c) cin >> r[i];
sort(p.... | #define rep(i, n) for (ll i = 0; i < n; i++)
#include "bits/stdc++.h"
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
ll x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
vector<ll> p(a), q(b), r(c);
rep(i, a) cin >> p[i];
rep(i, b) cin >> q[i];
rep(i, c) cin >> r[i];
sort(p.... | [["-", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22], ["+", 8, 9, 0, 43, 49, 50, 51, 16, 31, 22]] | 1 | 357 |
// This is my template for fast solving
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <fstream>
#include <initializer_list>
#include <iomanip>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
... | // This is my template for fast solving
#include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <fstream>
#include <initializer_list>
#include <iomanip>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
... | [["-", 15, 339, 51, 16, 31, 2, 63, 118, 28, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 91, 17, 111], ["+", 51, 16, 31, 91, 28, 2, 63, 118, 28, 22]] | 1 | 803 |
#include <chrono>
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <istream>
#include <map>
#include <ostream>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <... | #include <chrono>
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cmath>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <istream>
#include <map>
#include <ostream>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <... | [["-", 15, 16, 12, 2, 3, 4, 0, 16, 17, 72], ["-", 15, 16, 12, 2, 3, 4, 0, 16, 12, 13]] | 1 | 700 |
#include <bits/stdc++.h>
using namespace std;
int main() {
long long int x, y, a, b, c, p[100001] = {}, q[100001] = {}, r[100001] = {},
i, j, A, B, C, sum = 0;
scanf("%lld %lld %lld %lld %lld", &x, &y, &a, &b, &c);
for (i = 1; i <= a; i++)
scanf("%lld", &p[i]);
for (i = 1; i... | #include <bits/stdc++.h>
using namespace std;
int main() {
long long int x, y, a, b, c, p[100001] = {}, q[100001] = {}, r[100001] = {},
i, j, A, B, C, sum = 0;
scanf("%lld %lld %lld %lld %lld", &x, &y, &a, &b, &c);
for (i = 1; i <= a; i++)
scanf("%lld", &p[i]);
for (i = 1; i... | [["-", 12, 23, 0, 16, 31, 69, 341, 342, 0, 22], ["+", 12, 23, 0, 16, 31, 69, 341, 342, 0, 22]] | 1 | 459 |
#include <bits/stdc++.h>
using namespace std;
void pre() {}
void solve() {
long long int x, y, a, b, c, d;
cin >> x >> y >> a >> b >> c;
priority_queue<long long int> pq;
long long int arr[a + b + 1];
for (long long int i = 0; i < a; i++)
cin >> arr[i];
sort(arr, arr + a, greater<long long int>());
fo... | #include <bits/stdc++.h>
using namespace std;
void pre() {}
void solve() {
long long int x, y, a, b, c, d;
cin >> x >> y >> a >> b >> c;
priority_queue<long long int> pq;
long long int arr[a + b + 100000];
for (long long int i = 0; i < a; i++)
cin >> arr[i];
sort(arr, arr + a, greater<long long int>());... | [["-", 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, 1, 0, 11, 31, 22], ["-", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 14, 8, 9, 0, 1, 0, 11, 12, 22]] | 1 | 339 |
x,y,a,b,c=map(int,input().split())
lia=list(map(int,input().split()))
lib=list(map(int,input().split()))
lic=list(map(int,input().split()))
lia.sort(reverse=True)
lib.sort(reverse=True)
lic.sort(reverse=True)
ans=lia[:x]+lib[:y]
ans.sort(reverse=True)
cnt=0
now=0
while cnt < a+b and now < c:
if lic[now] > ans[cnt]:
... | x,y,a,b,c=map(int,input().split())
lia=list(map(int,input().split()))
lib=list(map(int,input().split()))
lic=list(map(int,input().split()))
lia.sort(reverse=True)
lib.sort(reverse=True)
lic.sort(reverse=True)
ans=lia[:x]+lib[:y]
ans.sort()
cnt=0
now=0
while cnt < x+y and now < c:
if lic[now] > ans[cnt]:
ans[cnt]=... | [["-", 0, 1, 0, 652, 3, 4, 0, 653, 141, 22], ["-", 0, 1, 0, 652, 3, 4, 0, 653, 0, 32], ["-", 0, 1, 0, 652, 3, 4, 0, 653, 51, 146], ["-", 0, 52, 15, 679, 31, 666, 0, 657, 31, 22], ["+", 0, 52, 15, 679, 31, 666, 0, 657, 31, 22], ["-", 0, 52, 15, 679, 31, 666, 0, 657, 12, 22], ["+", 0, 52, 15, 679, 31, 666, 0, 657, 12, 22... | 5 | 168 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
ll x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
ll p[100005] = {};
ll q[100005] = {};
ll r[100005] = {};
REP(i, a) cin >> p[i];
REP(i, b) cin >> q[i];
REP(i, c) cin >> ... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
int main() {
ll x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
ll p[100005] = {};
ll q[100005] = {};
ll r[100005] = {};
REP(i, a) cin >> p[i];
REP(i, b) cin >> q[i];
REP(i, c) cin >> ... | [["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 29], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35]] | 1 | 463 |
x, y, a, b, c = map(int, input().split())
ps = sorted(list(map(int, input().split())), reverse=True)
qs = sorted(list(map(int, input().split())), reverse=True)
rs = sorted(list(map(int, input().split())), reverse=True)
tr = ps[:x]
tg = qs[:y]
added = 0
for e in rs:
if len(tg) != 0 and len(tr) != 0:
if tr[-1] > t... | x, y, a, b, c = map(int, input().split())
ps = sorted(list(map(int, input().split())), reverse=True)
qs = sorted(list(map(int, input().split())), reverse=True)
rs = sorted(list(map(int, input().split())), reverse=True)
tr = ps[:x]
tg = qs[:y]
added = 0
for e in rs:
if len(tg) != 0 and len(tr) != 0:
if tr[-1] >= ... | [["-", 64, 196, 0, 57, 15, 679, 31, 666, 667, 47], ["+", 64, 196, 0, 57, 15, 679, 31, 666, 667, 20]] | 5 | 265 |
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <queue>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
int x, y, a, b, c;
ll p[100000], q[100000], r[100000], ans;
priority_queue<ll, vector<ll>, greater<ll>> que;
int main() {
scanf("%d%d%d%d%d", &x, &y, &a, &b, &c);... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <queue>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;
int x, y, a, b, c;
ll p[100000], q[100000], r[100000], ans;
priority_queue<ll, vector<ll>, greater<ll>> que;
int main() {
scanf("%d%d%d%d%d", &x, &y, &a, &b, &c);... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 1 | 374 |
from collections import *
from heapq import *
from itertools import *
from math import gcd
import sys
from decimal import *
import copy
from bisect import *
input=lambda :sys.stdin.readline().rstrip()
X,Y,A,B,C=map(int,input().split())
P=list(map(int,input().split()))
Q=list(map(int,input().split()))
R=list(map(int,i... | from collections import *
from heapq import *
from itertools import *
from math import gcd
import sys
from decimal import *
import copy
from bisect import *
input=lambda :sys.stdin.readline().rstrip()
X,Y,A,B,C=map(int,input().split())
P=list(map(int,input().split()))
Q=list(map(int,input().split()))
R=list(map(int,i... | [["-", 0, 52, 8, 196, 0, 57, 15, 679, 12, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 679, 12, 22], ["-", 75, 76, 8, 196, 0, 57, 75, 665, 15, 22], ["+", 75, 76, 8, 196, 0, 57, 75, 665, 15, 22], ["+", 0, 7, 8, 196, 0, 57, 75, 76, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 76, 0, 102], ["+", 0, 57, 75, 76, 8, 196, 0, 93, 0, 94]] | 5 | 390 |
#include <bits/stdc++.h>
using namespace std;
template <typename A, typename B> string to_string(pair<A, B> p);
template <typename A, typename B, typename C>
string to_string(tuple<A, B, C> p);
template <typename A, typename B, typename C, typename D>
string to_string(tuple<A, B, C, D> p);
string to_string(const s... | #include <bits/stdc++.h>
using namespace std;
template <typename A, typename B> string to_string(pair<A, B> p);
template <typename A, typename B, typename C>
string to_string(tuple<A, B, C> p);
template <typename A, typename B, typename C, typename D>
string to_string(tuple<A, B, C, D> p);
string to_string(const s... | [["-", 8, 57, 64, 9, 0, 1, 0, 27, 17, 68], ["+", 8, 57, 64, 9, 0, 1, 0, 27, 17, 29]] | 1 | 1,164 |
#include <bits/stdc++.h>
#define N 100000
using namespace std;
int p[N], q[N], r[N], s[2 * N];
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int x, y, a, b, c, temp;
cin >> x >> y >> a >> b >> c;
for (int i = 0; i < a; i++)
cin >> p[i];
for (int i = 0; i < b; i++)
cin >> q[i];... | #include <bits/stdc++.h>
#define N 100000
using namespace std;
int p[N], q[N], r[N], s[2 * N];
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int x, y, a, b, c, temp;
cin >> x >> y >> a >> b >> c;
for (int i = 0; i < a; i++)
cin >> p[i];
for (int i = 0; i < b; i++)
cin >> q[i];... | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 22]] | 1 | 307 |
#define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <assert.h>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.... | #define _CRT_SECURE_NO_WARNINGS
#include <algorithm>
#include <assert.h>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.... | [["-", 12, 16, 31, 69, 341, 342, 0, 16, 31, 22], ["+", 12, 16, 31, 69, 341, 342, 0, 16, 31, 22], ["-", 12, 16, 31, 69, 341, 342, 0, 16, 12, 13], ["+", 12, 16, 31, 69, 341, 342, 0, 16, 12, 22]] | 1 | 7,493 |
#include <algorithm>
#include <array>
#include <bitset>
#include <climits>
#include <cmath>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
... | #include <algorithm>
#include <array>
#include <bitset>
#include <climits>
#include <cmath>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
... | [["+", 0, 57, 15, 339, 51, 16, 12, 91, 17, 33], ["+", 0, 1, 0, 2, 3, 4, 0, 91, 17, 33], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 107], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 110]] | 1 | 323 |
#include <bits/stdc++.h>
#define fi first
#define se second
using namespace std;
const long long mod = 1007050321;
const long long base = 521;
const long long N = 5e5 + 5;
const long long MOD = 1e9 + 7;
const long long inf = 2e9;
long long x, y, a, b, c;
long long p[N], q[N], r[N];
priority_queue<long long> hp;
boo... | #include <bits/stdc++.h>
#define fi first
#define se second
using namespace std;
const long long mod = 1007050321;
const long long base = 521;
const long long N = 5e5 + 5;
const long long MOD = 1e9 + 7;
const long long inf = 2e9;
long long x, y, a, b, c;
long long p[N], q[N], r[N];
priority_queue<long long> hp;
boo... | [["+", 0, 52, 8, 1, 0, 34, 12, 34, 0, 21], ["+", 0, 34, 12, 34, 12, 2, 63, 118, 28, 22], ["+", 0, 34, 12, 34, 12, 2, 63, 118, 17, 131], ["+", 0, 34, 12, 34, 12, 2, 63, 118, 119, 120], ["+", 0, 34, 12, 34, 12, 2, 3, 4, 0, 24], ["+", 0, 34, 12, 34, 12, 2, 3, 4, 0, 25]] | 1 | 366 |
#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
int main() {
int x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
vector<in... | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
int main() {
int x, y, a, b, c;
cin >> x >> y >> a >> b >> c;
vector<in... | [["-", 8, 9, 0, 1, 0, 2, 63, 118, 119, 120], ["+", 8, 9, 0, 1, 0, 2, 63, 118, 119, 120], ["+", 8, 9, 0, 52, 8, 9, 0, 1, 0, 35], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 28, 22], ["+", 0, 52, 8, 9, 0, 1, 0, 27, 17, 29]] | 1 | 384 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.