Expected Value
CodeChefOpen on judge ↗
[Prayatna] (https://www.prayatna.org.in) is sponsored by quite a few companies every year. One of the sponsor's is the Title Sponsor. Let's say there are $M$ companies that are willing to extend their support. Company $i$ is willing to sponsor $Pi$ units of money. Find the expected amount of money that would have been received from sponsors (and spent :P) at the end of $N$ years given that Prayatn
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