{"id":4298,"date":"2023-03-12T00:06:02","date_gmt":"2023-03-11T15:06:02","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=4298"},"modified":"2023-03-12T00:18:02","modified_gmt":"2023-03-11T15:18:02","slug":"2023-3-11","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2023-3-11\/","title":{"rendered":"2023\/3\/11(\u571f)"},"content":{"rendered":"\n<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30e3\u30f3\u30d7 \u30d5\u30a9\u30fc\u30e9\u30e0\u306b\u884c\u3063\u3066\u304d\u305f\u3002\u5f37\u3044\u4eba\u3068\u8a71\u305b\u3066\u3088\u304b\u3063\u305f\u3002\u540d\u523a\u3092\u8cb0\u3044\u307e\u304f\u3063\u305f\u306e\u3067\u6b21\u306f\u540d\u523a\u3092\u4f5c\u3063\u3066\u3044\u304d\u305f\u3044\u3002<\/p>\n\n\n\n<p>\u767b\u5927\u904a\u3055\u3093\u521d\u3081\u3066\u9593\u8fd1\u3067\u898b\u308c\u3066\u3088\u304b\u3063\u305f\u30fc\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>ABC293\u306b\u53c2\u52a0\u3057\u305f\u3002<\/p>\n\n\n\n<p>A: \u306a\u3093\u304b\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u304c\u611a\u76f4\u306b\u5b9f\u88c5\u3057\u305f<\/p>\n\n\n\n<p>B: \u3059\u3067\u306b\u547c\u3070\u308c\u305f\u4eba\u3092set\u3067\u7ba1\u7406\u3057\u305f\u3001bool\u5024\u914d\u5217\u3067\u826f\u304b\u3063\u305f\u304b\u3082\u3057\u308c\u306a\u3044<\/p>\n\n\n\n<p>C: \u300c\u5168\u3066\u306e\u79fb\u52d5\u306b\u3064\u3044\u3066\u79fb\u52d5\u524d\u5f8c\u306e\u30de\u30b9\u306e\u5024\u304c\u7570\u306a\u308b\u5834\u5408\u300d\u3068\u8aa4\u8aad\u3057\u305f\u3002\u8aa4\u8aad\u306b\u6c17\u3065\u3044\u305f\u5f8c\u3067Ai\u306e\u5024\u304c10^9\u306a\u3053\u3068\u306b\u7d76\u671b\u3057\u305f\u304c\u3001\u5168\u3066\u306e\u79fb\u52d5\u7d4c\u8def\u3092\u5168\u63a2\u7d22\u3057\u3066\u3082\u9593\u306b\u5408\u3046\u3053\u3068\u306b\u3059\u3050\u306b\u6c17\u3065\u3044\u3066AC\u3057\u305f\u3002\u5371\u306a\u3044\u5371\u306a\u3044\u3002<\/p>\n\n\n\n<p>D: UnionFind\u3067\u9589\u8def\u691c\u51fa\u3059\u308b\u3060\u3051\u3002\u540c\u3058\u5834\u6240\u30922\u56de\u7d50\u3076\u3088\u3046\u306a\u3044\u3058\u308f\u308b\u306f\u3057\u306a\u3044\u306e\u3067\u52a9\u304b\u3063\u305f\u3002<\/p>\n\n\n\n<p>E: \u672c\u65e5\u306e\u5927\u8ca0\u3051\u554f\u984c\u3002\u3059\u3050\u3055\u307e\u30d1\u30bf\u30fc\u30f3\u30de\u30c3\u30c1\u3067A^X-1\/A-1\u306b\u3057\u3066\u3057\u307e\u3063\u305f\u304c\u3053\u308c\u306f\u7f60\u3067\u3001A-1\u3068M\u304c\u4e92\u3044\u306b\u7d20\u3060\u3068\u3069\u3046\u306b\u3082\u306a\u3089\u306a\u3044\u30021WA\u3057\u305f\u5f8c\u3067\u300c\u591a\u5206\u306a\u3093\u304b\u5de5\u592b\u3059\u308c\u3070\u884c\u3051\u308b\u3093\u3060\u308d\u300d\u3068\u307c\u3093\u3084\u308a\u8003\u3048\u3066\u3044\u305f\u304c\u3001\u305d\u3093\u306a\u65b9\u6cd5\u306f\u672c\u5f53\u306b\u4e00\u5207\u5b58\u5728\u3057\u306a\u3044\u3002\u6b63\u89e3\u306f2\u5206\u518d\u5e30\u3067$f(A,X,M)=f(A,X\/2,M)+A^{X\/2}f(A,X\/2,M)$\u306e\u5f62\u306b\u3059\u308b\u3053\u3068\u3002\u5272\u308a\u7b97\u3092\u8ae6\u3081\u305f\u3089\u5272\u3068\u3059\u3050\u306b\u601d\u3044\u3064\u3051\u305f\u3002<\/p>\n\n\n\n<p>\u3079\u304d\u7d1a\u6570\u3078\u306e\u5f0f\u5909\u5f62\u304c\u610f\u5473\u3092\u306a\u3055\u306a\u3044\u3053\u3068\u3092\u628a\u63e1\u3057\u3066\u3044\u308c\u3070\u3059\u3050\u306b\u305d\u306e\u65b9\u91dd\u3092\u65ad\u3066\u305f\u3002\u5b8c\u5168\u306a\u52c9\u5f37\u4e0d\u8db3\u3060\u3002\u975e\u5e38\u306b\u6094\u3057\u3044\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306bmod M(A-1)\u3067\u8003\u3048\u308b\u3068\u304b\u3044\u3046\u65b9\u6cd5\u3082\u3042\u308b\u3089\u3057\u3044\u3002\u819d\u3092\u6253\u3063\u305f\u3002128\u30d3\u30c3\u30c8\u306e\u591a\u500d\u9577\u6574\u6570\u6f14\u7b97\u304c\u5fc5\u8981\u3068\u3044\u3046\u554f\u984c\u306f\u3042\u308b\u304c\u3002\u305d\u3057\u3066\u60f3\u5b9a\u89e3\u306f\u884c\u5217\u7d2f\u4e57\u3089\u3057\u3044\u3002\u3048\u3048&#8230;<\/p>\n\n\n\n<p>F: \u6b8b\u308a6\u5206\u3067\u306f\u89e3\u3051\u305a\u3002\u4e0b\u4e00\u6841\u304c0or1\u3067\u3042\u308b\u3053\u3068\u3092\u8003\u3048\u308b\u3068b\u306fN\u306e\u7d04\u6570\u304bN-1\u306e\u7d04\u6570\u3067\u3042\u308b\u3053\u3068\u304c\u5206\u304b\u308b\u3002gcd(N, N-1)=1\u306a\u306e\u3067\u88ab\u308a\u306f\u306a\u3044\u3002\u3057\u304b\u3057N\u306e\u7d04\u6570\u5168\u5217\u6319\u306f$O(\\sqrt{N})$\u306a\u306e\u3067\u9045\u3059\u304e\u308b\u3002\u4f55\u304b\u3082\u3046\u4e00\u6bb5\u901f\u304f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<p>G: \u3042\u308b\u533a\u9593\u306e\u4e2d\u306b\u3042\u308b\u540c\u3058\u6570\u5b57\u306e\u6570\u304c\u5206\u304b\u308c\u3070\u3001\u305d\u306e\u6570\u5b57\u306b\u3064\u3044\u3066\u306e3\u3064\u7d44\u306e\u6570\u306f$_xC_2$\u3068\u5206\u304b\u308b\u306e\u3060\u304c\u3001\u6570\u5b57\u306e\u7a2e\u985e\u6570\u306f\u5927\u91cf\u306b\u3042\u308b\u306e\u3067\u5404\u30af\u30a8\u30ea\u306b\u3064\u3044\u3066\u5168\u7a2e\u985e\u3092\u8a08\u7b97\u3057\u3066\u3044\u3066\u306f\u8a71\u306b\u306a\u3089\u306a\u3044\u3002\u3061\u3087\u3063\u3068\u8003\u3048\u308b\u3068\u3001\u3042\u308b\u533a\u9593\u306b\u3064\u3044\u3066\u7b54\u3048\u304c\u5206\u304b\u3063\u3066\u3044\u308c\u3070\u3001\u305d\u3053\u304b\u3089\u4f38\u3073\u7e2e\u307f\u3057\u305f\u533a\u9593\u306b\u3064\u3044\u3066\u306f\u4f38\u3073\u7e2e\u307f\u3057\u305f\u90e8\u5206\u306b\u542b\u307e\u308c\u308b\u6570\u5b57\u306b\u3088\u308b\u5dee\u3060\u3051\u8003\u3048\u308c\u3070\u3059\u3050\u306b\u6c42\u3081\u3089\u308c\u308b\u3002\u3053\u308c\u306fMo&#8217;s algorithm\u306e\u5178\u578b\u3060\u3002<\/p>\n\n\n\n<p>\u3042\u308b\u6570\u5b57\u306e\u500b\u6570\u304cC\u304b\u3089C+1\u306b\u306a\u3063\u305f\u3068\u304d\u3001$+(C+1)(C)(C-1)-C(C-1)(C-2)=3C(C-1)$\u306e\u5dee\u304c\u767a\u751f\u3059\u308b\u3002\u3053\u308c\u3067\u533a\u9593\u306e\u4f38\u3073\u7e2e\u307f\u304c\u3067\u304d\u308b\u3002\u3042\u3068\u306f\u3084\u308b\u3060\u3051\u3002<\/p>\n\n\n\n<p>\u3059\u3050\u306bMo&#8217;s\u306b\u81f3\u308c\u305f\u306e\u306f\u3088\u304b\u3063\u305f\u304c\u3001\u5358\u306a\u308b\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u3068\u30b3\u30fc\u30ca\u30fc\u30b1\u30fc\u30b9\u306b\u3088\u308b\u8a08\u7b97\u51e6\u7406\u30df\u30b9\u30672WA\u3057\u3066\u3057\u307e\u3063\u305f\u3002\u3082\u3063\u305f\u3044\u306a\u3044\u3002\u3068\u308a\u3042\u3048\u305a\u3042\u307e\u308a\u4f7f\u3044\u6163\u308c\u3066\u3044\u306a\u3044Mo&#8217;s algorithm\u3092\u672c\u756a\u3067\u601d\u3044\u3064\u3044\u3066\u901a\u305b\u305f\u306e\u306f\u826f\u304b\u3063\u305f\u3068\u601d\u3046\u3002\u3057\u304b\u3057650\u4eba\u304c\u89e3\u3044\u3066\u308b\u306e\u306f\u6050\u308d\u3057\u3044\u306a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ad\u30e3\u30f3\u30d7 \u30d5\u30a9\u30fc\u30e9\u30e0\u306b\u884c\u3063\u3066\u304d\u305f\u3002\u5f37\u3044\u4eba\u3068\u8a71\u305b\u3066\u3088\u304b\u3063\u305f\u3002\u540d\u523a\u3092\u8cb0\u3044\u307e\u304f\u3063\u305f\u306e\u3067\u6b21\u306f\u540d\u523a\u3092\u4f5c\u3063\u3066\u3044\u304d\u305f\u3044\u3002 \u767b\u5927\u904a\u3055\u3093\u521d\u3081\u3066\u9593\u8fd1\u3067\u898b\u308c\u3066\u3088\u304b\u3063\u305f\u30fc\u3002 ABC293\u306b\u53c2\u52a0\u3057\u305f\u3002 A: \u306a\u3093\u304b\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u304c\u611a\u76f4 &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2023-3-11\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2023\/3\/11(\u571f)&#8221;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4298","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/4298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/comments?post=4298"}],"version-history":[{"count":4,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/4298\/revisions"}],"predecessor-version":[{"id":4302,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/4298\/revisions\/4302"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=4298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=4298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=4298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}