Cooperative Game
1137D2400· grandmaster1s512 MB⇄ interactive
Examples
Sample 1of 1
Input
2 05 123467893 246789 135 03 246789 0 1353 246789 0 1352 135 02467891 0123456789
Output
next 0 5next 0 1 3next 2 3 0 1 4 5 6 7 8 9next 9 8 7 6 5 4 3 2 1 0next 0 1 3 5next 1 3 5done
58%
1137D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)