The Gellar Siblings
CodeChefOpen on judge ↗
Monica Gellar loves to organize things. At the same time Monica has her own picky tastes and would like to include her favorite numbers 4 and 7 in her organizing / numbering system, i.e. her numbering system will consist a sequence of the numbers 4 and 7. Monica brought home a book collection s with n books. The numberings of her book collection only consists of her favorite numbers. The digits a
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