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 tbcaaa8 at 2014-03-24 00:25:04 on Problem 1664
【定理】整数n拆分成不超过m个数的拆分数=整数n的拆分中最大数不超过m的拆分数

从而有G(x)=(1+x+x^2+...+x^m)(1+x^2+x^4+...+x^m)...(1+x^2n+x^3n+...+x^m)

于是ans=G(m)

时间复杂度T(n)=Θ(mnlogn)
空间复杂度S(n)=Θ(m)

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