{"id":370,"date":"2013-03-27T08:04:00","date_gmt":"2013-03-27T00:04:00","guid":{"rendered":"http:\/\/nike0good.jp1.rpvhost.net\/274"},"modified":"2013-03-27T08:04:00","modified_gmt":"2013-03-27T00:04:00","slug":"ch_adera_zzb_the_math_homework_-_method_of_construction_early_to_say","status":"publish","type":"post","link":"https:\/\/nike0good.com\/?p=370","title":{"rendered":"CH Adera 3(ZZB\u7684\u6570\u5b66\u4f5c\u4e1a-\u6784\u9020\u6cd5\u521d\u8bb2)"},"content":{"rendered":"<div style=\"color:rgb(51,51,51); font-family:\u5fae\u8f6f\u96c5\u9ed1,'Microsoft YaHei','WenQuanYi Micro Hei',\u5b8b\u4f53; font-size:14px; line-height:20px; background-color:rgb(240,240,240); width:980px\">\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u63cf\u8ff0<\/h4>\n<div style=\"padding-left:10px\">\u628a\u4e00\u4e2a\u6b63\u6574\u6570M\u5206\u6210P\u4e2a\u4e0d\u8d85\u8fc7K\u7684\u6b63\u6574\u6570\u7684\u548c\uff0c\u6ee1\u8db3\u5206\u6210\u7684\u6570\u4e0d\u662fN\u7684\u500d\u6570\uff0c\u5e76\u4e14P\u4e5f\u4e0d\u662fN\u7684\u500d\u6570\uff0c\u6c42\u8fd9\u6837\u7684P\u6700\u5c0f\u662f\u591a\u5c11\uff1f\u201d\n<\/div>\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u8f93\u5165&#26684;\u5f0f<\/h4>\n<div style=\"padding-left:10px\">\u4e00\u4e2a\u6d4b\u8bd5\u70b9\u4e0d\u8d85\u8fc710\u7ec4\u6570\u636e\uff0c\u6bcf\u884c\u4e09\u4e2a\u6574\u6570N\u3001M\u3001K\u4ee3\u8868\u4e00\u7ec4\u6570\u636e\uff0c\u4ee5EOF\u7ed3\u5c3e\u3002<\/div>\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u8f93\u51fa&#26684;\u5f0f<\/h4>\n<div style=\"padding-left:10px\">\u5bf9\u4e8e\u6bcf\u7ec4\u6570\u636e\u8f93\u51fa\u4e00\u884c\uff0c\u4e00\u4e2a\u6574\u6570\uff0c\u5373\u6700\u5c0f\u7684P\u3002<\/div>\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u6837\u4f8b\u8f93\u5165<\/h4>\n<pre style=\"padding:9.5px; font-family:Monaco,Menlo,Consolas,'Courier New',monospace; font-size:13px; margin-top:0px; margin-bottom:10px; margin-left:10px; word-break:break-all; word-wrap:break-word; white-space:pre-wrap; background-color:rgb(245,245,245)\">3 11 6\n2 12 47<\/pre>\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u6837\u4f8b\u8f93\u51fa<\/h4>\n<pre style=\"padding:9.5px; font-family:Monaco,Menlo,Consolas,'Courier New',monospace; font-size:13px; margin-top:0px; margin-bottom:10px; margin-left:10px; word-break:break-all; word-wrap:break-word; white-space:pre-wrap; background-color:rgb(245,245,245)\">4\n-1<\/pre>\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u6570\u636e\u8303\u56f4\u4e0e\u7ea6\u5b9a<\/h4>\n<div style=\"padding-left:10px\">\n<p style=\"margin-top:0px; margin-bottom:10px\">\u5bf9\u4e8e20%\u7684\u6570\u636e\uff0c1&lt;=N\uff0cM\uff0cK&lt;=20\u3002<br \/>\n\u5bf9\u4e8e60%\u7684\u6570\u636e\uff0c1&lt;=N\uff0cK&lt;=10000\u3002<br \/>\n\u5bf9\u4e8e\u53e620%\u7684\u6570\u636e\uff0c1&lt;=K&lt;=2\u3002<br \/>\n\u5bf9\u4e8e100%\u7684\u6570\u636e\uff0c1&lt;=N\uff0cM\uff0cK&lt;=10^9\u3002<\/p>\n<\/div>\n<\/div>\n<p><span style=\"font-size:14px\">\u7279\u5224&nbsp;<\/span><\/p>\n<p><span style=\"font-size:14px\">n=1 m%n\u80af\u5b9a\u4e0d\u884c<\/span><\/p>\n<p><span style=\"font-size:14px\">n=2 m\u662f\u5076\u6570 \u5947\u6570\u4e2a\u5947\u6570\u548c\u2260\u5076\u6570 \u4e0d\u884c<\/span><\/p>\n<p><span style=\"font-size:14px\">\u5426\u5219\u627e\u6700\u5c0f\u7684k<\/span><\/p>\n<p><span style=\"font-size:14px\">\u73b0\u5728\u5f00\u59cb\u7ef4\u62a4p\uff0c\u5404\u79cd\u7279\u5224<\/span><\/p>\n<p><span style=\"font-size:14px\">\u7531\u4e8e\u6700\u540e\u591a\u51fa\u6765\u7684\u4e00\u90e8\u5206=k-1\u662f\u4e0d\u80fd\u5408\u5e76 \u6240\u4ee5\u5fc5\u987b\u62c6<\/span><\/p>\n<p><span style=\"font-size:14px\">\u6700\u540e\u7ef4\u62a4p<\/span><\/p>\n<p><span style=\"font-size:14px\"><\/span><\/p>\n<pre name=\"code\" class=\"cpp\">#include&lt;cstdio&gt;\n#include&lt;cstring&gt;\n#include&lt;cstdlib&gt;\n#include&lt;algorithm&gt;\n#include&lt;functional&gt;\n#include&lt;iostream&gt;\nusing namespace std;\n#define MAXN (1000000000)\nint n,m,k;\nint main()\n{\n\twhile (cin&gt;&gt;n&gt;&gt;m&gt;&gt;k)\n\t{\n\t\tif (n==1||n==2&amp;&amp;!(m%2))\n\t\t{\n\t\t\tputs(&quot;-1&quot;);continue;\n\t\t}\n\t\twhile (!(k%n)) k--;\n\t\tif (k==1)\n\t\t{\n\t\t\tif (m%n) cout&lt;&lt;m&lt;&lt;endl;\n\t\t\telse puts(&quot;-1&quot;);\n\t\t\tcontinue;\n\t\t}\n\t\tint ans=(m-1)\/k+1;\n\t\tif (ans==1&amp;&amp;!(m%n)) ans++;\n\t\tif (!((k-1)%n)&amp;&amp;m%k==k-1) ans++;\n\t\tif (!(ans%n)) ans++;\n\t\tcout&lt;&lt;ans&lt;&lt;endl;\n\t}\n\treturn 0;\n}<\/pre>\n<\/p>\n<p>\n<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63cf\u8ff0 \u628a\u4e00\u4e2a\u6b63\u6574\u6570M\u5206\u6210P\u4e2a\u4e0d\u8d85\u8fc7K\u7684\u6b63\u6574\u6570\u7684\u548c\uff0c\u6ee1\u8db3\u5206\u6210\u7684\u6570\u4e0d\u662fN\u7684\u500d\u6570\uff0c\u5e76\u4e14P\u4e5f\u4e0d\u662fN\u7684\u500d\u6570\uff0c\u6c42\u8fd9\u6837\u7684P\u6700 [&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":[81,89,118],"class_list":["post-370","post","type-post","status-publish","format-standard","hentry","category-defaultcategory","tag-series","tag-structure","tag-greedy"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CH Adera 3(ZZB\u7684\u6570\u5b66\u4f5c\u4e1a-\u6784\u9020\u6cd5\u521d\u8bb2) - 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=370\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CH Adera 3(ZZB\u7684\u6570\u5b66\u4f5c\u4e1a-\u6784\u9020\u6cd5\u521d\u8bb2) - nike0good\" \/>\n<meta property=\"og:description\" content=\"\u63cf\u8ff0 \u628a\u4e00\u4e2a\u6b63\u6574\u6570M\u5206\u6210P\u4e2a\u4e0d\u8d85\u8fc7K\u7684\u6b63\u6574\u6570\u7684\u548c\uff0c\u6ee1\u8db3\u5206\u6210\u7684\u6570\u4e0d\u662fN\u7684\u500d\u6570\uff0c\u5e76\u4e14P\u4e5f\u4e0d\u662fN\u7684\u500d\u6570\uff0c\u6c42\u8fd9\u6837\u7684P\u6700 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nike0good.com\/?p=370\" \/>\n<meta property=\"og:site_name\" content=\"nike0good\" \/>\n<meta property=\"article:published_time\" content=\"2013-03-27T00:04: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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=370#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=370\"},\"author\":{\"name\":\"nike0good\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"headline\":\"CH Adera 3(ZZB\u7684\u6570\u5b66\u4f5c\u4e1a-\u6784\u9020\u6cd5\u521d\u8bb2)\",\"datePublished\":\"2013-03-27T00:04:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=370\"},\"wordCount\":43,\"commentCount\":0,\"keywords\":[\"\u6570\u5217\",\"\u6784\u9020\",\"\u8d2a\u5fc3\"],\"articleSection\":[\"DefaultCategory\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=370#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=370\",\"url\":\"https:\\\/\\\/nike0good.com\\\/?p=370\",\"name\":\"CH Adera 3(ZZB\u7684\u6570\u5b66\u4f5c\u4e1a-\u6784\u9020\u6cd5\u521d\u8bb2) - nike0good\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#website\"},\"datePublished\":\"2013-03-27T00:04:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=370#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=370\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=370#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/nike0good.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CH Adera 3(ZZB\u7684\u6570\u5b66\u4f5c\u4e1a-\u6784\u9020\u6cd5\u521d\u8bb2)\"}]},{\"@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":"CH Adera 3(ZZB\u7684\u6570\u5b66\u4f5c\u4e1a-\u6784\u9020\u6cd5\u521d\u8bb2) - 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=370","og_locale":"zh_CN","og_type":"article","og_title":"CH Adera 3(ZZB\u7684\u6570\u5b66\u4f5c\u4e1a-\u6784\u9020\u6cd5\u521d\u8bb2) - nike0good","og_description":"\u63cf\u8ff0 \u628a\u4e00\u4e2a\u6b63\u6574\u6570M\u5206\u6210P\u4e2a\u4e0d\u8d85\u8fc7K\u7684\u6b63\u6574\u6570\u7684\u548c\uff0c\u6ee1\u8db3\u5206\u6210\u7684\u6570\u4e0d\u662fN\u7684\u500d\u6570\uff0c\u5e76\u4e14P\u4e5f\u4e0d\u662fN\u7684\u500d\u6570\uff0c\u6c42\u8fd9\u6837\u7684P\u6700 [&hellip;]","og_url":"https:\/\/nike0good.com\/?p=370","og_site_name":"nike0good","article_published_time":"2013-03-27T00:04:00+00:00","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=370#article","isPartOf":{"@id":"https:\/\/nike0good.com\/?p=370"},"author":{"name":"nike0good","@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"headline":"CH Adera 3(ZZB\u7684\u6570\u5b66\u4f5c\u4e1a-\u6784\u9020\u6cd5\u521d\u8bb2)","datePublished":"2013-03-27T00:04:00+00:00","mainEntityOfPage":{"@id":"https:\/\/nike0good.com\/?p=370"},"wordCount":43,"commentCount":0,"keywords":["\u6570\u5217","\u6784\u9020","\u8d2a\u5fc3"],"articleSection":["DefaultCategory"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nike0good.com\/?p=370#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nike0good.com\/?p=370","url":"https:\/\/nike0good.com\/?p=370","name":"CH Adera 3(ZZB\u7684\u6570\u5b66\u4f5c\u4e1a-\u6784\u9020\u6cd5\u521d\u8bb2) - nike0good","isPartOf":{"@id":"https:\/\/nike0good.com\/#website"},"datePublished":"2013-03-27T00:04:00+00:00","author":{"@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"breadcrumb":{"@id":"https:\/\/nike0good.com\/?p=370#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nike0good.com\/?p=370"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/nike0good.com\/?p=370#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nike0good.com\/"},{"@type":"ListItem","position":2,"name":"CH Adera 3(ZZB\u7684\u6570\u5b66\u4f5c\u4e1a-\u6784\u9020\u6cd5\u521d\u8bb2)"}]},{"@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\/370","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=370"}],"version-history":[{"count":0,"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/posts\/370\/revisions"}],"wp:attachment":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}