← All problemsSign in

AJ and his Rosemilk audition

AJ is a playboy in MIT. He likes the number 3 because 3 girls gave him Rosemilk last week. AJ recently broke up because of this incident (a sad :'( week for him) and he is looking for a girlfriend. So he decides to keep an audition for it. He classifies all positive integers into 2 categories (“Rose number” and “Milk number”). A Rose number is a number which has exactly 3 divisors. In the auditi

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start