#pragma GCC target("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #include #include using namespace std; using namespace atcoder; using ll=long long; using P=pair; void IO(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main(){ IO(); ll n,x,y; cin>>n>>x>>y; vector p(n); vector c(n); for(ll i=0;i>p[i]>>c[i]; } vector sum_a(x+y,0),sum_b(x+y,0); for(ll i=0;i v(x+y); for(ll i=0;i