cf/mirror

Balanced Remainders

CF
1490B1000· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
4
6
0 2 5 5 4 8
6
2 0 2 1 0 0
9
7 1 3 4 2 10 3 9 6
6
0 1 2 3 4 5
Output
3
1
3
0
1490B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)