cf/mirror

Game with Segments

CF
1346H2700· international gm3s512 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
1 1
4 7
4 7
Output
0
Sample 2of 3
Input
1 2
2 5
2 4
3 5
Output
-1
Sample 3of 3
Input
2 1
1 5
1 4
2 3
Output
-1 1
1346H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)