Help me in solving CHEAT problem

My issue

not understand

My code

#include <stdio.h>

int main(void) {
	#include <stdio.h>

int main(void) {
	// your code goes here
	int t;
	scanf("%d",&t);
	for(int  = 0; _ < t; _ ++){
	    int n,q,r;
	    scanf("%d",&n);
	    q = n / 7;
	    r = n % 7;
	    if(r > 1){
	        printf("%d\n",q+1);
	    }
	    else{
	        printf("%d\n",q);
	    }
	}
	return 0;
}


Problem Link: CHEAT Problem - CodeChef

@khush79
its a simple maths problem u have to find the number of tuesday before N days .
so sinnce u begin with monday thus if the remainder is >1 then u have to print q+1.
else u will only print q.