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 penghaitao at 2014-08-12 09:47:37 on Problem 2243
In Reply To:求大神指导,样例全过WA Posted by:penghaitao at 2014-08-12 09:33:04
艾玛,AC了、、、、
if(visit[str.xx][str.yy] || str.xx<0 || str.xx>8 || str.yy<1 || str.yy>8)
str1.yy = A[1]-'0';

由于a1从1开始,所以应该是减‘-1’
所以上缅甸判断也应该是<0
隔天写代码果然容易脑残。。。

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