Good Subarrays (Hard Version)
1736C22400· grandmaster3s256 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
42 4 1 432 43 32 1
Output
6105
Sample 2of 2
Input
51 1 3 2 131 32 54 5
Output
798
58%
1736C2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)