练习专区

今天的一小步就是明天的一大步
Problem 1059 完数
Accepted: 23   Total Submit: 73
Time Limit: 1000ms   Memory Limit: 30720KB
Description
一个数如果恰好等于它的因子之和,这个数就称为“完数”。例如,6的因子为1,2,3,而6=1+2+3,因此6是“完数”。编程找出1000之内的所有完数,并按下面格式输出其因子:6 its factor are 1,2,3
Input
输出1000以内的所有完数,并按下面格式输出其因子:6 its factor are 1,2,3
Output
Sample Input
Sample Output
Hint
提交     返回