Help me in solving TWODISH problem

though the answer is correct the code is still not complete ig…

My code

# cook your dish here
T=int(input(""))
for i in range(T):
    N,A,B,C=map(int, input().split())
    if A+C<N:
        print("NO")
    else:
        if A+C==B:
            if B>=N:
                print("YES")
        elif A+C>N:
            if A+C<=B:
                print("YES")
            else:
                print("NO")
                
        

Problem Link: CodeChef: Practical coding for everyone

@am_clumsy
U are missing many cases .
i’ll give u one hint first make the dish which has uncommon ingredient maximum .
like if(A>C) then first make A then make C .

1 Like