My issue
int main() {
// your code goes here
int t;
scanf(“%d”,&t);
while(t–)
{
int a,b,c,x;
scanf(“%d %d %d %d”,&a,&b,&c,&x);
if(a+b+c)-x)
printf(“no\n”);
else
printf(“yes\n”);
}
}
My code
#include <stdio.h>
int main() {
// your code goes here
int t;
scanf("%d",&t);
while(t--)
{
int a,b,c,x;
scanf("%d %d %d %d",&a,&b,&c,&x);
if(a+b+c)-x)
printf("no\n");
else
printf("yes\n");
}
}
Learning course: Algorithmic Problem Solving
Problem Link: https://www.codechef.com/learn/course/klu-problem-solving/KLUPS00/problems/NETFLIX