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

Re:哪位能提供些测试数据啊,我用并查集做的,交上去老是WA,代码如下:如发现问题请指正

Posted by fireliuyu at 2008-11-01 10:28:40 on Problem 3620
In Reply To:Re:哪位能提供些测试数据啊,我用并查集做的,交上去老是WA,代码如下:如发现问题请指正 Posted by:fireliuyu at 2008-10-30 22:36:50
> 灵光一闪,是parent的值有问题,只考虑了n<10的情况,将其中的10全不宏替换为1000就ac

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