{"id":5481,"date":"2024-01-07T02:19:53","date_gmt":"2024-01-06T17:19:53","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=5481"},"modified":"2024-01-07T02:19:54","modified_gmt":"2024-01-06T17:19:54","slug":"2024-1-6","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2024-1-6\/","title":{"rendered":"2024\/1\/6(\u571f)"},"content":{"rendered":"\n<p>transiruby\u3092\u3084\u3063\u3066\u3044\u305f\u3002\u666e\u901a\u306b\u30de\u30c3\u30d7\u304c\u5e83\u304f\u3066\u4e16\u754c\u89b3\u304c\u3042\u3063\u3066\u826f\u3044\u3002\u795e\u5deb\u5973\u3068\u30a8\u30d5\u30a7\u30af\u30c8\u3068\u304b\u6575\u30ad\u30e3\u30e9\u3068\u304b\u4f7f\u3044\u307e\u308f\u3057\u3059\u304e\u307f\u305f\u3044\u306a\u611f\u60f3\u3092\u6700\u521d\u6301\u3063\u3066\u3044\u305f\u304c\u3001\u307e\u3055\u304b\u306e\u30e4\u30de\u30c8\u304c\u51fa\u3066\u304d\u305f\u306e\u3067\u3001\u3069\u3061\u3089\u304b\u3068\u3044\u3046\u3068\u30b9\u30bf\u30fc\u30b7\u30b9\u30c6\u30e0\u7684\u306a\u30a2\u30ec\u304b\u3082\u3057\u304f\u306f\u4e16\u754c\u89b3\u5171\u901a\u307e\u3067\u3042\u308a\u3046\u308b\u3002\u3069\u3046\u3044\u3046\u7acb\u3061\u4f4d\u7f6e\u306a\u3093\u3060\u308d\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>ABC335\u306b\u51fa\u305f\u3002E\u3067\u5909\u306a\u30df\u30b9\u3092\u3057\u3066\u6642\u9593\u3092\u6eb6\u304b\u3059\u3068\u3053\u308d\u3060\u3063\u305f\u304c\u3001\u6c17\u6301\u3061\u3092\u5207\u308a\u66ff\u3048\u3066F\u3092\u89e3\u3044\u305f\u4e0a\u3067\u843d\u3061\u7740\u3044\u3066\u30c7\u30d0\u30c3\u30b0\u3057\u305f\u3089E\u3082\u901a\u305b\u305f\u3002\u672c\u5f53\u306f\u5909\u306a\u30df\u30b9\u3092\u3057\u306a\u3044\u306e\u304c\u7406\u60f3\u3067\u306f\u3042\u308b\u304c\u3001\u30ea\u30ab\u30d0\u30ea\u3067\u304d\u305f\u306e\u306f\u3067\u304d\u305f\u306e\u3067\u826f\u3044\u3053\u3068\u3002<\/p>\n\n\n\n<p>A: \u3084\u308b\u3060\u3051<\/p>\n\n\n\n<p>B: 21^3\u5168\u63a2\u7d22<\/p>\n\n\n\n<p>C: \u9762\u5012\u306a\u306e\u3067vector\u306b\u6b21\u306e\u982d\u306e\u4f4d\u7f6e\u3092\u6b21\u3005\u8a70\u3081\u8fbc\u3093\u3067\u3044\u3063\u305f\u3002\u5225\u306b\u5f8b\u7fa9\u306b\u5c3e\u3092\u9664\u304f\u5fc5\u8981\u306f\u306a\u3044\u3002<\/p>\n\n\n\n<p>D: \u3050\u308b\u3050\u308b\u3055\u305b\u308c\u3070\u3088\u3044\u3002\u5b9f\u88c5\u3068\u3057\u3066\u306f\u58c1or\u3059\u3067\u306b\u66f8\u304d\u8fbc\u3093\u3060\u30de\u30b9\u306b\u5f53\u305f\u3063\u305f\u308990\u5ea6\u65b9\u5411\u8ee2\u63db\u3068\u3044\u3046\u5f62\u306b\u3057\u305f\u3002<\/p>\n\n\n\n<p>E: BFS\u3068\u3044\u3046\u304b\u5909\u5247\u7684\u306a\u30c0\u30a4\u30af\u30b9\u30c8\u30e9\u3068\u3044\u3046\u304bDP\u3068\u3044\u3046\u304b\u3002\u3069\u3046\u305b\u6570\u5b57\u306e\u5927\u304d\u3044\u9802\u70b9\u304b\u3089\u5c0f\u3055\u3044\u9802\u70b9\u306b\u9077\u79fb\u3059\u308b\u3053\u3068\u306f\u306a\u3044\u306e\u3067\u3001\u512a\u5148\u5ea6\u4ed8\u304d\u30ad\u30e5\u30fc\u306b(\u9802\u70b9\u306e\u6570\u5b57, \u9802\u70b9)\u306e\u7d44\u3092\u5165\u308c\u3066\u6700\u5927\u7a2e\u985e\u6570\u3092\u30e1\u30e2\u3063\u3066\u3084\u3063\u3066\u3044\u3063\u305f\u3002\u5c11\u3057\u554f\u984c\u306b\u306a\u308b\u306e\u306f\u540c\u3058\u6570\u5b57\u304c\u66f8\u3044\u3066\u3042\u308b\u9802\u70b9\u306e\u9077\u79fb\u3067\u3001\u305d\u3053\u306f\u7a2e\u985e\u6570\u3092\u5897\u3084\u3055\u305a\u9077\u79fb\u3055\u305b\u305f\u3002<\/p>\n\n\n\n<p>\u300c\u96a3\u63a5\u9802\u70b9\u3067\u306e\u6700\u5927\u7a2e\u985e\u6570\u3092\u66f4\u65b0\u3059\u308b\u306a\u3089\u30ad\u30e5\u30fc\u306b\u8ffd\u52a0\u300d\u3068\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u306e\u5b9f\u88c5\u3092\u30df\u30b9\u3063\u3066\u6642\u9593\u3092\u98df\u3063\u3066\u3057\u307e\u3063\u305f\u3002<code>if(nowvalue &lt; newvalue) nowvalue = newvalue<\/code>\u3068\u3059\u3079\u304d\u3068\u3053\u308d\u3092<code>if(nowvalue != newvalue) nowvalue = newvalue<\/code>\u3068\u3057\u3066\u3044\u305f\u3002chmax&amp;\u5909\u5316\u304c\u8d77\u304d\u308b\u306a\u3089\u4f55\u304b\u3059\u308b\u3001\u3068\u3044\u3046\u51e6\u7406\u306f\u3061\u3087\u3053\u3061\u3087\u3053\u3084\u308b\u304c\u3001\u3044\u3044\u611f\u3058\u306e\u66f8\u304d\u65b9\u306f\u306a\u3044\u3082\u306e\u304b\u3002<\/p>\n\n\n\n<p>F: \u3042\u3093\u307e\u308a\u8907\u96d1\u306a\u3053\u3068\u306f\u3057\u306a\u3044\u3002\u5857\u308a\u65b9\u306e\u30d1\u30bf\u30fc\u30f3\u306f\u79fb\u52d5\u306e\u4ed5\u65b9\u306e\u30d1\u30bf\u30fc\u30f3\u30681\u5bfe1\u306b\u5bfe\u5fdc\u3059\u308b\u306e\u3067\u3001\u79fb\u52d5\u306e\u4ed5\u65b9\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u6570\u3048\u308c\u3070\u3088\u3044\u3002\u5404\u30de\u30b9\u304b\u3089\u914d\u308bDP\u3092\u3059\u308c\u3070\u3088\u3044\u306e\u3060\u304c\u3001\u3053\u308c\u3060\u3068$\\sum N\/A_i$\u304b\u304b\u3063\u3066\u3057\u307e\u3046\u3002\u305d\u3053\u3067\u3001\u540c\u3058\u5024\u3092\u6301\u3064$A_i$\u306f\u307e\u3068\u3081\u3066\u51e6\u7406\u3057\u3066\u3057\u307e\u3044\u305f\u3044\u3002\u305d\u308c\u3055\u3048\u3067\u304d\u308c\u3070<s>\u8abf\u548c\u7d1a\u6570\u3067$O(N\\log N)$\u306b\u306a\u308b\u3002<\/s>\u3088\u304f\u8003\u3048\u305f\u3089\u540c\u3058\u5024\u3092\u6301\u3064$A_i$\u304c\u3042\u3063\u3066\u3082\u98db\u3073\u8d8a\u3048\u3066\u3057\u307e\u3046\u5834\u5408\u3092\u8003\u3048\u3066\u306a\u304b\u3063\u305f\u3002\u89e3\u8aac\u3092\u8aad\u3080\u9650\u308a\u8a08\u7b97\u91cf$O(N\\sqrt{N})$\u306a\u306e\u304b\uff1f\u3042\u307e\u308a\u7406\u89e3\u3057\u3066\u3044\u306a\u3044\u2026<\/p>\n\n\n\n<p>\u300c\u81ea\u5206\u81ea\u8eab\u306b\u5230\u9054\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u6570\u300d\u3068\u300c\u540c\u3058\u5024\u3092\u6301\u3064\u524d\u306e\u30de\u30b9\u304b\u3089\u914d\u308b\u306e\u3092\u59d4\u4efb\u3055\u308c\u305f\u30d1\u30bf\u30fc\u30f3\u6570\u300d\u3092\u305d\u308c\u305e\u308c\u6301\u3063\u3066\u3044\u3044\u611f\u3058\u306b\u3057\u305f\u3002\u3082\u3063\u3068\u3044\u3044\u8a00\u8449\u3067\u6574\u7406\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u3093\u304c\u3081\u3093\u3069\u3044\u3002<\/p>\n\n\n\n<p>G: \u4f4d\u6570\u3001\u539f\u59cb\u6839\u3068\u3044\u3046\u30ef\u30fc\u30c9\u306f\u6d6e\u304b\u3093\u3060\u304c\u89e3\u3051\u305a\u3002\u539f\u59cb\u6839\u3092\u6c42\u3081\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u30b0\u30b0\u3063\u3066\u9811\u5f35\u3063\u3066\u5b9f\u88c5\u3057\u3066\u3044\u305f\u304c\u3001\u3088\u304f\u8003\u3048\u308c\u3070\u4f4d\u6570\u3055\u3048\u6c42\u307e\u308c\u3070\u5341\u5206\u3060\u3063\u305f\u3002\u4f4d\u6570\u304c\u500d\u6570(\u7d04\u6570)\u306e\u95a2\u4fc2\u306a\u3089\u884c\u3051\u308b\u3068\u3044\u3046\u306e\u306f\u89e3\u8aac\u3092\u8aad\u3093\u3067\u6c17\u4ed8\u3044\u305f\u3002\u3060\u3044\u305f\u3044\u89e3\u3051\u305f\u304c\u3001\u4f4d\u6570\u3092\u9ad8\u901f\u306b\u6c42\u3081\u308b\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u3088\u304f\u5206\u304b\u3089\u306a\u304f\u3066AC\u304c\u3068\u308c\u306a\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>transiruby\u3092\u3084\u3063\u3066\u3044\u305f\u3002\u666e\u901a\u306b\u30de\u30c3\u30d7\u304c\u5e83\u304f\u3066\u4e16\u754c\u89b3\u304c\u3042\u3063\u3066\u826f\u3044\u3002\u795e\u5deb\u5973\u3068\u30a8\u30d5\u30a7\u30af\u30c8\u3068\u304b\u6575\u30ad\u30e3\u30e9\u3068\u304b\u4f7f\u3044\u307e\u308f\u3057\u3059\u304e\u307f\u305f\u3044\u306a\u611f\u60f3\u3092\u6700\u521d\u6301\u3063\u3066\u3044\u305f\u304c\u3001\u307e\u3055\u304b\u306e\u30e4\u30de\u30c8\u304c\u51fa\u3066\u304d\u305f\u306e\u3067\u3001\u3069\u3061\u3089\u304b\u3068\u3044\u3046\u3068\u30b9\u30bf\u30fc\u30b7\u30b9\u30c6\u30e0\u7684\u306a\u30a2 &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2024-1-6\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2024\/1\/6(\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-5481","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/5481","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=5481"}],"version-history":[{"count":2,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/5481\/revisions"}],"predecessor-version":[{"id":5483,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/5481\/revisions\/5483"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=5481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=5481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=5481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}