← All problemsSign in

CunningShopkeeper

###Problem description. A group of friends want to buy a box of electrical items. The shopkeeper wants to maximize his number of new customers and the money he makes. To do this, he decides he'll multiply the price of each item by the number of that customer's previously purchased items plus 1 . The first item will be original price (0+1) * original price , the next will be (1+1) * original

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