cf/mirror

Great Sequence

CF
1641A1200· pupil1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
4 4
1 16 4 4
6 2
1 2 2 2 4 7
5 3
5 2 3 5 15
9 10
10 10 10 20 1 100 200 2000 3
Output
0
2
3
3
1641A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)