题号:NC24112
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld
题目描述
输入描述:
The first line of input contains A, B, n, and m (1≤A,B≤1,000,000,000). The next n lines contain a1…an, and the next m lines after that contain b1…bm.
输出描述:
Please write the minimum length of fencing FJ must remove. Note that this might be too large to fit into a standard 32-bit integer, so you may need to use 64-bit integer types (e.g., "long long" in C/C++).
示例1
输入
复制
15 15 5 2
2
5
10
6
4
11
3