给定一个int n,返回n的阶乘的末尾连续的零的个数。保证n为正整数。 测试样例: 5 返回:1
加载中...
import java.util.*; public class Factor { public int getFactorSuffixZero(int n) { // write code here } }
class Factor { public: int getFactorSuffixZero(int n) { // write code here } };
# -*- coding:utf-8 -*- class Factor: def getFactorSuffixZero(self, n): # write code here
class Factor { public int getFactorSuffixZero(int n) { // write code here } }