how will i reducethe time limit of execution of this code??
using namespace std;
typedef long long int I;
int main()
{
I n,k,z;
int ctr=0;
cin>>n>>k;
if(k>10000000)
{ return 0;}
else {
cin>>z;
if(z>1000000000)
{return 0;}
for (I y=0; y<=n; y++)
{
cin>>z;
if(z>1000000000)
{return 0;}
if((z%k)==0)
{ctr++;}
}
cout<<ctr;
}
return 0;
}
help please!