2015年9月17日

light oj 1011Marriage Ceremonies

摘要: 总结状压dp板子。强迫症预处理,多写了几行但非常快#include#include#includeusing namespace std;const int INF=0x3f3f3f3f;const int maxn=16;int dp[10) { if(x&1) ans++; x>>=1; }... 阅读全文

posted @ 2015-09-17 22:37 此剑之势愈斩愈烈 阅读(140) 评论(0) 推荐(0) 编辑

#1184 : 连通性二·边的双连通分量

摘要: 贴板子。求割边。将>改为>=即可判断u是否为割点。#include#include#includeusing namespace std;const int INF=0x3f3f3f3f;const int maxn=20008;const int maxm=100008;struct fuck{ ... 阅读全文

posted @ 2015-09-17 22:04 此剑之势愈斩愈烈 阅读(149) 评论(0) 推荐(0) 编辑

导航