题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1260题意是有n个人排队买票,第 i 个人买票所需要的时间是a[i],这个人和 i-1 或者 i+1 合买的时间是b[i];当然每个人都要等到前面所有的人都买完了才能买,我们求所需总时间至少是多少,工作人... Read More
posted @ 2015-10-29 14:54 西瓜不懂柠檬的酸 Views(141) Comments(0) Diggs(0)
题目链接:http://codeforces.com/problemset/problem/7/CAX+BY=C已知 A B C 求 X Y;#include #include #include #include using namespace std;typedef long long LL;LL... Read More
posted @ 2015-10-29 13:23 西瓜不懂柠檬的酸 Views(215) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1114题意是有一个存钱罐,当它是空的时候重量为E,满的时候重量为F;已知存钱罐里面有 n 种钱,每种钱的价值为 P 重量为 W ;求存钱罐满的时候里面至少有多少钱;是一个完全背包(求从n个物品中选出总重量... Read More
posted @ 2015-10-29 10:34 西瓜不懂柠檬的酸 Views(226) Comments(0) Diggs(0)
levels of contents