Skyscrapers (hard version)
1313C21900· candidate master3s512 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
51 2 3 2 1
Output
1 2 3 2 1
Sample 2of 2
Input
310 6 8
Output
10 6 6
58%
1313C2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
51 2 3 2 1
1 2 3 2 1
310 6 8
10 6 6