Car Choice
Chef is planning to buy a new car for his birthday. After a long search, he is left with $2$ choices: - **Car 1**: Runs on diesel with a fuel economy of $x_1$ km/l - **Car 2**: Runs on petrol with a fuel economy of $x_2$ km/l Chef also knows that - the current price of diesel is $y_1$ rupees per litre - the current price of petrol is $y_2$ rupees per litre Assuming that both cars cost the same
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start