dp
mwhybmj
这个作者很懒,什么都没留下…
展开
-
poj3414 pots 倒水模拟
You are given two pots, having the volume of A and B liters respectively. The following operations can be performed:FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;DROP(i) empty the po原创 2017-05-10 21:55:25 · 271 阅读 · 0 评论 -
背包集合
https://vjudge.net/problem/HDU-2191#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;const int INF = 0x3f3f3原创 2017-05-11 23:05:23 · 175 阅读 · 0 评论 -
hdu2059 龟兔赛跑
Problem Description据说在很久很久以前,可怜的兔子经历了人生中最大的打击——赛跑输给乌龟后,心中郁闷,发誓要报仇雪恨,于是躲进了杭州下沙某农业园卧薪尝胆潜心修炼,终于练成了绝技,能够毫不休息得以恒定的速度(VR m/s)一直跑。兔子一直想找机会好好得教训一下乌龟,以雪前耻。最近正值HDU举办50周年校庆,社会各大名流齐聚下沙,兔子也趁此机会向乌龟发起挑战。虽然乌龟深知原创 2017-04-22 11:30:16 · 285 阅读 · 0 评论