instruction:
This task is to find the number of 'For' loops present in the given cpp program.
question:
// ????2.cpp : ??????????????
//

void out( int,int );

int t = 1;

int main()
{
int n = 0;
int i = 0;
double sum = 0;
cin >> n;

for( i = 1;i <= n;i++ )
{
cin >> sum;
out(sum,2.0);
cout << t << endl;
t = 1;
}

cin >> i;

return 0;
}

void out(int sum,int q )
{
int num = 0;
double m = sum;
num = sqrt(m);
if( sum % q == 0 && q <= num )
{
t++;
out( sum / q,q );
out( sum,q + 1 );
}
if( sum % q != 0 && q <= num )
out( sum,q + 1);
}

answer:
1

question:

int dp[40000][200]={0};
int main()
{
int n,i,N;
int mm( int , int );

cin>>n;
for(i=1;i<=n;i++)
{
cin>>N;
cout<<mm(N,2)<<endl;
// if(prime(N)) cout<<"haha";
}

return 0;
}

int mm( int n, int i)
{
int sum=1;

if(dp[n][i]>0) return dp[n][i];

for(int j=i; j<=sqrt(n);j++)
{
if(n%j==0)
{
sum += mm(n/j,j);
}
}
dp[n][i]=sum;
return sum;
}

answer:
2

question:
int get(int n,int m)//??????????????????n??????m??????
{
if(n==1)return 1;//??n?1???????????1???
while(m>=2)//?m?????????????????????????????????????
{
if(n%m==0)break;
--m;
}
if(m==1)return 0;//??m?1??????????
return get(n/m,m)+get(n,m-1);//?????????????????????????????????????n/m??????????
}
int main()
{
int t;
cin>>t;
for(int i=0;i<t;++i)
{
int n;
cin>>n;
cout<<get(n,n)<<endl;
}
return 0;
}

answer:
1