Trees in a Row
402B1400· specialist1s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
4 11 2 1 5
Output
2+ 3 2- 4 1
Sample 2of 2
Input
4 11 2 3 4
Output
0
58%
402B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
4 11 2 1 5
2+ 3 2- 4 1
4 11 2 3 4
0