Hello everyone I am trying to solve the problem Game from this year's eJOI contest. I know the solution for 60 points (with priority_queue and prefixes), but i'd like to know the solution for 100 points. If there is anyone who has solved it, please tell the solution. thanks
P.S if you want we can discuss other problems in comments :)