Please subscribe to the official Codeforces channel in Telegram via the link ×

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

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


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