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

稠密图,点最多200+2,建议使用邻接矩阵存,用邻接表可能很绕

Posted by 947186602 at 2020-08-10 17:31:31 on Problem 2502
如果自己要调式数据的话,补一句:
if(sub_x == -2 && sub_y == -2)//调试用看输出
    break;


最后答案是四舍五入取整

双向图

最后补上除了地铁连接外,所有点之间的双向步行时间,别有遗漏~

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