River Locks
1700D1900· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
54 1 5 4 16162345
Output
-13-1-143
Sample 2of 2
Input
54 4 4 4 46136524
Output
-1-144-15
58%
1700D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)