The problem was not that difficult. Nevertheless, hat’s off to you @vijju123.
Unless I worked the arithmetic out myself, I could not bring myself to understand the thinking-process that went behind cats being greater than twice the number of dogs.
I relish reading your explanations. Thanks for making my day!
long long int helped me bro tqs very much #include <stdio.h>
int main(void) {
int n;
scanf("%d",&n);
while(n–)
{
long long int a,b,c,min,max,nc;
scanf("%ld%ld%ld",&a,&b,&c);
max=4*(a+b);
nc=2b;
if(nc>=a)
min=4b;
if(nc<a)
min=4*(a-nc+b);
if(c%4!=0)
printf(“no\n”);
else
{
if(c>=min&&c<=max)
printf(“yes\n”);
else
printf(“no\n”);
}
}
this is my code i run it got 50 but now after i changed to long long int of a,b,c code got executed