← All problemsSign in

ROMANTIC RIDHDHI

The Students of UEM has developed an app called $Scrapbook$. Whenever an user registers he gets a default score of $k$. When 2 persons connect with each other(both accepts each other's request) their score increases to $max$ of their previous scores. Example, let A had a score SA and B had a score SB. After connecting $SA=SB=max(SA,SB)$. Ridhdhi is a very romantic guy. He wanted to connect with al

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