Double Elimination
1310B2500· grandmaster2s512 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 16
Output
6
Sample 2of 3
Input
3 31 7 8
Output
11
Sample 3of 3
Input
3 41 3 5 7
Output
14
58%
1310B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
3 16
6
3 31 7 8
11
3 41 3 5 7
14