cf/mirror

The Fox and the Complete Tree Traversal

CF
1819C2400· grandmaster1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
5
1 2
1 3
3 4
3 5
Output
Yes
4 5 1 2 3
Sample 2of 3
Input
3
1 2
1 3
Output
Yes
1 2 3
Sample 3of 3
Input
15
1 2
1 3
2 4
2 5
3 6
3 7
4 8
4 9
5 10
5 11
6 12
6 13
7 14
7 15
Output
No
1819C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…