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:虽然是用kruskal的,因没考虑-1,wa一次,囧。。

Posted by rayafjyblue at 2010-12-08 00:29:31 on Problem 2377
In Reply To:第一个prim 两次wa后ac 注意两点 Posted by:hitfrank at 2010-03-18 14:37:05
> 1 输入有可能出现重边 
> 2 无生成树时输出-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