Educational Codeforces Round 106 (Rated for Div. 2)ABCD题解
A题,按照题意判断一下就行了#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e5+10;int t,n,m,a[N],b[N];bool vis[N];int main(){ scanf("%d",&t); while(t--) { int k1,k2,w,b; scanf("%d%d%d%d%d",&a