【位运算DFS/DLX】【HDU1426】【数独】
摘要:
题意:标准的一道数独题 DFS做法: 将横纵九宫格里的数字用位运算状态压缩,且可以通过逻辑或来确定总共有哪些数字被选择了,很方便也很快,代码如下 #include #include #include #include #include #include #include #include #... 阅读全文
posted @ 2015-03-30 19:55 DDUPzy 阅读(174) 评论(0) 推荐(0) 编辑