{"id":1335,"date":"2020-02-23T18:15:53","date_gmt":"2020-02-23T10:15:53","guid":{"rendered":"http:\/\/149.129.74.185\/?p=1335"},"modified":"2020-02-23T18:15:53","modified_gmt":"2020-02-23T10:15:53","slug":"bilibili-12%e3%82%93-%e7%ba%a2%e8%8c%b6%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/www.magicmipamipa.com\/?p=1335","title":{"rendered":"[Bilibili] (12)\u3093&#8230;\u7ea2\u8336\uff1f"},"content":{"rendered":"<h4>\u9898\u76ee\u63cf\u8ff0<\/h4>\n<p>\u9ad8\u8d35\u7684\u857e\u7c73\u8389\u4e9a\u5927\u5c0f\u59d0\u6bcf\u5929\u9700\u8981\u996e\u7528\u5b9a\u91cf B \u578b\u8840\u7684\u7ea2\u8336\u4ee5\u4fdd\u6301\u5a01\u4e25\uff0c\u5e76\u4e14\u8981\u5206\u4e24\u676f\u5728\u4e0d\u540c\u65f6\u6bb5\u996e\u7528\u3002<\/p>\n<div class=\"subject-describe\">\n<div class=\"js-question-content subject-question mb2\">\u5973\u4ec6\u957f\u5341\u516d\u591c\u54b2\u591c\u6bcf\u5929\u53ef\u4ee5\u5236\u4f5c\u5f88\u591a\u676f\u4e0d\u540c\u5242\u91cf B \u578b\u8840\u7684\u7ea2\u8336\u4f9b\u857e\u7c73\u8389\u4e9a\u5927\u5c0f\u59d0\u996e\u7528\u3002<br \/>\n\u67d0\u65e5\uff0c\u4f60\u548c\u5929\u624d\u5996\u7cbe\u742a\u9732\u8bfa\u5077\u5077\u6f5c\u5165\u7ea2\u9b54\u9986\u88ab\u54b2\u591c\u6293\u4f4f\uff0c\u8981\u6c42\u5728\u4eca\u65e5\u4efd\u7684\u7ea2\u8336\u4e2d\u6311\u51fa\u6240\u6709\u6ee1\u8db3\u5927\u5c0f\u59d0\u8981\u6c42\u7684\u8336\u676f\uff0c\u5426\u5219\u2026\u2026<\/div>\n<h4 id=\"mcetoc_1e1oojt5i1\">\u8f93\u5165\u63cf\u8ff0:<\/h4>\n<pre>\u6bcf\u4e2a\u6837\u4f8b\u6709\u4e09\u884c\u8f93\u5165\uff0c\u7b2c\u4e00\u884c\u8f93\u5165\u8868\u793a\u8336\u676f\u4e2a\u6570\uff0c\u7b2c\u4e8c\u884c\u8f93\u5165\u8868\u793a\u6bcf\u4efd\u8336\u676f\u91cc\u7684 B \u578b\u8840\u5242\u91cf\uff0c\u7b2c\u4e09\u884c\u8868\u793a\u5927\u5c0f\u59d0\u4eca\u5929\u7684\u5b9a\u91cf<\/pre>\n<h4 id=\"mcetoc_1e1oojt5i2\">\u8f93\u51fa\u63cf\u8ff0:<\/h4>\n<pre>\u5bf9\u6bcf\u4e00\u4e2a\u6837\u4f8b\uff0c\u8f93\u51fa\u6240\u6709\u53ef\u80fd\u7684\u642d\u914d\u65b9\u6848\uff0c\u5982\u679c\u6709\u591a\u79cd\u65b9\u6848\uff0c\u8bf7\u6309\u6bcf\u4e2a\u65b9\u6848\u7684\u7b2c\u4e00\u676f B \u578b\u8840\u5242\u91cf\u7684\u5927\u5c0f\u5347\u5e8f\u6392\u5217\u3002\r\n\u5982\u679c\u65e0\u6cd5\u627e\u5230\u4efb\u4f55\u4e00\u79cd\u6ee1\u8db3\u5927\u5c0f\u59d0\u7684\u65b9\u6848\uff0c\u8f93\u51fa\"NO\"(\u4e0d\u5305\u62ec\u5f15\u53f7)\u5e76\u6362\u884c\u3002<\/pre>\n<div class=\"question-oi\">\n<div class=\"question-oi-hd\">\u793a\u4f8b1<\/div>\n<div class=\"question-oi-bd\">\n<div class=\"question-oi-mod\">\n<h4 id=\"mcetoc_1e1oojt5i3\">\u8f93\u5165<\/h4>\n<div class=\"question-oi-cont\">\n<pre>7\r\n2 4 6 1 3 5 7\r\n7<\/pre>\n<\/div>\n<\/div>\n<div class=\"question-oi-mod\">\n<h4 id=\"mcetoc_1e1oojt5i4\">\u8f93\u51fa<\/h4>\n<div class=\"question-oi-cont\">\n<pre>1 6\r\n2 5\r\n3 4<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h4 id=\"mcetoc_1e1oojt5i5\">\u5907\u6ce8:<\/h4>\n<pre>\u8336\u676f\u4e2a\u6570\u4e0d\u8d85\u8fc7100000\uff0c\u4fdd\u8bc1\u8336\u676f\u91cc\u7684B\u578b\u8840\u5242\u91cf\u4e24\u4e24\u4e0d\u540c\u3002<\/pre>\n<hr \/>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"cpp\">#include&lt;iostream&gt;\r\n#include&lt;algorithm&gt;\r\n#include&lt;vector&gt;\r\nusing namespace std;\r\nint main(){\r\n   int cup,today;\r\n   cin &gt;&gt; cup;\r\n   vector&lt;int&gt; cups(cup);\r\n   for( int i = 0 ; i &lt; cup ; i ++ ) cin &gt;&gt; cups[i];\r\n   cin &gt;&gt; today;\r\n   sort(cups.begin(),cups.end());\r\n   int start=0,end=cup-1;\r\n   int flag=0;\r\n   while( start &lt; end ){\r\n       if( cups[start] + cups[end] &gt; today ) end --;\/\/\u8fc7\u5927\r\n       else if( cups[start] + cups[end] &lt; today ) start++;\r\n       else{\r\n           printf(\"%d %d \\n\",cups[start],cups[end]);\r\n           flag = 1;\r\n           start++;\r\n       }\r\n   }\r\n   printf(flag?\"\":\"NO\\n\");\r\n}<\/pre>\n<p>\u5403\u5230\u4e86\u8bed\u6cd5\u7cd6\u5f88\u5f00\u5fc3\u3011<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u9898\u76ee\u63cf\u8ff0 \u9ad8\u8d35\u7684\u857e\u7c73\u8389\u4e9a\u5927\u5c0f\u59d0\u6bcf\u5929\u9700\u8981\u996e\u7528\u5b9a\u91cf B \u578b\u8840\u7684\u7ea2\u8336\u4ee5\u4fdd\u6301\u5a01\u4e25\uff0c\u5e76\u4e14\u8981\u5206\u4e24\u676f\u5728\u4e0d\u540c\u65f6\u6bb5\u996e\u7528 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,35],"tags":[],"_links":{"self":[{"href":"http:\/\/www.magicmipamipa.com\/index.php?rest_route=\/wp\/v2\/posts\/1335"}],"collection":[{"href":"http:\/\/www.magicmipamipa.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.magicmipamipa.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.magicmipamipa.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.magicmipamipa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1335"}],"version-history":[{"count":1,"href":"http:\/\/www.magicmipamipa.com\/index.php?rest_route=\/wp\/v2\/posts\/1335\/revisions"}],"predecessor-version":[{"id":1336,"href":"http:\/\/www.magicmipamipa.com\/index.php?rest_route=\/wp\/v2\/posts\/1335\/revisions\/1336"}],"wp:attachment":[{"href":"http:\/\/www.magicmipamipa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.magicmipamipa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1335"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.magicmipamipa.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}