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:看不懂解题报告。。。请哪位解释一下?。。。

Posted by ecjtuwf at 2008-08-05 16:54:09 on Problem 3219
In Reply To:看不懂解题报告。。。请哪位解释一下?。。。 Posted by:bigheadghost at 2007-04-28 17:05:34
计算1~n之间包含一个因子i的个数的简单算法就是: 
cnt = 0; while (n) { n /= i; cnt += n; } 

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