http://acm.njupt.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=1040
#include <stdio.h>
int main()
{
int I, i;
int sum = 0;
scanf("%d", &I);
for (i = 1; i <= I; i++)
{
if (I % i == 0)
{
sum += i;
}
}
printf("%d", sum);
return 0;
}