Yunli's Subarray Queries (extreme version)
2009G32700· international gm3s512 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
57 2 41 2 3 2 1 2 34 61 72 73 78 4 24 3 1 1 2 4 3 23 61 55 4 24 5 1 2 31 41 510 4 82 3 6 5 8 9 8 10 10 12 76 101 91 63 94 102 101 810 7 43 4 5 3 4 5 9 10 8 91 92 101 102 9
Output
1333272486287162032191815269
58%
2009G3.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)