摘要: E题 1 /*Author :usedrose */ 2 /*Created Time :2015/7/26 22:29:35*/ 3 /*File Name :2.cpp*/ 4 #include 5 #include 6 #include 7 #include 8 #i... 阅读全文
posted @ 2015-07-26 22:46 UsedRose 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1 int G[N][N]; 2 int lx[N], ly[N]; 3 int slack[N]; 4 int match[N]; 5 bool visitx[N], visity[N]; 6 int n; 7 8 bool Hungary(int u) 9 {10 visitx[u]... 阅读全文
posted @ 2015-07-26 21:48 UsedRose 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1002 Hidden String这个题怎么暴力怎么搞就好了. 可以枚举最长匹配前缀, 和最长匹配后缀, 中间暴力for. 1 /*Author :usedrose */ 2 /*Created Time :2015/7/25 19:05:28*/ 3 /*File Name :2.cpp*/ ... 阅读全文
posted @ 2015-07-26 16:34 UsedRose 阅读(129) 评论(0) 推荐(0) 编辑
摘要: zoj Tree of Tree 1 /*Author :usedrose */ 2 /*Created Time :2015/7/26 1:06:37*/ 3 /*File Name :2.cpp*/ 4 #include 5 #include 6 #include 7 #include ... 阅读全文
posted @ 2015-07-26 09:44 UsedRose 阅读(230) 评论(0) 推荐(0) 编辑