![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DP
风中一颗松
慢慢学,慢慢看
展开
-
Charm Bracelet 01背包
A - Charm Bracelet Bessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible from the N (1 ≤ N ≤ 3,402)...原创 2018-03-17 21:50:45 · 133 阅读 · 0 评论 -
B - 湫湫系列故事——减肥记I
B - 湫湫系列故事——减肥记I 对于吃货来说,过年最幸福的事就是吃了,没有之一! 但是对于女生来说,卡路里(热量)是天敌啊! 资深美女湫湫深谙“胖来如山倒,胖去如抽丝”的道理,所以她希望你能帮忙制定一个食谱,能使她吃得开心的同时,不会制造太多的天敌。 当然,为了方便你制...原创 2018-03-18 10:29:34 · 287 阅读 · 0 评论 -
C - Cash Machine
C - Cash Machine A Bank plans to install a machine for cash withdrawal. The machine is able to deliver appropriate @ bills for a requested cash ...原创 2018-03-25 21:44:20 · 208 阅读 · 0 评论 -
E - Longest Ordered Subsequence
A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric sequence ( a1, a2, ..., aN) be...原创 2018-03-25 22:01:54 · 215 阅读 · 0 评论 -
Combinations
Computing the exact number of ways that N things can be taken M at a time can be a great challenge when N and/or M become very large. Challenges are the stuff of contests. Therefore, you ...原创 2018-03-25 22:18:27 · 293 阅读 · 0 评论 -
Bovine Birthday
Bessie asked her friend what day of the week she was born on. She knew that she was born on 2003 May 25, but didn't know what day it was. Write a program to help. Note that no cow was bor...原创 2018-03-25 22:22:24 · 222 阅读 · 0 评论 -
饭卡
电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。 某天,食堂中有n种菜出售,每种菜可购买一次。已知每种菜的价格以及卡上的余额,问最少可使卡上的余额为多少。 Input 多组数...原创 2018-03-25 22:28:21 · 166 阅读 · 0 评论