Can Chef
Chef owns a car that can run $15$ kilometers using $1$ liter of petrol. He wants to attend a programming camp at DAIICT. $X$ liters of petrol is present in Chef's car. The distance between his house and DAIICT is $Y$ kilometers. Determine whether Chef can attend the event and **return** to his home with the given amount of petrol. **Note**: Chef has to return back to home, so the total dist
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