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

Re:郁闷!!无缘无故的错!!!

Posted by hzx621 at 2005-09-09 14:16:45 on Problem 1401
In Reply To:郁闷!!无缘无故的错!!! Posted by:hzx621 at 2005-09-09 14:16:35
#include"stdio.h"
#include"math.h"
void main()
{
	unsigned long n,i,j,t,k;
	scanf("%ld",&n);
	while(n--)
	{
		scanf("%ld",&t);
		for(i=1,k=0;i<=13;i++)
		{
			j=(unsigned)pow(5,i);
		    k+=t/j;
		}
		printf("%ld\n",k);
	}
}

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