标签:
#include<iostream> using namespace std; int count(int N) { if(N==0) return 0; int num=0; for(int i=1;i<=N;++i) { int j=i; while(j%5==0) { num++; j/=5; } } return num; } int aa(int N) { int sum=0; while(N) {sum+=N/5; N/=5;} return sum; } int main() { cout<<count(100)<<endl; system("pause"); return 0; }
标签:
原文地址:http://blog.csdn.net/qq_22335577/article/details/45010795