← All problemsSign in

Overspeeding Fine

CodeChefRating 335Open on judge ↗

Chef was driving on a highway at a speed of $X$ km/hour. To avoid accidents, there are fine imposed on overspeeding as follows: - No fine if the speed of the car $\leq 70$ km/hour. - Rs $500$ fine if the speed of the car is strictly greater than $70$ and $\leq 100$. - Rs $2000$ fine if the speed of the car is strictly greater than $100$. Determine the fine Chef needs to pay. ### Input - The fir

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