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:我觉得你想得太直接吧,其实用不着直接求每个eulerphi(inside)

Posted by xiaoze at 2007-09-21 08:40:45 on Problem 2480
In Reply To:我觉得你想得太直接吧,其实用不着直接求每个eulerphi(inside) Posted by:frkstyc at 2005-07-15 01:47:12
> 考虑phi(n/p)*p=n*PI(1-1/pi),pi是n/p的因子,所以只需要把n分解因数,用dp枚举一下每个质因子的个数就可以算出来了。我的dp是写成dfs的形式的。

不是很懂这句话的意思:所以只需要把n分解因数,用dp枚举一下每个质因子的个数

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