#include<stdio.h>
int yin(int s);
int main()
{
int s;
scanf("%d",&s);
if(s==yin(s))
printf("YES");
else
printf("NO");
return 0;
}
int yin(int s)
{int i,sum=0;
for(i=1;i<s;i++)
{if(s%i==0)
sum+=i;
}
return sum;
}
标签:return,10.30,int,sum,yin,printf,main From: https://blog.51cto.com/u_15758636/5807866