THE LAST BITE
CodeChefOpen on judge ↗
Kirti and her brother were eating pieces of chocolate cake together. At last only one piece was left and both of them wanted to eat that entire piece. To solve the issue of who will eat this piece, Kirti’s brother decided to play a game. He wrote a number 'N', on a paper. Some digits of this number were same and at consecutive positions. Kirti will get to eat the cake if she will write the large
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