摘要: 1.Haskell safe :: Int -> [Int] -> Int -> Bool safe _ [] _ = True safe x (x1:xs) n = x /= x1 && x /= x1 + n && x /= x1 - n && safe x xs (n+1) queenN :: 阅读全文
posted @ 2020-02-12 10:52 式微胡不归 阅读(238) 评论(0) 推荐(0) 编辑