搜索
文章平均质量分 67
naturelan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
shu_p64 n后问题
http://acmoj.shu.edu.cn/openjudge-edu/viewproblem.php?coll_id=1&prob_id=64 分析: 深搜,约束函数的简化 代码: //shup64 n queens #include #include #include #include using namespace std; #d原创 2013-11-22 13:45:54 · 1235 阅读 · 0 评论 -
hdu_2553
http://acm.hdu.edu.cn/showproblem.php?pid=2553 分析:模板题,但是一不小心就TLE了,所以还是打个表比较放心。 代码: #include #include #include #include #include #include using namespace std; #define MM -1000 in原创 2014-04-15 11:42:52 · 1009 阅读 · 0 评论 -
hdu 1104
http://acm.hdu.edu.cn/showproblem.php?pid=1104 分析: 题目要求给出三个数N, K, M,使得(N(原来的值) +1)%K= =N(对M进行过一系列处理的N) % K ;要求步数最少的答案输出; bfs(最先搜到的步数是最小的) 代码:#include #include #include using namespa转载 2013-09-02 22:19:03 · 799 阅读 · 0 评论 -
hdu_p1078(记忆化搜索)
http://acm.hdu.edu.cn/showproblem.php?pid=1078 分析:题目的要求是要从(0,0)的位置开始到最后停止(不能像四个方向移动了)所吃到的cheese的量; 每次移动应该满足的条件:1. 现在的cheese量要比前一次的多 2. 一次可以移动多个(小于等于k) 在搜索过程中记录从原创 2013-11-24 15:25:25 · 952 阅读 · 0 评论 -
hdu 1016
Prime Ring Problem Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 20839 Accepted Submission(s): 9320 Problem Description A ring is原创 2013-09-01 20:52:08 · 730 阅读 · 0 评论 -
shu_1318 vijos_1080
http://202.121.199.212/JudgeOnline/problem.php?cid=1078&pid=8 分析:原创 2014-07-10 10:44:42 · 639 阅读 · 0 评论 -
poj_1321 棋盘问题
http://poj.org/problem?id=1321原创 2014-09-14 10:45:56 · 677 阅读 · 0 评论
分享