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

我的一百题,虽然很水,但仍值得纪念~

Posted by rudylau at 2008-09-02 01:49:20 on Problem 1401
#include<iostream>
using namespace std;
int main()
{
int x,d,c,co;
cin>>x;
while(x--)
{
cin>>d;
for(co=0,c=5;d>=c;c*=5)co+=d/c;
cout<<co<<endl;
}
return 0;
}

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