文件名称:n!
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 160kb
- 下载次数:
- 0次
- 提 供 者:
- yvonne_*******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
给定一个正整数n,计算n!的尾部0的个数。
输入:输入数据有若干行。每行上有一个正整数n,对应一种情形。
输出:对于每一种情形,先输出“Case #: ”(#为序号,从1起),然后输出n的值,逗号,结果,换行。-Given a positive integer n, compute the number n! tail 0. Input: Input data have a number of lines. Each line has a positive integer n, corresponding to a situation. Output: For each case, the first output " Case#:" (# is the serial number, starting from 1), and then output the value of n, a comma, the result, change the line.
输入:输入数据有若干行。每行上有一个正整数n,对应一种情形。
输出:对于每一种情形,先输出“Case #: ”(#为序号,从1起),然后输出n的值,逗号,结果,换行。-Given a positive integer n, compute the number n! tail 0. Input: Input data have a number of lines. Each line has a positive integer n, corresponding to a situation. Output: For each case, the first output " Case#:" (# is the serial number, starting from 1), and then output the value of n, a comma, the result, change the line.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
97_阶乘尾部0的个数
..................\97.cpp
..................\97.msp
..................\Debug
..................\.....\97.exe
..................\.....\97.o
..................\97.cpp
..................\97.msp
..................\Debug
..................\.....\97.exe
..................\.....\97.o