Balls Accumulation
CodeChefOpen on judge ↗
Vikram is a famous sportsman, he has played a lot of games for his country and wants to collect different types of Balls(like basketball, volleyball, football, tennisball etc.) for his own playground and for that he visits many Stores across the country. Each store stocks $B$ types of Balls, where the $i$th ball costs $i$ Rupees$(1 \leq i \leq B)$. Assume that a ball's type identifier is the same
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