Can anyone please explain the greedy part of E.In editorial it is given that the last section can be solved by simple Greedy.But i don't get that part.Thanks.
Codeforces round 650 problem E
Can anyone please explain the greedy part of E.In editorial it is given that the last section can be solved by simple Greedy.But i don't get that part.Thanks.