cf/mirror

Euler tour

CF
1053E3500· legendary gm2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2
1 0 0
Output
yes
1 2 1
Sample 2of 3
Input
4
1 0 3 2 0 0 0
Output
yes
1 4 3 2 3 4 1
Sample 3of 3
Input
5
0 1 2 3 4 1 0 0 0
Output
no
1053E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…