摘要: 并查集的简单应用,数组开了1010个,初始化却用到了set[1010];交了好几次,都是运行错误。#includeusing namespace std;int set[1020];int find(int x){ int r= x; while(set[r] != r) r=... 阅读全文
posted @ 2014-07-24 16:36 TK在颤抖 阅读(97) 评论(0) 推荐(0) 编辑