← All problemsSign in

DEVLINA AND HER NUMBERS

Devlina is a very beautiful lady so has a lot of admirers. Everyday approx $N$ people text her in Scrapbook. She got tired of replying everyone. Also she didn't want to miss the oppurtunity to talk to hot guys. So she sought help from Riddhi-the pro coder. Scrapbook had a feature to rate the dp's based on their number of likes and reactions. The rating is done in this way: Suppose a pic has $p $ l

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