| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:怎么wa,谢谢啊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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator