cf/mirror

Wrong Answer on test 233 (Easy Version)

CF
1227F12200· master1s256 MB⌨ stdin/stdout
#dp

Examples

Sample 1of 2
Input
3 3
1 3 1
Output
9
Sample 2of 2
Input
5 5
1 1 4 2 2
Output
1000
1227F1.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)