Stocks Variance B
CodeChefOpen on judge ↗
**The statement is same across all the problems, only the test file is different. Read the "Contest About" for details** Bob is playing "Stonks" in the virtual world. He is given $N$ stocks, and each stock has a value $v_i$. He can only purchase upto $\alpha_i$ units of the $i$-th stock. The higher the value of a stock, the more profitable it would be for him! However, like the real world, t
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