The Fox and the Complete Tree Traversal
1819C2400· grandmaster1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
51 21 33 43 5
Output
Yes4 5 1 2 3
Sample 2of 3
Input
31 21 3
Output
Yes1 2 3
Sample 3of 3
Input
151 21 32 42 53 63 74 84 95 105 116 126 137 147 15
Output
No
58%
1819C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…