TASK DEFINITION: This task is to find the number of 'For' loops present in the given cpp program.
PROBLEM: int s=0;
void f(int x,int y)
{
	int i,j,k;
	if(x==1)
		s++;
	else
	{
		for(;y<=x;y++)
		{
			if(x%y==0)
			{
				f(x/y,y);
			}
		}
	}
}
int main()
{
	int n,k,q,j;
	scanf("%d",&q);
	for(j=0;j<q;j++)
	{
		scanf("%d",&n);
		f(n,2);
		printf("%d\n",s);
		s=0;
	}
	return 0;
} 

SOLUTION: 2

PROBLEM: int sum=0;
void recur(int N,int i)
{
    if(N==1) sum++;
    while(i<=N)
    {
        if(N%i==0) 
			recur(N/i,i);
        i++;
    }
    return ;
}
int main()
{
    int t=0;
    cin>>t;
    for(int k = 0; k < t; k++)
    {
        int n=0;
        cin>>n;
        int i=2,res=1;
        for(int i =2; i <=n/2;i++)
        {
            if(n%i==0)
            {
                sum=0;
                recur(n/i,i);
                res+=sum;
            }
        }
        cout<<res<<endl;
    }
    return 0;
}


SOLUTION: 2

PROBLEM: /*
 * h35.cpp
 * function:????
 * Created on: 2012-11-30
 * Author: sear
 */
//m????n???????????n???n??m,????n,???n??1
int f(int m, int n) {			//m???,n????????
	int i, sum = 0;				//i?????,sum???????
	if (n == 1)
		return 1;				//???????1???1
	for (sum = 0, i = m; i <= n; i++)//?????????????????m???????m???
		if (n % i == 0)
			sum += f(i, n / i);//?n???????????n??i????
	return sum;					//??sum???????
}
int main() {
	int i, n, k;				//i?????,n????????,k?????????
	for (i = 0, cin >> n; i < n; i++) {
		cin >> k;				//???????
		cout << f(2, k) << endl;//???????
	}
	return 0;				//????
}


SOLUTION:
2

