09/01/08 13:10:52
>>395 >>259
#include <stdio.h>
int main(void)
{
int data[128];
int i, n, d, c = 0;
scanf("%d", &n);
if (n > 128) n = 128;
for (i = 0; i < n; ++i) scanf("%d", &data[i]);
scanf("%d", &d);
for (i = 0; i < n; ++i) if (!(data[i] % d)) ++c;
printf("%d\n", c);
return 0;
}