Island Puzzle
627F3400· legendary gm2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
31 0 22 0 11 22 3
Output
1 3 3
Sample 2of 3
Input
21 00 11 2
Output
0 1
Sample 3of 3
Input
40 1 2 30 2 3 11 21 31 4
Output
-1
58%
627F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…