Codeforces and Polygon may be unavailable from May 23, 4:00 (UTC) to May 23, 8:00 (UTC) due to technical maintenance. ×
Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Codeforces round 650 problem E

Revision en1, by vipinkumar17, 2020-06-16 21:12:43

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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English vipinkumar17 2020-06-16 21:12:43 188 Initial revision (published)