D - Rasode Me Binod Tha
CodeChefOpen on judge ↗
Kokila really like arrays which contains equal integers. On her birthday, Binod decided to gift her an array of integers of length $N$ and purchased it from nearby shop after paying rupees $X$. But the elements of this array may not be all equal and in order to make all numbers unique he will have to pay some extra cost. Binod can replace an integer $p$ with another integer $q$ by paying an ext
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.
Sign in to chat with the tutor and save your progress.
Sign in to start