Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.
/ grid-probrem Public archive

在 NxN 的表格中,每格填入 1 或 -1,使得每格的數字剛好是相鄰格子內數字的乘積,(這裡的相鄰指的是上下左右),請問有幾種填滿表格的方法?

License

Notifications You must be signed in to change notification settings

hqn21/grid-probrem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grid-probrem

在 N×N 的表格中,每格填入 1 或 -1,使得每格的數字剛好是相鄰格子內數字的乘積,(這裡的相鄰指的是上下左右),請問有幾種填滿表格的方法?

變數說明

變數名稱 代表意義 實際範例
width 題目中的N(方形表格寬度) 7
modalNum 可能會符合規範的模型數(2的width次方) 128(2的7次方)

15×15 演示

image

About

在 NxN 的表格中,每格填入 1 或 -1,使得每格的數字剛好是相鄰格子內數字的乘積,(這裡的相鄰指的是上下左右),請問有幾種填滿表格的方法?

Resources

License

Stars

Watchers

Forks

Languages