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

O(n*a*t)----->O(a*t)

Posted by library2 at 2009-10-25 04:55:07 on Problem 3046 and last updated at 2009-10-25 04:59:24
把O(n*t^20)方法中f[j]与f[j+1] 的方程列出来后做差,O(n*t)方程便出炉。
注意:由于过程中mod10^6 所以算出的数可能为负数,用10^6加上即可

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