| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
终于过了,但很不爽,求解释~为什么初始秩设为1用C++交就WA,G++就可以过,而改成0,C++才可以过??不解阿~并查集初始化:
void Make_Set()
{
for(int i = 1; i <= M; i++)
{
father[i] = i;//父节点
rank[i] = 1; //秩???
}
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator