https://codeforces.com/contest/2067/problem/B #include<bits/stdc++.h> using namespace std; int t,n; int x,a[1005],sta[1005],stb[1005]; int main(){ //freopen(…
题目 #include<bits/stdc++.h> using namespace std; int x,n,m; int main(){ //freopen("in.txt","r",stdin); //freopen("out.txt","w",stdout); cin>>x; while(x--){ cin>&…