Help me in solving PASSTHEEXAM problem

My issue

test cases are not passing

My code

# cook your dish here
a=int(input())
for i in range(a):
    b,c,d=map(int,input().split())
    if (b+c+d)>=100:
        if (b>10 and c>10):
            if d>10:
                print("pass")
            else:
                print("fail")
        else:
            print("fail")
    else:
        print("fail")

Problem Link: PASSTHEEXAM Problem - CodeChef

	Scanner sc = new Scanner(System.in);
	int n = sc.nextInt();
	for(int i=0;i<n;i++){
	    int a =  sc.nextInt();
	    int b =  sc.nextInt();
	    int c =  sc.nextInt();
	    if(a >= 10 && b>=10 && c>=10 && (a+b+c) >= 100){
	        System.out.println("PASS");
	    } else {
	        System.out.println("FAIL");
	    }
	}
1 Like

Include = in “b > 10” and “c > 10” and “d > 10” as the condition says

1 Like

Try this Solution it passes all cases

# cook your dish here
t = int(input())
for _ in range(t) :
    a,b,c =  map(int,input().split())
    ttl = a+b+c 
    if ttl >= 100 and a >= 10 and b >= 10 and c >=10 :
        print('Pass')
    else:
        print('Fail')
1 Like

eachScore of each section ≥10
but you have only consider greater than 10 not equal to 10

Code:

a=int(input())
for i in range(a):
b,c,d=map(int,input().split())
if (b+c+d)>=100:
if (b>=10 and c>=10):
if d>=10:
print(“pass”)
else:
print(“fail”)
else:
print(“fail”)
else:
print(“fail”)