task_name stringclasses 757
values | id stringlengths 40 41 | definition stringclasses 746
values | inputs stringlengths 1 289k | targets stringlengths 0 4.29k |
|---|---|---|---|---|
task921_code_x_glue_information_retreival | task921-9d28bbd851ee46f2a5259a720fda89b0 | This task is to find the number of 'For' loops present in the given cpp program. | /*
* 1118-4.cpp
*
* Created on: 2011-11-29
* Author: Administrator
*/
int divide(int n,int a){
int s=0,t=0,i;
if(n==1) return 1;
for(i=a;i>1;i--)
if(n%i==0){
s+=divide(n/i,i);
t++;
}
if(t==0) return 0;
return s;
}
int main(){
int n,k;
cin>>k;
while(k>0){
cin>>n;
cout<<divide(n,n)<<endl;
... | 1 |
task921_code_x_glue_information_retreival | task921-6be8b85a8f224eefab98d70ac66f2946 | This task is to find the number of 'For' loops present in the given cpp program. |
int devide(int n,int m)
{
if(n<m)
m=n;
if(n==1)//?????1?,??1
return 1;
int sum=0;
for(int i=m;i>=2;i--)
{
if(n%i==0)
{
sum=sum+devide(n/i,i);
}
}
return sum;
}
int main()
{
int n,i,m;
cin>>n;
i=0;
while ( i<n )
{
cin>>m;
cout<<devide (m,m)<<endl;//???????
i++;
}
return 0;
} | 1 |
task921_code_x_glue_information_retreival | task921-74783b45ace14e438c5e8e22d4c33fa5 | This task is to find the number of 'For' loops present in the given cpp program. |
int num = 1, i, factor;
void f(int factor, int x)
{
for (; factor * factor <= x; factor++)
{
if (x % factor == 0)
{
num++;
f(factor, x / factor);
}
}
}
int main()
{
int a, n;
cin >> n;
while(n--)
{
cin >> a;
f(2, a);
cout << num << endl;
num = 1;
}
return 0;
}
| 1 |
task921_code_x_glue_information_retreival | task921-aa4cf20c2a244a5494a30927a9c95b30 | This task is to find the number of 'For' loops present in the given cpp program. | int count;
void f(int x,int y)
{
int i=0;
if(x>=y)
for(i=y;i<=x;i++)
{
if(i==x)count++;
if(x%i==0) f(x/i,i);
}
}
main()
{
int t;
int n,i,x,j;
scanf("%d",&n);
for(i=0;i<n;i++)
{
count=0;
scanf("%d",&x);
f(x,2);
printf("%d\n",count);
}
} | 2 |
task921_code_x_glue_information_retreival | task921-b47b4e22bc3b40ee900b1e6e8324110c | This task is to find the number of 'For' loops present in the given cpp program. | int panduansushu(int t)
{
int i;
for(i=2;i<t;i++)
{
if(t%i==0){break;}
}
if(i>t/2)return 1;
else return 0;
}
int sum=0;
void fun(int n,int i)
{
if(n==1)sum++;
for(;i<=n;i++)
{
if(n%i==0)fun(n/i,i);
}
}
void main()
{
int a[100],i,res,j,n;
scanf("%d",&n);
for(j=0;j<n;j++)scanf("%d",&a[j]);
for(j=0;j<... | 5 |
task921_code_x_glue_information_retreival | task921-7aed5d7c48a84c4da129d4b94e2ef770 | This task is to find the number of 'For' loops present in the given cpp program. | int zhi(int a);
int yin(int m,int t);
int main()
{
int n,i=0;
int str[10000];
scanf("%d",&n);
for(i=0;i<n;i++)
scanf("%d",&str[i]);
i=0;
for(i=0;i<n;i++)
printf("%d\n",yin(str[i],2));
return 0;
}
int zhi(int a)
{
int k=2,flag=0;
for(k=2;k<=a/2;k++)
{
if(a%k==0)
{ flag=1;
break;
}
}
return flag;
... | 5 |
task921_code_x_glue_information_retreival | task921-abfa9b7bee2d468da243b55b4c5fff1a | This task is to find the number of 'For' loops present in the given cpp program. | void account (int ,int);
int p;
int main()
{
int m;
int n;
cin>>n;
while(n>0)
{
p=0;
cin>>m;
account(m,1);
cout<<p<<endl;
n--;
}
return 0;
}
void account (int m,int i)
{
if(m==1)
p++;
else for(int j=2;j<=m;j++)
{
if((m%j==0)&&(j>=i))
account(m/j,j);
}
} | 1 |
task921_code_x_glue_information_retreival | task921-3c576b99a09f4cf0940fe7688fb3c73f | This task is to find the number of 'For' loops present in the given cpp program. | int sum=0;
int main()
{ void shu(int a,int b);
int n=0,i=0,a=0,c=0,j=0;
scanf("%d",&n);
for(i=1;i<=n;i++)
{ scanf("%d",&a);
for(j=2;j<=sqrt((double)a);j++)
{ if(a%j==0)
{ sum=sum+1;
shu(j,a/j);
}
}
printf("%d",sum+1);
if(i<n)
printf("\n");
sum=0;
}
re... | 3 |
task921_code_x_glue_information_retreival | task921-9a64f5434f6848829c2e7082c02c9f42 | This task is to find the number of 'For' loops present in the given cpp program. |
int sort(int, int, int);
int main()
{
int t=0;
cin>>t;
int k=1;
for (k=1;k<=t;k++)
{
int vacancy=0;
int num=1;
cin>>num;
int i=1;
int temp=num;
for (i=2;i<=temp;i++)
{
while (temp%i==0)
{
vacancy=vacancy+1;
temp=temp/i;
}
}
cout<<sort(1,vacancy,num)<<endl;
}
return 0;
}
int sort(int... | 3 |
task921_code_x_glue_information_retreival | task921-e286c7cd17924e49bae9577e6500f455 | This task is to find the number of 'For' loops present in the given cpp program. | int s=0,z=2;//?????? z?? ???????
void number(int x,int y)
{ //????
int i;
if(x==1)
{
s=s+1;
}//????1? ???? s+1
for(i=y;i<=x;i++)
{
if(x%i==0)
{
number(x/i , i);
}//??????
}
}
int main()
{
int n,a,i;
cin>>n;
for(i=1;i<=n;i++)
{
cin>>a;
number(a,z);
cout<<s<<endl;//????
s=0;//... | 2 |
task921_code_x_glue_information_retreival | task921-ff86cb7b373b43b592092470efa8e370 | This task is to find the number of 'For' loops present in the given cpp program. | int fun(int i,int j,int count)
{
int k;
for (k=i;k<=sqrt(j);k++)
if(j%k==0)
{
count++;
count=fun(k,j/k,count);
}
return count;
}
int main()
{int count;
int k,n,i,j;
scanf("%d",&k);
for(j=0;j<k;j++)
{
scanf("%d",&n);
count=1;
for(i=2;i<sqrt(n);i++)
if(n%i==0)
{
count++;
coun... | 3 |
task921_code_x_glue_information_retreival | task921-1dcbcc30e7d846f5be8dd4c10914fa4f | This task is to find the number of 'For' loops present in the given cpp program. | int num=1,k=0;
int count(int n)
{
for(int i=2;i<=sqrt(n);i++)
{
if(n%i==0&&i>=k)
{
num++;
k=i;
count(n/i);
k=0;
}
}
return (num);
}
int main()
{
int i,n,a[100];
cin>>n;
for(i=0;i<n;i++)
{
cin>>a[i];
}
for(i=0;i<n;i++)
{cout<<count(a[i])<<endl;num=1;k=0;}
return 0;
} | 3 |
task921_code_x_glue_information_retreival | task921-7bedb2ee30754d0e8fb39d85c52660ba | This task is to find the number of 'For' loops present in the given cpp program. |
int f(int a, int b)
{
int k = 0;
if (a >= 2 * b)
{
for (int i = b; i <= a / b; i++)
{
if (a % i == 0 && a/i >= i)
{
k += f(a/i, i) + 1;
}
}
}
else
{
k = 0;
}
return k;
}
int main()
{
int n, a, t;
... | 1 |
task921_code_x_glue_information_retreival | task921-431b13777d69427582b384fbd7cc7f08 | This task is to find the number of 'For' loops present in the given cpp program. | int t, a, flag, a1;
/*bool prime(int k)
{
int j, sqrt_k;
if (k == 2)
return 1;
else
{
sqrt_k = sqrt((double)k);
for (j = 2; j <= sqrt_k; j++)
{
if (k % (int)j == 0)
break;
}
if (j == sqrt_k + 1)
return 1;
else
return 0;
}
}
/*
void find(int m)
{
int i;
if (prime(m))
{
flag = 1;
t+... | 4 |
task921_code_x_glue_information_retreival | task921-c681c7d10c784a399a7986168654df18 | This task is to find the number of 'For' loops present in the given cpp program. | int f(int a,int b)
{
if(a==b)return 1;
if(b>a)return 0;
if(a%b!=0)return f(a,b+1);
if(a%b==0)return f(a,b+1)+f(a/b,b);
}
int main()
{
int n=0,i=0,x,y;
cin>>n;
for(i=0;i<n;i++)
{
cin>>x;
y=2;
cout<<f(x,y)<<endl;
}
return 0;
} | 1 |
task921_code_x_glue_information_retreival | task921-02fdc6e9941743fd9514dc2aa3040352 | This task is to find the number of 'For' loops present in the given cpp program. | int way(int x,int m)
{
int sum=0,p=0,i;
for(i=m;i<x;i++)
if(x%i==0)
{
p++;
sum=sum+way(x/i,i);
}
sum=sum+1;
if(p==0) sum=1;
if(m>x) sum=0;
return(sum);
}
int main()
{
int n,a,i;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
scanf("%d",&a);
printf("%d\n",way(a,2));
}
return 0;
} | 2 |
task921_code_x_glue_information_retreival | task921-23efe2076c374464ab69107528939f76 | This task is to find the number of 'For' loops present in the given cpp program. |
int ispr(int t)
{
int v=(int)sqrt(t*1.0)+1;
for(int i=2; i<v; i++)
if(t%i==0)
return 0;
return 1;
}
int sum;
void fun(int n,int i)
{
if(n==1)
sum++;
for (; i<=n; i++)
{
if(n%i==0)
fun(n/i,i);
}
return ;
}
int main() {
int n;
... | 4 |
task921_code_x_glue_information_retreival | task921-4d3e028f28534d618dcc84d308b5b7f0 | This task is to find the number of 'For' loops present in the given cpp program. | int f(int a,int s)
{
int y=0;
for (;s<=a;s++)
{
if (s==a)
y+=1;
else if (s>1&&a%s==0)
y+=f(a/s,s);
}
return y;
}
main ()
{
int n,i,a;
scanf ("%d",&n);
for (i=0;i<n;i++)
{
scanf ("%d",&a);
printf ("%d\n",f(a,1));
}
... | 2 |
task921_code_x_glue_information_retreival | task921-b3c34c35f5bc44c798a536e806d428bf | This task is to find the number of 'For' loops present in the given cpp program. | 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()
{
i... | 1 |
task921_code_x_glue_information_retreival | task921-fdc075058c86414ea43f9fbdc76e5c74 | This task is to find the number of 'For' loops present in the given cpp program. |
int cut(int m,int l){
int sum=1;
for(int i=l;i<=sqrt((double)m/l);i++){
if((m/l)%i==0){
sum+=cut(m/l,i);
}
}
return sum;
}
int main (){
int n;
cin>>n;
for(int i=0;i<n;i++){
int t=0;
cin>>t;
cout<<cut(2*t,2);
if(i<n-1) cout<<endl;
}
}
| 2 |
task921_code_x_glue_information_retreival | task921-8a03bf292050444dba10df3ff72d8c24 | This task is to find the number of 'For' loops present in the given cpp program. | //***************************************
//* ?????2010?12?01? *
//* ????????? *
//* ????? ???1000012902 *
//***************************************
int factors(int, int, int); //????factors?????????????
int main()
{
int num, n, i, j, b[10000];
cin >> n; ... | 4 |
task921_code_x_glue_information_retreival | task921-99f066a383ee4746991bbeb5e86fe408 | This task is to find the number of 'For' loops present in the given cpp program. | int num;
void divide(int n,int n2)
{
int i,m1;
m1=(int)sqrt((double)n);
for(i=n2;i<=m1;i++)
{if(n%i==0)
{num++;divide(n/i,i);}//?????????????????????????????
}
}
int main()
{
int n,i,m;
cin>>n;
for(i=0;i<n;i++)
{
num=1;
cin>>m;
divide(m,2);
cout<<num<<endl;
}
return 0;
} | 2 |
task921_code_x_glue_information_retreival | task921-129d19ff705647debc8c269a0ea08ac1 | This task is to find the number of 'For' loops present in the given cpp program. | int means(int,int);
int main()
{
int n,i=0;
cin>>n;
while(i<n)
{
int a;
cin>>a;
cout<<means(a,a)<<endl;
i++;
}
return 0;
}
int means(int a,int b)
{
int i,sum=0;
if(a!=1)
{
for(i=b;i>=2;i--)
{
if(a%i==0)
{
sum=sum+means(a/i,i); //?i????a??????a/i???a/i??????i????????????
... | 1 |
task921_code_x_glue_information_retreival | task921-c3542461ebf94fd1b694686200fb09e7 | This task is to find the number of 'For' loops present in the given cpp program. |
int factorize(int n,int j)
{
int F=1;
for(;j<=sqrt(n);j++)
if(n%j==0)
F+=factorize(n/j,j);
return F;
}
int main()
{
int i,m,n[1000];
scanf("%d",&m);
for(i=0;i<m;i++)
scanf("%d",&n[i]);
for(i=0;i<m;i++)
printf("%d\n",factorize(n[i],2));
return 0;
} | 3 |
task921_code_x_glue_information_retreival | task921-2d884ded6aed4346bb8d20324fea2501 | This task is to find the number of 'For' loops present in the given cpp program. | //1000012915???
int f(int a,int min);
int main()
{
int n,i,a,A[100]; //????
cin>>n;
for(i = 0;i < n;i++) //??
{
cin>>a;
A[i]=f(a,2); //?2?????
};
for(i = 0;i < n;i++)cout<<A[i]<<endl; //??
return 0;
}
int f(int a,int min)
{
int result = 1;
int i;
if(a < min) //?... | 3 |
task921_code_x_glue_information_retreival | task921-9313a69717354879853333b72230e84a | This task is to find the number of 'For' loops present in the given cpp program. | int num =0;
void fenjie(int n,int x)
{
extern int num;
if ( n == 1)
num ++;
else
for(int i = x; i<=n;i++)
if(n % i == 0)
fenjie(n/i,i);
}
int main()
{
int n,k;
cin >> k;
for(int j = 0;j!= k;j++)
{extern int num;
num =0;
cin >> n;
fenjie(n,2);
cout<<num<<endl;
}
return 0;
} | 2 |
task921_code_x_glue_information_retreival | task921-a1444e510e17401080a64c8ee17c11e2 | This task is to find the number of 'For' loops present in the given cpp program. | int d(int,int);
int main()
{
int i,n,x;
cin>>n;
for(i=1;i<=n;i++)
{
cin>>x;
cout<<d(x,2)<<endl;
}
return 0;
}
int d(int x,int y)
{
int j,num=1;
if(x==1)
return 0;
if(x==2)
return 1;
for(j=y;j<=(int)sqrt((double)x);j++)
if(x%j==0)
num+=d(x/j,j);
return num;
}
| 2 |
task921_code_x_glue_information_retreival | task921-37e517e70c014b4ca0421c48c13c2c2d | This task is to find the number of 'For' loops present in the given cpp program. | int Factorization(int,int);
int main()
{
int n=0,num=0;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>num;
cout<<Factorization(num,2)+1<<endl;
}
return 0;
}
int Factorization(int num,int n)
{
int count=0;
for(int i=n;num/i>=i;i++)
if(num%i==0)
{
... | 2 |
task921_code_x_glue_information_retreival | task921-3374c37806cb47c4ac37bea4290282b9 | This task is to find the number of 'For' loops present in the given cpp program. | int n, m, ans, a[20];
void calc(int dep, int x)
{
if (x == 1)
{
ans++;
return;
}
for (int i = a[dep-1]; i <= x; i++)
if (!(x % i))
{
a[dep] = i;
calc(dep + 1, x / i);
}
}
int main()
{
scanf("%d", &n);
for (a[0] = 2;n; n--)
{
scanf("%d", &m);
ans = 0;
calc(1, m);
printf("%d\n", ans);
}
... | 2 |
task921_code_x_glue_information_retreival | task921-cc604acd393745d998a281639bdfa4c4 | This task is to find the number of 'For' loops present in the given cpp program. | void TRY(int,int);
int num=1;
int main()
{
unsigned short int n;
int INTEGER;
cin>>n;
while(n-->0)
{
cin>>INTEGER;
int h=2;
TRY(h,INTEGER);
cout<<num<<endl;
num=1;
}
}
void TRY(int a,int b)
{
int i;
for(i=a;i<=sqrt(b);i++)
{
if((b%i==0)&&(b/i!=1))
{
num++;
TRY(i,b/i);
}
}
} | 1 |
task921_code_x_glue_information_retreival | task921-5542f7b2c5514a10b018dd4e7f4a0bcb | This task is to find the number of 'For' loops present in the given cpp program. | int Digui(int a,int min)
{
int i,result=1;
if(a<min)
{
return 0;
}
for(i=min;i<a;i++)
{
if(a%i==0)
{
result+=Digui(a/i,i);
}
}
return(result);
}
int main()
{
int a[1000],n,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(i=0;i<n;i++)
{
printf("%d\n",Digui(a[i],2));
}
return... | 3 |
task921_code_x_glue_information_retreival | task921-c9e606f8519b4a6da1497ede62a46857 | This task is to find the number of 'For' loops present in the given cpp program. | int f(int,int); //????
int main( ) //?????
{ //?????
int n,i,a[50];
cin >>n; //??????
for(i=0;i<n;i++){
cin >>a[i]; //????
cout <<f(a[i],2) <<endl; //????
}
return 0; //???????????????????
} //?????
int f(int n,int p) //??????????????p?????
{
int sum=0,m;
... | 2 |
task921_code_x_glue_information_retreival | task921-61fecae01473466e912b983311997dca | This task is to find the number of 'For' loops present in the given cpp program. | int w=1;
int f(int x)
{
int z=1,y,v=0;
for(y=w+1;y<=sqrt(x);y++)
{
if(x%y==0)
{
z=z+f(x/y);
v++;
w=y;
}
}
if(v==0)
z=1;
return z;
}
main()
{
int n,u=0,a;
scanf("%d",&n);
do
{
scanf("%d",&a);
printf("%d\n",f(a));
u++;
w=1;
}
while(u!=n);
}
| 1 |
task921_code_x_glue_information_retreival | task921-1c9be6f97700415da0bd8413b1566572 | This task is to find the number of 'For' loops present in the given cpp program. | 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++)
... | 2 |
task921_code_x_glue_information_retreival | task921-422245158fb240d79023f2f477a39e32 | This task is to find the number of 'For' loops present in the given cpp program. | int sum = 0;
void fenjie(int t,int n)
{
int i = 0;
if(n == 1)
sum++;
for(i = t; i <= n; i++)
{
if(n % i == 0)
{
fenjie(i, n / i);
}
}
}
int main()
{
int n = 0, k = 0;
cin >> n;
while(n > 0)
{
cin >> k;
sum = 0;
fenjie(2,k);
n--;
cout << sum <<endl;
}
return 0;
} | 1 |
task921_code_x_glue_information_retreival | task921-dc1f4003984e40c08c52f8b689df08ab | This task is to find the number of 'For' loops present in the given cpp program. | void main()
{
int ways(int a, int min);
int n,b;
scanf("%d",&n);
while(n-->0)
{
scanf("%d",&b);
printf("%d\n",ways(b,2));
}
}
int ways(int a, int min)
{
if(a<min) return 0;
int sum=0,i;
for(i=min;i<=sqrt(a*1.0);i++)
{
if(a%i == 0)
sum = sum + ways(a/i, i);
}
return sum+1;
} | 1 |
task921_code_x_glue_information_retreival | task921-de3ebedf77634181b764d8611337cb3d | This task is to find the number of 'For' loops present in the given cpp program. | int s[100];
int f(int a,int min){
if(a < min){
return 0;
}
int result = 1;
for(int i = min;i<a;i++){
if(a % i == 0){
result += f(a/i,i);
}
}
return result;
}
main()
{int m,mm;
scanf("%d",&m);
for(int i=0;i<m;i++){
scanf("%d",&mm);
/*for(int i=0;i<m+1;i++){s[i]=0;printf("%d",s[i]);}*/
printf("%d\n"... | 3 |
task921_code_x_glue_information_retreival | task921-573f87e7b6834b7ca56c689d079d2129 | This task is to find the number of 'For' loops present in the given cpp program. | int f(int t)
{
double v=sqrt(t)+1;
for(int i=2; i<v; i++)
if(t%i==0) return 0;
return 1;
}
int sum=0;
void fun(int n,int i)
{
if(n==1)
sum++;
while(i<=n)
{
if(n%i==0)
fun(n/i,i);
i++;
}
return ;
}
int main()
{
int n;
scanf("%d",&n);
for(int i=0;i... | 2 |
task921_code_x_glue_information_retreival | task921-e023bea2179a4b4aa482859f795d8d34 | This task is to find the number of 'For' loops present in the given cpp program. | int sum=0; //???????
void fj(int n,int m)
{
int i; //?????
for(i=m;i<=sqrt(n);i++) //???????
{
if(n%i==0)
{
sum++;
fj(n/i,i); //???????
}
}
}
int main()
{
int j,N; //??????????????
in... | 3 |
task921_code_x_glue_information_retreival | task921-4c7b1f328b2d4251bbadd25c4110a53d | This task is to find the number of 'For' loops present in the given cpp program. | //???2010?12?1?
//???1000010586_???
//???????
int m , num;
int make( int a );
int pan( int a );
int main()
{
int n , a , i;
cin >> n;
for( i = 1 ; i <= n ; i++ )
{
cin >> a;
num = 0;
m = a;
cout << make( a ) << endl;
}
return 0;
}
int pan( int a )
{
int n = 0 , i;
for ( i = 1 ; i <= sqrt( a ) ; i ... | 3 |
task921_code_x_glue_information_retreival | task921-b6e653ef0ecd46d6af47f5a03881e6be | This task is to find the number of 'For' loops present in the given cpp program. |
int Factorization(int n,int k){ //????????
int sum=0; //??????sum??????????
if (n<k){ //?????????k
return 0; //??0
}
if (n%k==0){ //????????k???
if (n==k){ //?n?k???
return 1; //??1
}
else{
sum=sum+Factorization(n,k+1)+Factorization(n/k,k); //??????????
}
}
else{
sum=sum+Factorization(n,k+1); /... | 1 |
task921_code_x_glue_information_retreival | task921-0f86629c7a134a959a1892eacb016e11 | This task is to find the number of 'For' loops present in the given cpp program. | void f(int i,int m);
int sum;
int main()
{
int n,i,m,k;
scanf("%d",&n);
for(i=0;i<n;i++)
{ sum=1;
scanf("%d",&m);
f(2,m);
printf("%d\n",sum);
}
}
void f(int i ,int m)
{
... | 2 |
task921_code_x_glue_information_retreival | task921-e81b3ed5b73d4f2a99c4bf88062e753b | This task is to find the number of 'For' loops present in the given cpp program. | int sum=1 ;
int kk(int a,int b)
{
int i;
for(i=b;i>=2;i--)
if(a%i==0)
return a/i;
return 0;
}
int seperate(int a,int b)
{
int i;
for(i=b;i>=2;i--)
{
if(a%i==0&&(a/i)<=i)
{sum++;if((a/i)==2)continue;else seperate(a/i,a/i-1);}
else if((a%i==0)&&((kk(a/i,i))!=0))
{
seperate(a/i,i);
}
}
ret... | 3 |
task921_code_x_glue_information_retreival | task921-0468179beeab4a57add28fa23ce46503 | This task is to find the number of 'For' loops present in the given cpp program. | int factoring(int a,int b)
{
int i,kind=0;
if(a==1)
{
kind=1;
}
else
{
for(i=b;i<=a;i++)
{
if(a%i==0)
{
kind=factoring(a/i,i)+kind;
}
}
}
return kind;
}
int main()
{
int n,i,j,a[30000]={0},b[30000]={0};
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
b[i... | 3 |
task921_code_x_glue_information_retreival | task921-b68fec36f8d146d9a26def9349bd5c36 | This task is to find the number of 'For' loops present in the given cpp program. | int n,t,cnt;
void f(int left,int last){
if(left<last) {if(left==1) cnt++;return;}
for (int i=last;i<=left;i++) if(left%i==0) f(left/i,i);
}
int main(){
scanf("%d",&t);
while (t--){
scanf("%d",&n);
cnt=0;f(n,2);
printf("%d\n",cnt);
}
return 0;
}
| 1 |
task921_code_x_glue_information_retreival | task921-f6d93230c266467da30a5493e218c5bc | This task is to find the number of 'For' loops present in the given cpp program. | int m=2;
int manners(int a){//????????????
int count=1,t=0;
t=sqrt((double) a);
for(int i=m;i<=t;i++){//?????????
if(a%i==0){
m=i;//?????????????????????
count=count+manners(a/i);//?????????????????
}
}
return count;//?????
}
int main(){
int n, b;
int i=1;
cin>>n;
while(i<=n){
cin>>b;
cout<<manne... | 1 |
task921_code_x_glue_information_retreival | task921-6dd7ddd99edb45e7be885a905e4b705c | This task is to find the number of 'For' loops present in the given cpp program. | int sum=0;
void f(int n,int i)
{
if(n==1) sum++;
while(i<=n)
{
if(n%i==0) f(n/i,i);
i++;
}
return ;
}
int main()
{
int t=0;
cin>>t;
while(t--)
{
int n=0;
cin>>n;
int i=2,result=1;
for (i=2;i<=n/2;i++) {
if(n%i==0)
... | 1 |
task921_code_x_glue_information_retreival | task921-ba7897fe52d24eae822224b497a96e75 | This task is to find the number of 'For' loops present in the given cpp program. | int sum=0;
int main()
{
void yinshu(int,int);//????????????????????????
int i,n,a;
cin>>n;
for(i=1;i<=n;i++)
{
sum=0;
cin>>a;
yinshu(a,2);
cout<<sum<<endl;
}
return 0;
}
void yinshu(int a,int x)
{
if(a!=1)
{
for(int i=x;i<=a;i++)//?x?????
if(a%i==0)//????
yinshu(a/i,i);//?a/i??????????????i???
... | 2 |
task922_event2mind_word_generation | task922-7d81d853bbc84ec783acaf2ee9a90ef8 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX sells well. Intent: 1) to be successful | fulfilled |
task922_event2mind_word_generation | task922-4a23add91dcc4f44978e53c9eca3151b | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX is getting dark. Intent: 1) a tan | tanned |
task922_event2mind_word_generation | task922-444413b9126b46e5acfd7c8c857d8a11 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX maintains PersonY's existence. Intent: 1) remain with person y. | happy |
task922_event2mind_word_generation | task922-127e86aca12b4f8eb8581d1b19c23d7d | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX calls ___ by PersonY's names. Intent: 1) to misuse a name | aggresive |
task922_event2mind_word_generation | task922-3ba9df9cf0904ce3a2c198847a55a630 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX tries ___ for the first time. Intent: 1) to be adventurous | thrilled |
task922_event2mind_word_generation | task922-131d1720f37642189fc0337f90139092 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX cuts PersonY's finger. Intent: 1) to be blood brothers | regret |
task922_event2mind_word_generation | task922-2018769394cf476eb54bbcc6d71470c6 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX feels very nervous. Intent: | nervous |
task922_event2mind_word_generation | task922-3031780c6e944e4d89d1cfd7b6278a39 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX looks behind PersonY. Intent: 1) to find something | curious |
task922_event2mind_word_generation | task922-aea07a9765cc43aca99e29372ad4a90f | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX pursues PersonX's interests. Intent: 1) to achieve an accomplishment | happy |
task922_event2mind_word_generation | task922-c42d015d33cf4d8c8352795c99fdc0ab | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX drives across town. Intent: 1) to get something in that area | calm |
task922_event2mind_word_generation | task922-006fc7b2c79244e2bdd3154c7c1717aa | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX knows what to expect. Intent: | superior |
task922_event2mind_word_generation | task922-afd0b667e8de47ab96c3c92c872fe9b4 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX sells PersonY's car. Intent: 1) to help person out by selling the car. 2) to complete a business deal with person. 3) money. | relieved |
task922_event2mind_word_generation | task922-e9bdbf2ddfb5485084bb21ec243b7699 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX teaches ___ to think. Intent: 1) to educate others | powerful |
task922_event2mind_word_generation | task922-66673d4413b841ecbdb47f84a26e8450 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX solves PersonY problems. Intent: 1) to make happy | very |
task922_event2mind_word_generation | task922-8bbb3bfd99b140169557632a983b99ae | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX sees the eye doctor. Intent: 1) to check his/her eyes | relieved |
task922_event2mind_word_generation | task922-ab012c15dd5047d88c4d3876d3a74509 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX buys a new iphone. Intent: 1) a new phone 2) latest technology | happy |
task922_event2mind_word_generation | task922-d5e3f1625af54659867503b6b9616c69 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX punches below PersonX's weight. Intent: 1) hit someone | confident |
task922_event2mind_word_generation | task922-961c23d3a0b54b4cb0b00c31487dec2b | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX gets the ingredients. Intent: 1) to get the ingredients to fulfil the task. | prepared |
task922_event2mind_word_generation | task922-7a9533dd1a694f61aa5f90e6387d57c7 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX is only a week away. Intent: | anxious |
task922_event2mind_word_generation | task922-25e2a7e24a5b4365aa7d238fdeaba951 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX prevents PersonY from leaving. Intent: 1) to stop the person from leaving. | satisfied |
task922_event2mind_word_generation | task922-f9acd715a1f540c2a59c418df7b3d39f | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX takes a bus tour. Intent: 1) to sightsee. | welltravelled |
task922_event2mind_word_generation | task922-e763c520d0b1470da740bf6878b9d224 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX seeks work. Intent: 1) to pay rent 2) a different job 3) work experience | tired |
task922_event2mind_word_generation | task922-0565170ad2e945d189834eeed47a5fd5 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX asks PersonX's friend for advice. Intent: 1) to know how to solve a problem | relieved |
task922_event2mind_word_generation | task922-bf251d40ba884ea59b0d672bc9e01366 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX gets ___ on the paper. Intent: | sad |
task922_event2mind_word_generation | task922-f5ce3d009c574521b3da22180ae1f614 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX gets the ___ across. Intent: 1) because we want the things | normally |
task922_event2mind_word_generation | task922-da66430b43334e20a0c473ece7c5b3c5 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX is going to fail. Intent: | sad |
task922_event2mind_word_generation | task922-7511321482f34cffa5e432e55049ed50 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX gathers around ___. Intent: 1) to be included 2) to see what's happening | happy |
task922_event2mind_word_generation | task922-10ea4b0a4fb347a683c3d99284b5c440 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX finds a girl. Intent: 1) to be happy | lucky |
task922_event2mind_word_generation | task922-46244dd087804ad8abd6420ba6b3b2a2 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX gives PersonY the slip. Intent: 1) to avoid seeing person y 2) to hurry to an appointment 3) to get to work on time | reliieved |
task922_event2mind_word_generation | task922-531f3e2a5119441882d0532bb346844e | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX gets plenty of rest. Intent: 1) to be fully rested 2) to be ready | relaxed |
task922_event2mind_word_generation | task922-7caf827e76844fd99a373faba9b75425 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX leaves ___ in PersonY's car. Intent: | upset |
task922_event2mind_word_generation | task922-43bafd1dc10342a49814b37f230aecfc | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX delivers pizzas. Intent: 1) to earn money | productive |
task922_event2mind_word_generation | task922-574c5dfd6b6d4cffae193537209823d7 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX knows would have done. Intent: | like |
task922_event2mind_word_generation | task922-e08879ddd10848a89bec7fe0ea218a9e | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX wishes PersonY a happy birthday. Intent: 1) to make person happy | excited |
task922_event2mind_word_generation | task922-48e109ab1e134db18c3590faa2084eb0 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX finds PersonY's ball. Intent: | indifferent |
task922_event2mind_word_generation | task922-595304b90466476486e1bcdd1dcf5420 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX takes everything. Intent: 1) to have everything | wealthy |
task922_event2mind_word_generation | task922-d351584c01974a4bae3c1b2da87d3105 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX tries to decide. Intent: 1) to order | indecisive |
task922_event2mind_word_generation | task922-6293c989fe5c4159aab196b130be3025 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX rises from PersonY's seat. Intent: 1) to stand up | energized |
task922_event2mind_word_generation | task922-cc4da91815a94ff9a80be0cf692ee564 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX minds another ___. Intent: 1) to be understanding | like |
task922_event2mind_word_generation | task922-f9638b5426fd40e492382246eaa302ca | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX reduces the ___ to levels. Intent: 1) to make an accomplishment | happy |
task922_event2mind_word_generation | task922-ddaf20de6b344bddb3f4b038b43eb494 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX spends ___ watching. Intent: 1) time to pass | bored |
task922_event2mind_word_generation | task922-59f50ce0fbe04ca8b765ed530c91f1e8 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX buys a brand new car. Intent: 1) to get something new | proud |
task922_event2mind_word_generation | task922-96464413bf9f4049b53518c1bd3b2336 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX overcomes every ___. Intent: 1) to win | successful |
task922_event2mind_word_generation | task922-bb11563fc4634b60afb95abb48ace446 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX is ready to leave. Intent: 1) want to go home | happy |
task922_event2mind_word_generation | task922-98c9fabff26749b1a7f0d7315d3a8b75 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX starts the car. Intent: 1) to go to the store | stressed |
task922_event2mind_word_generation | task922-6e263f43aafe44bf8a7ad3d27d7fe3af | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX puts PersonX's foot down upon ___. Intent: 1) to give vent to his anger | relieved |
task922_event2mind_word_generation | task922-afcc5a6c489e4d34b739b99aec4b875f | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX sees PersonY last. Intent: | calm |
task922_event2mind_word_generation | task922-ad6f96e381cd4fb9bd9c1c7bbec0c351 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX owns ___ with others. Intent: 1) to have authority | authoritative |
task922_event2mind_word_generation | task922-ccb025bab45945648c62d3e3f1290ed4 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX takes ___ to arrive. Intent: | exhausted |
task922_event2mind_word_generation | task922-a3378b92adb941b39f9e265bfc127bdf | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX flies planes. Intent: 1) to be in the sky 2) to go places | proud |
task922_event2mind_word_generation | task922-99daba5954d04901951ce041691d22b4 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX puts PersonY's ___ in order. Intent: 1) to help persony | like |
task922_event2mind_word_generation | task922-ae8a58162f9044b2882773f5a86d4058 | You are provided with an "Event", "Intent" related to PersonX. Guess a reaction/reaction of PersonX about the given event and their intention. | Event:PersonX adopts a kitten. Intent: 1) to help an animal | alturistic |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.