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 |
说一点需要注意的!!总WA的人可以看看。c语言中的%和数学求模不太一样 ,c中的-1%2=-1,而数学中的 -1 mod 2=1 所以在判断 象 是否能达到某地时,记得要先取绝对值! Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator