cf/mirror

Double Elimination

CF
1310B2500· grandmaster2s512 MB⌨ stdin/stdout

Examples

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