Could you please explain me what to do in this task from Croatian OI?

Revision en1, by Tigutor, 2021-05-23 09:42:50

Here is the statement https://wcipeg.com/problem/coi08p3

I found it very interesting, because restrictions are big. I was thinking about using array d[i] — number of cells with distance i to them, but I cannot recalculate it for one rectangle quickly.

So if you have any ideas, please share them

Tags realization

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Tigutor 2021-05-23 09:42:50 378 Initial revision (published)