文件名称:wanshu
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.25kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
描述
自然数中,完数寥若晨星,请在从1到某个整数范围中打印出所有的完数来。所谓“完数”是指一个数恰好等于它的所有不同因子之和。例如,6是完数,因为6=1+2+3。而24不是完数,因为24≠1+2+3+4+6+8+12=36。
输入
输入数据中含有一些整数n(1<n<10000)。
输出
对于每个整数n,输出所有不大于n的完数。每个整数n的输出由n引导,跟上冒号,然后是由空格开道的一个个完数,每个n的完数列表应占独立的一行。 -descr iption
For natural Numbers, the number LiaoReChenXing, please in from 1 to an integer in the range of print out all the number. The so-called "the number" refers to a number of different is equal to it just all factors combined. For example, the 6 is the number, because 6 = 1+ 2+ 3. And after 24 not number, because 24 indicates a 1+ 2+ 3+ 4+ 6+ 8+ 12 = 36.
input
Input data contains some integer n (1 < n < 10000).
output
For every integer n, output all not greater than the number of the n. Every integer n output by n guide, keep up with the colon, and then by the a space is saying the number, the number of each n list should be accounted for a line of independence.
自然数中,完数寥若晨星,请在从1到某个整数范围中打印出所有的完数来。所谓“完数”是指一个数恰好等于它的所有不同因子之和。例如,6是完数,因为6=1+2+3。而24不是完数,因为24≠1+2+3+4+6+8+12=36。
输入
输入数据中含有一些整数n(1<n<10000)。
输出
对于每个整数n,输出所有不大于n的完数。每个整数n的输出由n引导,跟上冒号,然后是由空格开道的一个个完数,每个n的完数列表应占独立的一行。 -descr iption
For natural Numbers, the number LiaoReChenXing, please in from 1 to an integer in the range of print out all the number. The so-called "the number" refers to a number of different is equal to it just all factors combined. For example, the 6 is the number, because 6 = 1+ 2+ 3. And after 24 not number, because 24 indicates a 1+ 2+ 3+ 4+ 6+ 8+ 12 = 36.
input
Input data contains some integer n (1 < n < 10000).
output
For every integer n, output all not greater than the number of the n. Every integer n output by n guide, keep up with the colon, and then by the a space is saying the number, the number of each n list should be accounted for a line of independence.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建 Microsoft Word 2003 文档.doc
wanshu.txt
wanshu.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.