Sibasish and Friends
CodeChefOpen on judge ↗
Sibasish and his friends play various games together. One fine day his friends planned to humiliate Sibasish in a game of numbers. They handed him a range of positive numbers from $L$ to $R$ (both inclusive) and gave him the following task- Let $x$ be an integer in the range $[L,R]$. $x$ is called **good** if the digit $d$ occurs at most $k$ times in $x$. Sibasish needs to find the total number of
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