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 1241. Inlay Cutters

Please tell test 12 or Hint!!!
Posted by Lifanov 18 Mar 2005 13:29
Moe reshenie.
Snachala ya ushy tochki peresecheniya otrezkov, dalee dlya vsex tochek opredelyu soedeninu li onu -> sostavlyu matricu smegnosti. Potom ishy ciklu dlinoy 3.

And get WA on test 12.
Re: Please tell test 12 or Hint!!!
Posted by Macarie 18 Mar 2005 13:51
Re: Please tell test 12 or Hint!!!
Posted by Lifanov 18 Mar 2005 15:35
Thanks. I got AC now.
Re: Please tell test 12 or Hint!!!
Posted by Denis Koshman 22 Jul 2008 21:01
I BFS over WxHx4 paintable sub-cells, then extract border edges for each component, then concatenate them. If N=3, we've got triangle.