摘要: !!!!!!! 第一次学状压DP,其实就是运用位运算来实现一些比较,挺神奇的。。 为什么要发“!!!”因为!x&y和!(x&y)。。感受一下。。 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #define N 13 阅读全文
posted @ 2016-03-29 22:05 DMoon 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 模板T,SB的DMoon。。其实样例也是中国好样例。。。一开始不会复制,yangyang:找到“sample input”按住shift,按page down。。。。 1 #include <iostream> 2 #include <cstdio> 3 #define inf 0x7fffffff 阅读全文
posted @ 2016-03-29 18:51 DMoon 阅读(201) 评论(0) 推荐(0) 编辑