cf/mirror

Valuable Cards

CF
1992F1900· candidate master4s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
8
6 4
2 3 6 2 1 2
9 100000
50000 25000 12500 6250 3125 2 4 8 16
5 2
1 1 1 1 1
8 6
4 3 4 3 4 3 4 3
7 12
6 11 1 3 11 10 2
10 5
2 4 4 2 4 4 4 3 1 1
7 8
4 6 5 1 2 4 1
8 27
3 9 17 26 2 20 9 3
Output
3
2
1
1
2
1
3
3
1992F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)