cf/mirror

Brukhovich and Exams

CF
1891E2500· grandmaster1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
9
5 2
1 3 5 7 9
5 2
3 5 7 9 11
8 2
17 15 10 1 1 5 14 8
5 3
1 1 1 1 1
5 5
1 1 1 1 1
19 7
1 1 2 3 4 5 5 6 6 7 8 9 10 1 1 1 2 3 1
15 6
2 1 1 1 1 2 1 1 2 1 1 1 2 1 2
5 2
1 1 1 1 2
5 2
1 0 1 0 1
Output
1
0
2
2
0
5
5
2
1
1891E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)