12 2014 档案
ZOJ3798 Abs Problem
摘要:题目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3798学会了对于序列用next_permutation暴力打表可以先打表找规律#include#include#define INF 0x3f3f3f3f//#defin... 阅读全文
posted @ 2014-12-14 14:12 Unc、 阅读(261) 评论(0) 推荐(0)
HDU1846 巴什博奕
摘要:巴什博弈:一个人拿1~m个,那谁面对m+1的局势的的时候则必败。假设n=k*(m+1)+s,(k为任意,s 2 int main() 3 { 4 int t, n, m; 5 scanf("%d", &t); 6 while (t--){ 7 scanf("%... 阅读全文
posted @ 2014-12-08 20:07 Unc、 阅读(237) 评论(0) 推荐(0)
HDU 1010 深搜+奇偶剪枝
摘要:题目:http://acm.hdu.edu.cn/showproblem.php?pid=1010贴个资料:http://acm.hdu.edu.cn/forum/read.php?tid=6158奇偶剪枝:对于从起始点 s 到达终点 e,走且只走 t 步的可达性问题的一种剪枝策略。如下列矩阵 :从... 阅读全文
posted @ 2014-12-01 13:50 Unc、 阅读(256) 评论(0) 推荐(0)