I don't know why my solution works

Revision en1, by humbertoyusta, 2019-04-01 15:44:13

Hello I been recently solved this problem and I found a greedy solution and I don't know why is ok. I hope that any of you could explain me why it works or show me that it should not Here is my code http://mirror.codeforces.com/contest/1132/submission/51950554

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English humbertoyusta 2019-04-01 15:44:13 290 Initial revision (published)