← All problemsSign in

Samrat’s Respect

Problem Description Dwij is one of the most respected person in IEM and one of the favorite person of Samrat. Recently, he got placed and Samrat is happy about it. But soon, he would relocate due to his new job and Samrat wants to show his respect towards Dwij by preparing some see-off gifts. But since time is very short and each gift needs its own time and has a fixed amount of respect, Samrat w

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