Partitioning the Array
1920C1600· expert3s256 MB⌨ stdin/stdout
Examples
Sample 1of 1multi-test • hover to link
Input
841 2 1 431 2 351 1 1 1 161 3 1 1 3 166 2 6 2 2 262 6 3 6 6 6101 7 5 1 4 3 1 3 1 411
Output
21244121
58%
1920C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)