cf/mirror

Yunli's Subarray Queries (easy version)

CF
2009G11900· candidate master3s512 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
7 5 3
1 2 3 2 1 2 3
1 5
2 6
3 7
8 4 2
4 3 1 1 2 4 3 2
3 6
2 5
5 4 2
4 5 1 2 3
1 4
2 5
Output
2
3
2
2
2
2
1
2009G1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)