← All problemsSign in

Digit Game

Once Professor , Sergio Marquina was playing a game against his little brother Berlin. The game is played in following manner : Initially, there is a four-digit number and a given number of moves. Both Professor and Berlin take turns alternately (beginning with Berlin). Both of them must increase ANY digit of the number, but if the digit was 9 it will become 0. For example number 1289 can be ex

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