Fuel and change
CodeChefOpen on judge ↗
Problem description. While taking a long drive, you realize that you need petrol for your two-wheeler. The petrol bunk is willing to sell petrol at a minimum of 1 liter if you give exact change or in multiples of 10 beyond Rs 65. Petrol currently costs Rs 65 per liter inclusive of all taxes. You have only Rs. X with you where X is given as input. What is the maximum amount of petrol in liters (ro
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