一个数如果恰好等于不包含它本身所有因子之和,这个数就称为"完数"。 例如,6的因子为1、2、3,而6=1+2+3,因此6是"完数"。 编程序找出N之内的所有完数,并按下面格式输出其因子
N
? its factors are ? ? ?
1000
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
比赛类型:算法竞速竞赛
比赛情况:简单题6T;中等题2T;限时1小时(60Min/8T)
比赛规则:IOI赛制
比赛语言:C/C++ ; Java ; Python
编译优化:开放O2优化
——————————————————————————————————————————
为确保比赛正常进行,请提前五分钟进入系统,做好准备。
答题过程中自觉遵守比赛规则。可以重复提交。
(比赛时随机应变,合理分配时间)
To make sure the game is running smoothly, please get ready five minutes in advance.
Please abide by the rules of the game, can be repeated submission