#include <cstdio>using namespace std;int main(){ int t; scanf("%d", &t); while (t--) { long long n; scanf("%lld", &n); long long temp = 5; long long ans = 0; while (temp <= n) { ans += n / temp; temp *= 5; } printf("%lldn", ans); } return 0;}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)