I recently found this site called codechef, where you can submit solutions to problems. I had submitted two answers for a question, one in C and the other in C++. Both codes
I usually add these 3 lines in my code just after the main() for faster input output :
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
So , Try this :
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int n, k, t,num=0;
cin>>n>>k;
for(int i=0;i>t;
if(t%k==0) num++;
}
cout<