-->
当前位置:首页 > 题库

PROGRAMMING:perfect number

Luz5年前 (2021-05-10)题库436
Program to get all completions within 1000. If a number is exactly equal to the sum of its factors (except itself), it is called "perfect". For example, 6 = 1 + 2 + 3, so 6 is a perfect number.
###Output format:
Output all completions in one row, and each completion takes up 5 columns. There are no additional characters.
###Output example:
```out
6 28 496
```






answer:If there is no answer, please comment