logic behind this problem anya and the ghosts

Revision en1, by dikki99, 2020-04-24 17:09:15

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

please explain the logic behind this problem.

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)