Problem C: 面包(2023-T3)
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:4
Solved:1
Description

Input

Output
输出共一行一个整数,表示狐狸尼克的最大可能利润。
Sample Input Copy
4 3
180
160
190
170
2 100
4 250
3 120
Sample Output Copy
480
HINT