Tree Orientation (Hard Version)
2208D22200· master3s1024 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
11410001111101000014111101110010011140011011100110001410000110001011114100001101010111151000001011001110001000001510000110001010110111000015100000110100100011101000141100010000110001411100100001001013100111101
Output
Yes2 32 43 1NoNoYes2 34 14 2NoNoYes2 13 13 54 3NoNoYes1 21 34 2Yes2 33 1
58%
2208D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…