Harry Potter and Moving Staircases
65E2900· international gm2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
6 41 21 32 34 5
Output
YES23 1 2 32 3 53 5 4 54 5 63 6 5 3
Sample 2of 3
Input
4 11 2
Output
NO
Sample 3of 3
Input
5 51 21 33 43 54 5
Output
YES06 1 2 1 3 4 5
58%
65E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…