摘要: 枚举第一行第一个格子的状态(有雷或者无雷,0或1),然后根据第一个格子推出后面所有格子的状态。推出之后判断解是否可行即可。 阅读全文
posted @ 2017-01-26 19:31 cxhscst2 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 大力搜,状态用一个16位的数字表示。 阅读全文
posted @ 2017-01-26 19:28 cxhscst2 阅读(328) 评论(0) 推荐(0) 编辑
摘要: E. Pretty Song time limit per test:1 second time limit per test:1 second memory limit per test:256 megabytes memory limit per test:256 megabytes input 阅读全文
posted @ 2017-01-25 00:04 cxhscst2 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 寒假各种练习赛的一些回放和总结 阅读全文
posted @ 2017-01-24 23:51 cxhscst2 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1.18 打第一场比赛找找感觉…… 第一场基本没什么问题,花了2.5hAK,如果不作死读错题的话可能1.5h就AK了。 1.19 Codeforces Round #392 (Div. 2) 本来想好好地打一场,结果再次狗带... 阅读全文
posted @ 2017-01-20 20:02 cxhscst2 阅读(105) 评论(0) 推荐(0) 编辑
摘要: E. Pretty Song ... 阅读全文
posted @ 2017-01-18 23:49 cxhscst2 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Weak Pair Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 26... 阅读全文
posted @ 2017-01-13 10:06 cxhscst2 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 大力搜,状态用一个16位的数字表示。 #include using namespace std;#define rep(i,a,b) for(int i(a); i Q;int main(){ rep(i, 1, 8) scanf("%s", st[i] + 1)... 阅读全文
posted @ 2017-01-13 10:01 cxhscst2 阅读(167) 评论(0) 推荐(0) 编辑
摘要: G. New Roads ... 阅读全文
posted @ 2017-01-11 14:26 cxhscst2 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 设s[i][j]为序列i到j的和,当s[i][j]≠0时,即可从i跳到j+1.目标为从1跳到n+1,所以按照题意暴力即可。 #include using namespace std;#define rep(i,a,b) for(int i(a); i = (b); ... 阅读全文
posted @ 2017-01-11 14:22 cxhscst2 阅读(161) 评论(0) 推荐(0) 编辑