27 人解决,40 人已尝试。
53 份提交通过,共有 155 份提交。
4.9 EMB 奖励。
单点时限: 3.0 sec
内存限制: 256 MB
A number is perfect if it is equal to the sum of its divisors, the ones that are smaller than it. For example, number
Motivated by this definition, we introduce the metric of imperfection of number
Write a programme that, for positive integers
The first line of input contains the positive integers
The first and only line of output must contain the required sum.
24 24
12
1 9
21
Clarification of the first test case: