Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
稠密图,点最多200+2,建议使用邻接矩阵存,用邻接表可能很绕如果自己要调式数据的话,补一句: if(sub_x == -2 && sub_y == -2)//调试用看输出 break; 最后答案是四舍五入取整 双向图 最后补上除了地铁连接外,所有点之间的双向步行时间,别有遗漏~ Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator