现在的位置: 首页 > 综合 > 正文

1107(数论)

2013年10月11日 ⁄ 综合 ⁄ 共 136字 ⁄ 字号 评论关闭
#include <cstdio>
int main()
{
	int a,b;
	scanf("%d",&a);
	while(a--)
	{
		int sum=0;
		scanf("%d",&b);
		while(b)
		{
			sum+=b/5;
			b/=5;
		}
		printf("%d\n",sum);
	}
	return 0;
}

抱歉!评论已关闭.