← All problemsSign in

Oliver

A shopkeeper in Starling City, sells ARROWS. He has decided to sell them for $₹1$ for the first day,$₹2$ for next $2$ days, $₹3$ for next $3$ days $.....$ $₹N$ for next $N$ days. He sells only $1$ arrow on a single day. OLIVER, being the VIGILANTE buys all the available ARROWS on any day. Diggle is wondering the amount OLIVER needs to pay to the Shopkeeper after $N$ days. Since Diggle is bu

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