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

绝对值

Posted by 1458254357 at 2014-05-10 11:39:40 on Problem 2377
输入时将路径长度前加一个负号变成负数,按一般求最小生成树的做法做出来之后,再输出绝对值就OK了;用F数组记录节点是否在最小生成树上,若有一个点不是,就输出-1退出,我这样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