Problem Link: CHEFSCORE Problem - CodeChef
Feedback
cook your dish here
t = int(input())
for i in range(t):
N,X,Y = map(int,input().split())
if X <Y:
if (Y%X ==0) and (N>=(Y//X)):
print(“YES”)
else:
print(“NO”)
else:
if Y == 0:
print(‘YES’)
else:
print(“NO”)
I think this would be a better answer, I mean what if N was not high enough to give rise to total score ? , Well I mean for some reason this code couldnt get all the test cases right , idk why