logic behind this problem anya and the ghosts

Revision en2, by dikki99, 2020-04-24 17:57:37

link to the problem:-https://codeforces.com/contest/508/problem/C

please explain the logic behind this problem. I have looked into the editorial but it's not clear.

Tags greedy

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English dikki99 2020-04-24 17:57:37 54 Tiny change: 's problem.' -> 's problem. I have looked into the editorial but it's not clear.'
en1 English dikki99 2020-04-24 17:09:15 160 Initial revision (published)