{"id":607,"date":"2023-09-29T14:22:10","date_gmt":"2023-09-29T06:22:10","guid":{"rendered":"http:\/\/ggapa.net:81\/?p=607"},"modified":"2023-09-29T15:00:21","modified_gmt":"2023-09-29T07:00:21","slug":"%e5%a4%a9%e9%80%89%e4%b9%8b%e5%ad%90","status":"publish","type":"post","link":"http:\/\/ggapa.net:81\/2023\/09\/29\/%e5%a4%a9%e9%80%89%e4%b9%8b%e5%ad%90\/","title":{"rendered":"\u5929\u9009\u4e4b\u5b50"},"content":{"rendered":"

<\/mrow>lim<\/mo>\u0394<\/mi>\u2192<\/mo>0<\/mn><\/mrow><\/munder>n<\/mi>\u2212<\/mo>\u0394<\/mi>=<\/mo>n<\/mi><\/mstyle><\/math><\/p>\n

\u6211\u53bb\u53c2\u52a0\u4e86\u4e00\u573a\u8003\u8bd5\uff0c\u6709\u4e00\u9053\u9898\u76ee\u7684\u8f93\u51fa\u4f7f\u6211\u975e\u5e38\u7684\u56f0\u60d1\uff1a<\/p>\n

\n

\u8f93\u51fa\u4e00\u884c\u4e00\u4e2a\u5b57\u7b26\u4e32 $s$ \u8868\u793a\u7b54\u6848\u3002\u5982\u679c\u8fd9\u4e2a\u6392\u5217\u53ef\u4ee5\u901a\u8fc7\u9898\u76ee\u63cf\u8ff0\u7684\u65b9\u6cd5\u6784\u9020\u5f97\u5230\uff0c\u5219 $s=YES$\uff0c\u5426\u5219 $s=NO$<\/p>\n<\/blockquote>\n

\u6211\u4e0d\u4f1a\u505a\uff0c\u4fbf\u63d0\u4ea4\u4e86\u4e0b\u9762\u7684\u4ee3\u7801\u5e76\u5411\u4e0a\u5929\u7948\u6c42\u6211\u80fd\u901a\u8fc7:<\/p>\n

\/*\n\u5929\u7075\u7075\u5730\u7075\u7075\n\u968f\u673a\u8f93\u51fa\u5fc5 AC(accept)\n*\/\n#include <bits\/stdc++.h>\nusing namespace std;\n\nint main() {\n    struct timeb timeSeed;\n    ftime(&timeSeed);\n    srand(timeSeed.time * 1000 + timeSeed.millitm);\/\/\u7528\u6beb\u79d2\u5f53\u4f5c\u968f\u673a\u6570\u7684\u79cd\u5b50\n    if(rand() % 2) cout << "Yes" << endl;\/\/\u968f\u673a\u8f93\u51fa\n    else cout << "No" << endl;\n    return 0;\n}<\/code><\/pre>\n

\u521a\u63d0\u4ea4\u5b8c\u8fd9\u9053\u9898\uff0c\u8003\u8bd5\u4fbf\u63d0\u524d\u7ed3\u675f\u4e86\uff0c\u8fd9\u8ba9\u6240\u6709\u7684\u8003\u751f\u611f\u5230\u975e\u5e38\u8be7\u5f02<\/p>\n


\n

\u6b63\u5f53\u6211\u51c6\u5907\u79bb\u5f00\u8003\u573a\u4e4b\u9645\uff0c\u6211\u80cc\u540e\u4f20\u6765\u4e86\u4e00\u58f0\u543c\u53eb\uff0c\u6211\u56de\u5934\u770b\uff0c\u53d1\u73b0\u4e00\u4e2a\u5f88\u6709\u87d1\u8782\u6c14\u8d28\u7684\u7537\u4eba\u6307\u7740\u6211\u3002<\/p>\n

\u4ed6\u7b11\u4e86\u7b11\uff0c\u5bf9\u6211\u8bf4\uff1a\u201c\u4f60\u5c31\u662f\u6211\u8981\u627e\u7684\u5929\u9009\u4e4b\u5b50\u3002\u201d\u6211\u542c\u5b8c\u6ee1\u5634\u95ee\u53f7\uff0c\u4ed6\u5bf9\u6b64\u5e76\u4e0d\u611f\u5230\u5947\u602a\u5f02\uff0c\u7ee7\u7eed\u8bf4\uff1a\u201c\u4f60\u6709\u6ca1\u6709\u60f3\u8fc7\u4e3a\u4ec0\u4e48\u4f60\u95ef\u4e86\u8fd9\u4e48\u591a\u6b21\u7ea2\u706f\uff0c\u5374\u4f9d\u7136\u5065\u5065\u5eb7\u5eb7\u7684\u6d3b\u5230\u4e86\u73b0\u5728\uff1f\u8fd9\u4ef6\u4e8b\u7684\u6982\u7387\u4e0d\u4f1a\u8d85\u8fc7\u767e\u4e07\u5206\u4e4b\u4e00\u5427\u3002\u56e0\u4e3a\u4f60\u5c31\u662f\u8fd9\u4e2a\u6545\u4e8b\u7684\u300c\u4e3b\u89d2\u300d\u3002\u5982\u679c\u6ca1\u6709\u4f60\uff0c\u8fd9\u4e2a\u6545\u4e8b\u5c31\u4e0d\u4f1a\u7ee7\u7eed\u3002\u8fd9\u4e5f\u662f\u4e3a\u4ec0\u4e48\u4f60\u63d0\u4ea4\u4e86\u4e00\u4efd\u968f\u673a\u6570\u4ee3\u7801\u5374\u4f9d\u7136\u80fd\u5728\u8fd9\u9053\u6ca1\u6709\u6b63\u89e3\u9898\u76ee\u4e0a\u53d6\u5f97\u6ee1\u5206\u3002\u201d<\/p>\n

\u8bf4\u5b8c\u4ed6\u4fbf\u7ed9\u6211\u770b\u6211\u7684\u8bb0\u5f55\uff0c\u7eff\u6cb9\u6cb9\u7684\u975e\u5e38\u6f02\u4eae\uff0c\u5145\u6ee1\u7740\u751f\u673a\uff0c\u611f\u89c9\u8fd8\u633a\u597d\u5403\u7684\u3002<\/p>\n

\u6211\u5341\u5206\u597d\u5947\u90a3\u4e9b\u51a5\u601d\u82e6\u60f3\u201c\u6b63\u89e3\u201d\u7684\u4eba\u5f97\u77e5\u4e86\u8fd9\u4e2a\u6d88\u606f\u4e4b\u540e\u4f1a\u600e\u4e48\u60f3\u3002<\/p>\n


\n

\u87d1\u8782\u662f\u8fd9\u4e2a\u6bd4\u8d5b\u7684\u4e3e\u529e\u4eba\uff0c\u4ed6\u4e3e\u529e\u4e86\u8fd9\u4e48\u591a\u5e74\u6bd4\u8d5b\u5c31\u662f\u4e3a\u4e86\u627e\u5230\u8fd9\u4e2a\u6545\u4e8b\u7684\u300c\u4e3b\u89d2\u300d\uff0c\u800c\u73b0\u5728\u4ed6\u627e\u5230\u4e86\u3002<\/p>\n

\u6211\u548c\u4ed6\u8ba8\u8bba\u4e86\u5f88\u4e45\u5982\u4f55\u9a8c\u8bc1\u6211\u662f\u771f\u6b63\u7684\u4e3b\u89d2\uff0c\u5728\u6392\u9664\u4e86\u8df3\u697c\uff0c\u65ad\u5934\u53f0\u7b49\u4e00\u7cfb\u5217\u4f17\u751f\u5e73\u7b49\u7684\u65b9\u6848\u4e4b\u540e\uff0c\u6211\u4eec\u51b3\u5b9a\u6a2a\u7a7f\u4e00\u6761\u9ad8\u901f\u516c\u8def\u3002\u6211\u5f88\u597d\u5947\u5728\u9ad8\u901f\u516c\u8def\u4e0a\u6ca1\u6709\u4efb\u4f55\u53ef\u4ee5\u8eb2\u85cf\u7684\u5730\u65b9\u6211\u8be5\u5982\u4f55\u6d3b\u4e0b\u6765\u3002\u65e0\u8bba\u5982\u4f55\uff0c\u5c31\u7b97\u6211\u5931\u8d25\u4e86\u81f3\u5c11\u80fd\u4e3a\u6765\u53bb\u5306\u5fd9\u7684\u4eba\u4eec\u5e26\u6765\u4e00\u4e1d\u4e1d\u5598\u606f\u7684\u673a\u4f1a\u3002<\/p>\n

\u5728\u628a\u94a2\u4e1d\u7f51\u526a\u65ad\u4e4b\u540e\uff0c\u6211\u4eec\u6765\u5230\u4e86\u9ad8\u901f\u516c\u8def\u524d\u3002\u8f66\u6d41\u98de\u901f\u800c\u8fc7\u7684\u6c14\u6d41\u5438\u9644\u7740\u6211\uff0c\u5fc3\u4e2d\u7a81\u7136\u6709\u4e86\u4e00\u79cd\u4f7f\u547d\u611f\u3002\u6211\u611f\u5230\u80cc\u540e\u4e0d\u53ef\u6297\u62d2\u7684\u63a8\u529b\uff0c\u50ac\u4fc3\u7740\u6211\u8fc8\u51fa\u7b2c\u4e00\u6b65\u3002\u6211\u900f\u8fc7\u8f66\u6d41\u770b\u5230\u4e86\u9ad8\u901f\u516c\u8def\u7684\u5bf9\u9762\uff0c\u5145\u6ee1\u7740\u751f\u673a\uff0c\u5bf9\u6bd4\u8fd9\u8fb9\u7684\u7e41\u534e\u663e\u5f97\u683c\u5916\u5e7d\u5bc2\u3002<\/p>\n

\u604d\u60da\u95f4\u6211\u6765\u5230\u4e86\u9ad8\u901f\u516c\u8def\u4e0a\uff0c\u5feb\u901f\u7684\u6c14\u6d41\u4f7f\u6211\u7ad9\u4e0d\u4f4f\u811a\uff0c\u6211\u6454\u5012\u4e86\u3002\u6211\u7684\u7406\u6027\u904f\u5236\u4f4f\u4e86\u6211\u7684\u672c\u80fd\uff0c\u505c\u5728\u4e86\u9053\u8def\u7684\u4e2d\u95f4\uff0c\u6211\u60f3\u8fd9\u5e94\u8be5\u5c31\u662f\u6211\u7684\u7ed3\u5c40\u5427\uff0c\u6211\u5e76\u4e0d\u662f\u4ec0\u4e48\u300c\u4e3b\u89d2\u300d\uff0c\u5c31\u53ea\u662f\u4e00\u4e2a\u8fd0\u6c14\u6bd4\u8f83\u597d\u7684\u666e\u901a\u4eba\u7f62\u4e86\u3002\u6211\u95ed\u4e0a\u773c\u775b\uff0c\u7b49\u5f85\u7740\u6700\u7ec8\u65f6\u523b\u7684\u5230\u6765\u3002<\/p>\n

\u4ee5\u4e0a\u4f7f\u6211\u8bb0\u5fc6\u65ad\u5c42\u524d\u7684\u7ecf\u5386\uff0c\u6211\u4e0d\u77e5\u600e\u4e48\u7684\u5c31\u8138\u671d\u4e0b\u8db4\u5728\u4e86\u9ad8\u901f\u516c\u8def\u4e00\u65c1\u7684\u8349\u5730\u4e0a\u3002<\/p>\n

\u6211\u7ffb\u8fc7\u8eab\u6765\uff0c\u770b\u5230\u4e86\u690d\u7269\u7684\u82ac\u82b3\u3002<\/p>\n

\u9ad8\u901f\u516c\u8def\u4e0a\u7684\u8f66\u6d41\u505c\u6b62\u4e86\uff0c\u6211\u611f\u5230\u4e86\u4e00\u4e1d\u4e1d\u7684\u5fcf\u6094\uff0c\u6211\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\u4f5c\u8005\u8981\u7ed9\u6211\u4e00\u4e2a\u597d\u7684\u7ed3\u5c40\uff0c\u4e5f\u8bb8\u6211\u5bf9\u4ed6\u771f\u7684\u975e\u5e38\u91cd\u8981\u5427\u3002<\/p>\n

\u5fc3\u4e2d\u603b\u89c9\u5f97\u8fc7\u610f\u4e0d\u53bb\uff0c\u4e8e\u662f\u5728\u8def\u65c1\u7528\u77f3\u5934\u523b\u4e0b\u4e86\uff1a\u201c\u5bf9\u4e0d\u8d77\uff0c\u4f46\u73b0\u5728\u8be5\u597d\u597d\u4f11\u606f\u4e00\u4e0b\u4e86\u3002\u201d<\/p>\n

\u6211\u8d70\u5929\u6865\u56de\u5230\u4e86\u7e41\u534e\u7684\u90a3\u4e00\u8fb9\uff0c\u4eff\u4f5b\u4ec0\u4e48\u90fd\u6ca1\u6709\u53d1\u751f\u4f3c\u7684\u3002<\/p>\n


\n

\u87d1\u8782\u6a2a\u7a7f\u9ad8\u901f\u516c\u8def\u5931\u8d25\u4e86\uff0c\u4ed6\u6ca1\u80fd\u5230\u8fbe\u5145\u6ee1\u751f\u673a\u7684\u90a3\u5934\u3002\u8fd9\u662f\u540e\u6765\u6211\u5728\u65b0\u95fb\u4e0a\u770b\u5230\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

lim\u0394\u21920n\u2212\u0394=n \u6211\u53bb\u53c2\u52a0\u4e86\u4e00\u573a\u8003\u8bd5\uff0c\u6709\u4e00\u9053\u9898\u76ee\u7684\u8f93\u51fa\u4f7f\u6211\u975e\u5e38\u7684\u56f0\u60d1\uff1a \u8f93\u51fa\u4e00\u884c\u4e00\u4e2a\u5b57\u7b26\u4e32 $s$ \u8868\u793a […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"_links":{"self":[{"href":"http:\/\/ggapa.net:81\/wp-json\/wp\/v2\/posts\/607"}],"collection":[{"href":"http:\/\/ggapa.net:81\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ggapa.net:81\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ggapa.net:81\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ggapa.net:81\/wp-json\/wp\/v2\/comments?post=607"}],"version-history":[{"count":23,"href":"http:\/\/ggapa.net:81\/wp-json\/wp\/v2\/posts\/607\/revisions"}],"predecessor-version":[{"id":631,"href":"http:\/\/ggapa.net:81\/wp-json\/wp\/v2\/posts\/607\/revisions\/631"}],"wp:attachment":[{"href":"http:\/\/ggapa.net:81\/wp-json\/wp\/v2\/media?parent=607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ggapa.net:81\/wp-json\/wp\/v2\/categories?post=607"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ggapa.net:81\/wp-json\/wp\/v2\/tags?post=607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}