I m getting execution time as 4.20 sec…is there a way to improve and decrease the run time…???
#include<stdio.h>
int main(){
int n,k,t,ct=0;
scanf("%d%d",&n,&k);
while(n--){
scanf("%d",&t);
if(t%k==0)
ct++;
}
printf("\n%d",ct);
return 0;
}