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:对表找不到问题, 但是WA, 代码在这里, 谁能给个test case?

Posted by NetWilliam at 2021-02-25 08:35:38 on Problem 2112 and last updated at 2021-02-25 08:38:02
In Reply To:对表找不到问题, 但是WA, 代码在这里, 谁能给个test case? Posted by:NetWilliam at 2021-02-25 04:18:22
搞定了, floyd最短路有点问题, 不太符合题意

if (g[i][j] != INF)
这一行改成
if (g[i][j] != INF || i != j)
就过了

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