This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pulp | |
from itertools import product | |
from pprint import pprint | |
def main(): | |
# 問題表(0が空白マス) | |
Bord = [[0, 0, 0, 0, 4, 0, 6, 0, 0], | |
[7, 5, 0, 0, 0, 0, 0, 0, 0], | |
[0, 0, 0, 0, 0, 0, 0, 0, 0], | |
[0, 0, 0, 0, 0, 5, 0, 0, 0], |