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 |
不用并查集可不可以做?我的想法是,设个数组,都初始化为0,在输入两个同学是同一宗教时,把较大的一个对应的数组的值为1,之后再输入完之后,数不是不是1的元数的个数 但是我的代码总是wa,求解。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator