cf/mirror

Cards Partition

CF
2018A1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
9
3 1
3 2 2
5 4
2 6 1 2 4
2 100
1410065408 10000000000
10 8
7 4 6 6 9 3 10 2 8 7
2 12
2 2
2 70
0 1
1 0
1
3 0
2 1 2
3 1
0 3 3
Output
2
3
1
7
2
2
1
1
2
2018A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…