I am getting a TLE error while I am submitting the following solution to codechef, can somebody explain why I am getting this error and also the reason behind me getting this error.
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
long long int n,k,count=0;
cin>>n;
cin>>k;
while(n--){
long long int num;
cin>>num;
if(num%k==0)
count++;
}
cout<<count<<endl;
return 0;
}