If at first you don't succeed...
991A1000· newbie1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
10 10 5 20
Output
5
Sample 2of 3
Input
2 2 0 4
Output
-1
Sample 3of 3
Input
2 2 2 1
Output
-1
58%
991A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
10 10 5 20
5
2 2 0 4
-1
2 2 2 1
-1