赞
踩
题目:
题解:
- class Solution {
- public int trailingZeroes(int n) {
- int ans = 0;
- while (n != 0) {
- n /= 5;
- ans += n;
- }
- return ans;
- }
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。