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:通过了,一点经验

Posted by risyomei at 2008-07-31 17:04:23 on Problem 1006
In Reply To:通过了,一点经验 Posted by:saintguang at 2008-04-08 14:04:23
> 不要设很多没必要的限制,限制多了,都不知道自己那错了,我就是设了很多if语句,结果不知道哪错了,去掉那些if语句后,就通过了。另外,所求出来的值有可能是负数或0,这时要加上21252.这点要注意。我没有用中国剩余定理,不过看了别的同学发的中国剩余定理的算法,真的很强大。
> 另外附上一些测试数据,其实是把前面同学发的数据汇总了一下。
> 0 4 5 0 368
> 2 2 2 2 21252
> 123 128 133 1 99
> 123 128 133 100 21252
> 0 1 2 1 16996
> 1 0 2 1 8119
> 1 2 0 1 13133
> 1 2 3 0 16998
> 117 58 2 27 21227
> 
> 大家一起加油

123 128 133 1 99

谢了~~

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