cf/mirror

Two Rabbits

CF
1304A800· newbie1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1
Input
5
0 10 2 3
0 10 3 3
900000000 1000000000 1 9999999
1 2 1 1
1 3 1 1
Output
2
-1
10
-1
1
1304A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)