Hi! Can anyone help me with http://www.spoj.pl/problems/INTEST/ in C++.
I've passed it in 5.59 but i see there are submissions with exec time =~0.5.
Here is my code - what can i improve to get have at least 1.5 - 1.0 sec?
#include <stdio.h>
int main()
{
int n, k, count = 0, next;
scanf("%i %i", &n, &k);
do{
scanf("%i", &next);
count += !(next % k);
}while(--n);
printf("%i", count);
return 0;
}