Spoj Enormous Input Test Solution
Solution in C++:
///******Bismillahir-Rahmanir-Rahim******///
///AH Tonmoy
///Department of CSE,23rd batch
///Islamic University,Bangladesh
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- ios::sync_with_stdio(false);
- int n,k,t,c,i;
- c=0;
- cin>>n>>k;
- for(i=0; i<n; i++)
- {
- cin>>t;
- if (t%k==0)
- c++;
- }
- cout<<c<<"\n";
- return 0;
- }
No comments