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

说一点需要注意的!!总WA的人可以看看。

Posted by gengyit at 2007-05-18 14:50:23 on Problem 1657
c语言中的%和数学求模不太一样 ,c中的-1%2=-1,而数学中的 -1 mod 2=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