摘要: 新地址:http://coderh10.icoc.cc/不过这里我也可能更新题解 阅读全文
posted @ 2015-10-07 21:43 Donnie_Darko 阅读(117) 评论(1) 推荐(0) 编辑
摘要: 传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1754以前讲过一道相似的题,这里就直接扔代码了那道题是 hdu1166传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1166博客的传送门:http://www.... 阅读全文
posted @ 2015-08-30 16:04 Donnie_Darko 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 好吧,15年写14年题解,的确够晚的(P.S. 是因为我到现在才搞懂这些题)正文之前,先膜拜膜拜一位大爷 %%% _debug多膜拜膜拜 _debug 大爷,打程序时bug会减少哦传送门:生活大爆炸版石头剪刀布: http://codevs.cn/problem/3716/联合权值: ... 阅读全文
posted @ 2015-08-30 15:41 Donnie_Darko 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 基本上就是个简单的线段树的单点修改(update)与区间查询(query)连Lazy标记都不用传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1166若是初学线段树 hdu1754也是道不错的题传送门:http://acm.hdu.edu.cn/showp... 阅读全文
posted @ 2015-08-27 10:35 Donnie_Darko 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 树形dp入门题传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1520Attention:hdu上每个输入都有多组数据可能有既没有上司也没有下属的孤点 1 #include 2 #include 3 int n,i,j,f[6010],fen[6010],... 阅读全文
posted @ 2015-08-14 16:10 Donnie_Darko 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 传送门:http://acm.hdu.edu.cn/showproblem.php?pid=3466题目意思是:有m块钱,n种商品,每件商品价格Pi,价值Vi,要求买完后总价值最大(01背包)但是买东西有条件,一定要在你剩余的钱大与等于Qi时才能买这件商品(Qi>=Pi)仔细观察这道题,发现,买东西... 阅读全文
posted @ 2015-08-14 15:40 Donnie_Darko 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 一些很水的水题T1201:#includeint min=0x7fffffff,max=-0x7fffffff;int n,i,a;int main(){scanf("%d",&n);for (i=1;imax) max=a;if (aint sum=0;int n,i,a;int main(){s... 阅读全文
posted @ 2015-08-14 11:50 Donnie_Darko 阅读(214) 评论(0) 推荐(0) 编辑