cf/mirror

Stock Trading

CF
391F33s256 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
10 2
2
7
3
9
8
7
9
7
1
9
Output
15
Sample 2of 2
Input
10 5
2
7
3
9
8
7
9
7
1
9
Output
21
391F3.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)