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 link85 at 2007-04-20 13:24:59 on Problem 2190
In Reply To:Re:这样为什么会WA?请教。。 Posted by:link85 at 2007-04-20 13:22:29
问题在y=11-n%11;
当你n=11时,y=11,而不是0
可以改为y=11-((n-1)%11+1)
or y=10-(n-1)%11

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