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 liushuixingyun at 2010-07-24 21:08:44 on Problem 1979
In Reply To:怎么wa,谢谢啊 Posted by:skogt at 2010-07-20 10:23:35
 
 bool Isok(int a,int b)
 {
 	if(a<0||b<0||a>n||b>m)
 		return false;
 	return true;
 }
 这个函数里面if条件应改为if(a<0||b<0||a>n-1||b>m-1)

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