2 start- old- 修柵欄

來源: 2010-03-09 08:37:09 [舊帖] [給我悄悄話] 本文已被閱讀:

平麵上有一個1x1 的草坪;
你要在草坪裏修柵欄,使得 平麵上任一直線都不會穿過草坪而不碰柵欄。
如何使 柵欄最短。
ie: length (0,0-0,1-1,1-1,0-0,0) = 4 is a solution, but not the best solution