Cent Savings |
Time Limit: 5000ms, Special Time Limit:12500ms, Memory Limit:65536KB |
Total submit users: 54, Accepted users: 36 |
Problem 13345 : No special judgement |
Problem description |
To host a regional contest like NWERC a lot of preparation is necessary: organizing rooms and computers, making a good problem set, inviting contestants, designing T-shirts, book- ing hotel rooms and so on. I am responsible for going shopping in the supermarket. |
Input |
The input consists of: |
Output |
Output the minimum amount of money needed to buy all the items, using up to d dividers. |
Sample Input |
5 1 13 21 55 60 42 5 2 1 1 1 1 1 |
Sample Output |
190 0
|
HNU Cent Savings (DP)
最新推荐文章于 2019-12-10 10:22:28 发布