ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1333. Genie Bomber 2

If you are too lazy to solve it yourself read that spoiler (deterministic algo)
Posted by Mahilewets 31 May 2017 12:26
You can just brute force all possible points on the grid.  For every point check whether that point is under attack. So,  your grid is just a SZ*SZ square matrix.  SZ=200 is accurate enough,  and even somewhat smaller values are OK.