cf/mirror

Number of k-good subarrays

CF
1982E2300· international master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
10
6 1
16 2
1 1
3 1
31 3
14 1
1337 5
100000 20
795569939321040850 56
576460752303423268 59
Output
7
35
1
6
155
8
7323
49965
741136395
66679884
1982E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)