{"id":1068,"date":"2009-10-19T22:22:57","date_gmt":"2009-10-20T05:22:57","guid":{"rendered":"http:\/\/www.slyar.com\/blog\/?p=1068"},"modified":"2022-08-03T12:59:52","modified_gmt":"2022-08-03T19:59:52","slug":"sudoku-cpp","status":"publish","type":"post","link":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html","title":{"rendered":"\u6570\u72ec\u6c42\u89e3(Sudoku) C++\u7248"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u6587\u7ae0\u4f5c\u8005\uff1a<span style=\"color: #0000ff;\">\u59dc\u5357(Slyar) <\/span>\u6587\u7ae0\u6765\u6e90\uff1aSlyar Home (<a title=\"Slyar\" href=\"http:\/\/www.slyar.com\" target=\"_blank\" rel=\"noopener\">www.slyar.com<\/a>) \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8c22\u8c22\u5408\u4f5c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u5929\u7ffb\u624b\u673a\u91cc\u7684\u6e38\u620f\u65f6\uff0c\u627e\u5230\u4e86\u4ee5\u524d\u7ecf\u5e38\u73a9\u7684\u4e5d\u5bab\u683c\uff0c\u4e5f\u5c31\u662f\u6570\u72ec\u3002\u62fc\u51fa\u4e00\u4e2a20\u4e2a\u5df2\u77e5\u6570\u5b57\u7684\u6570\u72ec\u540e\uff0c\u6211\u53c8\u60f3\u5199\u4ee3\u7801\u89e3\u6570\u72ec\u4e86...<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u601d\u8def\u6bd4\u8f83\u6e05\u6670\uff0c\u4f9d\u65e7\u662fDFS\uff0c\u611f\u89c9\u5e94\u8be5\u4e0d\u96be\u5199\u3002\u82b1\u4e862\u4e2a\u5c0f\u65f6\u641e\u5b9a\u4ee3\u7801\uff0c\u7528\u624b\u673a\u91cc\u7684\u6570\u72ec\u6e38\u620f\u6d4b\u8bd5\u4e86\u51e0\u6b21\uff0c\u5168\u90e8\u901a\u8fc7...<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u610f\u5916\u53d1\u73b0<a title=\"PKU 2726\" href=\"http:\/\/acm.pku.edu.cn\/JudgeOnline\/problem?id=2676\" target=\"_blank\" rel=\"noopener\">PKU 2676<\/a>\u5c31\u662f\u6570\u72ec\u6c42\u89e3\uff0c\u7528\u6211\u5199\u7684\u4ee3\u7801\u4ea4\u4e862\u6b21\u5168\u662fTLE...\u770b\u4e86Discuss\u4ee5\u540e\u5f97\u77e5\u8981AC\u5fc5\u987b\u4ece\u540e\u9762\u5f00\u59cb\u641c...\u56e7\uff0c\u6570\u636e\u95ee\u9898\uff0c\u6570\u636e\u95ee\u9898...<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6069\uff0c\u4ee3\u7801\u7684\u6ce8\u91ca\u6211\u5199\u7684\u5f02\u5e38\u6e05\u695a\uff0c\u5c31\u4e0d\u518d\u5199\u5e9f\u8bdd\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"color: #ff0000;\">\u6ce8:\u8fd9\u4e2a\u4ee3\u7801\u662f\u6211\u81ea\u5df1\u73a9\u7684\uff0c\u4e0d\u662fpku 2676\u7684AC\u4ee3\u7801\u3002<\/span><\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:c++ decode:true \" >#include &lt;iostream&gt;\n\nusing namespace std;\n\n\/* \u6784\u9020\u5b8c\u6210\u6807\u5fd7 *\/\nbool sign = false;\n\n\/* \u521b\u5efa\u6570\u72ec\u77e9\u9635 *\/\nint num[9][9];\n\n\/* \u51fd\u6570\u58f0\u660e *\/\nvoid Input();\nvoid Output();\nbool Check(int n, int key);\nint DFS(int n);\n\n\/* \u4e3b\u51fd\u6570 *\/\nint main()\n{\n    cout &lt;&lt; \"\u8bf7\u8f93\u5165\u4e00\u4e2a9*9\u7684\u6570\u72ec\u77e9\u9635\uff0c\u7a7a\u4f4d\u4ee50\u8868\u793a:\" &lt;&lt; endl;\n    Input();\n    DFS(0);\n    Output();\n    system(\"pause\");\n}\n\n\/* \u8bfb\u5165\u6570\u72ec\u77e9\u9635 *\/\nvoid Input()\n{\n    char temp[9][9];\n    for (int i = 0; i &lt; 9; i++)\n    {\n        for (int j = 0; j &lt; 9; j++)\n        {\n            cin &gt;&gt; temp[i][j];\n            num[i][j] = temp[i][j] - '0';\n        }\n    }\n}\n\n\/* \u8f93\u51fa\u6570\u72ec\u77e9\u9635 *\/\nvoid Output()\n{\n    cout &lt;&lt; endl;\n    for (int i = 0; i &lt; 9; i++)\n    {\n        for (int j = 0; j &lt; 9; j++)\n        {\n            cout &lt;&lt; num[i][j] &lt;&lt; \" \";\n            if (j % 3 == 2)\n            {\n                cout &lt;&lt; \"   \";\n            }\n        }\n        cout &lt;&lt; endl;\n        if (i % 3 == 2)\n        {\n            cout &lt;&lt; endl;\n        }\n    }\n}\n\n\/* \u5224\u65adkey\u586b\u5165n\u65f6\u662f\u5426\u6ee1\u8db3\u6761\u4ef6 *\/\nbool Check(int n, int key)\n{\n    \/* \u5224\u65adn\u6240\u5728\u6a2a\u5217\u662f\u5426\u5408\u6cd5 *\/\n    for (int i = 0; i &lt; 9; i++)\n    {\n        \/* j\u4e3an\u7ad6\u5750\u6807 *\/\n        int j = n \/ 9;\n        if (num[j][i] == key) return false;\n    }\n    \n    \/* \u5224\u65adn\u6240\u5728\u7ad6\u5217\u662f\u5426\u5408\u6cd5 *\/\n    for (int i = 0; i &lt; 9; i++)\n    {\n        \/* j\u4e3an\u6a2a\u5750\u6807 *\/\n        int j = n % 9;\n        if (num[i][j] == key) return false;\n    }\n    \n    \/* x\u4e3an\u6240\u5728\u7684\u5c0f\u4e5d\u5bab\u683c\u5de6\u9876\u70b9\u7ad6\u5750\u6807 *\/\n    int x = n \/ 9 \/ 3 * 3;\n    \n    \/* y\u4e3an\u6240\u5728\u7684\u5c0f\u4e5d\u5bab\u683c\u5de6\u9876\u70b9\u6a2a\u5750\u6807 *\/\n    int y = n % 9 \/ 3 * 3;\n    \n    \/* \u5224\u65adn\u6240\u5728\u7684\u5c0f\u4e5d\u5bab\u683c\u662f\u5426\u5408\u6cd5 *\/\n    for (int i = x; i &lt; x + 3; i++)\n    {\n        for (int j = y; j &lt; y + 3; j++)\n        {\n            if (num[i][j] == key) return false;\n        }\n    }\n    \n    \/* \u5168\u90e8\u5408\u6cd5\uff0c\u8fd4\u56de\u6b63\u786e *\/\n    return true;\n}\n\n\/* \u6df1\u641c\u6784\u9020\u6570\u72ec *\/\nint DFS(int n)\n{\n    \/* \u6240\u6709\u7684\u90fd\u7b26\u5408\uff0c\u9000\u51fa\u9012\u5f52 *\/\n    if (n &gt; 80)\n    {\n        sign = true;\n        return 0;\n    }\n    \/* \u5f53\u524d\u4f4d\u4e0d\u4e3a\u7a7a\u65f6\u8df3\u8fc7 *\/\n    if (num[n\/9][n%9] != 0)\n    {\n        DFS(n+1);\n    }\n    else\n    {\n        \/* \u5426\u5219\u5bf9\u5f53\u524d\u4f4d\u8fdb\u884c\u679a\u4e3e\u6d4b\u8bd5 *\/\n        for (int i = 1; i &lt;= 9; i++)\n        {\n            \/* \u6ee1\u8db3\u6761\u4ef6\u65f6\u586b\u5165\u6570\u5b57 *\/\n            if (Check(n, i) == true)\n            {\n                num[n\/9][n%9] = i;\n                \/* \u7ee7\u7eed\u641c\u7d22 *\/\n                DFS(n+1);\n                \/* \u8fd4\u56de\u65f6\u5982\u679c\u6784\u9020\u6210\u529f\uff0c\u5219\u76f4\u63a5\u9000\u51fa *\/\n                if (sign == true) return 0;\n                \/* \u5982\u679c\u6784\u9020\u4e0d\u6210\u529f\uff0c\u8fd8\u539f\u5f53\u524d\u4f4d *\/\n                num[n\/9][n%9] = 0;\n            }\n        }\n    }\n}<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Sample Input<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">103000509<br>\n002109400<br>\n000704000<br>\n300502006<br>\n060000050<br>\n700803004<br>\n000401000<br>\n009205800<br>\n804000107<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sample Output<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">143628579<br>\n572139468<br>\n986754231<br>\n391542786<br>\n468917352<br>\n725863914<br>\n237481695<br>\n619275843<br>\n854396127<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"http:\/\/www.slyar.com\/blog\">Slyar Home<\/a> &raquo; <a href=\"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html\">\u6570\u72ec\u6c42\u89e3(Sudoku) C++\u7248<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u4f5c\u8005\uff1a\u59dc\u5357(Slyar) \u6587\u7ae0\u6765\u6e90\uff1aSlyar Home (www.slyar.com) \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8c22\u8c22\u5408\u4f5c\u3002 \u4eca\u5929\u7ffb\u624b\u673a\u91cc\u7684\u6e38\u620f\u65f6\uff0c\u627e\u5230\u4e86\u4ee5\u524d\u7ecf\u5e38\u73a9\u7684\u4e5d\u5bab\u683c\uff0c\u4e5f\u5c31\u662f\u6570\u72ec\u3002\u62fc\u51fa\u4e00\u4e2a20\u4e2a\u5df2\u77e5\u6570\u5b57\u7684\u6570\u72ec\u540e\uff0c\u6211\u53c8\u60f3\u5199\u4ee3\u7801\u89e3\u6570\u72ec\u4e86... \u601d\u8def\u6bd4\u8f83\u6e05\u6670 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[303,258,1159],"class_list":["post-1068","post","type-post","status-publish","format-standard","hentry","category-programing","tag-303","tag-258","tag-1159"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u6570\u72ec\u6c42\u89e3(Sudoku)\uff0c\u5229\u7528\u6df1\u5ea6\u4f18\u5148\u641c\u7d20DFS\u89e3\u9898\uff0cC++\u7248\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Slyar\"\/>\n\t<meta name=\"keywords\" content=\"slyar,sudoku,\u6570\u72ec,\u4e5d\u5bab\u683c,c++,\u6e38\u620f,\u67e5\u627e,\u9012\u5f52,\u641c\u7d22\" \/>\n\t<link rel=\"canonical\" href=\"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"zh_CN\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Slyar Home | \u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\u6570\u72ec\u6c42\u89e3(Sudoku) C++\u7248 - Slyar Home\" \/>\n\t\t<meta property=\"og:description\" content=\"\u6570\u72ec\u6c42\u89e3(Sudoku)\uff0c\u5229\u7528\u6df1\u5ea6\u4f18\u5148\u641c\u7d20DFS\u89e3\u9898\uff0cC++\u7248\" \/>\n\t\t<meta property=\"og:url\" content=\"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2009-10-20T05:22:57+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-08-03T19:59:52+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\u6570\u72ec\u6c42\u89e3(Sudoku) C++\u7248 - Slyar Home\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u6570\u72ec\u6c42\u89e3(Sudoku)\uff0c\u5229\u7528\u6df1\u5ea6\u4f18\u5148\u641c\u7d20DFS\u89e3\u9898\uff0cC++\u7248\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/sudoku-cpp.html#article\",\"name\":\"\\u6570\\u72ec\\u6c42\\u89e3(Sudoku) C++\\u7248 - Slyar Home\",\"headline\":\"\\u6570\\u72ec\\u6c42\\u89e3(Sudoku) C++\\u7248\",\"author\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"publisher\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/sudoku-cpp.html#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"},\"datePublished\":\"2009-10-19T22:22:57-07:00\",\"dateModified\":\"2022-08-03T12:59:52-07:00\",\"inLanguage\":\"zh-CN\",\"commentCount\":5,\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/sudoku-cpp.html#webpage\"},\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/sudoku-cpp.html#webpage\"},\"articleSection\":\"\\u7f16\\u7a0b\\u76f8\\u5173, \\u7814\\u7a76, \\u7b97\\u6cd5, \\u89e3\\u8c1c\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/sudoku-cpp.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/programing#listItem\",\"name\":\"\\u7f16\\u7a0b\\u76f8\\u5173\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/programing#listItem\",\"position\":2,\"name\":\"\\u7f16\\u7a0b\\u76f8\\u5173\",\"item\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/programing\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/sudoku-cpp.html#listItem\",\"name\":\"\\u6570\\u72ec\\u6c42\\u89e3(Sudoku) C++\\u7248\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/sudoku-cpp.html#listItem\",\"position\":3,\"name\":\"\\u6570\\u72ec\\u6c42\\u89e3(Sudoku) C++\\u7248\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/programing#listItem\",\"name\":\"\\u7f16\\u7a0b\\u76f8\\u5173\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\",\"name\":\"Slyar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/sudoku-cpp.html#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"}},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar\",\"name\":\"Slyar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/sudoku-cpp.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"}},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/sudoku-cpp.html#webpage\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/sudoku-cpp.html\",\"name\":\"\\u6570\\u72ec\\u6c42\\u89e3(Sudoku) C++\\u7248 - Slyar Home\",\"description\":\"\\u6570\\u72ec\\u6c42\\u89e3(Sudoku)\\uff0c\\u5229\\u7528\\u6df1\\u5ea6\\u4f18\\u5148\\u641c\\u7d20DFS\\u89e3\\u9898\\uff0cC++\\u7248\",\"inLanguage\":\"zh-CN\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/sudoku-cpp.html#breadcrumblist\"},\"author\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"creator\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"datePublished\":\"2009-10-19T22:22:57-07:00\",\"dateModified\":\"2022-08-03T12:59:52-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#website\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/\",\"name\":\"Slyar Home\",\"description\":\"\\u8bb0\\u5f55\\u4e2a\\u4eba\\u751f\\u6d3b\",\"inLanguage\":\"zh-CN\",\"publisher\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u6570\u72ec\u6c42\u89e3(Sudoku) C++\u7248 - Slyar Home","description":"\u6570\u72ec\u6c42\u89e3(Sudoku)\uff0c\u5229\u7528\u6df1\u5ea6\u4f18\u5148\u641c\u7d20DFS\u89e3\u9898\uff0cC++\u7248","canonical_url":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html","robots":"max-image-preview:large","keywords":"slyar,sudoku,\u6570\u72ec,\u4e5d\u5bab\u683c,c++,\u6e38\u620f,\u67e5\u627e,\u9012\u5f52,\u641c\u7d22","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html#article","name":"\u6570\u72ec\u6c42\u89e3(Sudoku) C++\u7248 - Slyar Home","headline":"\u6570\u72ec\u6c42\u89e3(Sudoku) C++\u7248","author":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"publisher":{"@id":"http:\/\/www.slyar.com\/blog\/#person"},"image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"},"datePublished":"2009-10-19T22:22:57-07:00","dateModified":"2022-08-03T12:59:52-07:00","inLanguage":"zh-CN","commentCount":5,"mainEntityOfPage":{"@id":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html#webpage"},"isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html#webpage"},"articleSection":"\u7f16\u7a0b\u76f8\u5173, \u7814\u7a76, \u7b97\u6cd5, \u89e3\u8c1c"},{"@type":"BreadcrumbList","@id":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/#listItem","position":1,"name":"Home","item":"http:\/\/www.slyar.com\/blog\/","nextItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/programing#listItem","name":"\u7f16\u7a0b\u76f8\u5173"}},{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/programing#listItem","position":2,"name":"\u7f16\u7a0b\u76f8\u5173","item":"http:\/\/www.slyar.com\/blog\/category\/programing","nextItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html#listItem","name":"\u6570\u72ec\u6c42\u89e3(Sudoku) C++\u7248"},"previousItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html#listItem","position":3,"name":"\u6570\u72ec\u6c42\u89e3(Sudoku) C++\u7248","previousItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/programing#listItem","name":"\u7f16\u7a0b\u76f8\u5173"}}]},{"@type":"Person","@id":"http:\/\/www.slyar.com\/blog\/#person","name":"Slyar","image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"}},{"@type":"Person","@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author","url":"http:\/\/www.slyar.com\/blog\/author\/slyar","name":"Slyar","image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"}},{"@type":"WebPage","@id":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html#webpage","url":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html","name":"\u6570\u72ec\u6c42\u89e3(Sudoku) C++\u7248 - Slyar Home","description":"\u6570\u72ec\u6c42\u89e3(Sudoku)\uff0c\u5229\u7528\u6df1\u5ea6\u4f18\u5148\u641c\u7d20DFS\u89e3\u9898\uff0cC++\u7248","inLanguage":"zh-CN","isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/#website"},"breadcrumb":{"@id":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html#breadcrumblist"},"author":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"creator":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"datePublished":"2009-10-19T22:22:57-07:00","dateModified":"2022-08-03T12:59:52-07:00"},{"@type":"WebSite","@id":"http:\/\/www.slyar.com\/blog\/#website","url":"http:\/\/www.slyar.com\/blog\/","name":"Slyar Home","description":"\u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b","inLanguage":"zh-CN","publisher":{"@id":"http:\/\/www.slyar.com\/blog\/#person"}}]},"og:locale":"zh_CN","og:site_name":"Slyar Home | \u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b","og:type":"article","og:title":"\u6570\u72ec\u6c42\u89e3(Sudoku) C++\u7248 - Slyar Home","og:description":"\u6570\u72ec\u6c42\u89e3(Sudoku)\uff0c\u5229\u7528\u6df1\u5ea6\u4f18\u5148\u641c\u7d20DFS\u89e3\u9898\uff0cC++\u7248","og:url":"http:\/\/www.slyar.com\/blog\/sudoku-cpp.html","article:published_time":"2009-10-20T05:22:57+00:00","article:modified_time":"2022-08-03T19:59:52+00:00","twitter:card":"summary","twitter:title":"\u6570\u72ec\u6c42\u89e3(Sudoku) C++\u7248 - Slyar Home","twitter:description":"\u6570\u72ec\u6c42\u89e3(Sudoku)\uff0c\u5229\u7528\u6df1\u5ea6\u4f18\u5148\u641c\u7d20DFS\u89e3\u9898\uff0cC++\u7248"},"aioseo_meta_data":{"post_id":"1068","title":"\u6570\u72ec\u6c42\u89e3(Sudoku) C++\u7248 - #site_title","description":"\u6570\u72ec\u6c42\u89e3(Sudoku)\uff0c\u5229\u7528\u6df1\u5ea6\u4f18\u5148\u641c\u7d20DFS\u89e3\u9898\uff0cC++\u7248","keywords":[{"label":"slyar","value":"slyar"},{"label":"Sudoku","value":"Sudoku"},{"label":"\u6570\u72ec","value":"\u6570\u72ec"},{"label":"\u4e5d\u5bab\u683c","value":"\u4e5d\u5bab\u683c"},{"label":"c++","value":"c++"},{"label":"\u6e38\u620f","value":"\u6e38\u620f"},{"label":"\u67e5\u627e","value":"\u67e5\u627e"},{"label":"\u9012\u5f52","value":"\u9012\u5f52"},{"label":"\u641c\u7d22","value":"\u641c\u7d22"}],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":{"id":"aioseo-article-634ea357ead8f","slug":"article","graphName":"Article","label":"\u6587\u7ae0","properties":{"type":"BlogPosting","name":"#post_title","headline":"#post_title","description":"#post_excerpt","image":"","keywords":"","author":{"name":"#author_name","url":"#author_url"},"dates":{"include":true,"datePublished":"","dateModified":""}}},"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-02-10 02:43:55","updated":"2022-10-18 13:00:07","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"_links":{"self":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/1068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/comments?post=1068"}],"version-history":[{"count":9,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/1068\/revisions"}],"predecessor-version":[{"id":7863,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/1068\/revisions\/7863"}],"wp:attachment":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/media?parent=1068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/categories?post=1068"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/tags?post=1068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}