cf/mirror

Useful Decomposition

CF
981C1400· specialist1s256 MB⌨ stdin/stdout

Examples

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