Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

my ques is about enormous input test..it shows run time error..plz help

$
0
0

include<iostream>

using namespace std;

int main() { long int n,k,i,count=0,t; cin>>n; cin>>k;

for(i=0;i<n;i++) {="" cout<<endl;="" cin="">>t; if(t%k==0) count++; } cout<<count; return 0; }


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>