← All problemsSign in

Return the Change

CodeChefRating 763Open on judge ↗

In Chefland, denominations less than rupees $10$ have stopped and now rupees $10$ is the smallest denomination. Suppose Chef goes to buy some item with cost **not** a multiple of $10$, then, he will be charged the cost that is the **nearest multiple** of $10$. If the cost is equally distant from two nearest multiples of $10$, then the cost is **rounded up**. For example, $35, 38, 40, 44$ are a

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