蓝桥杯2N皇后问题-使用Python实现
n = int(input())caninList = []flaginList = [[0]*n for i in range(n)]flaginList2 = [[0]*n for i in range(n)]nums = 0numss = 0for i in range(n): a = list(map(int,input().split())) caninList.append(a)rowList = [None for i in range(n)]rowList2
原创
2021-01-16 21:19:59 ·
901 阅读 ·
1 评论