标签:
1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<algorithm> 5 using namespace std; 6 int main() 7 { 8 int n,i; 9 while(~scanf("%d",&n)) 10 { 11 int ans=0; 12 for(i=1;i<=n;i++) 13 { 14 if(n%i==0) 15 ans++; 16 } 17 printf("%d\n",ans); 18 19 } 20 return 0; 21 }
标签:
原文地址:http://www.cnblogs.com/cancangood/p/4392309.html