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

floyd到底怎么初始化对角线元素啊

Posted by wahui at 2012-05-15 08:01:19 on Problem 3613
蛋疼啊,floyd到底该怎么初始化对角线元素?如果在输入时的数组记为mat[i][i],那么mat[i][i]由于有自环是不是要初始化为inf?那用于存放结果的ans[][]数组对角线又该怎么初始化?初始化为0才过,初始化为inf一直不过???纠结啊,求指教

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