Problems Description
<p>一items数如果恰好等于它的因子之和,这items数就称为"完数"。 例如,6的因子为1、2、3,而6=1+2+3,因此6是"完数"。 编程序找出N之内的所有完数,并按下面格式输出其因子:</p>
Input格式
<p>N</p>
Output格式
<p>? its factors are ? ? ?</p>
Sample
Sample Input 1
1000
Sample Output 1
6 its factors are 1 2 3
28 its factors are 1 2 4 7 14
496 its factors are 1 2 4 8 16 31 62 124 248
Submit Code
请先Login后Submit
🤖 AI 解题助手
OpenRouter
就绪