public class Solution {
public int trailingZeroes(int n) {
int result = 0;
while(n > 0){
n = n/5;
result += n;
}
return result;
}

}

需要注意 个别数 5^n;

 

posted on 2016-01-08 11:35  爱推理的骑士  阅读(125)  评论(0编辑  收藏  举报