{"id":1073,"date":"2011-05-08T12:58:48","date_gmt":"2011-05-08T04:58:48","guid":{"rendered":"http:\/\/blog.axqd.net\/?p=1073"},"modified":"2011-05-08T12:58:48","modified_gmt":"2011-05-08T04:58:48","slug":"google-code-jam-2011-qualification","status":"publish","type":"post","link":"https:\/\/blog.axqd.net\/?p=1073","title":{"rendered":"Google Code Jam 2011 (Qualification)"},"content":{"rendered":"<p><a href=\"https:\/\/blog.axqd.net\/2009\/09\/04\/google-code-jam-2009-qualification\/\">\u4e66\u63a5\u4e0a\u7bc7<\/a><\/p>\n<p>1. [84%\/98%] Bob Trust: \u4e24\u4e2a\u673a\u5668\u4eba\u5e76\u884c\u4f9d\u6b21\u6309\u94ae<\/p>\n<p>\u7531\u4e8e\u8981\u4f9d\u6b21\u6309\u94ae\uff0c\u6240\u4ee5\u5e76\u884c\u80fd\u8282\u7701\u7684\u65f6\u95f4\uff0c\u53ea\u6709\u53e6\u5916\u4e00\u4e2a\u673a\u5668\u4eba\u79fb\u52a8\u7684\u65f6\u95f4\uff0c\u800c\u5b83\u6309\u94ae\u7684\u90a3\u4e00\u79d2\u949f\u662f\u4e0d\u80fd\u8282\u7701\u7684\u3002<\/p>\n<p>2. [87%\/82%] Magicka\uff1a\u4f9d\u6b21\u5408\u5e76\u6216\u8005\u6e05\u9664\u5143\u7d20<\/p>\n<p>\u7531\u4e8e\u5373\u4f7f\u662f\u5927\u6570\u636e\u96c6\uff0c\u5408\u5e76\u5217\u8868\u548c\u51b2\u7a81\u5217\u8868\u4e2a\u6570\u4e5f\u4e0d\u8fc736\u548c28\uff0c\u6240\u4ee5\u6700\u597d\u76f4\u63a5\u628a\u8fd9\u4e24\u4e2a\u5217\u8868\u53cd\u5411\u6765\u8fdb\u884c\u5339\u914d\uff0c\u800c\u4e0d\u662f\u5728\u540e\u9762\u7684\u5339\u914d\u6d4b\u8bd5\u4e2d\u53bb\u6b63\u53cd\u6d4b\u8bd5\u4e24\u904d\u3002<br \/>\n\u53e6\u5916\u6ce8\u610f\u5148\u5408\u5e76\uff0c\u540e\u5224\u51b2\u7a81\u3002<\/p>\n<p>3. [90%\/85%] Candy Splitting\uff1a\u52a0\u6cd5\u6539\u5f02\u6216<\/p>\n<p>\u6309\u9898\u76ee\u53d9\u8ff0\uff0c\u4e0d\u96be\u53d1\u73b0Patrick\u7684\u9519\u8bef\u52a0\u6cd5\u771f\u503c\u8868\u4e0e\u5f02\u6216XOR\u8fd0\u7b97\u76f8\u540c\u3002\u7531\u4e8e\u6ca1\u6709\u8fdb\u4f4d\uff0c\u53ef\u4ee5\u5355\u72ec\u770b\u6bcf\u4e2a\u4e8c\u8fdb\u5236\u4f4d\u3002<br \/>\n\u5982\u679c\u67d0\u4e00\u4e2a\u4e8c\u8fdb\u5236\u4f4d\u4e0a\uff0c1\u7684\u4e2a\u6570\u4e3a\u5947\u6570\uff0c\u5219\u65e0\u8bba\u5982\u4f55\u5212\u5206\uff0c\u90fd\u4e0d\u53ef\u80fd\u4f7f\u5f97\u6700\u540e\u5f02\u6216\u7ed3\u679c\u76f8\u7b49\u3002<br \/>\n\u5982\u679c1\u7684\u4e2a\u6570\u4e3a\u5076\u6570\uff0c\u5219\u53ef\u4ee5\u4efb\u610f\u5212\u5206\uff0c\u4f46\u9700\u8981\u4fdd\u8bc1\u53ef\u601c\u7684Patrick\u81f3\u5c11\u5206\u5230\u4e00\u4e2a\u7cd6\u679c\u3002<br \/>\n\u6240\u4ee5\u6392\u5e8f\u540e\u53d6\u6700\u5c0f\u7684\u6570\u7ed9Patrick\uff0c\u5176\u4ed6\u7684\u5168\u90e8\u7559\u7ed9Sean\u3002<\/p>\n<p>4. [58%\/97%] GoroSort\uff1a\u6982\u7387\u6392\u5e8f<\/p>\n<p>\u9996\u5148\u6ce8\u610f\uff0c\u4e0b\u9762\u8fd9\u4e2aSmallest\u7684\u6761\u4ef6\u5f88\u5bb9\u6613\u88ab\u5ffd\u7565\u6389\uff1a<br \/>\nThe second line of each test case will contain a permutation of the N <span style=\"text-decoration: underline;\"><strong>smallest<\/strong><\/span> positive integers.<\/p>\n<p>\u7136\u540e\u7531\u4e8e\u6bcf\u4e2a\u6570\u90fd\u5df2\u7ecf\u77e5\u9053\u6700\u540e\u9700\u8981\u6240\u5728\u7684\u4f4d\u7f6e\uff0c\u6240\u4ee5\u6392\u9664\u6389\u5df2\u7ecf\u5728\u76ee\u6807\u4f4d\u7f6e\u7684\u60c5\u51b5\uff0c\u5176\u4ed6\u7684\u6bcfhit\u4e00\u6b21\uff0c\u67091\/2\u7684\u673a\u4f1a\u56de\u5230\u6b63\u5e38\u7684\u4f4d\u7f6e\uff0c\u518d\u52a0\u4e0a\uff0c\u5360\u636e\u73b0\u6709\u4f4d\u7f6e\u7684\u90a3\u4e2a\u6570\uff0c\u4ee5\u540e\u4f1a\u67091\/2\u7684\u673a\u4f1a\u56de\u5230\u5b83\u81ea\u5df1\u7684\u4f4d\u7f6e\uff0c\u6240\u4ee5\u53ea\u9700\u8981\u6bcf\u4e2a\u4e0d\u5728\u76ee\u6807\u4f4d\u7f6e\u7684\u6570\u4e0a\u7d2f\u8ba1\u52a0\u4e00\u5c31\u80fd\u5f97\u51fa\u7ed3\u679c\u3002<\/p>\n<p>\u8fd9\u9898\u6700\u6328\u6253\u7684\uff0c\u5c31\u662f\u90a3\u4e2a%.6lf\u3002 \u6211\u662f\u7528\u6574\u6570\u8868\u793a\uff0c\u7136\u540e\u540e\u9762\u52a06\u4e2a0\u3002\u8fd9\u4e2a\u5b9e\u5728\u592a\u8bef\u5bfc\u4e86\uff0c\u8ba9\u4eba\u4ee5\u4e3a\u4f1a\u8ba1\u7b97\u5f88\u590d\u6742\u7684\u6982\u7387\u3002<\/p>\n<p>PS \u6700\u540e\uff0c\u8fd9\u6b21\u7684<a href=\"https:\/\/code.google.com\/p\/codejam-commandline\/\">GCJ Command Line Tool<\/a>\u8fd8\u86ee\u597d\u7528\u7684\uff0c\u5475\u5475~<\/p>\n<p><a href=\"https:\/\/blog.axqd.net\/wp-content\/uploads\/2011\/05\/GCJ_Qualification_Round_2011.zip\">GCJ 2011 Qualification Round Solution Download<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e66\u63a5\u4e0a\u7bc7 1. [84%\/98%] Bob Trust: \u4e24\u4e2a\u673a\u5668\u4eba\u5e76\u884c\u4f9d\u6b21\u6309\u94ae \u7531\u4e8e\u8981\u4f9d\u6b21\u6309\u94ae\uff0c\u6240\u4ee5\u5e76\u884c\u80fd\u8282 &hellip; <a href=\"https:\/\/blog.axqd.net\/?p=1073\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cGoogle Code Jam 2011 (Qualification)\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[71,73],"class_list":["post-1073","post","type-post","status-publish","format-standard","hentry","category-tech","tag-google","tag-google-code-jam"],"_links":{"self":[{"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/posts\/1073","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1073"}],"version-history":[{"count":0,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=\/wp\/v2\/posts\/1073\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.axqd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.axqd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}