{"id":364,"date":"2013-03-24T13:43:00","date_gmt":"2013-03-24T05:43:00","guid":{"rendered":"http:\/\/nike0good.jp1.rpvhost.net\/268"},"modified":"2013-03-24T13:43:00","modified_gmt":"2013-03-24T05:43:00","slug":"cf_286bshifting-deque","status":"publish","type":"post","link":"https:\/\/nike0good.com\/?p=364","title":{"rendered":"CF 286B(Shifting-deque)"},"content":{"rendered":"<div style=\"margin:0px; padding:0px; font-family:verdana,arial,sans-serif; position:relative; font-size:14px\">\n<div id=\"content\" class=\"content-with-sidebar\" style=\"margin:1em; padding:1em 0px 0px; min-height:20em\">\n<div class=\"ttypography\" style=\"margin:0px; padding:0px; font-family:'Helvetica Neue',Helvetica,Arial,sans-serif; line-height:21px; color:rgb(34,34,34); word-wrap:break-word\">\n<div class=\"problem-statement\" style=\"margin:0.5em; padding:0px; line-height:1.5em\">\n<div class=\"header\" style=\"margin:0px 0px 1em; padding:0px; text-align:center\">\n<div class=\"title\" style=\"margin:0px 0px 0.5em; padding:0px; font-size:21px\">B. Shifting<\/div>\n<div class=\"time-limit\" style=\"margin:0px auto; padding:0px\">\n<div class=\"property-title\" style=\"margin:0px; padding:0px 4px 0px 0px; display:inline\">\ntime limit per test<\/div>\n<p>2 seconds<\/p><\/div>\n<div class=\"memory-limit\" style=\"margin:0px auto; padding:0px\">\n<div class=\"property-title\" style=\"margin:0px; padding:0px 4px 0px 0px; display:inline\">\nmemory limit per test<\/div>\n<p>256 megabytes<\/p><\/div>\n<div class=\"input-file\" style=\"margin:0px auto; padding:0px\">\n<div class=\"property-title\" style=\"margin:0px; padding:0px 4px 0px 0px; display:inline\">\ninput<\/div>\n<p>standard input<\/p><\/div>\n<div class=\"output-file\" style=\"margin:0px auto; padding:0px\">\n<div class=\"property-title\" style=\"margin:0px; padding:0px 4px 0px 0px; display:inline\">\noutput<\/div>\n<p>standard output<\/p><\/div>\n<\/div>\n<div style=\"margin:0px; padding:0px\">\n<p style=\"margin-top:1.5em; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-size:1em; line-height:1.4em\">\nJohn Doe has found the beautiful permutation formula.<\/p>\n<p style=\"margin-top:1.5em; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-size:1em; line-height:1.4em\">\nLet's take permutation&nbsp;<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\"><em>p<\/em>\u2009=\u2009<em>p<\/em><sub class=\"lower-index\" style=\"font-size:13px; line-height:0; position:relative; vertical-align:baseline; bottom:-0.25em\">1<\/sub>,\u2009<em>p<\/em><sub class=\"lower-index\" style=\"font-size:13px; line-height:0; position:relative; vertical-align:baseline; bottom:-0.25em\">2<\/sub>,\u2009...,\u2009<em>p<\/em><sub class=\"lower-index\" style=\"font-size:13px; line-height:0; position:relative; vertical-align:baseline; bottom:-0.25em\"><em>n<\/em><\/sub><\/span>.<br \/>\n Let's define transformation&nbsp;<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\"><em>f<\/em><\/span>&nbsp;of this permutation:<\/p>\n<p style=\"margin-top:1.5em; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-size:1em; line-height:1.4em\">\n<p><center class=\"tex-equation\"><img decoding=\"async\" src=\"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1364103461_3383.png\" alt=\"\" \/><\/center><\/p>\n<p style=\"margin-top:1.5em; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-size:1em; line-height:1.4em\">\n<p style=\"margin-top:1.5em; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-size:1em; line-height:1.4em\">\n&nbsp;<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\"><em>k<\/em><\/span>&nbsp;<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\">(<em>k<\/em>\u2009&gt;\u20091)<\/span>&nbsp;\u662f\u6bcf\u6bb5\u957f\u5ea6,&nbsp;<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\"><em>r<\/em><\/span>&nbsp;\u662f\u6700\u5927\u6ee1\u8db3&nbsp;<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\"><em>rk<\/em>\u2009\u2264\u2009<em>n&nbsp;<\/em><\/span>\u7684\u6574\u6570<br \/>\n &nbsp;\u628a&nbsp;<span style=\"color:rgb(34,34,34); font-family:'times new roman',sans-serif; font-size:18px; line-height:19.59375px\"><em>r<br \/>\n<\/em><\/span>\u6bb5\u548c\u5c3e\u5269\u4f59\u90e8\u5206\uff08\u5982\u679c\u6709\uff09\u5de6\u79fb.<\/p>\n<p style=\"margin-top:1.5em; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-size:1em; line-height:1.4em\">\n\u6c42\u5e8f\u5217&nbsp;<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\"><em>f<\/em>(<em>f<\/em>(&nbsp;...&nbsp;<em>f<\/em>(<em>p<\/em>\u2009=\u2009[1,\u20092,\u2009...,\u2009<em>n<\/em>],\u20092)&nbsp;...&nbsp;,\u2009<em>n<\/em>\u2009-\u20091),\u2009<em>n<\/em>)<\/span>&nbsp;.<\/p>\n<p style=\"margin-top:1.5em; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-size:1em; line-height:1.4em\">\n<span style=\"font-size:16px; font-weight:bold; line-height:1.5em\">Input<\/span><\/p>\n<\/div>\n<div class=\"input-specification\" style=\"margin:0px; padding:0px\">\n<p style=\"margin-top:1.5em; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-size:1em; line-height:1.4em\">\n\u4e00\u884c&nbsp;<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\"><em>n<\/em><\/span>&nbsp;(<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\">2\u2009\u2264\u2009<em>n<\/em>\u2009\u2264\u200910<sup class=\"upper-index\" style=\"font-size:13px; line-height:0; position:relative; vertical-align:baseline; top:-0.5em\">6<\/sup><\/span>).<\/p>\n<\/div>\n<div class=\"output-specification\" style=\"margin:0px 0px 1em; padding:0px\">\n<div class=\"section-title\" style=\"margin:0px; padding:0px; font-size:16px; font-weight:bold\">\nOutput<\/div>\n<p style=\"margin-top:1.5em; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-size:1em; line-height:1.4em\">\nPrint&nbsp;<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\"><em>n<\/em><\/span>&nbsp;distinct space-separated integers from&nbsp;<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\">1<\/span>&nbsp;to&nbsp;<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\"><em>n<\/em><\/span>&nbsp;\u2014<br \/>\n a beautiful permutation of size&nbsp;<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\"><em>n<\/em><\/span>.<\/p>\n<\/div>\n<div class=\"sample-tests\" style=\"margin:0px; padding:0px; font-family:Consolas,'Lucida Console','Andale Mono','Bitstream Vera Sans Mono','Courier New',Courier; font-size:0.9em\">\n<div class=\"section-title\" style=\"margin:0px; padding:0px; font-family:'Helvetica Neue',Helvetica,Arial,sans-serif; font-size:14px; font-weight:bold\">\nSample test(s)<\/div>\n<div class=\"sample-test\" style=\"margin:0px; padding:0px\">\n<div class=\"input\" style=\"margin:0px; padding:0px; border:1px solid rgb(136,136,136)\">\n<div class=\"title\" style=\"margin:0px; padding:0.25em; font-size:1.3em; border-bottom-width:1px; border-bottom-style:solid; border-bottom-color:rgb(136,136,136); text-transform:lowercase; font-weight:bold\">\ninput<\/div>\n<pre style=\"margin-top:0px; margin-bottom:0px; padding:0.25em; font-family:Consolas,'Lucida Console','Andale Mono','Bitstream Vera Sans Mono','Courier New',Courier; line-height:1.25em; white-space:pre-wrap; word-wrap:break-word; color:rgb(136,0,0); background-color:rgb(239,239,239)\">2\n<\/pre>\n<\/div>\n<div class=\"output\" style=\"margin:0px 0px 1em; padding:0px; border:1px solid rgb(136,136,136); position:relative; top:-1px\">\n<div class=\"title\" style=\"margin:0px; padding:0.25em; font-size:1.3em; border-bottom-width:1px; border-bottom-style:solid; border-bottom-color:rgb(136,136,136); text-transform:lowercase; font-weight:bold\">\noutput<\/div>\n<pre style=\"margin-top:0px; margin-bottom:0px; padding:0.25em; font-family:Consolas,'Lucida Console','Andale Mono','Bitstream Vera Sans Mono','Courier New',Courier; line-height:1.25em; white-space:pre-wrap; word-wrap:break-word; color:rgb(136,0,0); background-color:rgb(239,239,239)\">2 1\n<\/pre>\n<\/div>\n<div class=\"input\" style=\"margin:0px; padding:0px; border:1px solid rgb(136,136,136)\">\n<div class=\"title\" style=\"margin:0px; padding:0.25em; font-size:1.3em; border-bottom-width:1px; border-bottom-style:solid; border-bottom-color:rgb(136,136,136); text-transform:lowercase; font-weight:bold\">\ninput<\/div>\n<pre style=\"margin-top:0px; margin-bottom:0px; padding:0.25em; font-family:Consolas,'Lucida Console','Andale Mono','Bitstream Vera Sans Mono','Courier New',Courier; line-height:1.25em; white-space:pre-wrap; word-wrap:break-word; color:rgb(136,0,0); background-color:rgb(239,239,239)\">3\n<\/pre>\n<\/div>\n<div class=\"output\" style=\"margin:0px 0px 1em; padding:0px; border:1px solid rgb(136,136,136); position:relative; top:-1px\">\n<div class=\"title\" style=\"margin:0px; padding:0.25em; font-size:1.3em; border-bottom-width:1px; border-bottom-style:solid; border-bottom-color:rgb(136,136,136); text-transform:lowercase; font-weight:bold\">\noutput<\/div>\n<pre style=\"margin-top:0px; margin-bottom:0px; padding:0.25em; font-family:Consolas,'Lucida Console','Andale Mono','Bitstream Vera Sans Mono','Courier New',Courier; line-height:1.25em; white-space:pre-wrap; word-wrap:break-word; color:rgb(136,0,0); background-color:rgb(239,239,239)\">1 3 2\n<\/pre>\n<\/div>\n<div class=\"input\" style=\"margin:0px; padding:0px; border:1px solid rgb(136,136,136)\">\n<div class=\"title\" style=\"margin:0px; padding:0.25em; font-size:1.3em; border-bottom-width:1px; border-bottom-style:solid; border-bottom-color:rgb(136,136,136); text-transform:lowercase; font-weight:bold\">\ninput<\/div>\n<pre style=\"margin-top:0px; margin-bottom:0px; padding:0.25em; font-family:Consolas,'Lucida Console','Andale Mono','Bitstream Vera Sans Mono','Courier New',Courier; line-height:1.25em; white-space:pre-wrap; word-wrap:break-word; color:rgb(136,0,0); background-color:rgb(239,239,239)\">4\n<\/pre>\n<\/div>\n<div class=\"output\" style=\"margin:0px 0px 1em; padding:0px; border:1px solid rgb(136,136,136); position:relative; top:-1px\">\n<div class=\"title\" style=\"margin:0px; padding:0.25em; font-size:1.3em; border-bottom-width:1px; border-bottom-style:solid; border-bottom-color:rgb(136,136,136); text-transform:lowercase; font-weight:bold\">\noutput<\/div>\n<pre style=\"margin-top:0px; margin-bottom:0px; padding:0.25em; font-family:Consolas,'Lucida Console','Andale Mono','Bitstream Vera Sans Mono','Courier New',Courier; line-height:1.25em; white-space:pre-wrap; word-wrap:break-word; color:rgb(136,0,0); background-color:rgb(239,239,239)\">4 2 3 1\n<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"note\" style=\"margin:0px; padding:0px\">\n<div class=\"section-title\" style=\"margin:0px; padding:0px; font-size:16px; font-weight:bold\">\nNote<\/div>\n<p style=\"margin-top:1.5em; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-size:1em; line-height:1.4em\">\nA note to the third test sample:<\/p>\n<ul style=\"margin:0.5em 0px 0px 1em; padding:0px; list-style-position:outside; font-size:1em; line-height:1.5em\">\n<li style=\"margin:0px 0px 0px 0.8em; padding:0px; line-height:1.5em; font-size:1em\">\n<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\"><em>f<\/em>([1,\u20092,\u20093,\u20094],\u20092)\u2009=\u2009[2,\u20091,\u20094,\u20093]<\/span><\/li>\n<li style=\"margin:0px 0px 0px 0.8em; padding:0px; line-height:1.5em; font-size:1em\">\n<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\"><em>f<\/em>([2,\u20091,\u20094,\u20093],\u20093)\u2009=\u2009[1,\u20094,\u20092,\u20093]<\/span><\/li>\n<li style=\"margin:0px 0px 0px 0.8em; padding:0px; line-height:1.5em; font-size:1em\">\n<span class=\"tex-span\" style=\"font-size:18px; font-family:'times new roman',sans-serif\"><em>f<\/em>([1,\u20094,\u20092,\u20093],\u20094)\u2009=\u2009[4,\u20092,\u20093,\u20091]<\/span><\/li>\n<\/ul>\n<div>\n<\/div>\n<div>\n<\/div>\n<div>\u8fd9\u9898\u6211\u662f\u7528WJMZBMR\u7684\u795e\u6a21\u62df\u8fc7\u7684\u3002<\/div>\n<div>\n<\/div>\n<div>\u5148\u666e\u53ca\u4e00\u4e0bdeque&lt; &gt;<\/div>\n<div>deque&lt;int&gt; deq; &nbsp; \/\/\u5efa\u7acb\u53cc\u7aef\u961f\u5217<\/div>\n<div><\/div>\n<div style=\"color:rgb(34,34,34); font-family:'Helvetica Neue',Helvetica,Arial,sans-serif; font-size:14px; line-height:21px\">\ndeq.push_back(x)&nbsp;<\/div>\n<div>\n<div style=\"color:rgb(34,34,34); font-family:'Helvetica Neue',Helvetica,Arial,sans-serif; font-size:14px; line-height:21px\">\ndeq.push_front(x)&nbsp;<\/div>\n<div>\n<div style=\"color:rgb(34,34,34); font-family:'Helvetica Neue',Helvetica,Arial,sans-serif; font-size:14px; line-height:21px\">\ndeq.pop_back(x)&nbsp;<\/div>\n<div>deq.pop_back(x)&nbsp;<\/div>\n<\/div>\n<div>\u7136\u540e\u53ef\u4ee5\u6a21\u62df\u4e86\uff0c\u6bcf\u6b21\u628a\u6bcf\u6bb5\u7684\u6700\u540e\u642c\u4e0a\u6765\u3002<\/div>\n<div>\n<pre name=\"code\" class=\"cpp\">#include&lt;cstdio&gt;\n#include&lt;cstdlib&gt;\n#include&lt;cstring&gt;\n#include&lt;iostream&gt;\n#include&lt;queue&gt;\nusing namespace std;\n#define MAXN (1000000+10)\ndeque&lt;int&gt; deq;\nint n;\nint main()\n{\n\tcin&gt;&gt;n;\n\tfor (int i=1;i&lt;=n;i++) deq.push_back(i);\n\tfor (int i=2;i&lt;=n;i++)\n\t{\n\t\tint l=(n-1)\/i*i;deq.push_back(deq[l]);\n\t\twhile (l-i&gt;=0)\n\t\t{\n\t\t\tdeq[l]=deq[l-i];\n\t\t\tl-=i;\n\t\t}\n\t\tdeq.pop_front();\n\t}\n\tfor (int i=0;i&lt;deq.size();i++) cout&lt;&lt;deq[i]&lt;&lt;' ';\n\treturn 0;\n}\n<\/pre>\n<\/div>\n<p>\n<\/div>\n<div>\n<\/div>\n<div>\n<\/div>\n<p style=\"margin-top:1.5em; margin-bottom:0px; padding-top:0px; padding-bottom:0px; font-size:1em; line-height:1.4em\">\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>B. Shifting time limit per test 2 seconds memory limit  [&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,99],"class_list":["post-364","post","type-post","status-publish","format-standard","hentry","category-defaultcategory","tag-c","tag-simulation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CF 286B(Shifting-deque) - 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=364\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CF 286B(Shifting-deque) - nike0good\" \/>\n<meta property=\"og:description\" content=\"B. Shifting time limit per test 2 seconds memory limit [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nike0good.com\/?p=364\" \/>\n<meta property=\"og:site_name\" content=\"nike0good\" \/>\n<meta property=\"article:published_time\" content=\"2013-03-24T05:43:00+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1364103461_3383.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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=364#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=364\"},\"author\":{\"name\":\"nike0good\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"headline\":\"CF 286B(Shifting-deque)\",\"datePublished\":\"2013-03-24T05:43:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=364\"},\"wordCount\":156,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=364#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/nike0good.jp1.rpvhost.net\\\/wp-content\\\/uploads\\\/csdn\\\/other_site\\\/img_my_1364103461_3383.png\",\"keywords\":[\"C++\",\"\u6a21\u62df\"],\"articleSection\":[\"DefaultCategory\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=364#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=364\",\"url\":\"https:\\\/\\\/nike0good.com\\\/?p=364\",\"name\":\"CF 286B(Shifting-deque) - nike0good\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=364#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=364#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/nike0good.jp1.rpvhost.net\\\/wp-content\\\/uploads\\\/csdn\\\/other_site\\\/img_my_1364103461_3383.png\",\"datePublished\":\"2013-03-24T05:43:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=364#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=364\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=364#primaryimage\",\"url\":\"http:\\\/\\\/nike0good.jp1.rpvhost.net\\\/wp-content\\\/uploads\\\/csdn\\\/other_site\\\/img_my_1364103461_3383.png\",\"contentUrl\":\"http:\\\/\\\/nike0good.jp1.rpvhost.net\\\/wp-content\\\/uploads\\\/csdn\\\/other_site\\\/img_my_1364103461_3383.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=364#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/nike0good.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CF 286B(Shifting-deque)\"}]},{\"@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":"CF 286B(Shifting-deque) - 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=364","og_locale":"zh_CN","og_type":"article","og_title":"CF 286B(Shifting-deque) - nike0good","og_description":"B. Shifting time limit per test 2 seconds memory limit [&hellip;]","og_url":"https:\/\/nike0good.com\/?p=364","og_site_name":"nike0good","article_published_time":"2013-03-24T05:43:00+00:00","og_image":[{"url":"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1364103461_3383.png","type":"","width":"","height":""}],"author":"nike0good","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"nike0good","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nike0good.com\/?p=364#article","isPartOf":{"@id":"https:\/\/nike0good.com\/?p=364"},"author":{"name":"nike0good","@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"headline":"CF 286B(Shifting-deque)","datePublished":"2013-03-24T05:43:00+00:00","mainEntityOfPage":{"@id":"https:\/\/nike0good.com\/?p=364"},"wordCount":156,"commentCount":0,"image":{"@id":"https:\/\/nike0good.com\/?p=364#primaryimage"},"thumbnailUrl":"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1364103461_3383.png","keywords":["C++","\u6a21\u62df"],"articleSection":["DefaultCategory"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nike0good.com\/?p=364#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nike0good.com\/?p=364","url":"https:\/\/nike0good.com\/?p=364","name":"CF 286B(Shifting-deque) - nike0good","isPartOf":{"@id":"https:\/\/nike0good.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/nike0good.com\/?p=364#primaryimage"},"image":{"@id":"https:\/\/nike0good.com\/?p=364#primaryimage"},"thumbnailUrl":"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1364103461_3383.png","datePublished":"2013-03-24T05:43:00+00:00","author":{"@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"breadcrumb":{"@id":"https:\/\/nike0good.com\/?p=364#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nike0good.com\/?p=364"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/nike0good.com\/?p=364#primaryimage","url":"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1364103461_3383.png","contentUrl":"http:\/\/nike0good.jp1.rpvhost.net\/wp-content\/uploads\/csdn\/other_site\/img_my_1364103461_3383.png"},{"@type":"BreadcrumbList","@id":"https:\/\/nike0good.com\/?p=364#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nike0good.com\/"},{"@type":"ListItem","position":2,"name":"CF 286B(Shifting-deque)"}]},{"@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\/364","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=364"}],"version-history":[{"count":0,"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/posts\/364\/revisions"}],"wp:attachment":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}