{"id":2929,"date":"2018-07-22T10:24:03","date_gmt":"2018-07-22T02:24:03","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2929"},"modified":"2018-07-22T10:24:03","modified_gmt":"2018-07-22T02:24:03","slug":"%e4%b8%8a%e6%b5%b7%e5%be%97%e8%b1%86%e4%bf%a1%e6%81%af%e6%8a%80%e6%9c%af%e6%9c%89%e9%99%90%e5%85%ac%e5%8f%b8%e9%9d%a2%e8%af%95%e6%80%bb%e7%bb%93","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2929","title":{"rendered":"\u4e0a\u6d77\u5f97\u8c46\u4fe1\u606f\u6280\u672f\u6709\u9650\u516c\u53f8\u9762\u8bd5\u603b\u7ed3"},"content":{"rendered":"<p>\n\t\u8fd9\u4e2a\u9762\u8bd5\u5f88\u5c34\u5c2c\uff0c\u6309\u7167\u7ea6\u5b9a\u65f6\u95f4\u662f10\u70b9\uff0c\u4f46\u662f\u572810\u70b9\u4e4b\u524d\uff0c\u6211\u5728\u9644\u8fd1\u53bb\u590d\u8bd5\u4e86\u53e6\u5916\u4e00\u5bb6\u516c\u53f8\uff0c\u5e76\u4e14\u62ff\u5230\u4e86 offer\u3002\u6211\u672c\u4ee5\u4e3a\u5f88\u96be\u627e\uff0c\u4e8e\u662f\u5c31\u901a\u77e5\u9762\u8bd5\u516c\u53f8\uff0c\u53ef\u80fd\u4f1a\u8fdf\u5230\u3002\u4f46\u6211\u4ece\u524d\u4e00\u5bb6\u9762\u8bd5\u516c\u53f8\u51fa\u6765\u4ee5\u540e\uff0c\u4e00\u773c\u5c31\u770b\u89c1\u4e86\u51ef\u5fb7\u9f99\u4e4b\u68a6\u5927\u53a6\u3002\u6240\u4ee5\u4e5f\u6ca1\u600e\u4e48\u8fdf\u5230\u5c31\u51c6\u65f6\u53c2\u52a0\u4e86\u9762\u8bd5\u3002\n<\/p>\n<p>\n\t\u4e0a\u6d77\u5f97\u8c46\u4fe1\u606f\u6280\u672f\u6709\u9650\u516c\u53f8\u9762\u8bd5\u8fc7\u7a0b\u5148\u767b\u8bb0\uff0c\u7136\u540e\u505a\u4e00\u4efd\u9762\u8bd5\u9898\uff0c\u6700\u540e\u5728\u6280\u672f\u9762\u3002\n<\/p>\n<p>\n\t\u6211\u4e2a\u4eba\u8ba4\u4e3a\u7b14\u8bd5\u505a\u7684\u8fd8\u53ef\u4ee5\uff0c\u90fd\u662f\u4e00\u4e9b\u7b80\u5355\u7684\u9898\u3002\u5176\u4e2d\u5305\u542b\u4e00\u4e9b sql \u67e5\u8be2\uff0c\u5de6\u8fde\u63a5\u3002\u53ef\u80fd\u7a0d\u6709\u96be\u5ea6\u7684\u7b97\u6700\u540e\u4e00\u9898\uff0c\u6bd4\u8f83\u538b\u8f74\u54c8\uff01\n<\/p>\n<p>\n\t\u6700\u540e\u4e00\u9898\uff0c\u662f\u4e00\u4e2a\u9636\u4e58\u7136\u540e\u76f8\u52a0\u7684\u9898\u3002\u9898\u76ee\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\t1!+2!+&hellip;&hellip;+100!\uff0c\u6c42\u8ba1\u7b97\u8fc7\u7a0b\uff08\u4ee3\u7801\u5b9e\u73b0\uff09\u3002\n<\/p>\n<p>\n\t\u6211\u5f53\u521d\u4f7f\u7528\u7684\u662f\u5faa\u73af\u52a0\u9012\u5f52\u3002\u7ed3\u679c\u7528long\u7c7b\u578b\u4fdd\u5b58\uff0c\u4f46\u5b9e\u9645\u7ed3\u679c\u53ef\u80fd\u8d85\u8fc7 long \u7684\u8303\u56f4\u4e86\u3002\u4e0b\u9762\u7ed9\u51fa\u4e00\u4e2a\u5177\u4f53\u7684\u5b9e\u73b0\u3002\n<\/p>\n<pre class=\"brush:java;\">\r\npublic static void main(String[] args) {\r\n\tint i,j;\r\n\tlong sum = 0;\r\n\tfor(i = 1; i &lt;= 100; i++){\r\n\t\tint t = 1;\r\n\t\tfor(j = 1; j &lt;= i; j++){\r\n\t\t\tt *= j;\r\n\t\t}\r\n\t\tsum += t;\r\n\t}\r\n\tSystem.out.println(sum);\r\n}<\/pre>\n<p>\n\t\u6700\u7ec8\u7684\u503c\uff0c\u6211\u6ca1\u7b97\u8fc7\uff0c\u53ef\u80fd\u4f1a\u8d85\u8fc7 long \u7c7b\u578b\u7684\u8303\u56f4\u3002\u4e0a\u9762\u662f\u624b\u5199\u7684\u4ee3\u7801\uff0c\u5982\u679c\u7ed3\u679c\u6ca1\u8d85\u8fc7 long \u7c7b\u578b\u8303\u56f4\u7684\u8bdd\uff0c\u53ef\u4ee5\u6b63\u786e\u8ba1\u7b97\u51fa\u6765\u3002\n<\/p>\n<p>\n\t\u505a\u9898\u5927\u6982\u534a\u4e2a\u5c0f\u65f6\uff0c\u7136\u540e\u8fdb\u884c\u6280\u672f\u9762\uff0c\u9762\u4e86\u534a\u5929\uff0c\u5927\u6982\u523011\u70b9\u534a\u7684\u65f6\u5019\uff0c\u8c08\u5230\u4e86\u5de5\u8d44\uff0c\u6211\u8bf420k\uff0c\u672c\u6765\u767b\u8bb0\u7684\u7eb8\u4e0a\u5199\u7684\u6709\u7684\uff0c\u6211\u53c8\u8bf4\u4e86\u4e00\u904d\u3002\u6211\u4e00\u8bf420k\uff0c\u6280\u672f\u8d1f\u8d23\u4eba\uff0c\u5c31\u7ed3\u675f\u4e86\u8c08\u8bdd\u3002\n<\/p>\n<p>\n\t\u521b\u4e1a\u516c\u53f8\u5f88\u770b\u91cd\u94b1\u7684\uff01\u8c08\u94b1\u8272\u53d8\u3002\n<\/p>\n<p>\n\t\u6211\u4e2a\u4eba\u611f\u89c9\u9762\u8bd5\u8fc7\u7a0b\u8fd8\u662f\u53ef\u4ee5\uff0c\u56de\u7b54\u7684\u95ee\u9898\uff0c\u53d8\u73b0\u4e5f\u8fd8\u53ef\u4ee5\u3002\u53ef\u80fd\u5c31\u662f\u5c0f\u521b\u4e1a\u516c\u53f8\uff0c\u572851jbo\u4e0a\u6807\u7684\u5f88\u9ad8\uff0c\u4f46\u5b9e\u9645\u4e0a\u7ed9\u4e0d\u5230\uff0c\u6bd4\u5982\u5199\u76841.5\u52303\u4e07\uff0c\u6700\u7ec8\u53ef\u80fd\u5c31\u662f1.5\u3002\u53ea\u662f\u5438\u5f15\u4eba\u53bb\u9762\u8bd5\u7684\u4e00\u79cd\u624b\u6bb5\u800c\u5df2\u3002\n<\/p>\n<p>\n\t\u8bf4\u523020k\uff0c\u6280\u672f\u8d1f\u8d23\u4eba\u5c31\u76f4\u63a5\u8bf4\u4e0a\u5348\u7684\u9762\u8bd5\u5c31\u5148\u5230\u8fd9\u91cc\u3002\u7136\u540e\u611f\u8c22\u4f60\u80fd\u524d\u6765\u53c2\u52a0\u9762\u8bd5\uff0c\u9001\u4e5f\u6ca1\u9001\u3002\u6211\u81ea\u5df1\u8d70\u4e86\uff0c\u611f\u89c9\u6ca1\u620f\uff01\n<\/p>\n<p>\n\t\u8fd9\u4e2a\u516c\u53f8\u7684\u4eba\u4e5f\u4e0d\u662f\u5f88\u591a\uff0c\u4f30\u8ba1\u5f00\u53d1\u6700\u591a\u4e5f\u5c31\u4e0d\u8d85\u8fc720\u4eba\u3002\n<\/p>\n<p>\n\t\u6211\u76ee\u524d\u62ff\u5230\u4e864\u5bb6\u7684 offer\uff0c\u6700\u9ad8\u7684\u4e00\u5bb6\u7ed9\u52302.5k\u3002\u53ea\u662f\u56e0\u4e3a\u8fd9\u5bb6\u516c\u53f8\u7ed9\u6211\u7684\u5370\u8c61\u5f88\u6df1\u523b\uff0c\u8c08\u94b1\u8272\u53d8\uff0c\u6240\u4ee5\u8bb0\u5f55\u4e00\u4e0b\uff01<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2929\">\u4e0a\u6d77\u5f97\u8c46\u4fe1\u606f\u6280\u672f\u6709\u9650\u516c\u53f8\u9762\u8bd5\u603b\u7ed3<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e2a\u9762\u8bd5\u5f88\u5c34\u5c2c\uff0c\u6309\u7167\u7ea6\u5b9a\u65f6\u95f4\u662f10\u70b9\uff0c\u4f46\u662f\u572810\u70b9\u4e4b\u524d\uff0c\u6211\u5728\u9644\u8fd1\u53bb\u590d\u8bd5\u4e86\u53e6\u5916\u4e00\u5bb6\u516c\u53f8\uff0c\u5e76\u4e14\u62ff\u5230\u4e86 offer\u3002 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[472,546,579,62,410],"class_list":["post-2929","post","type-post","status-publish","format-standard","hentry","category-yyzt","tag-rest","tag-546","tag-579","tag-62","tag-410"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2929"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2929\/revisions"}],"predecessor-version":[{"id":2930,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2929\/revisions\/2930"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}