cf/mirror

Maximum Subsequence

CF
888E1800· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
4 4
5 2 4 1
Output
3
Sample 2of 2
Input
3 20
199 41 299
Output
19
888E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)