harbor run -t openthoughts/tasktrove-exp-rpt-taco-v2-taco-6097harbor download openthoughts/tasktrove-exp-rpt-taco-v2-taco-6097Chef is planning to buy a new car for his birthday. After a long search, he is left with two choices:
Additionally, Chef knows the following:
Assuming that both cars cost the same and that the price of fuel remains constant, determine which car will minimize Chef's expenses.
Print your answer as a single integer according to the following criteria:
-1.0.1.For each test case, output a single line according to the specified output requirements.
3
10 5 3 20
7 2 7 2
1 5 3 2
-1
0
1
Test Case 1: The cost of driving Car 1 is ( \frac{y_1}{x_1} = \frac{3}{10} = 0.3 ) rupees/km, and the cost of driving Car 2 is ( \frac{y_2}{x_2} = \frac{20}{5} = 4 ) rupees/km. Therefore, Car 1 is cheaper to drive, so the output is -1.
Test Case 2: The cost of driving Car 1 is ( 1 ) rupee/km, and the cost of driving Car 2 is also ( 1 ) rupee/km. Both cars offer the same economy, so the output is 0.
Test Case 3: The cost of driving Car 1 is ( 3 ) rupees/km, and the cost of driving Car 2 is ( 0.4 ) rupees/km. Therefore, Car 2 is cheaper to drive, so the output is 1.
Please place your solution code in the /app/ directory.
Important: place your implementation at /app/solution.py so the verifier can run it.