Ramanujan and Numbers
CodeChefOpen on judge ↗
Ramanujan loves to play with numbers. He once asked everyone in his class a question : “Given a Number N, what is the smallest number which can be formed whose product of DIGITS will be equal to N? For example if N is 100 the number is 455.” His friend pointed out to him that there are certain numbers which cannot be formed in this manner. Ramanujan took due note of that and told everyone in his
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