Search found 1 match

by yukiyoru98
Sat Sep 19, 2015 9:01 am
Forum: Volume 100 (10000-10099)
Topic: 10050 - Hartals
Replies: 59
Views: 19299

Re: 10050 - Hartals

Plz help...What's wrong with this code?? #include <stdio.h> int main() { int T=0; scanf("%d", &T); for(int cnt=0; cnt<T; cnt++) { int n=0, p=0, k=0; int arr[3650]={0}; scanf("%d", &n); scanf("%d", &p); for(int i=0; i<p; i++) { int h=0; scanf("%d", &h); for(int j=1; j<=n/h; j++) { if((h*j+1)%7==0) co...

Go to advanced search