1000的阶乘 的尾部0的数目

0 views
Skip to first unread message

bruc...@gmail.com

unread,
Jul 7, 2006, 1:01:05 AM7/7/06
to 星星爱CPP
#include <iostream>
using namespace std;

int main()
{
size_t m = 0;
for( size_t n=1000; n; m+=n/=5 );
cout << m << endl;
}

Reply all
Reply to author
Forward
0 new messages