Manhattan Permutations
1978C1300· pupil2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
83 44 57 01 10000000000008 14112 7775 125 2
Output
Yes3 1 2NoYes1 2 3 4 5 6 7NoYes8 2 3 4 5 6 1 7NoYes5 4 3 1 2Yes2 1 3 4 5
58%
1978C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)