• + 0 comments

    My python3 solution but time limit execution

    def solve(n):
        if n == 0:
            return 1
        i = 5
        while True:
            if (n*"0") in str(math.factorial(i)):
                return i
            i += 1