← All problemsSign in

Insurance

CodeChefRating 475Open on judge ↗

Chef bought car insurance. The policy of the insurance is: - The **maximum** rebatable amount for any damage is Rs $X$ lakhs. - If the amount required for repairing the damage is $\leq X$ lakhs, that amount is rebated in full. Chef's car meets an accident and required Rs $Y$ lakhs for repairing. Determine the amount that will be rebated by the insurance company. ### Input - The first line of i

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start