2012年9月2日

hdu 1878欧拉回路

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1878View Code 1 #include<stdio.h> 2 #include<string.h> 3 int n,m; 4 int root[1002]; 5 int from[1002]; 6 int to[1002]; 7 int find(int x) 8 { 9 int res=x;10 while(x!=root[x])11 x=root[x];12 return x;13 }14 15 void merge(int x,int y)16 {17 ... 阅读全文

posted @ 2012-09-02 20:30 仁者无敌8勇者无惧 阅读(115) 评论(0) 推荐(0) 编辑

导航