DFS
文章平均质量分 84
Jetman13
居然有兴趣就要坚持到底
展开
-
hdu1501 Zipper
简单的DFS+记忆化搜索!!刚做这题时,我没花多长时间就写出来了。。但是TLE~~~后来再看一下牛人的解题报告,发现自己的代码就和别人相差两行!!!杯具~~不过有些吧搜索倒过来就能A。。那是因为数据弱~~~#include#include#includechar a[202],b[202],aim[404];int alen,blen,clen,dp[202][原创 2013-08-08 21:16:02 · 872 阅读 · 0 评论 -
poj1011木棒
老实说,我做这道题时关于那些剪枝都是看了师兄的博客然后慢慢研究每一条语句,才发现意义深厚,很多都是我想不到但又实际可行的剪枝让我佩服不已~~,不过我这道能在poj上过是因为它的测试数据很水,而下面一组用例就不只用了1s了~~~/*95 2 1 5 2 1 5 2 141 2 3 4121 1 2 2 2 3 3 3 3 3 3 42715原创 2013-05-27 16:28:55 · 1015 阅读 · 0 评论 -
ZOJ Monthly, January 2014 F The Three Guys (浙江大学月赛)
The Three GuysTime Limit: 2 Seconds Memory Limit: 65536 KB Special Judge Recent days, a joke spread out among Chinese social networks. "If Yao Ming,Guo Jingming and He Jiong lyin原创 2014-01-27 10:02:04 · 1553 阅读 · 2 评论 -
Fighting For 2014 (One University One Question) Round II [E] New Year 2014
[E] New Year 2014时间限制: 2000 ms 内存限制: 262144 K问题描述In the New Year 2014, Xiao Ming is thinking about the question: give two integers N and K, Calculate the number of the numbers of satisfy t原创 2014-02-14 19:46:44 · 1101 阅读 · 1 评论