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 |
Re:看不懂解题报告。。。请哪位解释一下?。。。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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator