Sofa Thief
818C2000· candidate master1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
23 23 1 3 21 2 2 21 0 0 1
Output
1
Sample 2of 3
Input
310 101 2 1 15 5 6 56 4 5 42 1 2 0
Output
2
Sample 3of 3
Input
22 22 1 1 11 2 2 21 0 0 0
Output
-1
58%
818C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)