Avatar Speed
CodeChefOpen on judge ↗
Chef likes to play video games and he has set the speed of his avatar to same value _m_. But he finds out that someone has changed the speed of his avatar to _n_. Chef is not happy about this and wants to change it back to _m_. However he can change the speed of his avatar by only pressing the following buttons: (__-5__, __-2__, __-1__, __1__, __2__, __5__), with which he can either increase or
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