Tree Constructing
1003E2100· master4s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
6 3 3
Output
YES3 14 11 25 22 6
Sample 2of 4
Input
6 2 3
Output
NO
Sample 3of 4
Input
10 4 3
Output
YES2 92 1010 33 16 108 24 35 66 7
Sample 4of 4
Input
8 5 3
Output
YES2 57 23 73 11 68 74 3
58%
1003E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…