logic behind this problem anya and the ghosts

Правка en2, от dikki99, 2020-04-24 17:57:37

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

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

Теги greedy

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский 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 Английский dikki99 2020-04-24 17:09:15 160 Initial revision (published)