简单题
#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("%lld\n", ans);}return 0; }
简单题
#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("%lld\n", ans);}return 0; }
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态