fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. unsigned long int i,j,a,b,count=0;
  5. scanf ("%d %d ",&i,&a);
  6. while(i--)
  7. {
  8. scanf ("%d",&b);
  9. if(b%a==0)
  10. {
  11. count++;
  12. }
  13. }
  14. printf ("%d",count);
  15. return 0;
  16. }
Success #stdin #stdout 0s 2172KB
stdin
Standard input is empty
stdout
Standard output is empty