#P2230. [HNOI2002] Tinux系统

[HNOI2002] Tinux系统

Output Format

Output a single positive integer: under the optimal storage plan, the total time required to access these nn files individually (the result is less than 2312^{31}).

4 3
3
5
4

28

Hint

Constraints

1n10001 \le n \le 1000, 2k1502 \le k \le 150, 1Pi1501 \le P_i \le 150.

Translated by ChatGPT 5