CTDL&GT bài 2.A34 CTDL&GT bài Trailing Zero


LÀM BÀI

Points: 10 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

Trailing Zero

Problem Description

Đếm số lượng chữ số 0 tận cùng của n giai thừa.

Input Format

  • Một số nguyên dương n
  • Giới hạn: 1 ≤ n ≤ 10^14

Constraints

Không có ràng buộc thêm.

Output Format

Số lượng chữ số 0 tận cùng của n!

Sample

Sample Input 0
10
Sample Output 0
2

Explanation

  • 10! = 3.628.800
  • Số chữ số 0 tận cùng là 2

Comments

There are no comments at the moment.

Zalo