描述给定两个数n,m,其中m是一个素数。将n(0<=n<=2^31)的阶乘分解质因数,求其中有多少个m。 做法: while(n/m) ans+=n/m,n/=m; ans即为答案 转载于:https://www.cnblogs.com/adelalove/p/9015175.html