Ayush and Magical Shop
CodeChefOpen on judge ↗
$Ayush$ started a sale at his magical shop, where every item has the same rate for one customer. But the rate kept changing on the basis of number of customers visits of the shop. The earlier you visit the shop, the cheaper the items are. That is, if you are the first to visit, each item costs 1 Rs, if you are second to visit, each item costs 2 Rs..so on. Since, he is weak at Maths, ca
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