#include<stdio.h>
int main()
{
long long int n,k,x,c=0;
scanf("%lld%lld",&n,&k);
while(n--)
{
scanf("%lld",&x);
if(x%k==0)
c++;
}
printf("%lld\n",c);
return 0;
}
int main()
{
long long int n,k,x,c=0;
scanf("%lld%lld",&n,&k);
while(n--)
{
scanf("%lld",&x);
if(x%k==0)
c++;
}
printf("%lld\n",c);
return 0;
}
No comments:
Post a Comment