怎樣用六條連續直線貫穿以下16點?

2008-01-13 7:32 pm
‧‧‧‧
‧‧‧‧
‧‧‧‧
‧‧‧‧這16點
更新1:

所有點不可以穿多於一次, ‧‧‧‧ = P1 P2 P3 P4 ‧‧‧‧ = P5 P6 P7 P8 ‧‧‧‧ = P9 P10 P11 P12 ‧‧‧‧ = P13 P14 P15 P16

回答 (2)

2008-01-13 8:26 pm
✔ 最佳答案
設此16點坐標為
P01(1,4) P02(2,4) P03(3,4) P04(4,4)
P05(1,3) P06(2,3) P07(3,3) P08(4,3)
P09(1,2) P10(2,2) P11(3,2) P12(4,2)
P13(1,1) P14(2,1) P15(3,1) P16(4,1)

LINE01
START AT P16(4,1)
PASS P07(3,3)
PASS (2,5)
END AT (1,7)

LINE02
START AT (1,7)
PASS P01(1,4)
PASS P05(1,3)
PASS P09(1,2)
PASS P13(1,1)
END AT (1,0)

LINE03
START AT (1,0)
PASS P14(2,1)
PASS P11(3,2)
PASS P08(4,3)
END AT (5,4)

LINE04
START AT (5,4)
PASS P04(4,4)
PASS P03(3,4)
END AT P02(2,4)

LINE05
START AT P02(2,4)
PASS P06(2,3)
PASS P10(2,2)
PASS P14(2,1)
END AT (2,0)

LINE06
START AT (2,0)
PASS P15(3,1)
END AT P12(4,2)
2008-01-13 8:13 pm
是一筆過用六條直線連起十六點?

我用一下座標幫助說明....
左下角是 (0,0) 右上角是 (3,3)

由 (0,0) 開始,順序為
(0,0), (4,0), (0,4), (0, -1), (4,3), (1,3), (1,1)
六條直線依次穿過 4, 3, 3, 2, 2, 2 共 16 個新點 (即之前未有線穿過既 )


收錄日期: 2021-05-01 22:46:31
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20080113000051KK01135

檢視 Wayback Machine 備份