usaco Crazy Fences

  After visiting a modern art museum, Farmer John decides to re-design his farm by moving all of the N (1 <= N <= 500) fences between his pastures! Each fence is describe by either a horizontal or a v
相關文章
相關標籤/搜索