标签:images 有一个 rip ref 约数 jpg desc cep arc
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 47104 Accepted Submission(s):
15117
#include <cstdio> int num,n,ans; int main() { scanf("%d",&n); for(int x;n--;) { ans=1;scanf("%d",&x); for(int i=2;i*i<=x;i++) { if(x%i==0) { ans+=i; if(x/i!=i) ans+=x/i; } } printf("%d\n",ans); } return 0; }
标签:images 有一个 rip ref 约数 jpg desc cep arc
原文地址:http://www.cnblogs.com/ruojisun/p/7301140.html