Description Christine and Matt are playing an exciting game they just invented: the Number Game. The rules of this game are as follows. The players ta ...
分类:
其他好文 时间:
2016-09-01 12:53:59
阅读次数:
212
XHXJ's LIS Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2265 Accepted Submission(s): 927 Probl ...
分类:
其他好文 时间:
2016-08-27 11:20:28
阅读次数:
183
1、poj 3254 Corn Fields 状态压缩dp入门题 2、总结:二进制实在巧妙,以前从来没想过可以这样用。 题意:n行m列,1表示肥沃,0表示贫瘠,把牛放在肥沃处,要求所有牛不能相邻,求有多少种放法。 #include<iostream> #include<cstring> #inclu ...
分类:
其他好文 时间:
2016-08-24 14:26:10
阅读次数:
211
Maze 题目链接:http://acm.split.hdu.edu.cn/showproblem.php?pid=5094 BFS+状态压缩 把身上携带钥匙的状态压缩成一个2^10的整数。这道题难在如何表示墙和门所在的位置,我是另开了个两个N*N的数组mp_r[N][N],mp_c[N][N]分别 ...
分类:
其他好文 时间:
2016-08-22 21:38:57
阅读次数:
131
Mondriaan's Dream Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 15407 Accepted: 8889 Description Squares and rectangles fascinated the fa ...
分类:
其他好文 时间:
2016-08-16 16:16:32
阅读次数:
157
Corn Fields Time Limit: 2000MS Memory Limit: 65536K Description Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 1 ...
分类:
其他好文 时间:
2016-08-13 15:38:59
阅读次数:
244
HDU 5418 Victor and World Time Limit:2000MS Memory Limit:131072KB 64bit IO Format:%I64d & %I64u After trying hard for many years, Victor has finally r ...
分类:
编程语言 时间:
2016-08-11 00:48:20
阅读次数:
211
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5724 题目大意:n行20列的棋盘,对于每行,如果当前棋子右边没棋子,那可以直接放到右边,如果有就跳过放到其后面的第一个空位子,A先操作,最后谁无法操作则输,给定每行棋子状态,问先手是否必胜题目分析:组合 ...
分类:
其他好文 时间:
2016-08-10 06:25:04
阅读次数:
158
原题网址:http://acm.timus.ru/problem.aspx?space=1&num=1519 有关插头dp和状态压缩请参考:http://wenku.baidu.com/link?url=AFuYe_EfR5yXMNK0rY-TaLe6LLgKhsOVxBM1RQULxElPrvjQ ...
分类:
其他好文 时间:
2016-08-09 14:59:08
阅读次数:
193
胜利大逃亡(续) Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7895 Accepted Submission(s): 2795 Proble ...
分类:
其他好文 时间:
2016-08-07 23:17:31
阅读次数:
223