Weird Volume
CodeChefOpen on judge ↗
Like most of the other humans on the planet, lazy Meena also finds it weird if the TV volume is not in the multiple of 5. Currently, Meena is watching his favorite TV show and the volume is $N$. On the remote, there are two buttons to control the volume of the TV. - The first button reduces the volume by 1 unit. - The second button increases the volume by 1 unit. Find the minimum number of tim
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