Fix a Tree
698B1700· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
42 3 3 4
Output
12 3 4 4
Sample 2of 3
Input
53 2 2 5 3
Output
03 2 2 5 3
Sample 3of 3
Input
82 3 5 4 1 6 6 7
Output
22 3 7 8 1 6 6 7
58%
698B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…