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

提交了25次终于找到错在哪里。。。。

Posted by gzdk at 2011-09-09 20:45:36 on Problem 3083 and last updated at 2011-09-09 20:48:37
原来初始化visited 数组时写成了
i从0 到row,j 从0 到col,
而row和col 表示的是开始点的坐标!!变量命名不好导致细节出错(把他们当成了总行数,总列数。。),还一直在检查算法是否有错,却是错在不容易引起注意的细节了。以后注意。马上50题了,加油!

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