cf/mirror

Odd Queries on Odd Array

CF
2153F2900· international gm10s1024 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
11 4
1 1 2 2 3 3 3 2 2 1 1
7 10
5 11
8 6
2 8
6 2
1 3 2 3 4 3
1 6
1 4
3 6
3 3 3
1 1
1 2
3 1
2 2
2 3
3 3
Output
4 5 4 0
10 6
3 0 3 3 0 3
2153F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…