{"id":394,"date":"2010-10-05T18:07:00","date_gmt":"2010-10-05T10:07:00","guid":{"rendered":"http:\/\/localhost\/?p=394"},"modified":"2010-10-05T18:07:00","modified_gmt":"2010-10-05T10:07:00","slug":"topic_4_nothing_wrong","status":"publish","type":"post","link":"https:\/\/www.shuizilong.com\/wjmzbmr\/?p=394","title":{"rendered":"\u9898\u76ee4\u6709\u4f55\u4e0d\u53ef"},"content":{"rendered":"<p> \u6709\u4f55\u4e0d\u53ef(why.in\/why.out)<br \/> \u5f15\u5b50\uff1a<br \/> &#160;&#160;&#160;&#160;&#160; <strong><em>\u4e3a\u4f60\u5531\u8fd9\u9996\u6b4c<\/em><\/strong><strong><em> <\/em><\/strong><strong><em>\u6ca1\u6709\u4ec0\u4e48\u98ce\u683c<\/em><\/strong><strong><em>\u5b83\u4ec5\u4ec5\u4ee3\u8868\u7740<\/em><\/strong><strong><em> <\/em><\/strong><strong><em>\u6211\u60f3\u7ed9\u4f60\u5feb\u4e50<\/em><\/strong><strong><em>\u4e3a\u4f60\u89e3\u51bb\u51b0\u6cb3<\/em><\/strong><strong><em> <\/em><\/strong><strong><em>\u4e3a\u4f60\u505a\u4e00\u53ea\u6251\u706b\u7684\u98de\u86fe<\/em><\/strong><strong><em>\u6ca1\u6709\u4ec0\u4e48\u4e8b\u60c5\u662f\u4e0d\u503c\u5f97<\/em><\/strong><strong><em>\u4e3a\u4f60\u5531\u8fd9\u9996\u6b4c<\/em><\/strong><strong><em> <\/em><\/strong><strong><em>\u6ca1\u6709\u4ec0\u4e48\u98ce\u683c<\/em><\/strong><strong><em>\u5b83\u4ec5\u4ec5\u4ee3\u8868\u7740<\/em><\/strong><strong><em> <\/em><\/strong><strong><em>\u6211\u5e0c\u671b\u4f60\u5feb\u4e50<\/em><\/strong><strong><em>\u4e3a\u4f60\u8f97\u8f6c\u53cd\u4fa7<\/em><\/strong><strong><em> <\/em><\/strong><strong><em>\u4e3a\u4f60\u653e\u5f03\u4e16\u754c\u6709\u4f55\u4e0d\u53ef<\/em><\/strong><strong><em>\u590f\u672b\u79cb\u51c9\u91cc\u5e26\u4e00\u70b9\u6e29\u70ed<\/em><\/strong><strong><em> <\/em><\/strong><strong><em>\u6709\u6362\u5b63\u7684\u989c\u8272<\/em><\/strong><strong><em> <\/em><\/strong><\/p>\n<p>\u80cc\u666f\uff1a<\/p>\n<p>\u67d0\u5929\uff0cWJMZBMR\u5728\u5916\u9762\u95f2\u901b\uff0c\u770b\u5230\u795e\u725bXXX\u5728\u8ddf\u4ed6\u7684GF\uff08\u4f60\u4eec\u61c2\u7684\uff09\u901b\u8857\u3002\u4ed6\u7684GF\u770b\u4e2d\u4e86N\u4ef6\u7269\u54c1\uff0c\u6bcf\u4ef6\u7269\u54c1\u6709\u4ef7\u683c\u548c\u559c\u7231\u5ea6\uff0c\u53efWJMZBMR\u77e5\u9053XXX\u4e0d\u662f\u795e\u9a6c\u5bcc\u4e8c\u4ee3\u3002<br \/>            &#160;&#160;&#160; XXX\u8eab\u4e0a\u4e00\u5206\u94b1\u90fd\u6ca1\u6709\uff08\u5168\u88ab\u4ed6GF\u82b1\u5149\u4e86\uff09\u3002XXX\u975e\u5e38\u7684\u75db\u82e6\u7684\u65f6\u5019\uff0c\u88ab\u6625\u54e5\u770b\u5230\u4e86\uff0c\u6625\u54e5\u6b63\u597d\u5fc3\u60c5\u5f88\u597d\uff0c\u770b\u5728XXX\u5e73\u65f6\u4fe1\u6625\u54e5\u7684\u4efd\u4e0a\uff0c\u7ed9\u4e86XXX M\u5143\u94b1\u3002<br \/>            &#160;&#160;&#160; \u540c\u65f6\u90a3\u5929\u662f\u4f1f\u5927\u7684\u6570\u5b66\u5bb6Fibonacci\u7684\u751f\u65e5\uff0c\u6240\u4ee5\u6240\u6709\u5546\u54c1\u7684\u4ef7\u683c\u5168\u90e8\u662fFibonacci\u6570\u3002<br \/>            &#160;&#160;&#160; XXX\u5f88\u7231\u4ed6\u7684GF\uff0c\u4ed6\u5e0c\u671b\u5728\u81ea\u5df1\u80fd\u53ca\u7684\u8303\u56f4\u5185\u8ba9\u4e70\u6765\u7684\u7269\u54c1\u7684\u559c\u7231\u5ea6\u6700\u5927\u3002<br \/>            &#160;&#160;&#160; WJMZBMR\u5728\u65c1\u8fb9\u8868\u793a\u538b\u529b\u5f88\u5927\u56e7\u3002\u3002\u3002<\/p>\n<p>\u6570\u5b66\u5b9a\u4e49\uff1a<\/p>\n<p>Fibonacci\u6570\u5217\uff1a\u6ee1\u8db3a[1]=1,a[2]=1,a[n]=a[n-1]+a[n-2]\u7684\u6570\u5217\u3002<br \/>            \u524d\u51e0\u9879\u4e3a1,1,2,3,5,8,13<br \/>            Fibonacci\u6570\uff1aFibonacci\u6570\u5217\u4e2d\u7684\u6570<br \/>            N\u4e2a\u7269\u54c1\uff0c\u4f53\u79ef\u90fd\u662fFibonacci\u6570\uff0c\u4ef7\u503c\u4e5f\u7ed9\u51fa\uff0c\u6bcf\u4e2a\u7269\u54c1\u53ea\u6709\u4e00\u4e2a\uff0c\u653e\u5165\u4f53\u79ef\u4e3aM\u7684\u80cc\u5305\u4e2d\uff0c\u6c42\u6700\u5927\u4ef7\u503c\u3002<br \/>            01\u80cc\u5305\u95ee\u9898\u7684\u6269\u5c55<\/p>\n<p>\u8f93\u5165\uff1a<\/p>\n<p>\u7b2c\u4e00\u884cN\u548cM\u8868\u793a\u7269\u54c1\u6570\u548c\u94b1\u6570<br \/>            \u63a5\u4e0b\u6765N\u884c\uff0c\u6bcf\u884c\u4e24\u4e2a\u6570\u5206\u522b\u8868\u793a\u4e00\u4e2a\u7269\u54c1\u7684\u4ef7\u683c\u548c\u559c\u7231\u5ea6<\/p>\n<p>\u8f93\u51fa\uff1a<\/p>\n<p>\u4e00\u884c\u8868\u793a\u6700\u5927\u4ef7\u503c<\/p>\n<p>\u6837\u4f8b\u8f93\u5165\uff1a<\/p>\n<p>3 10<\/p>\n<p>1 3<\/p>\n<p>5 8<\/p>\n<p>8 10<\/p>\n<p>\u6837\u4f8b\u8f93\u51fa\uff1a<\/p>\n<p>13<\/p>\n<p>\u6837\u4f8b\u7684\u89e3\u91ca\uff1a<\/p>\n<p>\u9009\u62e9\u7b2c\u4e00\u4e2a\u548c\u7b2c\u4e09\u4e2a\u7269\u54c1<\/p>\n<p>\u6570\u636e\u8303\u56f4\uff1a<\/p>\n<p>100%\u7684\u6570\u636e N&lt;=200<br \/>            40%\u7684\u6570\u636e M&lt;=10000<br \/>            100%\u7684\u6570\u636e M&lt;=10^9<br \/>            \u7269\u54c1\u91cd\u91cf\u4ef7\u503c\uff0c\u53ef\u4ee5\u7528int\u548clongint\u5b58\u50a8<\/p>\n<p>\u6ce8\u610f\uff1a<\/p>\n<p>\u867d\u7136\u4ef7\u503c\u53ef\u4ee5\u7528int\u5b58\u50a8\u3002\u4f46\u662f\u4ef7\u503c\u7684\u548c\u8bf4\u4e0d\u5b9a\u5c31\u8981\u6ea2\u51fa\u4e86\u3002<\/p>\n<p>&#160;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u4f55\u4e0d\u53ef(why.in\/why.out) \u5f15\u5b50\uff1a &#160;&#160;&#160;&#160;&#160; \u4e3a\u4f60\u5531\u8fd9\u9996\u6b4c \u6ca1\u6709\u4ec0\u4e48\u98ce\u683c\u5b83\u4ec5\u4ec5\u4ee3\u8868\u7740 \u6211\u60f3\u7ed9\u4f60\u5feb\u4e50\u4e3a\u4f60\u89e3\u51bb\u51b0\u6cb3 \u4e3a\u4f60\u505a\u4e00\u53ea\u6251\u706b\u7684\u98de\u86fe\u6ca1\u6709\u4ec0\u4e48\u4e8b\u60c5\u662f\u4e0d\u503c\u5f97\u4e3a\u4f60\u5531\u8fd9\u9996\u6b4c \u6ca1\u6709\u4ec0\u4e48\u98ce\u683c\u5b83\u4ec5\u4ec5\u4ee3\u8868\u7740 \u6211\u5e0c\u671b\u4f60\u5feb\u4e50\u4e3a\u4f60\u8f97\u8f6c\u53cd\u4fa7 \u4e3a\u4f60\u653e\u5f03\u4e16\u754c\u6709\u4f55\u4e0d\u53ef\u590f\u672b\u79cb\u51c9\u91cc\u5e26\u4e00\u70b9\u6e29\u70ed \u6709\u6362\u5b63\u7684\u989c\u8272 \u80cc\u666f\uff1a \u67d0\u5929\uff0cWJMZBMR\u5728\u5916\u9762\u95f2\u901b\uff0c\u770b\u5230\u795e\u725bXXX\u5728\u8ddf\u4ed6\u7684GF\uff08\u4f60\u4eec\u61c2\u7684\uff09\u901b\u8857\u3002\u4ed6\u7684GF\u770b\u4e2d\u4e86N\u4ef6\u7269\u54c1\uff0c\u6bcf\u4ef6\u7269\u54c1\u6709\u4ef7\u683c\u548c\u559c\u7231\u5ea6\uff0c\u53efWJMZBMR\u77e5\u9053XXX\u4e0d\u662f\u795e\u9a6c\u5bcc\u4e8c\u4ee3\u3002 &#160;&#160;&#160; XXX\u8eab\u4e0a\u4e00\u5206\u94b1\u90fd\u6ca1\u6709\uff08\u5168\u88ab\u4ed6GF\u82b1\u5149\u4e86\uff09\u3002XXX\u975e\u5e38\u7684\u75db\u82e6\u7684\u65f6\u5019\uff0c\u88ab\u6625\u54e5\u770b\u5230\u4e86\uff0c\u6625\u54e5\u6b63\u597d\u5fc3\u60c5\u5f88\u597d\uff0c\u770b\u5728XXX\u5e73\u65f6\u4fe1\u6625\u54e5\u7684\u4efd\u4e0a\uff0c\u7ed9\u4e86XXX M\u5143\u94b1\u3002 &#160;&#160;&#160; \u540c\u65f6\u90a3\u5929\u662f\u4f1f\u5927\u7684\u6570\u5b66\u5bb6Fibonacci\u7684\u751f\u65e5\uff0c\u6240\u4ee5\u6240\u6709\u5546\u54c1\u7684\u4ef7\u683c\u5168\u90e8\u662fFibonacci\u6570\u3002 &#160;&#160;&#160; XXX\u5f88\u7231\u4ed6\u7684GF\uff0c\u4ed6\u5e0c\u671b\u5728\u81ea\u5df1\u80fd\u53ca\u7684\u8303\u56f4\u5185\u8ba9\u4e70\u6765\u7684\u7269\u54c1\u7684\u559c\u7231\u5ea6\u6700\u5927\u3002 &#160;&#160;&#160; WJMZBMR\u5728\u65c1\u8fb9\u8868\u793a\u538b\u529b\u5f88\u5927\u56e7\u3002\u3002\u3002 \u6570\u5b66\u5b9a\u4e49\uff1a Fibonacci\u6570\u5217\uff1a\u6ee1\u8db3a[1]=1,a[2]=1,a[n]=a[n-1]+a[n-2]\u7684\u6570\u5217\u3002 \u524d\u51e0\u9879\u4e3a1,1,2,3,5,8,13 Fibonacci\u6570\uff1aFibonacci\u6570\u5217\u4e2d\u7684\u6570 N\u4e2a\u7269\u54c1\uff0c\u4f53\u79ef\u90fd\u662fFibonacci\u6570\uff0c\u4ef7\u503c\u4e5f\u7ed9\u51fa\uff0c\u6bcf\u4e2a\u7269\u54c1\u53ea\u6709\u4e00\u4e2a\uff0c\u653e\u5165\u4f53\u79ef\u4e3aM\u7684\u80cc\u5305\u4e2d\uff0c\u6c42\u6700\u5927\u4ef7\u503c\u3002 01\u80cc\u5305\u95ee\u9898\u7684\u6269\u5c55 \u8f93\u5165\uff1a \u7b2c\u4e00\u884cN\u548cM\u8868\u793a\u7269\u54c1\u6570\u548c\u94b1\u6570 \u63a5\u4e0b\u6765N\u884c\uff0c\u6bcf\u884c\u4e24\u4e2a\u6570\u5206\u522b\u8868\u793a\u4e00\u4e2a\u7269\u54c1\u7684\u4ef7\u683c\u548c\u559c\u7231\u5ea6 \u8f93\u51fa\uff1a \u4e00\u884c\u8868\u793a\u6700\u5927\u4ef7\u503c \u6837\u4f8b\u8f93\u5165\uff1a 3 10 1 3 5 8 8 10 \u6837\u4f8b\u8f93\u51fa\uff1a 13 \u6837\u4f8b\u7684\u89e3\u91ca\uff1a \u9009\u62e9\u7b2c\u4e00\u4e2a\u548c\u7b2c\u4e09\u4e2a\u7269\u54c1 \u6570\u636e\u8303\u56f4\uff1a 100%\u7684\u6570\u636e N&lt;=200 40%\u7684\u6570\u636e M&lt;=10000 100%\u7684\u6570\u636e M&lt;=10^9 \u7269\u54c1\u91cd\u91cf\u4ef7\u503c\uff0c\u53ef\u4ee5\u7528int\u548clongint\u5b58\u50a8 \u6ce8\u610f\uff1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=\/wp\/v2\/posts\/394"}],"collection":[{"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=394"}],"version-history":[{"count":0,"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=\/wp\/v2\/posts\/394\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shuizilong.com\/wjmzbmr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}