摘要:
unsigned int count(unsigned int n) { unsigned int cnt = 0; unsigned int i, j; for (i = 1; i <= n; i++) { j = i; while (j % 5 == 0) { cnt++; j /= 5; } } return cnt;}或unsigned int count(unsigned int n) { unsigned int cnt = 0; while (n) { cnt += n / 5; ... 阅读全文