cf/mirror

Tree of Life (hard)

CF
690F33200· legendary gm8s256 MB⌨ stdin/stdout
#trees

Examples

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