cf/mirror

Inconvenient Pairs

CF
1569D1900· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
2
2 2 4
0 1000000
0 1000000
1 0
1000000 1
999999 1000000
0 999999
5 4 9
0 1 2 6 1000000
0 4 8 1000000
4 4
2 5
2 2
6 3
1000000 1
3 8
5 8
8 8
6 8
Output
2
5
1569D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)