{"id":2633,"date":"2022-04-20T22:49:57","date_gmt":"2022-04-20T13:49:57","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=2633"},"modified":"2022-04-20T22:49:57","modified_gmt":"2022-04-20T13:49:57","slug":"2022-4-20%e6%b0%b4","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2022-4-20%e6%b0%b4\/","title":{"rendered":"2022\/4\/20(\u6c34)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u6628\u65e5\u306f\u7af6\u30d7\u30ed\u306e\u554f\u984c\u306b\u5922\u4e2d\u306b\u306a\u308a\u3059\u304e\u305f\u305b\u3044\u3067\u304b\u306a\u308a\u591c\u66f4\u304b\u3057\u3092\u3057\u3066\u3057\u307e\u3044\u3001\u4eca\u671d\u306f10\u6642\u304f\u3089\u3044\u307e\u3067\u5bdd\u3066\u3057\u307e\u3063\u305f\u3002\u307b\u3069\u307b\u3069\u306b\u305b\u306d\u3070\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u6628\u65e5\u30cf\u30e0\u3092\u713c\u3044\u305f\u30d5\u30e9\u30a4\u30d1\u30f3\u3092\u898b\u305f\u3089\u6cb9\u3068\u3044\u3046\u3088\u308a\u300c\u8102\u300d\u3067\u3079\u3068\u3063\u3068\u3057\u3066\u3044\u305f\u306e\u3067\u3088\u304f\u6d17\u3063\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9244\u30d1\u30f3\u3092\u3064\u304b\u3063\u3066\u3044\u308b\u306e\u3067\u6cb9\u3092\u3042\u307e\u308a\u904e\u5ea6\u306b\u843d\u3068\u3057\u904e\u304e\u306a\u3044\u3088\u3046\u306b\u3001\u3044\u3064\u3082\u6d17\u3046\u6642\u306f\u8efd\u304f\u6c5a\u308c\u3092\u843d\u3068\u3059\u7a0b\u5ea6\u306b\u3057\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u8102\u306f\u3084\u306f\u308a\u6cb9\u3068\u306f\u5225\u7269\u3060\u306a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u904e\u53bb\u306b\u30bd\u30fc\u30bb\u30fc\u30b8\u3092\u713c\u3044\u305f\u3042\u3068\u3067\u30d5\u30e9\u30a4\u30d1\u30f3\u304c\u3079\u3063\u3068\u308a\u3057\u3066\u3044\u308b\u306e\u3092\u898b\u3066\u3001\u300c\u3053\u306e\u6cb9\u8102\u5206\u3067\u5375\u713c\u3044\u305f\u3089\u3069\u3046\u306a\u308b\u3093\u3060\u308d\u3046\u300d\u3068\u601d\u3063\u3066\u5b9f\u9a13\u3057\u305f\u3089\u306f\u3061\u3083\u3081\u3061\u3083\u306b\u7126\u3052\u4ed8\u3044\u305f\u3068\u3044\u3046\u7d4c\u9a13\u304c\u3042\u308b\u306e\u3067\u305d\u308c\u3067\u5b66\u3093\u3060\u3002\u8102\u306f\u3057\u3063\u304b\u308a\u843d\u3068\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u65e5\u89e3\u3044\u305f\u7af6\u30d7\u30ed\u306e\u554f\u984c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ABC248<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A: 0\u304b\u30899\u307e\u3067\u305d\u308c\u305e\u308c\u306b\u3064\u3044\u3066\u6587\u5b57\u5217\u5168\u4f53\u3092\u8d70\u67fb\u3059\u308c\u30709\u00d710\u306e90\u56de\u4ee5\u5185\u3067\u898b\u3064\u304b\u308b\u3002set\u306a\u3069\u3092\u5229\u7528\u3059\u308c\u3070O(NlogN)\u306b\u3082\u306a\u308d\u3046\u304c\u3001\u3081\u3093\u3069\u304b\u3063\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">B: \u3084\u308b\u3060\u3051\u3002$A,B,K\\leq 10^9$\u306a\u306e\u3067\u3001\u639b\u3051\u7b97\u3067\u30aa\u30fc\u30d0\u30fc\u30d5\u30ed\u30fc\u3059\u308b\u5fc3\u914d\u306f\u306a\u3044\u3002\u3057\u304b\u3057\u3059\u306c\u3051\u304f\u3093\u306f\u3044\u3061\u3044\u3061\u53eb\u3076\u306e\u304b\u2026<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">C: \u3069\u306e\u8981\u7d20\u307e\u3067\u898b\u305f\u304b\u3068\u7dcf\u548c\u306e\u5024\u3092\u6301\u3064DP\u3067\u7d42\u308f\u308a\u3002$O(NMK)$\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">D: \u8981\u7d20\u306e\u7a2e\u985e\u3054\u3068\u306b\u4f4d\u7f6e\u3092\u6301\u3063\u3066\u306b\u3076\u305f\u3093\u3059\u308c\u3070\u7a7a\u9593$O(N)$\u306e\u6642\u9593$O(Q\\log N)$\u3067\u89e3\u3051\u308b\u3002\u3053\u3046\u3044\u3046\u306e\u30b9\u30d1\u3063\u3068\u89e3\u3051\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u5b09\u3057\u3044\u306a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">E: K=1\u306a\u3089Infinity\u3002K\u22672\u306e\u5834\u5408\u3001\u3042\u308a\u3046\u308b\u76f4\u7dda\u306e\u6570\u306fnC2\u4ee5\u4e0b\u306a\u306e\u3067\u5168\u5217\u6319\u3057\u3066\u8abf\u3079\u308c\u3070OK\u3002\u5404\u76f4\u7dda\u306b\u3064\u3044\u3066$O(N)$\u3067\u3069\u306e\u70b9\u304c\u901a\u308b\u304b\u8abf\u3079\u3089\u308c\u308b\u306e\u3067\u3001\u5168\u4f53$O(N^3)$\u3067\u89e3\u3051\u308b\u3002\u30c6\u30ec\u30d3\u3092\u898b\u306a\u304c\u3089\u3084\u3063\u3066\u305f\u3089\u6570\u5f0f\u51e6\u7406\u306b\u624b\u9593\u53d6\u3063\u305f\u3002\u7247\u624b\u9593\u3067\u3084\u308b\u3082\u3093\u3058\u3083\u306a\u3044\u306a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">F: \u307e\u3060\u89e3\u3051\u3066\u306a\u3044\u304c\u3001\u30b0\u30e9\u30d5\u306e\u7279\u6b8a\u6027\u3092\u4f7f\u3048\u3070$O(N^2)$\u3067\u89e3\u3051\u305d\u3046\u306b\u898b\u3048\u308b\u3002\u5168\u4f53\u304c\u9023\u7d50\u3067\u3042\u308b\u305f\u3081\u306b\u306f\u3001\u8fbai\u3068\u8fba(N-1+i)\u304c\u540c\u6642\u306b\u5207\u308c\u3066\u3044\u308b\u3053\u3068\u306f\u3042\u308a\u5f97\u306a\u3044\u3002\u306a\u306e\u3067\u3001\u3069\u3063\u3061\u307e\u305f\u306f\u4e21\u65b9\u3092\u3064\u306a\u3052\u308b\u304b+\u7e26\u306e\u8fba\u3092\u7e4b\u3052\u308b\u304b\u3060\u3051\u8003\u3048\u308c\u3070\u9077\u79fb\u3057\u3066\u3044\u3051\u308b\u3002\u300c\u5de6\u304b\u3089\u9806\u756a\u306b\u3069\u3053\u307e\u3067\u898b\u305f\u304b\u300d\u3068\u300c\u7e4b\u3052\u305f\u8fba\u306e\u6570\u300d\u3092\u6301\u3066\u3070$O(N^2)$\u306eDP\u3067\u591a\u5206\u89e3\u3051\u308b\u304c\u3001\u7d30\u304b\u3044\u90e8\u5206\u304c\u8a70\u3081\u3089\u308c\u3066\u306a\u3044\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u6563\u6b69\u3057\u305f\u3002\u666e\u6bb5\u3042\u307e\u308a\u901a\u3089\u306a\u3044\u9053\u3092\u63a2\u691c\u3057\u305f\u306e\u3060\u304c\u3001\u304b\u306a\u308a\u5e83\u3044\u901a\u308a\u306e\u5b58\u5728\u3092\u65b0\u305f\u306b\u77e5\u3063\u305f\u3002\u5730\u5143\u306e\u753a\u3067\u3082\u6570km\u3082\u96e2\u308c\u308b\u3068\u77e5\u3089\u306a\u3044\u3053\u3068\u306f\u3042\u308b\u3082\u306e\u3060\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9014\u4e2d\u3001\u9244\u68d2\u306e\u3042\u308b\u516c\u5712\u3092\u898b\u3064\u3051\u305f\u306e\u3067\u3001\u306a\u3093\u3068\u306a\u304f\u9006\u4e0a\u304c\u308a\u3092\u3084\u3063\u305f\u3002\u51fa\u6765\u308b\u304b\u306a\uff5e\u3068\u601d\u3063\u3066\u3084\u308d\u3046\u3068\u601d\u3063\u305f\u3089\u5272\u3068\u666e\u901a\u306b\u884c\u3051\u305f\u3002\u6614\u3084\u3063\u305f\u3068\u304d\u306f\u5168\u304f\u51fa\u6765\u306a\u304b\u3063\u305f\u8a18\u61b6\u304c\u3042\u308b\u306e\u3060\u304c\u3001\u5358\u306b\u6210\u9577\u3057\u305f\u305b\u3044\u3060\u308d\u3046\u304b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u666e\u901a\u306b\u884c\u3051\u305f\u3068\u601d\u3063\u305f\u306e\u3060\u304c\u3084\u3063\u305f\u3042\u3068\u8179\u3068\u53f3\u80a9\u304c\u75db\u304f\u306a\u3063\u305f\u3002\u591a\u5206\u30d5\u30a9\u30fc\u30e0\u3068\u304b\u304c\u3042\u307e\u308a\u7dba\u9e97\u3067\u306a\u3044\u306e\u3060\u308d\u3046\u306a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u826f\u3055\u3052\u306a\u30d1\u30f3\u5c4b\u306a\u3069\u3082\u767a\u898b\u3057\u305f\u306e\u3067\u3044\u304f\u3064\u304b\u30d1\u30f3\u3092\u8cb7\u3063\u305f\u3002\u660e\u65e5\u306e\u671d\u98df\u3079\u3088\u3046\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u8155\u7acb\u3066\u3092\u3084\u3063\u305f\u3002\u6628\u65e5\u306f\u30b9\u30af\u30ef\u30c3\u30c8\u3092\u3084\u3063\u305f\u306e\u3067\u3001\u518d\u3073\u7d9a\u3051\u308b\u7fd2\u6163\u304c\u3067\u304d\u308c\u3070\u3044\u3044\u306a\u3068\u601d\u3063\u3066\u3044\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6628\u65e5\u306f\u7af6\u30d7\u30ed\u306e\u554f\u984c\u306b\u5922\u4e2d\u306b\u306a\u308a\u3059\u304e\u305f\u305b\u3044\u3067\u304b\u306a\u308a\u591c\u66f4\u304b\u3057\u3092\u3057\u3066\u3057\u307e\u3044\u3001\u4eca\u671d\u306f10\u6642\u304f\u3089\u3044\u307e\u3067\u5bdd\u3066\u3057\u307e\u3063\u305f\u3002\u307b\u3069\u307b\u3069\u306b\u305b\u306d\u3070\u3002 \u6628\u65e5\u30cf\u30e0\u3092\u713c\u3044\u305f\u30d5\u30e9\u30a4\u30d1\u30f3\u3092\u898b\u305f\u3089\u6cb9\u3068\u3044\u3046\u3088\u308a\u300c\u8102\u300d\u3067\u3079\u3068\u3063\u3068\u3057\u3066\u3044\u305f\u306e\u3067\u3088\u304f\u6d17\u3063\u305f\u3002 \u9244\u30d1\u30f3 &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2022-4-20%e6%b0%b4\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2022\/4\/20(\u6c34)&#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-2633","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/2633","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=2633"}],"version-history":[{"count":7,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/2633\/revisions"}],"predecessor-version":[{"id":2642,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/2633\/revisions\/2642"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=2633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=2633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=2633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}