Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

终于过了,但很不爽,求解释~为什么初始秩设为1用C++交就WA,G++就可以过,而改成0,C++才可以过??不解阿~

Posted by tongjiantao at 2010-11-05 10:03:03 on Problem 2513
并查集初始化: 
void Make_Set()
{
    for(int i = 1; i <= M; i++)
    {
        father[i] = i;//父节点
        rank[i] = 1;  //秩??? 
    }
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator