11289 - Friend or Foe?
Moderator: Board moderators
11289 - Friend or Foe?
This problem has been on my mind for quite a while now. I have no idea how to solve it. I found a solution posted at http://plg.uwaterloo.ca/~acm00/070923/data/E.c, but I still don't have a slightest clue why it works. Anybody with an explanation, a hint or alternative solution is very welcome.
I was going to post a link to misof's TC post - but it was a response to your question. 
I think he gave a nice explanation of a solution.
It is not an easy problem, you might want to try an easier 2D version first (they just ask if you can do it):
http://acmicpc-live-archive.uva.es/nuev ... php?p=3581

I think he gave a nice explanation of a solution.
It is not an easy problem, you might want to try an easier 2D version first (they just ask if you can do it):
http://acmicpc-live-archive.uva.es/nuev ... php?p=3581