摘要: 转自http://hi.baidu.com/%B3%E9%B7%E7%B5%C4%BB%DE%C9%AC%C4%A2%B9%BD/blog/item/9f6581082f95880694ca6b2c.html------- test 1 ----5 41 2 401 4 202 4 202 3 303 4 10------- test 2 ----3 31 2 52 2 1002 3 3------- test 3 ----7 61 2 100002 3 100003 6 100001 4 80004 3 80002 5 60005 6 6000------- test 4 ----13 51 阅读全文
posted @ 2012-03-18 20:36 quasi-mathematician 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 1 #include<cstdio> 2 #include<cstdlib> 3 #include<memory> 4 #include<cstring> 5 #define maxn 202 6 #define MAXINT 0x5f5f5f5f 7 using namespace std; 8 int c[maxn][maxn]; 9 int pre[maxn];10 int queue[maxn];11 12 int N,M;13 14 int EK(int,int);15 16 int main(){17 while(scanf(&quo 阅读全文
posted @ 2012-03-18 19:30 quasi-mathematician 阅读(144) 评论(0) 推荐(0) 编辑