{"id":271,"date":"2012-11-18T08:57:00","date_gmt":"2012-11-18T00:57:00","guid":{"rendered":"http:\/\/nike0good.jp1.rpvhost.net\/176"},"modified":"2012-11-18T08:57:00","modified_gmt":"2012-11-18T00:57:00","slug":"hdu_1754_the_zkw_segment_tree_-_range_value","status":"publish","type":"post","link":"https:\/\/nike0good.com\/?p=271","title":{"rendered":"HDU 1754(zkw\u7ebf\u6bb5\u6811-\u533a\u95f4\u6700\u503c\uff09"},"content":{"rendered":"<h1 style=\"color:rgb(26,92,200); text-align:center; font-family:'Times New Roman'\">\nI Hate It<\/h1>\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\">\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\">\n\u5f88\u591a\u5b66\u6821\u6d41\u884c\u4e00\u79cd\u6bd4\u8f83\u7684\u4e60\u60ef\u3002\u8001\u5e08\u4eec\u5f88\u559c\u6b22\u8be2\u95ee\uff0c\u4ece\u67d0\u67d0\u5230\u67d0\u67d0\u5f53\u4e2d\uff0c\u5206\u6570\u6700\u9ad8\u7684\u662f\u591a\u5c11\u3002<br \/>\n\u8fd9\u8ba9\u5f88\u591a\u5b66\u751f\u5f88\u53cd\u611f\u3002<\/p>\n<p>\u4e0d\u7ba1\u4f60\u559c\u4e0d\u559c\u6b22\uff0c\u73b0\u5728\u9700\u8981\u4f60\u505a\u7684\u662f\uff0c\u5c31\u662f\u6309\u7167\u8001\u5e08\u7684\u8981\u6c42\uff0c\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u6a21\u62df\u8001\u5e08\u7684\u8be2\u95ee\u3002\u5f53\u7136\uff0c\u8001\u5e08\u6709\u65f6\u5019\u9700\u8981\u66f4\u65b0\u67d0\u4f4d\u540c\u5b66\u7684\u6210\u7ee9\u3002<\/p><\/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\u672c\u9898\u76ee\u5305\u542b\u591a\u7ec4\u6d4b\u8bd5\uff0c\u8bf7\u5904\u7406\u5230\u6587\u4ef6\u7ed3\u675f\u3002<br \/>\n\u5728\u6bcf\u4e2a\u6d4b\u8bd5\u7684\u7b2c\u4e00\u884c\uff0c\u6709\u4e24\u4e2a\u6b63\u6574\u6570 N \u548c M ( 0&lt;N&lt;=200000,0&lt;M&lt;5000 )\uff0c\u5206\u522b\u4ee3\u8868\u5b66\u751f\u7684\u6570\u76ee\u548c\u64cd\u4f5c\u7684\u6570\u76ee\u3002<br \/>\n\u5b66\u751fID\u7f16\u53f7\u5206\u522b\u4ece1\u7f16\u5230N\u3002<br \/>\n\u7b2c\u4e8c\u884c\u5305\u542bN\u4e2a\u6574\u6570\uff0c\u4ee3\u8868\u8fd9N\u4e2a\u5b66\u751f\u7684\u521d\u59cb\u6210\u7ee9\uff0c\u5176\u4e2d\u7b2ci\u4e2a\u6570\u4ee3\u8868ID\u4e3ai\u7684\u5b66\u751f\u7684\u6210\u7ee9\u3002<br \/>\n\u63a5\u4e0b\u6765\u6709M\u884c\u3002\u6bcf\u4e00\u884c\u6709\u4e00\u4e2a\u5b57\u7b26 C (\u53ea\u53d6'Q'\u6216'U') \uff0c\u548c\u4e24\u4e2a\u6b63\u6574\u6570A\uff0cB\u3002<br \/>\n\u5f53C\u4e3a'Q'\u7684\u65f6\u5019\uff0c\u8868\u793a\u8fd9\u662f\u4e00\u6761\u8be2\u95ee\u64cd\u4f5c\uff0c\u5b83\u8be2\u95eeID\u4eceA\u5230B(\u5305\u62ecA,B)\u7684\u5b66\u751f\u5f53\u4e2d\uff0c\u6210\u7ee9\u6700\u9ad8\u7684\u662f\u591a\u5c11\u3002<br \/>\n\u5f53C\u4e3a'U'\u7684\u65f6\u5019\uff0c\u8868\u793a\u8fd9\u662f\u4e00\u6761\u66f4\u65b0\u64cd\u4f5c\uff0c\u8981\u6c42\u628aID\u4e3aA\u7684\u5b66\u751f\u7684\u6210\u7ee9\u66f4\u6539\u4e3aB\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\">\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\u4e8e\u6bcf\u4e00\u6b21\u8be2\u95ee\u64cd\u4f5c\uff0c\u5728\u4e00\u884c\u91cc\u9762\u8f93\u51fa\u6700\u9ad8\u6210\u7ee9\u3002<\/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\">5 6\n1 2 3 4 5\nQ 1 5\nU 3 6\nQ 3 4\nQ 4 5\nU 2 9\nQ 1 5<\/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\">5\n6\n5\n9\n\n<div style=\"font-family:'Times New Roman'; background-color:rgb(244,251,255); border:1px dashed rgb(183,203,255); padding:6px\"><div style=\"font-family:Arial; font-weight:bold; color:rgb(124,169,237); border-bottom-color:rgb(183,203,255); border-bottom-width:1px; border-bottom-style:dashed\"><em>Hint<\/em><\/div>Huge input,the C function scanf() will work better than cin<\/div><span style=\"font-size:1px\"> <\/span><\/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><span style=\"font-size:18px\">zkw\u7ebf\u6bb5\u6811\u4e2d\uff0c\u89e3\u51b3\u533a\u95f4\u6700&#20540;\u95ee\u9898\u7684\u65b9\u6cd5\u2014\u2014\u5dee\u5206<\/span><\/p>\n<p><span style=\"font-size:18px\">\u8ba9\u6211\u4eec\u4ee5\u4ece\u70b9\u5230\u6839\u8282\u70b9\u7684\u8def\u5f84\u4e0a\u6570\u7684\u548c\u4e3a\u8fd9\u4e2a\u70b9\u7684\u533a\u95f4\u5bf9\u5e94\u6700\u5927&#20540;\u3002<\/span><\/p>\n<p><span style=\"font-size:18px\">\u5f88\u663e\u7136\u9664\u6839\u8282\u70b9\u5916\uff0c\u5176\u5b83&#20540;\u7686\u4e3a\u8d1f\u6570\uff0c\u4e14\u5b83\u5fc5\u6709\u4e00\u4e2a\u513f\u5b50\u7ed3\u70b9\u7684&#20540;\u4e3a0\uff08\u53f6\u7ed3\u70b9\u9664\u5916)\u3002<\/span><\/p>\n<p><span style=\"font-size:18px\"><img decoding=\"async\" src=\"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1353201804_7708.png\" alt=\"\" \/><br \/>\n<\/span><\/p>\n<p><span style=\"font-size:18px\">\u5219\u5f53\u6211\u4eec\u4fee\u6539\u4e00\u4e2a\u70b9\u7684&#20540;\u65f6\uff0c\u5148\u8ba1\u7b97\u5b83\u539f\u6765\u7684&#20540;\uff0c\u770b\u770b\u662f\u5426\u589e\u52a0\u3002<\/span><\/p>\n<p><span style=\"font-size:18px\">\u7ef4\u62a4\u5b83\u4e0e\u7236\u8282\u70b9\u7684\u5173\u7cfb\uff08\u5b83\u7684\u4fee\u6539&#20540;\u5e94\u51cf\u53bb\u8def\u5f84\u4e0a\u7684&#20540;\u4e3a\u5b83\u7684\u5f53\u524d&#20540;\uff0c\u800c\u975e\u76f4\u63a5\u4fee\u6539\uff08\u5728\u539f\u6570\u4e0a\u7684\u589e\u51cf\u9664\u5916\uff09<\/span><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1353201242_4662.png\" alt=\"\" \/><img decoding=\"async\" src=\"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1353201249_9709.png\" alt=\"\" \/><img decoding=\"async\" src=\"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1353201705_6989.png\" alt=\"\" \/><\/p>\n<p>\n<\/p>\n<p>\n<\/p>\n<p><span style=\"font-size:18px\">\u6c42\u533a\u95f4\u6700&#20540;\u65b9\u6cd5\uff1a<\/span><\/p>\n<p><span style=\"font-size:18px\">\u9996\u5148\u4ece\u5b50\u8282\u70b9\u9012\u5f52\uff0c\u5b58\u4e0b\u5b83\u5de6\u53f3\u5b50\u8282\u70b9\u6240\u80fd\u9012\u5f52\u5230\u7684\u6700\u5927&#20540;.<\/span><\/p>\n<p><span style=\"font-size:18px\">PS:1.\u8bb0\u5f97\u6bcf\u6b21\u5411\u4e0a\u52a0\u4e0a\u8def\u5f84\u4e0a\u7684&#20540;\uff0c\u56e0\u4e3a\u5b83\u82e5\u53d6\u90bb\u7ed3\u70b9\uff0c\u5219\u5b83\u4eec\u5411\u4e0a\u4ece\u7236\u8282\u70b9\u5f00\u59cb\u7684\u90e8\u5206\u5b8c\u5168\u76f8\u7b49\u3002<\/span><\/p>\n<p><span style=\"font-size:18px\">&nbsp; &nbsp; &nbsp; 2.\u4e00\u5f00\u59cb\u90a3\u4e2a\u70b9\u4e0d\u80fd\u8003\u8651\uff08\u8d4b\u521d&#20540;\u4e3a-INF)<\/span><\/p>\n<p>\n<\/p>\n<p><span style=\"font-size:18px\"><span style=\"white-space:pre\"><\/span><\/span><\/p>\n<pre name=\"code\" class=\"cpp\">#include&lt;cstdio&gt;\n#include&lt;cstdlib&gt;\n#include&lt;cmath&gt;\n#include&lt;cstring&gt;\n#include&lt;iostream&gt;\n#include&lt;cctype&gt;\n#include&lt;functional&gt;\n#include&lt;algorithm&gt;\nusing namespace std;\n#define MAXN (200000+10)\n#define MAXm (5000+10)\n#define INF (0xfffffff)\nint n,m,M,t[MAXN*5];\nchar c[100];\nint Query(int p1,int p2)\n{\n\tp1--;p2++;p1+=M;p2+=M;\n\tint LANS=-INF,RANS=-INF;\n\twhile (p1^p2^1)\n\t{\n\t\tLANS+=t[p1];RANS+=t[p2];\n\t\tif (~p1&amp;1) LANS=max(LANS,t[p1+1]);\n\t\tif (p2&amp;1)  RANS=max(RANS,t[p2-1]);\n\t\tp1&gt;&gt;=1;p2&gt;&gt;=1;\n\t}\n\tLANS+=t[p1];RANS+=t[p2];\n\tint ANS=max(LANS,RANS);\n\tfor (p1&gt;&gt;=1;p1;p1&gt;&gt;=1) ANS+=t[p1];\n\treturn ANS;\n}\nint main()\n{\n\/\/\tfreopen(&quot;I hate it.in&quot;,&quot;r&quot;,stdin);\n\twhile (scanf(&quot;%d%d&quot;,&amp;n,&amp;m)!=EOF)\n\t{\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--)\n\t\t{\n\t\t\tt[i]=max(t[i&lt;&lt;1],t[(i&lt;&lt;1)^1]);\n\t\t\tt[i&lt;&lt;1]-=t[i];t[(i&lt;&lt;1)^1]-=t[i];\n\t\t}\n\n\t\tfor (int k=1;k&lt;=m;k++)\n\t\t{\n\t\t\tint p1,p2;\n\t\t\tscanf(&quot;%s%d%d&quot;,c,&amp;p1,&amp;p2);\n\t\t\tif (c[0]=='Q')\n\t\t\t{\n\t\t\t\/*\tp1--;p2++;p1+=M;p2+=M;\n\t\t\t\tint LANS=-INF,RANS=-INF;\n\t\t\t\twhile (p1^p2^1)\n\t\t\t\t{\n\t\t\t\t\tLANS+=t[p1];RANS+=t[p2];\n\t\t\t\t\tif (~p1&amp;1) LANS=max(LANS,t[p1+1]);\n\t\t\t\t\tif (p2&amp;1)  RANS=max(RANS,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\tLANS+=t[p1];RANS+=t[p2];\n\t\t\t\tint ANS=max(LANS,RANS);\n\t\t\t\tfor (p1&gt;&gt;=1;p1;p1&gt;&gt;=1) ANS+=t[p1];\n\t\t\t*\/\tcout&lt;&lt;Query(p1,p2)&lt;&lt;endl;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tp1+=M;\n\t\t\t\tt[p1]+=p2-Query(p1-M,p1-M);\n\t\t\t\tfor (p1&gt;&gt;=1;p1;p1&gt;&gt;=1)\n\t\t\t\t{\n\t\t\t\t\tint A=max(t[p1&lt;&lt;1],t[(p1&lt;&lt;1)^1]);\n\t\t\t\t\tt[p1&lt;&lt;1]-=A;t[(p1&lt;&lt;1)^1]-=A;t[p1]+=A;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}\n\treturn 0;\n}<\/pre>\n<p><\/p>\n<p><span style=\"font-size:18px\"><br \/>\n<\/span><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I Hate It Problem Description \u5f88\u591a\u5b66\u6821\u6d41\u884c\u4e00\u79cd\u6bd4\u8f83\u7684\u4e60\u60ef\u3002\u8001\u5e08\u4eec\u5f88\u559c\u6b22\u8be2\u95ee\uff0c\u4ece\u67d0 [&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":[52],"class_list":["post-271","post","type-post","status-publish","format-standard","hentry","category-defaultcategory","tag-the_zkw_segment_tree"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HDU 1754(zkw\u7ebf\u6bb5\u6811-\u533a\u95f4\u6700\u503c\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=271\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HDU 1754(zkw\u7ebf\u6bb5\u6811-\u533a\u95f4\u6700\u503c\uff09 - nike0good\" \/>\n<meta property=\"og:description\" content=\"I Hate It Problem Description \u5f88\u591a\u5b66\u6821\u6d41\u884c\u4e00\u79cd\u6bd4\u8f83\u7684\u4e60\u60ef\u3002\u8001\u5e08\u4eec\u5f88\u559c\u6b22\u8be2\u95ee\uff0c\u4ece\u67d0 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nike0good.com\/?p=271\" \/>\n<meta property=\"og:site_name\" content=\"nike0good\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-18T00:57:00+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1353201804_7708.png\" \/>\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=271#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=271\"},\"author\":{\"name\":\"nike0good\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"headline\":\"HDU 1754(zkw\u7ebf\u6bb5\u6811-\u533a\u95f4\u6700\u503c\uff09\",\"datePublished\":\"2012-11-18T00:57:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=271\"},\"wordCount\":58,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=271#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/nike0good.jp1.rpvhost.net\\\/wp-content\\\/uploads\\\/csdn\\\/other_site\\\/img_my_1353201804_7708.png\",\"keywords\":[\"zkw\u7ebf\u6bb5\u6811\"],\"articleSection\":[\"DefaultCategory\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=271#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=271\",\"url\":\"https:\\\/\\\/nike0good.com\\\/?p=271\",\"name\":\"HDU 1754(zkw\u7ebf\u6bb5\u6811-\u533a\u95f4\u6700\u503c\uff09 - nike0good\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=271#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=271#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/nike0good.jp1.rpvhost.net\\\/wp-content\\\/uploads\\\/csdn\\\/other_site\\\/img_my_1353201804_7708.png\",\"datePublished\":\"2012-11-18T00:57:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=271#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=271\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=271#primaryimage\",\"url\":\"http:\\\/\\\/nike0good.jp1.rpvhost.net\\\/wp-content\\\/uploads\\\/csdn\\\/other_site\\\/img_my_1353201804_7708.png\",\"contentUrl\":\"http:\\\/\\\/nike0good.jp1.rpvhost.net\\\/wp-content\\\/uploads\\\/csdn\\\/other_site\\\/img_my_1353201804_7708.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=271#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/nike0good.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HDU 1754(zkw\u7ebf\u6bb5\u6811-\u533a\u95f4\u6700\u503c\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 1754(zkw\u7ebf\u6bb5\u6811-\u533a\u95f4\u6700\u503c\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=271","og_locale":"zh_CN","og_type":"article","og_title":"HDU 1754(zkw\u7ebf\u6bb5\u6811-\u533a\u95f4\u6700\u503c\uff09 - nike0good","og_description":"I Hate It Problem Description \u5f88\u591a\u5b66\u6821\u6d41\u884c\u4e00\u79cd\u6bd4\u8f83\u7684\u4e60\u60ef\u3002\u8001\u5e08\u4eec\u5f88\u559c\u6b22\u8be2\u95ee\uff0c\u4ece\u67d0 [&hellip;]","og_url":"https:\/\/nike0good.com\/?p=271","og_site_name":"nike0good","article_published_time":"2012-11-18T00:57:00+00:00","og_image":[{"url":"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1353201804_7708.png","type":"","width":"","height":""}],"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=271#article","isPartOf":{"@id":"https:\/\/nike0good.com\/?p=271"},"author":{"name":"nike0good","@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"headline":"HDU 1754(zkw\u7ebf\u6bb5\u6811-\u533a\u95f4\u6700\u503c\uff09","datePublished":"2012-11-18T00:57:00+00:00","mainEntityOfPage":{"@id":"https:\/\/nike0good.com\/?p=271"},"wordCount":58,"commentCount":0,"image":{"@id":"https:\/\/nike0good.com\/?p=271#primaryimage"},"thumbnailUrl":"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1353201804_7708.png","keywords":["zkw\u7ebf\u6bb5\u6811"],"articleSection":["DefaultCategory"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nike0good.com\/?p=271#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nike0good.com\/?p=271","url":"https:\/\/nike0good.com\/?p=271","name":"HDU 1754(zkw\u7ebf\u6bb5\u6811-\u533a\u95f4\u6700\u503c\uff09 - nike0good","isPartOf":{"@id":"https:\/\/nike0good.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/nike0good.com\/?p=271#primaryimage"},"image":{"@id":"https:\/\/nike0good.com\/?p=271#primaryimage"},"thumbnailUrl":"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1353201804_7708.png","datePublished":"2012-11-18T00:57:00+00:00","author":{"@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"breadcrumb":{"@id":"https:\/\/nike0good.com\/?p=271#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nike0good.com\/?p=271"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/nike0good.com\/?p=271#primaryimage","url":"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1353201804_7708.png","contentUrl":"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1353201804_7708.png"},{"@type":"BreadcrumbList","@id":"https:\/\/nike0good.com\/?p=271#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nike0good.com\/"},{"@type":"ListItem","position":2,"name":"HDU 1754(zkw\u7ebf\u6bb5\u6811-\u533a\u95f4\u6700\u503c\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\/271","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=271"}],"version-history":[{"count":0,"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/posts\/271\/revisions"}],"wp:attachment":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}