【数学】 HDU 1124 Factorial
来源:互联网 发布:乐视网络电视app下载 编辑:程序博客网 时间:2024/06/04 18:40
链接:XXXXX
题目看起来 好长 涉及题意的就是那么几句话。。。有必要酱子么。
#include <iostream>#include <cstdio>#include <cstring>#include <algorithm>#include <cmath>using namespace std;int main(){ int st[] = {5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625}; int t; while(scanf("%d", &t) != EOF) { while(t--) { int n; scanf("%d", &n); int cnt = 0; for(int i = 0; i < 12; i++) cnt += n / st[i]; printf("%d\n", cnt); } } return 0;}
0 0
- 【数学】 HDU 1124 Factorial
- HDU 1124 Factorial&&nyoj 84 阶乘的 0【数学】
- Factorial hdu 1124
- HDU 1124 Factorial
- HDU 1124 Factorial
- HDU 1124 Factorial
- HDU:1124 Factorial
- hdu 1124 Factorial
- HDU 1124 Factorial
- hdu 1124 Factorial
- HDU 1124 Factorial
- HDU 1124 Factorial
- HDU 1124 Factorial(数论)
- hdu 1124 Factorial
- 【HDU】 1124 Factorial
- HDU - 1124 Factorial
- HDU HDOJ 1124 Factorial
- hdu 1124 Factorial(数论:推理)
- 解放军时隔3年再加薪 增幅最高40%
- 宁德“被办信用卡” 小伙厦门报案“碰壁”
- 论文中图片处理体会
- meavn--Web开发神器
- FTP上传下载
- 【数学】 HDU 1124 Factorial
- Bootstrap介绍and入门
- [C#]DataTable使用过程中常用的Select、Find和Compute方法
- FA 分配已有资产 API Demo
- Unity3d 读取本地txt文件
- Qt-旋转图案
- 基于Map-Reduce的相似度计算
- Spring MVC应用web.xml两种配置
- android USB host APIs中文翻译