摘要: 链接:http://acm.hdu.edu.cn/showproblem.php?pid=2999题意:先给定可操作数的集合(有重复),每次操作必须拿集合中到数且是连续的, 不能操作为负;然后有M次询问, 每次总数为k的石头;思路: 通过求sg函数,枚举下一个状态,sg=0则为必败点, 数据量有点大, 要注意姿势,不然会 T;View Code 1 #include <cstring> 2 #include <cstdio> 3 #include <algorithm> 4 using namespace std; 5 int N, M, L, k; 6 i 阅读全文
posted @ 2013-05-01 14:32 淡墨æ末央 阅读(481) 评论(0) 推荐(0) 编辑