Maximum Subsequence Value
1365E1900· candidate master2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
32 1 3
Output
3
Sample 2of 4
Input
33 1 4
Output
7
Sample 3of 4
Input
11
Output
1
Sample 4of 4
Input
47 7 1 1
Output
7
58%
1365E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)