TASK DEFINITION: This task is to find the number of 'For' loops present in the given cpp program.
PROBLEM: int F(int n,int a)
{
if(n==1) return 1;
if(a==1) return 0;
if(n%a==0) return F(n/a,a)+F(n,a-1);
return F(n,a-1);
}
main()
{
int n,a,i;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&a);
printf("%d
",F(a,a));
}
}

SOLUTION: 1

PROBLEM:
int count;

void fun(int i, int j)
{
int k;
for(k=i; k<=sqrt(j); k++) {
if(j%k == 0) {
count++;
fun(k,j/k);
}
}
}
int main()
{
int N,turn,c;
scanf("%d",&turn);
for(c=1;c<=turn;c++)
{
int n,i;
scanf("%d",&n);
for(i=2; i<=sqrt(n); i++) {
if(n%i == 0) {
count++;
fun(i,n/i);
}
}
printf("%d
",count+1);
count=0;
}

}

SOLUTION: 3

PROBLEM: int sum=0,t; //sum?????????,t??????
void dg(int s) //?s????
{
for(int i=s;i<=t;i++)
{
if(t%i==0) //?i??t??
{
t=t/i;
if(t==1) sum++; //t????,??+1
else dg(i); //??????
t=t*i;
}
}
}
int main()
{
int n;
cin>>n;
while(n--) //??n?
{
cin>>t;
dg(2);
cout<<sum<<endl;
sum=0;
}
return 0;
}

SOLUTION:
1