← All problemsSign in

Luxury Inflation

CodeChefRating 3154Open on judge ↗

*A formal statement is provided after the story, you may skip to it.* Everule has a very weird way of buying handbags when he visits the luxury street. There are $N$ luxury stores in the luxury street, and they are numbered $1, 2, \ldots, N$. The cost of the handbag from the stores can be represented by an array $C$ of size $N$, i.e, the $i$-th shop sells handbags at a cost of $C_i$. Everule b

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