Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

这也tle啊?

Posted by 00 at 2005-04-20 22:12:51 on Problem 1401
#include<stdio.h>
long t,a,n,m,i,j,k;
void main()
{
	scanf("%d",&t);
	for(i=0;i<t;i++)
	{
		scanf("%ld",&a);
		m=0;
		for(j=5;j<=a;j+=5)
		{
			k=0;
			n=j;
			for(;!(n%5);k++)
				n/=5;
			m+=k;
		}
		printf("%ld\n",m);
	}
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator