#include< stdio.h>
using namespace std;
int main()
{
int a[10],n,t,i,pduct=1,count=0,j,k;
scanf("%d",&t);
for(j=0;j<t;j++)
{
count=0;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf(" %d",&a[i]);
pduct*=a[i];
}
for(k=1;k<=pduct;k++)
{
if(pduct%k==0)
{
count++;
}
}
printf("%d\n",count);
}
return 0;
}
1 Like
1
3
1000 1000 2000
How long it runs on your computer?
1 Like