What is the total amount of money in everyone's bank account if the collector chooses the ithi^{th} package?

Pi×NP_i × N

Let totaltotal is equivalent to everyone’s current bank balance summation.
For each ii from 11 to MM calculate the collector’s outcome with,
totalPi×NSitotal - P_i × N - S_i.
Here SiS_i is the amount of money the collector has to pay to the Bat club. Take the maximum outcome as the answer.

Contributors

Statistics

92% Solution Ratio
ishaan_007Earliest, Nov '21
mumith_fahim99Fastest, 0.0s
user.360086Lightest, 1.8 MB
seyamalamShortest, 347B
Toph uses cookies. By continuing you agree to our Cookie Policy.