Google | Onsite-2 | Bengaluru | L5

Anonymous User
420
Feb 23, 2025
Feb 23, 2025

Minimum time to play all game where to play certain game one should have points to buy that game.
After buying game you loose certain points and your earning potentila will multiplied by x per second

you have intially 1000 points

1000 1x

2000 2x

3000 3x

4200 5x

example

buys first game he lost the 1000 point ,now he is earning 1 points per second so he need to wait 2000 sec to buy second game and 3000 se to buy 2nd game .

If he buys 2nd game his needs time 2000 sec and now to buy 3rd gme he needs 1500 second and to buy 4th game he needs 700 secs so totl would be 2000+1500+700 in this case

i was not able to come up with solution

if any body has solved this kind of problem please help me with the solution

Comments (3)