输入格式
一行1个正整数:N,范围在[1,10000]。
输出格式
一个正整数。
输入/输出例子1
输入:
12
输出:
6
解释:有1, 2, 3, 4, 6, 12
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,ans=0;
scanf("%d",&n);
for(int i=1;i<=n;i++) if(n%i==0) ans++;
printf("%d",ans);
return 0;
}
5238

被折叠的 条评论
为什么被折叠?



