Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
我的一百题,虽然很水,但仍值得纪念~#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator