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细节

Posted by laserss at 2012-07-21 10:16:09 on Problem 1125
In Reply To:WA细节 Posted by:nijiushun at 2012-04-25 21:28:11
> for(k=1;k<=n;k++) //探测点位置一定放前边,否则WA..... 
>   for(i=1;i<=n;i++)  
>      for(j=1;j<=n;j++)                
>              
>   if(i!=j && d[i][j]>d[i][k]+d[k][j])
>                    d[i][j]=d[i][k]+d[k][j];//FLOYD
---------------------------------------------------------
以前因为这个错了十几次……

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