cf/mirror

Three Paths on a Tree

CF
1294F2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
8
1 2
2 3
3 4
4 5
4 6
3 7
3 8
Output
5
1 8 6
1294F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…