My issue
x=int(input())
y=int(input())
if(x+y>6):
print(“YES”)
else:
print(“NO”)
My code
a=int(input())
x=int(input())
y=int(input())
if(x+y>6):
print("YES")
else:
print("NO")
Problem Link: GDTURN Problem - CodeChef
x=int(input())
y=int(input())
if(x+y>6):
print(“YES”)
else:
print(“NO”)
a=int(input())
x=int(input())
y=int(input())
if(x+y>6):
print("YES")
else:
print("NO")
Problem Link: GDTURN Problem - CodeChef
@mediannapurna6
U have to put your code inside test case loop like this.
# cook your dish her
for i in range(int(input())):
x,y = map(int,input().split())
x += y
if(x>=7):
print("yes")
else:
print("no")
The for loop is missing, without it you can’t pass the test cases.
See my code, it’s in java but you can see the for loop, your code is correct , just needs to be inside the for loop.
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner in =new Scanner(System.in);
int T=in.nextInt();
for(int i=0;i<T;i++){
int X=in.nextInt();
int Y=in.nextInt();
if((X+Y)>6){
System.out.println(“YES”);
}
else{
System.out.println(“NO”);
}
}
}
}