DP
文章平均质量分 71
little-fairy
卡题是一种幸福~
展开
-
HDU1248寒冰王座(完全背包问题)
题目:不死族的巫妖王发工资拉,死亡骑士拿到一张N元的钞票(记住,只有一张钞票),为了防止自己在战斗中频繁的死掉,他决定给自己买一些道具,于是他来到了地精商店前.死亡骑士:"我要买道具!"。地精商人:"我们这里有三种道具,血瓶150块一个,魔法药200块一个,无敌药水350块一个."。死亡骑士:"好的,给我一个血瓶."。说完他掏出那张N元的大钞递给地精商人.。地精商人:"我忘了提醒你了,我们这里没有...原创 2018-06-01 12:04:18 · 223 阅读 · 0 评论 -
POJ1159 Palindrome(动态规划问题)
题目:DescriptionA palindrome is a symmetrical string, thatis, a string read identically from left to right as well as from right to left.You are to write a program which, given a string, determines the ...原创 2018-06-01 12:15:03 · 411 阅读 · 0 评论