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

终于过了,给大家留下几个注意事项...

Posted by math_scut at 2008-03-17 23:09:31 on Problem 3530
In Reply To:Re:Runtime Error.给些例子吧 Posted by:gubuntu at 2008-03-17 20:40:29
注意几点:
一. 要用__int64,就不会超过精度.
二. 小心D为M的倍数的时候,一开始就使用 D=D%M,这样不影响结果.
三. 就是楼上说的,当D>M-D的时候可以把D变换成M-D,相应的L,R也作变换。
   这样就能保证对数时间复杂度了。
四. 解题报告的分析没有问题,只是要作上面第三条所说的优化.

兄弟们,继续努力....

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