Need help in understanding problem C in Round 418

Revision en1, by jaideeppyne1997, 2017-06-08 07:10:42

Can someone please explain how to solve this question http://codeforces.me/contest/814/problem/C within the given time limit. I have read the editorial but could not understand well because it was very brief.I would be thankful if someone explains this in a bit detail on how to solve. :)

Tags #round #418, #problem c

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English jaideeppyne1997 2017-06-08 07:10:42 338 Initial revision (published)