#include #include using namespace std; using namespace atcoder; typedef modint998244353 mint; typedef long long ll; // importbisect template int bisect_left(vector &X, T v){ return lower_bound(X.begin(), X.end(), v) - X.begin(); } template int bisect_right(vector &X, T v){ return upper_bound(X.begin(), X.end(), v) - X.begin(); } // ----- void solve(){ int n, m; cin >> n >> m; vector a(n), b(m); for (int i=0; i> a[i]; } for (int i=0; i> b[i]; } sort(a.begin(), a.end()); sort(b.begin(), b.end()); if (n == 0){ cout << "Yes\n"; for (int i=0; i> goodpair; vector usered(n), useblue(m); bool can = false; for (int i=0; i> t; while(t--) solve(); }