My issue
My code
# cook your dish here
t=int(input())
for i in range(t):
x,y=map(int,input().split())
Problem Link: CANCHEF Problem - CodeChef
# cook your dish here
t=int(input())
for i in range(t):
x,y=map(int,input().split())
Problem Link: CANCHEF Problem - CodeChef
The problem gives X, the amount of petrol in liters, and Y, the distance between Chef’s house and DAIICT. The total distance would then be 2\cdot Y since Chef is going on a roundtrip. By the proportion 15\text{ km}:1\text{ liter of petrol}, the total petrol in liters required is \frac{2\cdot Y}{15}. If X \ge \frac{2\cdot Y}{15}, then Chef has enough petrol to complete his journey, so we output “YES”. Otherwise, we output “NO”.
In code:
for _ in range(int(input())):
x, y = map(int, input().split())
if (x >= (2 * y) / 15):
print("YES")
else:
print("NO")