CF2148B 题解
传送门:洛谷 CF2148B Lasers | Codeforces B. Lasers
更佳的阅读体验:CF2148B 题解
简要题意:有
所有水平激光都落在
直接输出
#include <iostream>
using namespace std;
const int N = 2e5 + 10;
int t, n, m, x, y, a[N], b[N];
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
for (cin >> t; t; --t) {
cin >> n >> m >> x >> y;
for (int i = 1; i <= n; ++i) cin >> a[i];
for (int i = 1; i <= m; ++i) cin >> b[i];
cout << n + m << '\n';
} return 0;
}