Welcome   HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online
Home
FAQs
Problem Set
Practices
Online Contests
Major Exercises
OI Special
Judgement
Submit
Online Status
User Ranklist
Users
Register new
Login
Web Links
Hunan Normal University
College of Information Science and Engineering
阶乘末尾 0 的个数
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB
Total submit users: 314, Accepted users: 238
Problem 10435 : No special judgement
Problem description
  从输入文件中读取一个数n,求出n!中末尾0的个数。

Input
  输入有若干行。第一行上有一个整数m,指明接下来的数字的个数。然后是m行,每一行包含一个确定的正整数n1£n£1000000000

Output
  对输入行中的每一个数据n,输出一行,其内容是n!中末尾0的个数。

Sample Input
3
3
100
1024
Sample Output
0
24
253
Problem Source
  qshj

Submit   Discuss   Judge Status  Problems  Ranklist 

HUNAN NORMAL UNIVERSITY ACM/ICPC Judge Online, Version 2010.5.5.final.
Web visits:2134 today,12073183 total, since 2010-05-07