Tree Reconstruction
1041E1900· candidate master1s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
43 41 43 4
Output
YES1 33 22 4
Sample 2of 3
Input
31 31 3
Output
NO
Sample 3of 3
Input
31 22 3
Output
NO
58%
1041E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…