Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
对,就是这样子:)In Reply To:这样由前向后推,好像还有些重复计算,我改成找前边的,就不超了 Posted by:00403022 at 2005-07-14 00:36:25 > k=n/sushu[j]; > if (k%sushu[j]==0) > phy[n]=phy[k]*sushu[j]; > else > phy[n]=phy[k]*(sushu[j]-1); > 当n不是素数时,素数[j]是它的最小素因子 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator