{"id":276,"date":"2012-11-20T09:20:00","date_gmt":"2012-11-20T01:20:00","guid":{"rendered":"http:\/\/nike0good.jp1.rpvhost.net\/181"},"modified":"2012-11-20T09:20:00","modified_gmt":"2012-11-20T01:20:00","slug":"tyvj_p2067_prime_factor_decomposition","status":"publish","type":"post","link":"https:\/\/nike0good.com\/?p=276","title":{"rendered":"Tyvj P2067(\u8d28\u56e0\u6570\u5206\u89e3\uff09"},"content":{"rendered":"<div style=\"padding-left:10px\">\n<table class=\"table table-striped table-bordered   \" style=\"max-width:100%; background-color:white; border-spacing:0px; width:939px; margin-bottom:20px; border-width:1px 1px 1px 0px; border-top-style:solid; border-right-style:solid; border-bottom-style:solid; border-top-color:rgb(221,221,221); border-right-color:rgb(221,221,221); border-bottom-color:rgb(221,221,221); color:rgb(51,51,51); font-family:'Helvetica Neue',Helvetica,Arial,sans-serif; font-size:14px; line-height:20px; text-align:start\">\n<thead style=\"color:black; font-family:\u5fae\u8f6f\u96c5\u9ed1\">\n<tr>\n<th colspan=\"2\" style=\"padding:8px; text-align:center; vertical-align:bottom; border-top-width:0px; border-left-width:1px; border-left-style:solid; border-left-color:rgb(221,221,221)\">\n<h3 style=\"margin:10px 0px; font-family:inherit; line-height:40px; color:inherit; font-size:24px\">\nP2067 - [NOIP2012P1]\u8d28\u56e0\u6570\u5206\u89e3<\/h3>\n<p>From&nbsp;<a href=\"http:\/\/www.tyvj.cn\/User_Show.aspx?id=28349\" style=\"color:rgb(0,136,204); text-decoration:none\"><span style=\"color:rgb(204,153,102)\">luchangzhou<\/span><\/a>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color:green\">Normal (OI)<\/span><br \/>\n\u603b\u65f6\u9650\uff1a10s &nbsp;&nbsp; \u5185\u5b58\u9650\u5236\uff1a128MB &nbsp;&nbsp; \u4ee3\u7801\u957f\u5ea6\u9650\u5236\uff1a64KB<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:8px; vertical-align:top; border-top-width:1px; border-top-style:solid; border-top-color:rgb(221,221,221); border-left-width:1px; border-left-style:solid; border-left-color:rgb(221,221,221); background-color:rgb(249,249,249)\">\n<table class=\"table table-striped table-hover   \" style=\"max-width:100%; background-color:transparent; border-collapse:collapse; border-spacing:0px; width:678px; margin-bottom:20px\">\n<colgroup>\n<col \/><\/colgroup>\n<tbody>\n<tr>\n<td style=\"padding:8px; line-height:20px; vertical-align:top; border-top-width:0px; border-left-width:0px\">\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u80cc\u666f Background<\/h4>\n<div style=\"padding-left:10px\">NOIP2012\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:8px; line-height:20px; vertical-align:top; border-top-width:1px; border-top-style:solid; border-top-color:rgb(221,221,221); border-left-width:0px\">\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u63cf\u8ff0 Description<\/h4>\n<div style=\"padding-left:10px\">\u5df2\u77e5\u6b63\u6574\u6570n&nbsp;\u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u8d28\u6570\u7684\u4e58\u79ef\uff0c\u8bd5\u6c42\u51fa\u8f83\u5927\u7684\u90a3\u4e2a\u8d28\u6570\u3002\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:8px; line-height:20px; vertical-align:top; border-top-width:1px; border-top-style:solid; border-top-color:rgb(221,221,221); border-left-width:0px\">\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u8f93\u5165&#26684;\u5f0f InputFormat<\/h4>\n<div style=\"padding-left:10px\">&nbsp;\u8f93\u5165\u53ea\u6709\u4e00\u884c\uff0c\u5305\u542b\u4e00\u4e2a\u6b63\u6574\u6570n&nbsp;\u3002\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:8px; line-height:20px; vertical-align:top; border-top-width:1px; border-top-style:solid; border-top-color:rgb(221,221,221); border-left-width:0px\">\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u8f93\u51fa&#26684;\u5f0f OutputFormat<\/h4>\n<div style=\"padding-left:10px\">&nbsp;\u8f93\u51fa\u53ea\u6709\u4e00\u884c\uff0c\u5305\u542b\u4e00\u4e2a\u6b63\u6574\u6570p&nbsp;\uff0c\u5373\u8f83\u5927\u7684\u90a3\u4e2a\u8d28\u6570\u3002&nbsp;\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:8px; line-height:20px; vertical-align:top; border-top-width:1px; border-top-style:solid; border-top-color:rgb(221,221,221); border-left-width:0px\">\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u6837\u4f8b\u8f93\u5165 SampleInput&nbsp;<span style=\"font-size:14px\">[<a href=\"http:\/\/www.tyvj.cn\/Problem_Show.aspx?id=2067#\" style=\"color:rgb(0,136,204); text-decoration:none\">\u590d\u5236\u6570\u636e<\/a>]<\/span><\/h4>\n<div style=\"padding-left:10px\">\n<pre style=\"padding:9.5px; font-family:Monaco,Menlo,Consolas,'Courier New',monospace; font-size:13px; color:rgb(51,51,51); margin-top:0px; margin-bottom:10px; word-break:break-all; word-wrap:break-word; white-space:pre-wrap; background-color:rgb(245,245,245)\">21\n<\/pre>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:8px; line-height:20px; vertical-align:top; border-top-width:1px; border-top-style:solid; border-top-color:rgb(221,221,221); border-left-width:0px\">\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u6837\u4f8b\u8f93\u51fa SampleOutput&nbsp;<span style=\"font-size:14px\">[<a href=\"http:\/\/www.tyvj.cn\/Problem_Show.aspx?id=2067#\" style=\"color:rgb(0,136,204); text-decoration:none\">\u590d\u5236\u6570\u636e<\/a>]<\/span><\/h4>\n<div style=\"padding-left:10px\">\n<pre style=\"padding:9.5px; font-family:Monaco,Menlo,Consolas,'Courier New',monospace; font-size:13px; color:rgb(51,51,51); margin-top:0px; margin-bottom:10px; word-break:break-all; word-wrap:break-word; white-space:pre-wrap; background-color:rgb(245,245,245)\">7\n<\/pre>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:8px; line-height:20px; vertical-align:top; border-top-width:1px; border-top-style:solid; border-top-color:rgb(221,221,221); border-left-width:0px; background-color:rgb(245,245,245)\">\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u6570\u636e\u8303\u56f4\u548c\u6ce8\u91ca Hint<\/h4>\n<div style=\"padding-left:10px\">\u3010\u6570\u636e\u8303\u56f4\u3011&nbsp;<br \/>\n\u5bf9\u4e8e&nbsp;60%&nbsp;\u7684\u6570\u636e&nbsp;6&nbsp;\u2264&nbsp;n&nbsp;\u2264&nbsp;1000<br \/>\n\u5bf9\u4e8e&nbsp;100%\u7684\u6570\u636e&nbsp;6&nbsp;\u2264&nbsp;n&nbsp;\u2264&nbsp;2*10^9<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:8px; line-height:20px; vertical-align:top; border-top-width:1px; border-top-style:solid; border-top-color:rgb(221,221,221); border-left-width:0px\">\n<h4 style=\"margin:10px 0px; font-family:inherit; color:inherit; font-size:18px\">\u6765\u6e90 Source<\/h4>\n<div style=\"padding-left:10px\">NOIP2012<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n<\/div>\n<div style=\"padding-left:10px\"><span style=\"font-size:14px\">O\uff08\u221an\uff09<\/span><\/div>\n<div style=\"padding-left:10px\"><span style=\"font-size:14px\">\u6ce8\u610f\u8981\u679a\u4e3e1-\u221an\u800c\u4e0d\u662f\u221an-n\uff0c\u6570\u91cf\u7ea7\u5dee\u5f88\u591a\u3002<\/span><\/div>\n<div style=\"padding-left:10px\"><span style=\"font-size:14px\"><br \/>\n<\/span><\/div>\n<div style=\"padding-left:10px\"><span style=\"font-size:14px\"><br \/>\n<\/span><\/div>\n<div style=\"padding-left:10px\"><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;cmath&gt;\n#include&lt;cstdlib&gt;\n#include&lt;cctype&gt;\n#include&lt;iostream&gt;\n#include&lt;functional&gt;\n#include&lt;algorithm&gt;\nusing namespace std;\n#define MAXN (100000+10)\n#define MAXAi (1000000000+10)\nint n;\nint main()\n{\n\tcin&gt;&gt;n;\n\tfor (int i=2;i&lt;=n;i++)\n\t\tif (!(n%i))\n\t\t{\n\t\t\tcout&lt;&lt;n\/i&lt;&lt;endl;return 0;\n\t\t}\n\n\n}<\/pre>\n<\/div>\n<div style=\"padding-left:10px\">\n<\/div>\n<div style=\"padding-left:10px\">\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>P2067 &#8211; [NOIP2012P1]\u8d28\u56e0\u6570\u5206\u89e3 From&nbsp;luchangzhou&nbsp;&#038;n [&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":[107],"class_list":["post-276","post","type-post","status-publish","format-standard","hentry","category-defaultcategory","tag-prime_number"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tyvj P2067(\u8d28\u56e0\u6570\u5206\u89e3\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=276\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tyvj P2067(\u8d28\u56e0\u6570\u5206\u89e3\uff09 - nike0good\" \/>\n<meta property=\"og:description\" content=\"P2067 - [NOIP2012P1]\u8d28\u56e0\u6570\u5206\u89e3 From&nbsp;luchangzhou&nbsp;&amp;n [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nike0good.com\/?p=276\" \/>\n<meta property=\"og:site_name\" content=\"nike0good\" \/>\n<meta property=\"article:published_time\" content=\"2012-11-20T01:20: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=276#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=276\"},\"author\":{\"name\":\"nike0good\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"headline\":\"Tyvj P2067(\u8d28\u56e0\u6570\u5206\u89e3\uff09\",\"datePublished\":\"2012-11-20T01:20:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=276\"},\"wordCount\":64,\"commentCount\":0,\"keywords\":[\"\u7d20\u6570\"],\"articleSection\":[\"DefaultCategory\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=276#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=276\",\"url\":\"https:\\\/\\\/nike0good.com\\\/?p=276\",\"name\":\"Tyvj P2067(\u8d28\u56e0\u6570\u5206\u89e3\uff09 - nike0good\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#website\"},\"datePublished\":\"2012-11-20T01:20:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/#\\\/schema\\\/person\\\/4defa38da89de87e400861e73396baad\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=276#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/nike0good.com\\\/?p=276\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nike0good.com\\\/?p=276#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/nike0good.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tyvj P2067(\u8d28\u56e0\u6570\u5206\u89e3\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":"Tyvj P2067(\u8d28\u56e0\u6570\u5206\u89e3\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=276","og_locale":"zh_CN","og_type":"article","og_title":"Tyvj P2067(\u8d28\u56e0\u6570\u5206\u89e3\uff09 - nike0good","og_description":"P2067 - [NOIP2012P1]\u8d28\u56e0\u6570\u5206\u89e3 From&nbsp;luchangzhou&nbsp;&n [&hellip;]","og_url":"https:\/\/nike0good.com\/?p=276","og_site_name":"nike0good","article_published_time":"2012-11-20T01:20: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=276#article","isPartOf":{"@id":"https:\/\/nike0good.com\/?p=276"},"author":{"name":"nike0good","@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"headline":"Tyvj P2067(\u8d28\u56e0\u6570\u5206\u89e3\uff09","datePublished":"2012-11-20T01:20:00+00:00","mainEntityOfPage":{"@id":"https:\/\/nike0good.com\/?p=276"},"wordCount":64,"commentCount":0,"keywords":["\u7d20\u6570"],"articleSection":["DefaultCategory"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nike0good.com\/?p=276#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nike0good.com\/?p=276","url":"https:\/\/nike0good.com\/?p=276","name":"Tyvj P2067(\u8d28\u56e0\u6570\u5206\u89e3\uff09 - nike0good","isPartOf":{"@id":"https:\/\/nike0good.com\/#website"},"datePublished":"2012-11-20T01:20:00+00:00","author":{"@id":"https:\/\/nike0good.com\/#\/schema\/person\/4defa38da89de87e400861e73396baad"},"breadcrumb":{"@id":"https:\/\/nike0good.com\/?p=276#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nike0good.com\/?p=276"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/nike0good.com\/?p=276#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nike0good.com\/"},{"@type":"ListItem","position":2,"name":"Tyvj P2067(\u8d28\u56e0\u6570\u5206\u89e3\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\/276","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=276"}],"version-history":[{"count":0,"href":"https:\/\/nike0good.com\/index.php?rest_route=\/wp\/v2\/posts\/276\/revisions"}],"wp:attachment":[{"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nike0good.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}