2013年3月4日
摘要: 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; ... 阅读全文
posted @ 2013-03-04 16:19 chenkkkabc 阅读(192) 评论(0) 推荐(0) 编辑