Game with Segments
1346H2700· international gm3s512 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
1 14 74 7
Output
0
Sample 2of 3
Input
1 22 52 43 5
Output
-1
Sample 3of 3
Input
2 11 51 42 3
Output
-1 1
58%
1346H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)