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:终于A了。

Posted by qq490456661 at 2014-07-27 19:55:50 on Problem 1751
In Reply To:终于A了。 Posted by:qq490456661 at 2014-07-27 19:53:44
> 一直WA,原来是数组开小了,开了10w。- -这下没什么好说了的吧!还有,答案我是按字典序输出的.


补充下,我用的Kruskal算法,532ms过的,后来发现不用字典序输出也能A。
 8 3
 3 8 两种顺序都可以。

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