Climbing the Tree
1810D1700· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
531 3 2 52 4 12 3 231 6 5 12 3 12 6 231 4 2 21 2 1 32 10 291 7 3 61 2 1 82 5 11 10 9 71 8 1 21 10 5 81 10 7 72 7 41 9 4 291 2 1 61 8 5 61 4 2 72 9 11 5 1 41 5 2 71 7 1 91 9 1 42 10 8
Output
1 2 51 -1 11 0 11 0 -1 0 0 0 1 8 01 0 0 1 0 0 0 0 1
58%
1810D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)