Construct the Binary Tree
1311E2200· master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
35 710 1910 18
Output
YES1 2 1 3YES1 2 3 3 9 9 2 1 6NO
58%
1311E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…
35 710 1910 18
YES1 2 1 3YES1 2 3 3 9 9 2 1 6NO