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*logn)^2)的预处理,O(1)的读取

Posted by ever_IMOer at 2008-10-25 22:20:23 and last updated at 2008-10-25 22:41:13
In Reply To:Re:说说啥题? Posted by:swgr at 2008-10-25 21:00:57
> 给出n,求F(n)。
> 
> F(n) = sigma(i = 3 to n) Gcd(i);
> 
> Gcd(x) = gcd(C(1,x),C(2,x),...,C(x-1,x))

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