Need help in a 1400 rated problem

Revision en1, by Watermelon, 2021-06-09 14:27:36

I am solving this problem and I am unable to solve it. I read the editorial but don't understand it. I feel sad to not even understand the editorial of a 1400 rated problem. https://codeforces.me/problemset/problem/388/A

Can someone please explain this to me? Thanks.

Tags #greedy, #sorting, #help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Watermelon 2021-06-09 14:27:36 305 Initial revision (published)