{"id":469,"date":"2024-05-09T09:00:00","date_gmt":"2024-05-09T01:00:00","guid":{"rendered":"https:\/\/seanxd.com\/?p=469"},"modified":"2024-05-03T22:24:31","modified_gmt":"2024-05-03T14:24:31","slug":"zerojudge-n369","status":"publish","type":"post","link":"https:\/\/seanxd.com\/en\/zerojudge-n369\/","title":{"rendered":"ZeroJudge N369: Free Services"},"content":{"rendered":"\n\n\n<p class=\"\">\u5404\u5927\u7db2\u8def\u5e73\u53f0\u70ba\u4e86\u63a8\u92b7\u81ea\u5df1\u7684\u670d\u52d9\uff0c\u6703\u7d66\u4e88\u6bcf\u652f\u5e33\u865f\u4e00\u4e9b\u514d\u8cbb\u8a66\u7528\u529f\u80fd\uff0c\u7576\u8a66\u7528\u671f\u904e\u4e86\uff0c\u5c31\u5fc5\u9808\u8981\u4ed8\u8cbb\u4f7f\u7528\uff0c\u6709\u7684\u4eba\u70ba\u4e86\u4e0d\u60f3\u4ed8\u9322\uff0c\u6703\u5275\u5efa\u8a31\u591a\u65b0\u7684\u5e33\u865f\u4f86\u4f7f\u7528\u514d\u8cbb\u7684\u529f\u80fd\uff0c\u9019\u4e9b\u4eba\u88ab\u7db2\u53cb\u89aa\u5207\u7684\u7a31\u4e4b\u70ba\u300c\u514d\u8cbb\u4ed4\u300d\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7bc4\u4f8b\u6e2c\u8cc7<\/h2>\n\n\n\n<figure class=\"wp-block-table nfd-wb-animate nfd-wb-fade-in-bottom-short\"><table class=\"has-fixed-layout\"><thead><tr><th>\u7bc4\u4f8b\u8f38\u5165<\/th><th>\u7bc4\u4f8b\u8f38\u51fa<\/th><\/tr><\/thead><tbody><tr><td>\u8f38\u5165\u7684\u7b2c\u4e00\u884c\u6709\u4e00\u500b\u6b63\u6574\u6578 N (1 &lt;= N &lt;= 2000)\uff0c\u63a5\u4e0b\u4f86\u4e0b\u6709 N \u884c\u8a3b\u518a\u64cd\u4f5c\uff0c\u6bcf\u884c\u5305\u542b\u5169\u500b\u4ee5\u7a7a\u767d\u9694\u958b\u7684\u5b57\u4e32 A \u548c B\uff0cA \u662f\u8a3b\u518a\u9019\u500b\u5e33\u865f\u6642\u6240\u4f7f\u7528\u7684 Gmail\uff0cB \u662f\u672c\u6b21\u8a3b\u518a\u7528\u6236\u8f38\u5165\u7684\u7528\u6236\u540d\uff0c\u8f38\u5165\u5b57\u4e32\u5305\u542b\u82f1\u6587\u5b57\u6bcd\u3001\u6578\u5b57\u8207\u7b26\u865f\u3002<\/td><td>\u5c0d\u65bc\u6bcf\u4e00\u7b46\u8a3b\u518a\u64cd\u4f5c\uff0c\u5982\u679c\u8a72\u4fe1\u7bb1 A \u5c1a\u672a\u88ab\u4f7f\u7528\uff0c\u8acb\u8f38\u51fa\u300cwelcome, \u300d\u52a0\u4e0a\u7528\u6236\u540d B\uff1b\u53cd\u4e4b\uff0c\u8acb\u8f38\u51fa\u7528\u6236\u540d B \u52a0\u4e0a\u300c account has been used\u300d\uff0c\u898b\u7bc4\u4f8b\u8f38\u51fa\u3002<\/td><\/tr><tr><td>4<br>aBcD_1234@gmail.com HiHi<br>@gmail.com alex0301 <br>@gmail.com HiHi<br>NotGmail M_SQRT<\/td><td>welcome, HiHi<br>welcome, alex0301<br>HiHi account has been used<br>welcome, M_SQRT<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u89e3\u984c\u601d\u8def<\/h2>\n\n\n\n<p class=\"\">\u4f7f\u7528 Map \u4f86\u5224\u65b7\u6bcf\u4e00\u500b\u4fe1\u7bb1\u6709\u6c92\u6709\u51fa\u73fe\u904e\uff0c\u5982\u679c Map[\u4fe1\u7bb1] \u662f 0 \u7684\u8a71\uff0c\u4ee3\u8868\u9019\u500b\u4fe1\u7bb1\u6c92\u6709\u88ab\u8a3b\u518a\u904e\uff0c\u5982\u679c Map[\u4fe1\u7bb1] \u4e0d\u662f 0\uff0c\u5c31\u4ee3\u8868\u9019\u500b\u4fe1\u7bb1\u5df2\u7d93\u88ab\u8a3b\u518a\u904e\u4e86\u3002\u6bcf\u6b21\u5224\u65b7\u5b8c\u4e4b\u5f8c\u90fd\u8981\u8a18\u5f97\u5c07 Map[\u4fe1\u7bb1]++\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7bc4\u4f8b\u7a0b\u5f0f\u78bc\uff0d<a href=\"https:\/\/zerojudge.tw\/ShowProblem?problemid=n369\" target=\"_blank\" rel=\"noreferrer noopener\">ZeroJudge N369: \u514d\u8cbb\u4ed4<\/a><\/h3>\n\n\n\n<div class=\"hcb_wrap nfd-wb-animate nfd-wb-reveal-right nfd-delay-50\"><pre class=\"prism line-numbers lang-cpp\" data-lang=\"C++\"><code>#include &lt;iostream&gt;\n#include &lt;map&gt;\nusing namespace std;\n\nint main() {\n    cin.sync_with_stdio(0);\n    cin.tie(0);\n    int N;\n    cin &gt;&gt; N;\n    map&lt;string, int&gt;MAP;\n    for (int i = 0; i&lt;N; i++)\n    {\n        string a, b;\n        cin &gt;&gt; a &gt;&gt; b;\n        if (MAP[a] == 0) cout &lt;&lt; &quot;welcome, &quot; &lt;&lt; b &lt;&lt; &quot;\\n&quot;;\n        else cout &lt;&lt; b &lt;&lt; &quot; account has been used\\n&quot;;\n        MAP[a]++;\n    }\n}\n\n\/\/ZeroJudge N369\n\/\/Dr. SeanXD<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5404\u5927\u7db2\u8def\u5e73\u53f0\u70ba\u4e86\u63a8\u92b7\u81ea\u5df1\u7684\u670d\u52d9\uff0c\u6703\u7d66\u4e88\u6bcf\u652f\u5e33\u865f\u4e00\u4e9b\u514d\u8cbb\u8a66\u7528\u529f\u80fd\uff0c\u7576\u8a66\u7528\u671f\u904e\u4e86\uff0c\u5c31\u5fc5\u9808\u8981\u4ed8\u8cbb\u4f7f\u7528\uff0c\u6709\u7684\u4eba\u70ba\u4e86\u4e0d\u60f3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"categories":[29],"tags":[14,8,11,9],"class_list":["post-469","post","type-post","status-publish","format-standard","hentry","category-zerojudge-","tag-map","tag-8","tag-11","tag-9"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/seanxd.com\/en\/wp-json\/wp\/v2\/posts\/469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seanxd.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/seanxd.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/seanxd.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/seanxd.com\/en\/wp-json\/wp\/v2\/comments?post=469"}],"version-history":[{"count":1,"href":"https:\/\/seanxd.com\/en\/wp-json\/wp\/v2\/posts\/469\/revisions"}],"predecessor-version":[{"id":470,"href":"https:\/\/seanxd.com\/en\/wp-json\/wp\/v2\/posts\/469\/revisions\/470"}],"wp:attachment":[{"href":"https:\/\/seanxd.com\/en\/wp-json\/wp\/v2\/media?parent=469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/seanxd.com\/en\/wp-json\/wp\/v2\/categories?post=469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/seanxd.com\/en\/wp-json\/wp\/v2\/tags?post=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}