cf/mirror

Johnny and Ancient Computer

CF
1362A1000· newbie1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
10
10 5
11 44
17 21
1 1
96 3
2 128
1001 1100611139403776
1000000000000000000 1000000000000000000
7 1
10 8
Output
1
1
-1
0
2
2
14
0
-1
-1
1362A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)