{"id":141,"date":"2011-08-21T23:42:50","date_gmt":"2011-08-21T15:42:50","guid":{"rendered":"http:\/\/wangkaixuan.tech\/?p=141"},"modified":"2020-06-03T23:43:08","modified_gmt":"2020-06-03T15:43:08","slug":"zoj-2952-find-all-mn-please","status":"publish","type":"post","link":"http:\/\/www.wangkaixuan.tech\/?p=141","title":{"rendered":"zoj 2952 Find All M^N Please"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>\/*\u76f4\u63a5\u66b4\u529b*\/\n#define LOCAL\n#include&lt;iostream>\n#include&lt;cstdio>\n#include&lt;cmath>\n#include&lt;cstring>\n#include&lt;cstdlib>\n#include&lt;iomanip>\n#include&lt;string>\n#include&lt;algorithm>\n#include&lt;ctime>\n#include&lt;stack>\n#include&lt;queue>\n#include&lt;vector>\n#define N 50000\n#define MAX 2147483648\nusing namespace std;\nint main()\n{\n#ifdef LOCAL\n       freopen(\"input.txt\",\"r\",stdin);\n       freopen(\"output.txt\",\"w\",stdout);\n#endif\n \n    int i,j,t=(int)sqrt((double)MAX),k=0,ans&#91;N];\n    for(i=2;i&lt;=t;i++)\n    {\n           for(j=2;pow((double)i,(double)j)&lt;MAX;j++)\/\/\u6ce8\u610f\u8fd9\u4e2a\u6761\u4ef6 \n           {\n                ans&#91;k++]=pow((double)i,(double)j);                 \n           }                   \n    }\n    sort(ans,ans+k);\/\/\u6392\u5e8f \n    cout&lt;&lt;ans&#91;0]&lt;&lt;endl;\n    for(i=1;i&lt;k;i++)\n    {\n         if(ans&#91;i]!=ans&#91;i-1])\/\/\u53bb\u91cd \n            cout&lt;&lt;ans&#91;i]&lt;&lt;endl;  \n    }\n    return 0;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-06-01-acm"],"_links":{"self":[{"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=141"}],"version-history":[{"count":0,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wangkaixuan.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}