cf/mirror

Exam in MAC

CF
1935D1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
8
3 3
1 2 3
1 179
57
4 6
0 3 5 6
1 1
1
5 10
0 2 4 8 10
5 10
1 3 5 7 9
4 10
2 4 6 7
3 1000000000
228 1337 998244353
Output
3
16139
10
2
33
36
35
499999998999122959
1935D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)