delete pics to save space
This commit is contained in:
23
history_source/信息学奥赛一本通/2.4.3.cpp
Normal file
23
history_source/信息学奥赛一本通/2.4.3.cpp
Normal file
@ -0,0 +1,23 @@
|
||||
#include<cstdio>
|
||||
long long ans;
|
||||
void anss(int n,int x)
|
||||
{
|
||||
ans++;
|
||||
for(int i=x;i*i<=n;i++) if(n%i==0) anss(n/i,i);
|
||||
}
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
scanf("%d",&n);
|
||||
long long answer[n];
|
||||
int x;
|
||||
for(int i=0;i<n;i++)
|
||||
{
|
||||
ans=0;
|
||||
scanf("%d",&x);
|
||||
anss(x,2);
|
||||
answer[i]=ans;
|
||||
}
|
||||
for(int i=0;i<n;i++) printf("%lld\n",answer[i]);
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user