Enormous Input Test | Problem - 46 | Beginner level | C language | CodeChef
Link to the problem statement: https://www.codechef.com/submit/INTEST
Solution:
The solution is already given, you just have to click on SUBMIT CODE button.
//We have populated the solutions for the 10 easiest problems for your support.
//Click on the SUBMIT button to make a submission to this problem.
#include<stdio.h>
int main()
{
int n,k,ans=0,i;
scanf("%d %d",&n,&k);
for(i=0;i<n;i++)
{
int t;
scanf("%d",&t);
if(t%k==0)
{
ans++;
}
}
printf("%d",ans);
return 0;
}
Hope this will help you, if you want anything else leave a comment.
Thank you
Comments
Post a Comment