← All problemsSign in

Shweta And Her Rakhi (100)

On the eve of Rakshabandhan, Shweta wants to buy a Rakhi for her brother. She visits a shop and finds that there are N Rakhis of different sizes. The shopkeeper tells her that the cost C of a Rakhi is directly proportional to its size. He also tells Shweta that the cost of all the Rakhis is distinct. Shweta is finding it difficult to keep track of the cost of all the Rakhis. So she asks the shopke

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