Reverse the Rivers
2036E1600· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
3 4 41 3 5 94 6 5 32 1 2 731 > 42 < 81 < 621 < 82 > 813 > 524 > 81 < 8
Output
2-131
58%
2036E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
3 4 41 3 5 94 6 5 32 1 2 731 > 42 < 81 < 621 < 82 > 813 > 524 > 81 < 8
2-131