{"id":269,"date":"2012-11-17T12:27:00","date_gmt":"2012-11-17T04:27:00","guid":{"rendered":"http:\/\/nike0good.jp1.rpvhost.net\/174"},"modified":"2012-11-17T12:27:00","modified_gmt":"2012-11-17T04:27:00","slug":"hdu_1166_the_zkw_segment_tree_-_a_single_point_of_modification","status":"publish","type":"post","link":"https:\/\/nike0good.com\/?p=269","title":{"rendered":"HDU 1166(zkw\u7ebf\u6bb5\u6811-\u5355\u70b9\u4fee\u6539\uff09"},"content":{"rendered":"<h1 style=\"color:rgb(26,92,200); text-align:center; font-family:'Times New Roman'\">\n\u654c\u5175\u5e03\u9635<\/h1>\n<div class=\"panel_title\" align=\"left\" style=\"height:38px; background-color:transparent; padding:0px 14px; color:rgb(124,169,237); font-size:18px; font-family:Arial; font-weight:bold\">\nProblem Description<\/div>\n<div class=\"panel_content\" style=\"height:auto; margin:0px; padding:0px 20px; font-size:14px; font-family:'Times New Roman'; text-align:left\">\nC\u56fd\u7684\u6b7b\u5bf9\u5934A\u56fd\u8fd9\u6bb5\u65f6\u95f4\u6b63\u5728\u8fdb\u884c\u519b\u4e8b\u6f14\u4e60\uff0c\u6240\u4ee5C\u56fd\u95f4\u8c0d\u5934\u5b50Derek\u548c\u4ed6\u624b\u4e0bTidy\u53c8\u5f00\u59cb\u5fd9\u4e4e\u4e86\u3002A\u56fd\u5728\u6d77\u5cb8\u7ebf\u6cbf\u76f4\u7ebf\u5e03\u7f6e\u4e86N\u4e2a\u5de5\u5175\u8425\u5730,Derek\u548cTidy\u7684\u4efb\u52a1\u5c31\u662f\u8981\u76d1\u89c6\u8fd9\u4e9b\u5de5\u5175\u8425\u5730\u7684\u6d3b\u52a8\u60c5\u51b5\u3002\u7531\u4e8e\u91c7\u53d6\u4e86\u67d0\u79cd\u5148\u8fdb\u7684\u76d1\u6d4b\u624b\u6bb5\uff0c\u6240\u4ee5\u6bcf\u4e2a\u5de5\u5175\u8425\u5730\u7684\u4eba\u6570C\u56fd\u90fd\u638c\u63e1\u7684\u4e00\u6e05\u4e8c\u695a,\u6bcf\u4e2a\u5de5\u5175\u8425\u5730\u7684\u4eba\u6570\u90fd\u6709\u53ef\u80fd\u53d1\u751f\u53d8\u52a8\uff0c\u53ef\u80fd\u589e\u52a0\u6216\u51cf\u5c11\u82e5\u5e72\u4eba\u624b,\u4f46\u8fd9\u4e9b\u90fd\u9003\u4e0d\u8fc7C\u56fd\u7684\u76d1\u89c6\u3002<br \/>\n\u4e2d\u592e\u60c5\u62a5\u5c40\u8981\u7814\u7a76\u654c\u4eba\u7a76\u7adf\u6f14\u4e60\u4ec0\u4e48\u6218\u672f,\u6240\u4ee5Tidy\u8981\u968f\u65f6\u5411Derek\u6c47\u62a5\u67d0\u4e00\u6bb5\u8fde\u7eed\u7684\u5de5\u5175\u8425\u5730\u4e00\u5171\u6709\u591a\u5c11\u4eba,\u4f8b\u5982Derek\u95ee:\u201cTidy,\u9a6c\u4e0a\u6c47\u62a5\u7b2c3\u4e2a\u8425\u5730\u5230\u7b2c10\u4e2a\u8425\u5730\u5171\u6709\u591a\u5c11\u4eba!\u201dTidy\u5c31\u8981\u9a6c\u4e0a\u5f00\u59cb\u8ba1\u7b97\u8fd9\u4e00\u6bb5\u7684\u603b\u4eba\u6570\u5e76\u6c47\u62a5\u3002\u4f46\u654c\u5175\u8425\u5730\u7684\u4eba\u6570\u7ecf\u5e38\u53d8\u52a8\uff0c\u800cDerek\u6bcf\u6b21\u8be2\u95ee\u7684\u6bb5\u90fd\u4e0d\u4e00\u6837\uff0c\u6240\u4ee5Tidy\u4e0d\u5f97\u4e0d\u6bcf\u6b21\u90fd\u4e00\u4e2a\u4e00\u4e2a\u8425\u5730\u7684\u53bb\u6570\uff0c\u5f88\u5feb\u5c31\u7cbe\u75b2\u529b\u5c3d\u4e86\uff0cDerek\u5bf9Tidy\u7684\u8ba1\u7b97\u901f\u5ea6\u8d8a\u6765\u8d8a\u4e0d\u6ee1:&quot;\u4f60\u4e2a\u6b7b\u80a5\u4ed4\uff0c\u7b97\u5f97\u8fd9\u4e48\u6162\uff0c\u6211\u7092\u4f60\u9c7f\u9c7c!\u201dTidy\u60f3\uff1a\u201c\u4f60\u81ea\u5df1\u6765\u7b97\u7b97\u770b\uff0c\u8fd9\u53ef\u771f\u662f\u4e00\u9879\u7d2f\u4eba\u7684\u5de5\u4f5c!\u6211\u6068\u4e0d\u5f97\u4f60\u7092\u6211\u9c7f\u9c7c\u5462!\u201d\u65e0\u5948\u4e4b\u4e0b\uff0cTidy\u53ea\u597d\u6253\u7535\u8bdd\u5411\u8ba1\u7b97\u673a\u4e13\u5bb6Windbreaker\u6c42\u6551,Windbreaker\u8bf4\uff1a\u201c\u6b7b\u80a5\u4ed4\uff0c\u53eb\u4f60\u5e73\u65f6\u505a\u591a\u70b9acm\u9898\u548c\u770b\u591a\u70b9\u7b97\u6cd5\u4e66\uff0c\u73b0\u5728\u5c1d\u5230\u82e6\u679c\u4e86\u5427!\u201dTidy\u8bf4\uff1a&quot;\u6211\u77e5\u9519\u4e86\u3002\u3002\u3002&quot;\u4f46Windbreaker\u5df2\u7ecf\u6302\u6389\u7535\u8bdd\u4e86\u3002Tidy\u5f88\u82e6\u607c\uff0c\u8fd9\u4e48\u7b97\u4ed6\u771f\u7684\u4f1a\u5d29\u6e83\u7684\uff0c\u806a\u660e\u7684\u8bfb\u8005\uff0c\u4f60\u80fd\u5199\u4e2a\u7a0b\u5e8f\u5e2e\u4ed6\u5b8c\u6210\u8fd9\u9879\u5de5\u4f5c\u5417\uff1f\u4e0d\u8fc7\u5982\u679c\u4f60\u7684\u7a0b\u5e8f\u6548\u7387\u4e0d\u591f\u9ad8\u7684\u8bdd\uff0cTidy\u8fd8\u662f\u4f1a\u53d7\u5230Derek\u7684\u8d23\u9a82\u7684.\n<\/div>\n<div class=\"panel_bottom\" style=\"height:auto; margin:0px; font-family:'Times New Roman'; font-size:14px\">\n&nbsp;<\/div>\n<p><br style=\"font-family:'Times New Roman'; font-size:14px\" \/><\/p>\n<div class=\"panel_title\" align=\"left\" style=\"height:38px; background-color:transparent; padding:0px 14px; color:rgb(124,169,237); font-size:18px; font-family:Arial; font-weight:bold\">\nInput<\/div>\n<div class=\"panel_content\" style=\"height:auto; margin:0px; padding:0px 20px; font-size:14px; font-family:'Times New Roman'; text-align:left\">\n\u7b2c\u4e00\u884c\u4e00\u4e2a\u6574\u6570T\uff0c\u8868\u793a\u6709T\u7ec4\u6570\u636e\u3002<br \/>\n\u6bcf\u7ec4\u6570\u636e\u7b2c\u4e00\u884c\u4e00\u4e2a\u6b63\u6574\u6570N\uff08N&lt;=50000\uff09,\u8868\u793a\u654c\u4eba\u6709N\u4e2a\u5de5\u5175\u8425\u5730\uff0c\u63a5\u4e0b\u6765\u6709N\u4e2a\u6b63\u6574\u6570,\u7b2ci\u4e2a\u6b63\u6574\u6570ai\u4ee3\u8868\u7b2ci\u4e2a\u5de5\u5175\u8425\u5730\u91cc\u5f00\u59cb\u65f6\u6709ai\u4e2a\u4eba\uff081&lt;=ai&lt;=50\uff09\u3002<br \/>\n\u63a5\u4e0b\u6765\u6bcf\u884c\u6709\u4e00\u6761\u547d\u4ee4\uff0c\u547d\u4ee4\u67094\u79cd\u5f62\u5f0f\uff1a<br \/>\n(1) Add i j,i\u548cj\u4e3a\u6b63\u6574\u6570,\u8868\u793a\u7b2ci\u4e2a\u8425\u5730\u589e\u52a0j\u4e2a\u4eba\uff08j\u4e0d\u8d85\u8fc730\uff09<br \/>\n(2)Sub i j ,i\u548cj\u4e3a\u6b63\u6574\u6570,\u8868\u793a\u7b2ci\u4e2a\u8425\u5730\u51cf\u5c11j\u4e2a\u4eba\uff08j\u4e0d\u8d85\u8fc730\uff09;<br \/>\n(3)Query i j ,i\u548cj\u4e3a\u6b63\u6574\u6570,i&lt;=j\uff0c\u8868\u793a\u8be2\u95ee\u7b2ci\u5230\u7b2cj\u4e2a\u8425\u5730\u7684\u603b\u4eba\u6570;<br \/>\n(4)End \u8868\u793a\u7ed3\u675f\uff0c\u8fd9\u6761\u547d\u4ee4\u5728\u6bcf\u7ec4\u6570\u636e\u6700\u540e\u51fa\u73b0;<br \/>\n\u6bcf\u7ec4\u6570\u636e\u6700\u591a\u670940000\u6761\u547d\u4ee4\n<\/div>\n<div class=\"panel_bottom\" style=\"height:auto; margin:0px; font-family:'Times New Roman'; font-size:14px\">\n&nbsp;<\/div>\n<p><br style=\"font-family:'Times New Roman'; font-size:14px\" \/><\/p>\n<div class=\"panel_title\" align=\"left\" style=\"height:38px; background-color:transparent; padding:0px 14px; color:rgb(124,169,237); font-size:18px; font-family:Arial; font-weight:bold\">\nOutput<\/div>\n<div class=\"panel_content\" style=\"height:auto; margin:0px; padding:0px 20px; font-size:14px; font-family:'Times New Roman'; text-align:left\">\n\u5bf9\u7b2ci\u7ec4\u6570\u636e,\u9996\u5148\u8f93\u51fa\u201cCase i:\u201d\u548c\u56de\u8f66,<br \/>\n\u5bf9\u4e8e\u6bcf\u4e2aQuery\u8be2\u95ee\uff0c\u8f93\u51fa\u4e00\u4e2a\u6574\u6570\u5e76\u56de\u8f66,\u8868\u793a\u8be2\u95ee\u7684\u6bb5\u4e2d\u7684\u603b\u4eba\u6570,\u8fd9\u4e2a\u6570\u4fdd\u6301\u5728int\u4ee5\u5185\u3002\n<\/div>\n<div class=\"panel_bottom\" style=\"height:auto; margin:0px; font-family:'Times New Roman'; font-size:14px\">\n&nbsp;<\/div>\n<p><br style=\"font-family:'Times New Roman'; font-size:14px\" \/><\/p>\n<div class=\"panel_title\" align=\"left\" style=\"height:38px; background-color:transparent; padding:0px 14px; color:rgb(124,169,237); font-size:18px; font-family:Arial; font-weight:bold\">\nSample Input<\/div>\n<div class=\"panel_content\" style=\"height:auto; margin:0px; padding:0px 20px; font-size:14px; font-family:'Times New Roman'; text-align:left\">\n<pre style=\"margin-top:0px; margin-bottom:0px\"><div style=\"font-family:'Courier New',Courier,monospace\">1\n10\n1 2 3 4 5 6 7 8 9 10\nQuery 1 3\nAdd 3 6\nQuery 2 7\nSub 10 2\nAdd 6 3\nQuery 3 10\nEnd <\/div><\/pre>\n<\/div>\n<div class=\"panel_bottom\" style=\"height:auto; margin:0px; font-family:'Times New Roman'; font-size:14px\">\n&nbsp;<\/div>\n<p><br style=\"font-family:'Times New Roman'; font-size:14px\" \/><\/p>\n<div class=\"panel_title\" align=\"left\" style=\"height:38px; background-color:transparent; padding:0px 14px; color:rgb(124,169,237); font-size:18px; font-family:Arial; font-weight:bold\">\nSample Output<\/div>\n<div class=\"panel_content\" style=\"height:auto; margin:0px; padding:0px 20px; font-size:14px; font-family:'Times New Roman'; text-align:left\">\n<pre style=\"margin-top:0px; margin-bottom:0px\"><div style=\"font-family:'Courier New',Courier,monospace\">Case 1:\n6\n33\n59<\/div><\/pre>\n<\/div>\n<div class=\"panel_bottom\" style=\"height:auto; margin:0px; font-family:'Times New Roman'; font-size:14px\">\n&nbsp;<\/div>\n<p>\n<\/p>\n<p><span style=\"font-size:14px\">\u8fd9\u9898\u662fzkw\u7ebf\u6bb5\u6811\u4e2d\u5355\u70b9\u4fee\u6539\u4e0e\u533a\u95f4\u67e5\u8be2\u7684\u4e00\u822c\u65b9\u6cd5\uff1a<\/span><\/p>\n<p><span style=\"font-size:14px\">M\u7684\u8ba1\u7b97 \u663e\u7136\u6700\u540e\u4e00\u884c\u662f\uff1a<\/span><\/p>\n<h4><span style=\"font-size:24px\">&#43;M: &nbsp;0 1 2 3....M-1<\/span><\/h4>\n<p><span style=\"font-size:14px\">\u4f46\u662f\u6211\u4eec\u6c42\u548c&#20540;\u662f\u4e0d\u80fd\u6c42\uff080\uff0cM-1\uff09,(zkw\u7ebf\u6bb5\u6811\u4e0d\u652f\u6301\u9996\u5c3e\u67e5\u8be2\uff09<\/span><\/p>\n<p><span style=\"font-size:14px\">\u6211\u4eec\u67e5\u8be2\u7684\u5e94\u8be5\u662f\u5f00\u533a\u95f4\uff08a,b) (\u8fd9\u6837\u7684\u76ee\u7684\u662f\u4fdd\u8bc1\u4e0d\u51fa\u73b0\u5f53\u524d\u65e0\u6cd5\u5224\u5b9a\u662f\u5426\u53d6-<\/span><\/p>\n<p><span style=\"font-size:14px\">\u539f\u7406\uff1a\u5728\u5de6\u8fb9\u65f6\u5de6\u8fb9\u4e0d\u53d6\uff0c\u800c\u82e5\u53f3\u8fb9\u4e0d\u4e3at\uff08s^t\u22601),\u5219\u5fc5\u53d6.<\/span><\/p>\n<p><span style=\"font-size:14px\"><span style=\"white-space:pre\"><\/span>&nbsp; &nbsp;&nbsp;<span style=\"font-size:14px\">\u5728\u53f3\u8fb9\u65f6\u53f3\u8fb9\u4e0d\u53d6\uff0c\u800c\u82e5\u5de6\u8fb9\u4e0d\u4e3as\uff08s^t\u22601),\u5219\u5fc5\u53d6.<\/span><\/span><\/p>\n<h3>\u5efa\u6811\u65f6\u8981\u4fdd\u8bc1<span style=\"font-size:24px\">n&lt;=M-2<\/span><\/h3>\n<\/p>\n<pre name=\"code\" class=\"cpp\">M=1;while (M-2&lt;n) M&lt;&lt;=1;<\/pre>\n<p>\n\u4eceC&#43;&#43;\u7684\u89d2\u5ea6\uff1a<\/p>\n<p>\u7531\u4e8echar s[]\u4e3a\u6570\u7ec4\uff0c\u65e0\u6cd5\u76f4\u63a5\u6bd4\u8f83<\/p>\n<p>\u9700\u8981\u7528 strcmp(string a,string a)==0 \u5224\u5b9a<\/p>\n<p>\u5b83\u662f\u5b57\u7b26\u4e32\u7684cmp \u8fd4\u56de\u5b57\u5178\u5e8f\u6bd4\u8f83\u60c5\u51b5<\/p>\n<p>\n<\/p>\n<\/p>\n<pre name=\"code\" class=\"cpp\">#include&lt;cstdio&gt;\n#include&lt;cstring&gt;\n#include&lt;cstdlib&gt;\n#include&lt;cmath&gt;\n#include&lt;cctype&gt;\n#include&lt;iostream&gt;\nusing namespace std;\n#define MAXN (50000+10)\n#define MAXAi (50+10)\nint n,m,k,M,tt,t[MAXN*5];\nchar s[50];\nint main()\n{\n\/\/\tfreopen(&quot;Hdu1166.in&quot;,&quot;r&quot;,stdin);\n\tscanf(&quot;%d&quot;,&amp;tt);\n\tfor (int k=1;k&lt;=tt;k++)\n\t{\n\t\tprintf(&quot;Case %d:n&quot;,k);\n\t\tscanf(&quot;%d&quot;,&amp;n);\n\t\tmemset(t,0,sizeof(t));\n\t\tM=1;while (M-2&lt;n) M&lt;&lt;=1;\n\t\tfor (int i=M+1;i&lt;=M+n;i++) scanf(&quot;%d&quot;,&amp;t[i]);\n\t\tfor (int i=M;i&gt;=1;i--) t[i]=t[i&lt;&lt;1]+t[(i&lt;&lt;1)^1];\n\n\n\t\twhile (scanf(&quot;%s&quot;,s)!=EOF)\n\t\t{\n\t\t\tif (!strcmp(s,&quot;End&quot;)) break;\n\t\t\tint p1,p2;\n\t\t\tscanf(&quot;%d%d&quot;,&amp;p1,&amp;p2);\n\t\t\tif (s[0]=='Q')\n\t\t\t{\n\t\t\t\tint ans=0;\n\t\t\t\tp1--;p2++;p1+=M;p2+=M;\n\t\t\t\twhile (p1^p2^1&gt;0)\n\t\t\t\t{\n\t\t\t\t\tif (~p1&amp;1) ans+=t[p1+1];\n\t\t\t\t\tif (p2&amp;1) ans+=t[p2-1];\n\t\t\t\t\tp1&gt;&gt;=1;p2&gt;&gt;=1;\n\t\t\t\t}\n\t\t\t\tcout&lt;&lt;ans&lt;&lt;endl;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tp1+=M;\n\t\t\t\tif (s[0]=='A') t[p1]+=p2; else t[p1]-=p2;\n\t\t\t\tfor (p1\/=2;p1;p1\/=2)\n\t\t\t\t{\n\t\t\t\t\tt[p1]=t[p1&lt;&lt;1]+t[(p1&lt;&lt;1)^1];\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t}\n\n\n\n\n\n\n\t}\n\n\n\treturn 0;\n}<\/pre>\n<\/p>\n<p>\n<\/p>\n<p>\n<\/p>\n<p>\n<\/p>\n<p><span style=\"font-size:14px\"><span style=\"white-space:pre\"><\/span><\/span><\/p>\n<p><span style=\"font-size:14px\"><br \/>\n<\/span><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u654c\u5175\u5e03\u9635 Problem Description C\u56fd\u7684\u6b7b\u5bf9\u5934A\u56fd\u8fd9\u6bb5\u65f6\u95f4\u6b63\u5728\u8fdb\u884c\u519b\u4e8b\u6f14\u4e60\uff0c\u6240\u4ee5C\u56fd\u95f4\u8c0d\u5934\u5b50D [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[3],"tags":[29,52],"class_list":["post-269","post","type-post","status-publish","format-standard","hentry","category-defaultcategory","tag-c","tag-the_zkw_segment_tree"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HDU 1166(zkw\u7ebf\u6bb5\u6811-\u5355\u70b9\u4fee\u6539\uff09 - nike0good<\/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:\/\/nike0good.com\/?p=269\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HDU 1166(zkw\u7ebf\u6bb5\u6811-\u5355\u70b9\u4fee\u6539\uff09 - nike0good\" \/>\n<meta property=\"og:description\" content=\"\u654c\u5175\u5e03\u9635 Problem Description C\u56fd\u7684\u6b7b\u5bf9\u5934A\u56fd\u8fd9\u6bb5\u65f6\u95f4\u6b63\u5728\u8fdb\u884c\u519b\u4e8b\u6f14\u4e60\uff0c\u6240\u4ee5C\u56fd\u95f4\u8c0d\u5934\u5b50D [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nike0good.com\/?p=269\" \/>\n<meta property=\"og:site_name\" content=\"nike0good\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-17T04:27:00+00:00\" \/>\n<meta name=\"author\" content=\"nike0good\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"nike0good\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=269#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=269\"},\"author\":{\"name\":\"nike0good\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"headline\":\"HDU 1166(zkw\u7ebf\u6bb5\u6811-\u5355\u70b9\u4fee\u6539\uff09\",\"datePublished\":\"2012-11-17T04:27:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=269\"},\"wordCount\":126,\"commentCount\":0,\"keywords\":[\"C++\",\"zkw\u7ebf\u6bb5\u6811\"],\"articleSection\":[\"DefaultCategory\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=269#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=269\",\"url\":\"https:\\\/\\\/nike0good.com\\\/?p=269\",\"name\":\"HDU 1166(zkw\u7ebf\u6bb5\u6811-\u5355\u70b9\u4fee\u6539\uff09 - nike0good\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#website\"},\"datePublished\":\"2012-11-17T04:27:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=269#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=269\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=269#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/nike0good.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HDU 1166(zkw\u7ebf\u6bb5\u6811-\u5355\u70b9\u4fee\u6539\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/#website\",\"url\":\"https:\\\/\\\/nike0good.com\\\/\",\"name\":\"nike0good\",\"description\":\"\u6709\u6240\u4f5c\u4e3a\u662f\u4eba\u751f\u7684\u6700\u9ad8\u5883\u754c\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/nike0good.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\",\"name\":\"nike0good\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g\",\"caption\":\"nike0good\"},\"sameAs\":[\"https:\\\/\\\/nike0good.com\"],\"url\":\"https:\\\/\\\/nike0good.com\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HDU 1166(zkw\u7ebf\u6bb5\u6811-\u5355\u70b9\u4fee\u6539\uff09 - nike0good","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:\/\/nike0good.com\/?p=269","og_locale":"zh_CN","og_type":"article","og_title":"HDU 1166(zkw\u7ebf\u6bb5\u6811-\u5355\u70b9\u4fee\u6539\uff09 - nike0good","og_description":"\u654c\u5175\u5e03\u9635 Problem Description C\u56fd\u7684\u6b7b\u5bf9\u5934A\u56fd\u8fd9\u6bb5\u65f6\u95f4\u6b63\u5728\u8fdb\u884c\u519b\u4e8b\u6f14\u4e60\uff0c\u6240\u4ee5C\u56fd\u95f4\u8c0d\u5934\u5b50D [&hellip;]","og_url":"https:\/\/nike0good.com\/?p=269","og_site_name":"nike0good","article_published_time":"2012-11-17T04:27:00+00:00","author":"nike0good","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"nike0good","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nike0good.com\/?p=269#article","isPartOf":{"@id":"https:\/\/nike0good.com\/?p=269"},"author":{"name":"nike0good","@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"headline":"HDU 1166(zkw\u7ebf\u6bb5\u6811-\u5355\u70b9\u4fee\u6539\uff09","datePublished":"2012-11-17T04:27:00+00:00","mainEntityOfPage":{"@id":"https:\/\/nike0good.com\/?p=269"},"wordCount":126,"commentCount":0,"keywords":["C++","zkw\u7ebf\u6bb5\u6811"],"articleSection":["DefaultCategory"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nike0good.com\/?p=269#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nike0good.com\/?p=269","url":"https:\/\/nike0good.com\/?p=269","name":"HDU 1166(zkw\u7ebf\u6bb5\u6811-\u5355\u70b9\u4fee\u6539\uff09 - nike0good","isPartOf":{"@id":"https:\/\/nike0good.com\/#website"},"datePublished":"2012-11-17T04:27:00+00:00","author":{"@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"breadcrumb":{"@id":"https:\/\/nike0good.com\/?p=269#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nike0good.com\/?p=269"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/nike0good.com\/?p=269#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nike0good.com\/"},{"@type":"ListItem","position":2,"name":"HDU 1166(zkw\u7ebf\u6bb5\u6811-\u5355\u70b9\u4fee\u6539\uff09"}]},{"@type":"WebSite","@id":"https:\/\/nike0good.com\/#website","url":"https:\/\/nike0good.com\/","name":"nike0good","description":"\u6709\u6240\u4f5c\u4e3a\u662f\u4eba\u751f\u7684\u6700\u9ad8\u5883\u754c","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nike0good.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad","name":"nike0good","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/secure.gravatar.com\/avatar\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8e5fa08d5c367a1a6fb5ff13bb10ed5a331f981513256951290ae42322da6854?s=96&d=identicon&r=g","caption":"nike0good"},"sameAs":["https:\/\/nike0good.com"],"url":"https:\/\/nike0good.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/posts\/269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=269"}],"version-history":[{"count":0,"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/posts\/269\/revisions"}],"wp:attachment":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}