Yunli's Subarray Queries (hard version)
2009G22200· master3s512 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
37 5 31 2 3 2 1 2 31 72 73 78 4 24 3 1 1 2 4 3 23 61 55 4 24 5 1 2 31 41 5
Output
6522523
58%
2009G2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)