摘要:B -Network这个题目真坑,用G++居然TLE,用c++ 直接A了,还好在poj直接过了,否则,找错误不得找死啊!!!!#include<iostream>
#include<algorithm>
using namespace std;
const int maxn=15001;
struct node { int x,y,value;
}edge[maxn];
int fa[maxn];
int find(int x)
{ return x==fa[x]?x:find(fa[x]); } bool cmp(const node a,const node b)
阅读全文