{"id":185,"date":"2019-11-06T11:25:00","date_gmt":"2019-11-06T11:25:00","guid":{"rendered":"https:\/\/imwarming.com\/?p=185"},"modified":"2019-11-06T11:25:00","modified_gmt":"2019-11-06T11:25:00","slug":"%e4%ba%8c%e5%8f%89%e6%a0%91%e5%9f%ba%e7%a1%80%e6%93%8d%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/imwarming.com\/?p=185","title":{"rendered":"\u4e8c\u53c9\u6811\u57fa\u7840\u64cd\u4f5c"},"content":{"rendered":"<div class=\"cnblogs_code\">\n<pre>#include&lt;bits\/stdc++.h&gt;\n<span style=\"color: #0000ff;\">#define<\/span> maxsize 100\n<span style=\"color: #0000ff;\">using<\/span> <span style=\"color: #0000ff;\">namespace<\/span><span style=\"color: #000000;\"> std;\ntypedef <\/span><span style=\"color: #0000ff;\">struct<\/span><span style=\"color: #000000;\"> node\n{<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5b9a\u4e49\u4e8c\u53c9\u6811\u7ed3\u6784<\/span>\n    <span style=\"color: #0000ff;\">char<\/span><span style=\"color: #000000;\"> data;\n    <\/span><span style=\"color: #0000ff;\">struct<\/span> node *lchild,*<span style=\"color: #000000;\">rchild;\n}<\/span>*<span style=\"color: #000000;\">bitree,bitnode;\n\n<\/span><span style=\"color: #0000ff;\">void<\/span> createbitree(bitree &amp;<span style=\"color: #000000;\">t)\n{<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5148\u5e8f\u521b\u5efa\u4e8c\u53c9\u6811<\/span>\n    <span style=\"color: #0000ff;\">char<\/span><span style=\"color: #000000;\"> ch;\n    cin<\/span>&gt;&gt;<span style=\"color: #000000;\">ch;\n    <\/span><span style=\"color: #0000ff;\">if<\/span>(ch==<span style=\"color: #800000;\">'<\/span><span style=\"color: #800000;\">#<\/span><span style=\"color: #800000;\">'<\/span>) t=<span style=\"color: #000000;\">null;\n    <\/span><span style=\"color: #0000ff;\">else<\/span><span style=\"color: #000000;\">{\n        t<\/span>=<span style=\"color: #0000ff;\">new<\/span><span style=\"color: #000000;\"> bitnode;\n        t<\/span>-&gt;data=<span style=\"color: #000000;\">ch;\n        createbitree(t<\/span>-&gt;<span style=\"color: #000000;\">lchild);\n        createbitree(t<\/span>-&gt;<span style=\"color: #000000;\">rchild);\n    }\n}\n<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5c42\u5e8f\u904d\u5386<\/span>\n<span style=\"color: #0000ff;\">void<\/span><span style=\"color: #000000;\"> levelordertraversal(bitree bt){\n    queue<\/span>&lt;bitree&gt;<span style=\"color: #000000;\"> q;\n    <\/span><span style=\"color: #0000ff;\">if<\/span>(!bt)<span style=\"color: #0000ff;\">return<\/span><span style=\"color: #000000;\">;\n    q.push(bt);\n    <\/span><span style=\"color: #0000ff;\">while<\/span>(!<span style=\"color: #000000;\">q.empty()){\n        bitnode <\/span>*q =<span style=\"color: #000000;\"> q.front();\n        cout<\/span>&lt;&lt;q-&gt;<span style=\"color: #000000;\">data;\n        q.pop();\n        <\/span><span style=\"color: #0000ff;\">if<\/span>(q-&gt;<span style=\"color: #000000;\">lchild)\n            q.push(q<\/span>-&gt;<span style=\"color: #000000;\">lchild);\n        <\/span><span style=\"color: #0000ff;\">if<\/span>(q-&gt;<span style=\"color: #000000;\">rchild)\n            q.push(q<\/span>-&gt;<span style=\"color: #000000;\">rchild);\n    }\n}\n<\/span><span style=\"color: #0000ff;\">void<\/span><span style=\"color: #000000;\"> inordertraverse(bitree t)\n{<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u4e2d\u5e8f\u904d\u5386<\/span>\n    <span style=\"color: #0000ff;\">if<\/span><span style=\"color: #000000;\">(t)\n    {\n        inordertraverse(t<\/span>-&gt;<span style=\"color: #000000;\">lchild);\n        cout<\/span>&lt;&lt;t-&gt;<span style=\"color: #000000;\">data;\n        inordertraverse(t<\/span>-&gt;<span style=\"color: #000000;\">rchild);\n    }\n}\n<\/span><span style=\"color: #0000ff;\">void<\/span><span style=\"color: #000000;\"> preordertraverse(bitree t)\n{<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5148\u5e8f\u904d\u5386<\/span>\n    <span style=\"color: #0000ff;\">if<\/span><span style=\"color: #000000;\">(t)\n    {\n        cout<\/span>&lt;&lt;t-&gt;<span style=\"color: #000000;\">data;\n        preordertraverse(t<\/span>-&gt;<span style=\"color: #000000;\">lchild);\n        preordertraverse(t<\/span>-&gt;<span style=\"color: #000000;\">rchild);\n    }\n}\n<\/span><span style=\"color: #0000ff;\">void<\/span><span style=\"color: #000000;\"> postordertraverse(bitree t)\n{<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u540e\u5e8f\u904d\u5386<\/span>\n    <span style=\"color: #0000ff;\">if<\/span><span style=\"color: #000000;\">(t)\n    {\n        postordertraverse(t<\/span>-&gt;<span style=\"color: #000000;\">lchild);\n        postordertraverse(t<\/span>-&gt;<span style=\"color: #000000;\">rchild);\n        cout<\/span>&lt;&lt;t-&gt;<span style=\"color: #000000;\">data;\n    }\n}\n<\/span><span style=\"color: #0000ff;\">void<\/span> copy(bitree t,bitree &amp;<span style=\"color: #000000;\">newt)\n{<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u4e8c\u53c9\u6811\u7684\u590d\u5236<\/span>\n    <span style=\"color: #0000ff;\">if<\/span>(t==<span style=\"color: #000000;\">null){\n        newt<\/span>=<span style=\"color: #000000;\">null;\n        <\/span><span style=\"color: #0000ff;\">return<\/span><span style=\"color: #000000;\">;\n    }<\/span><span style=\"color: #0000ff;\">else<\/span><span style=\"color: #000000;\">\n    {\n        newt<\/span>=<span style=\"color: #0000ff;\">new<\/span><span style=\"color: #000000;\"> bitnode;\n        newt<\/span>-&gt;data=t-&gt;<span style=\"color: #000000;\">data;\n        copy(t<\/span>-&gt;lchild,newt-&gt;<span style=\"color: #000000;\">lchild);\n        copy(t<\/span>-&gt;rchild,newt-&gt;<span style=\"color: #000000;\">rchild);\n    }\n}\n<\/span><span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> depth(bitree t)\n{<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u6811\u7684\u6df1\u5ea6<\/span>\n    <span style=\"color: #0000ff;\">if<\/span>(t==<span style=\"color: #000000;\">null)\n        <\/span><span style=\"color: #0000ff;\">return<\/span> <span style=\"color: #800080;\">0<\/span><span style=\"color: #000000;\">;\n    <\/span><span style=\"color: #0000ff;\">else<\/span><span style=\"color: #000000;\">\n    {\n        <\/span><span style=\"color: #0000ff;\">int<\/span> m=depth(t-&gt;<span style=\"color: #000000;\">lchild);\n        <\/span><span style=\"color: #0000ff;\">int<\/span> n=depth(t-&gt;<span style=\"color: #000000;\">rchild);\n        <\/span><span style=\"color: #0000ff;\">if<\/span>(m&gt;n) <span style=\"color: #0000ff;\">return<\/span> (m+<span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">);\n        <\/span><span style=\"color: #0000ff;\">else<\/span> <span style=\"color: #0000ff;\">return<\/span> (n+<span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">);\n    }\n}\n<\/span><span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> nodecount(bitree t)\n{<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u7edf\u8ba1\u4e8c\u53c9\u6811\u4e2d\u7ed3\u70b9\u7684\u4e2a\u6570<\/span>\n    <span style=\"color: #0000ff;\">if<\/span>(t==null) <span style=\"color: #0000ff;\">return<\/span> <span style=\"color: #800080;\">0<\/span><span style=\"color: #000000;\">;\n    <\/span><span style=\"color: #0000ff;\">else<\/span> <span style=\"color: #0000ff;\">return<\/span> nodecount(t-&gt;lchild)+nodecount(t-&gt;rchild)+<span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">;\n}\n<\/span><span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> leafcount(bitree t)\n{<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u7edf\u8ba1\u4e8c\u53c9\u6811\u4e2d\u53f6\u5b50\u7ed3\u70b9\u7684\u4e2a\u6570<\/span>\n    <span style=\"color: #0000ff;\">if<\/span>(!t) <span style=\"color: #0000ff;\">return<\/span> <span style=\"color: #800080;\">0<\/span><span style=\"color: #000000;\">;\n    <\/span><span style=\"color: #0000ff;\">if<\/span>(!t-&gt;lchild &amp;&amp;!t-&gt;rchild){<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5982\u679c\u4e8c\u53c9\u6811\u5de6\u5b50\u6811\u548c\u53f3\u5b50\u6811\u7686\u4e3a\u7a7a,\u8bf4\u660e\u8be5\u4e8c\u53c9\u6811\u6839\u8282\u70b9\u4e3a\u53f6\u5b50\u8282\u70b9,\u52a01.<\/span>\n        <span style=\"color: #0000ff;\">return<\/span> <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">;\n    }<\/span><span style=\"color: #0000ff;\">else<\/span><span style=\"color: #000000;\">{\n        <\/span><span style=\"color: #0000ff;\">return<\/span> leafcount(t-&gt;lchild)+leafcount(t-&gt;<span style=\"color: #000000;\">rchild);\n    }\n}\n<\/span><span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> node_1_count(bitree t)\n{<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u7edf\u8ba1\u4e8c\u53c9\u6811\u7684\u5ea6\u4e3a1\u7684\u7ed3\u70b9\u4e2a\u6570<\/span>\n    <span style=\"color: #0000ff;\">if<\/span>(!t) <span style=\"color: #0000ff;\">return<\/span> <span style=\"color: #800080;\">0<\/span><span style=\"color: #000000;\">;\n    <\/span><span style=\"color: #0000ff;\">if<\/span>((!t-&gt;lchild)&amp;&amp;(t-&gt;rchild)||(t-&gt;lchild)&amp;&amp;(!t-&gt;<span style=\"color: #000000;\">rchild))\n        <\/span><span style=\"color: #0000ff;\">return<\/span> <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">;\n    <\/span><span style=\"color: #0000ff;\">else<\/span>\n        <span style=\"color: #0000ff;\">return<\/span> leafcount(t-&gt;lchild)+leafcount(t-&gt;<span style=\"color: #000000;\">rchild);\n}\n<\/span><span style=\"color: #0000ff;\">void<\/span> printallpath(bitree t, <span style=\"color: #0000ff;\">char<\/span> path[], <span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> pathlen)\n{<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u4e8c\u53c9\u6811\u4e2d\u4ece\u6bcf\u4e2a\u53f6\u5b50\u7ed3\u70b9\u5230\u6839\u7ed3\u70b9\u7684\u8def\u5f84<\/span>\n    <span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> i;\n    <\/span><span style=\"color: #0000ff;\">if<\/span>(t !=<span style=\"color: #000000;\"> null) {\n        path[pathlen] <\/span>= t-&gt;data; <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5c06\u5f53\u524d\u7ed3\u70b9\u653e\u5165\u8def\u5f84\u4e2d<\/span>\n        <span style=\"color: #0000ff;\">if<\/span>(t-&gt;lchild == null &amp;&amp; t-&gt;rchild == null) {<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u53f6\u5b50\u7ed3\u70b9<\/span>\n            <span style=\"color: #0000ff;\">for<\/span>(i = pathlen; i &gt;= <span style=\"color: #800080;\">0<\/span>; i--<span style=\"color: #000000;\">)\n                cout <\/span>&lt;&lt; path[i] &lt;&lt; <span style=\"color: #800000;\">\"<\/span> <span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\"> ;\n            cout <\/span>&lt;&lt;<span style=\"color: #000000;\"> endl;\n        }<\/span><span style=\"color: #0000ff;\">else<\/span><span style=\"color: #000000;\">{\n            printallpath(t<\/span>-&gt;lchild, path, pathlen + <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">);\n            printallpath(t<\/span>-&gt;rchild, path, pathlen + <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">);\n        }\n    }\n}\n<\/span><span style=\"color: #0000ff;\">void<\/span> exchangetree(bitree &amp;<span style=\"color: #000000;\">t)\n{<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u6784\u9020\u51fd\u6570\uff0c\u4f7f\u7528\u9012\u5f52\u7b97\u6cd5\u8fdb\u884c\u5de6\u53f3\u7ed3\u70b9\u8f6c\u6362<\/span>\n<span style=\"color: #000000;\">    bitree temp;\n    <\/span><span style=\"color: #0000ff;\">if<\/span>(t!=null){<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5224\u65adt\u662f\u5426\u4e3a\u7a7a\uff0c\u975e\u7a7a\u8fdb\u884c\u8f6c\u6362\uff0c\u5426\u5219\u4e0d\u8f6c\u6362<\/span>\n        temp=t-&gt;<span style=\"color: #000000;\">lchild;\n        t<\/span>-&gt;lchild=t-&gt;rchild;<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u76f4\u63a5\u4ea4\u6362\u8282\u70b9\u5730\u5740<\/span>\n        t-&gt;rchild=<span style=\"color: #000000;\">temp;\n        exchangetree(t<\/span>-&gt;<span style=\"color: #000000;\">lchild);\n        exchangetree(t<\/span>-&gt;<span style=\"color: #000000;\">rchild);\n    }\n}\n<\/span><span style=\"color: #0000ff;\">void<\/span><span style=\"color: #000000;\"> dblordertraverse(bitree t)\n{<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u4e8c\u53c9\u6811\u7684\u53cc\u5e8f\u904d\u5386<\/span>\n    <span style=\"color: #0000ff;\">if<\/span><span style=\"color: #000000;\">(t)\n    {\n        cout<\/span>&lt;&lt;t-&gt;<span style=\"color: #000000;\">data;\n        dblordertraverse(t<\/span>-&gt;<span style=\"color: #000000;\">lchild);\n        cout<\/span>&lt;&lt;t-&gt;data;<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u8bbf\u95ee\u4e24\u904d<\/span>\n        dblordertraverse(t-&gt;<span style=\"color: #000000;\">rchild);\n    }\n}\n<\/span><span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> main()\n{\n    bitree t;\n    <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u6d4b\u8bd5\u4f8b\u5b50ab#cd##e##f#gh###<\/span>\n    cout&lt;&lt;<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">\u5148\u5e8f\u904d\u5386\u8f93\u5165(\u4ee5#\u7ed3\u675f):<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">;\n    createbitree(t);\n    cout<\/span>&lt;&lt;<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">\u4e2d\u5e8f\u904d\u5386\u8f93\u51fa:<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">;\n    inordertraverse(t);\n    cout<\/span>&lt;&lt;endl&lt;&lt;<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">\u5148\u5e8f\u904d\u5386\u8f93\u51fa:<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">;\n    preordertraverse(t);\n    cout<\/span>&lt;&lt;endl&lt;&lt;<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">\u540e\u5e8f\u904d\u5386\u8f93\u51fa:<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">;\n    postordertraverse(t);\n    cout<\/span>&lt;&lt;endl&lt;&lt;<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">\u5c42\u5e8f\u904d\u5386\u8f93\u51fa:<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">;\n    levelordertraversal(t);\n    cout<\/span>&lt;&lt;endl&lt;&lt;<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">\u6811\u7684\u6df1\u5ea6:<\/span><span style=\"color: #800000;\">\"<\/span>&lt;&lt;<span style=\"color: #000000;\">depth(t);\n    cout<\/span>&lt;&lt;endl&lt;&lt;<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">\u7ed3\u70b9\u7684\u4e2a\u6570:<\/span><span style=\"color: #800000;\">\"<\/span>&lt;&lt;<span style=\"color: #000000;\">nodecount(t);\n    cout<\/span>&lt;&lt;endl&lt;&lt;<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">\u53f6\u7ed3\u70b9\u7684\u4e2a\u6570:<\/span><span style=\"color: #800000;\">\"<\/span>&lt;&lt;<span style=\"color: #000000;\">leafcount(t);\n    cout<\/span>&lt;&lt;endl&lt;&lt;<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">\u5ea6\u4e3a1\u7684\u7ed3\u70b9\u4e2a\u6570:<\/span><span style=\"color: #800000;\">\"<\/span>&lt;&lt;<span style=\"color: #000000;\">node_1_count(t);\n    cout<\/span>&lt;&lt;endl&lt;&lt;<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">\u4e8c\u53c9\u6811\u4e2d\u4ece\u6bcf\u4e2a\u53f6\u5b50\u7ed3\u70b9\u5230\u6839\u7ed3\u70b9\u7684\u6240\u6709\u8def\u5f84\uff1a<\/span><span style=\"color: #800000;\">\"<\/span>&lt;&lt;<span style=\"color: #000000;\">endl;\n    <\/span><span style=\"color: #0000ff;\">char<\/span> path[<span style=\"color: #800080;\">256<\/span><span style=\"color: #000000;\">];\n    <\/span><span style=\"color: #0000ff;\">int<\/span> pathlen=<span style=\"color: #800080;\">0<\/span><span style=\"color: #000000;\">;\n    printallpath(t,path,pathlen);<\/span><span style=\"color: #008000;\">\/\/<\/span>\n    <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u4ea4\u6362\u4e8c\u53c9\u6811\u6bcf\u4e2a\u7ed3\u70b9\u7684\u5de6\u5b69\u5b50\u548c\u53f3\u5b69\u5b50<\/span>\n    bitree tem=t;<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u76f4\u63a5\u590d\u5236\u4e00\u9897\u6811\uff0c\u5728\u4e0d\u6539\u53d8\u539f\u6811\u7684\u524d\u63d0\u4e0b\uff0c\u5bf9\u4e34\u65f6\u6811\u8fdb\u884c\u4ea4\u6362\u3002<\/span>\n<span style=\"color: #000000;\">    exchangetree(tem);\n    cout<\/span>&lt;&lt;<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">\u5148\u5e8f\u904d\u5386\u8f93\u51fa\u4ea4\u6362\u540e\u7684\u7ed3\u679c:<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">;\n    preordertraverse(tem);\n    cout<\/span>&lt;&lt;endl&lt;&lt;<span style=\"color: #800000;\">\"<\/span><span style=\"color: #800000;\">\u53cc\u5e8f\u904d\u5386\u8f93\u51fa:<\/span><span style=\"color: #800000;\">\"<\/span><span style=\"color: #000000;\">;\n    dblordertraverse(t);\n    <\/span><span style=\"color: #0000ff;\">return<\/span> <span style=\"color: #800080;\">0<\/span><span style=\"color: #000000;\">;\n}<\/span><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>#include&lt;bits\/stdc++.h&gt; #define maxsize 100  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-185","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e8c\u53c9\u6811\u57fa\u7840\u64cd\u4f5c - imwarming<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/imwarming.com\/?p=185\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e8c\u53c9\u6811\u57fa\u7840\u64cd\u4f5c - imwarming\" \/>\n<meta property=\"og:description\" content=\"#include&lt;bits\/stdc++.h&gt; #define maxsize 100 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/imwarming.com\/?p=185\" \/>\n<meta property=\"og:site_name\" content=\"imwarming\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-06T11:25:00+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"warming\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/imwarming.com\/#website\",\"url\":\"https:\/\/imwarming.com\/\",\"name\":\"imwarming\",\"description\":\"\u6c38\u8fdc\u5e74\u8f7b\uff0c\u6c38\u8fdc\u70ed\u6cea\u76c8\u7736\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/imwarming.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/imwarming.com\/?p=185#webpage\",\"url\":\"https:\/\/imwarming.com\/?p=185\",\"name\":\"\u4e8c\u53c9\u6811\u57fa\u7840\u64cd\u4f5c - imwarming\",\"isPartOf\":{\"@id\":\"https:\/\/imwarming.com\/#website\"},\"datePublished\":\"2019-11-06T11:25:00+00:00\",\"dateModified\":\"2019-11-06T11:25:00+00:00\",\"author\":{\"@id\":\"https:\/\/imwarming.com\/#\/schema\/person\/9d76869a558bac6dd0d6d58f420ee8ea\"},\"breadcrumb\":{\"@id\":\"https:\/\/imwarming.com\/?p=185#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/imwarming.com\/?p=185\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/imwarming.com\/?p=185#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/imwarming.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e8c\u53c9\u6811\u57fa\u7840\u64cd\u4f5c\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/imwarming.com\/#\/schema\/person\/9d76869a558bac6dd0d6d58f420ee8ea\",\"name\":\"warming\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/imwarming.com\/#personlogo\",\"inLanguage\":\"zh-Hans\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c4a913eed88f7601b76bbf2b103472621195b6fa2f742af89b5ea185b60e7cff?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c4a913eed88f7601b76bbf2b103472621195b6fa2f742af89b5ea185b60e7cff?s=96&d=mm&r=g\",\"caption\":\"warming\"},\"sameAs\":[\"https:\/\/imwarming.com\"],\"url\":\"https:\/\/imwarming.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4e8c\u53c9\u6811\u57fa\u7840\u64cd\u4f5c - imwarming","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/imwarming.com\/?p=185","og_locale":"zh_CN","og_type":"article","og_title":"\u4e8c\u53c9\u6811\u57fa\u7840\u64cd\u4f5c - imwarming","og_description":"#include&lt;bits\/stdc++.h&gt; #define maxsize 100 [&hellip;]","og_url":"https:\/\/imwarming.com\/?p=185","og_site_name":"imwarming","article_published_time":"2019-11-06T11:25:00+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"warming","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/imwarming.com\/#website","url":"https:\/\/imwarming.com\/","name":"imwarming","description":"\u6c38\u8fdc\u5e74\u8f7b\uff0c\u6c38\u8fdc\u70ed\u6cea\u76c8\u7736","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/imwarming.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"https:\/\/imwarming.com\/?p=185#webpage","url":"https:\/\/imwarming.com\/?p=185","name":"\u4e8c\u53c9\u6811\u57fa\u7840\u64cd\u4f5c - imwarming","isPartOf":{"@id":"https:\/\/imwarming.com\/#website"},"datePublished":"2019-11-06T11:25:00+00:00","dateModified":"2019-11-06T11:25:00+00:00","author":{"@id":"https:\/\/imwarming.com\/#\/schema\/person\/9d76869a558bac6dd0d6d58f420ee8ea"},"breadcrumb":{"@id":"https:\/\/imwarming.com\/?p=185#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/imwarming.com\/?p=185"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/imwarming.com\/?p=185#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/imwarming.com\/"},{"@type":"ListItem","position":2,"name":"\u4e8c\u53c9\u6811\u57fa\u7840\u64cd\u4f5c"}]},{"@type":"Person","@id":"https:\/\/imwarming.com\/#\/schema\/person\/9d76869a558bac6dd0d6d58f420ee8ea","name":"warming","image":{"@type":"ImageObject","@id":"https:\/\/imwarming.com\/#personlogo","inLanguage":"zh-Hans","url":"https:\/\/secure.gravatar.com\/avatar\/c4a913eed88f7601b76bbf2b103472621195b6fa2f742af89b5ea185b60e7cff?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c4a913eed88f7601b76bbf2b103472621195b6fa2f742af89b5ea185b60e7cff?s=96&d=mm&r=g","caption":"warming"},"sameAs":["https:\/\/imwarming.com"],"url":"https:\/\/imwarming.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/posts\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imwarming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=185"}],"version-history":[{"count":0,"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/posts\/185\/revisions"}],"wp:attachment":[{"href":"https:\/\/imwarming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imwarming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imwarming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}