cf/mirror

Balanced Round

CF
1850D900· newbie2s256 MB⌨ stdin/stdout

Examples

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