My issue
My code
# cook your dish here
T=int(input())
while(T!=0):
X=input()
Y=input()
if(int(X)+int(Y)>6):
print("YES\n")
else:
print("NO\n")
T=T-1
Problem Link: GDTURN Problem - CodeChef
# cook your dish here
T=int(input())
while(T!=0):
X=input()
Y=input()
if(int(X)+int(Y)>6):
print("YES\n")
else:
print("NO\n")
T=T-1
Problem Link: GDTURN Problem - CodeChef
@sravanthich
U have mistaken in taking the inputs
U have to do it like this.
# cook your dish here
t=int(input())
for i in range(t):
a,b=map(int,input().split())
if (a+b>6):
print("yes")
else:
print("no")
type or paste code here
```/* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
public static void main (String[] args)
{
Scanner sc= new Scanner(System.in);
int x,y,t;
t=sc.nextInt();
int Sum=0;
for(int i =0;i<t;i++){
x=sc.nextInt();
y=sc.nextInt();
Sum=x+y;
if(Sum > 6)
{
System.out.println("YES");
}
else
{
System.out.println("NO");
}
}
}
}
hope this helps