Rohan and Digits
CodeChefOpen on judge ↗
Rohan and Digits Rohan is very fond of digits (0-9). He has a maths project at school and was asked to bring something cool. So he thought of cutting out digits in a piece of chart paper and coloring them with different colors.While he was doing this, he noticed that, for digit 0, he had one hole in the chart paper. A hole can be of any shape. So, 0,4,6,9 all has one hole. 8 has two holes. Rest
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