{"id":3497,"date":"2022-10-04T02:18:39","date_gmt":"2022-10-03T17:18:39","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=3497"},"modified":"2022-10-04T02:18:39","modified_gmt":"2022-10-03T17:18:39","slug":"2022-10-3","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2022-10-3\/","title":{"rendered":"2022\/10\/3(\u6708)"},"content":{"rendered":"\n<p>\u4eca\u65e5\u89e3\u3044\u305f\u7af6\u30d7\u30ed\u306e\u554f\u984c\u3002<\/p>\n\n\n\n<p>ABC271<\/p>\n\n\n\n<p>A: \u3053\u3046\u3044\u3046\u306e\u306f<code>\"0123456789ABCDEF\"<\/code>\u307f\u305f\u3044\u306a\u6587\u5b57\u5217\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u3068\u5b9f\u88c5\u3057\u3084\u3059\u3044\u3002<\/p>\n\n\n\n<p>B: \u3084\u308b\u3060\u3051<\/p>\n\n\n\n<p>C: \u91cd\u8907\u5dfb\u306f\u58f2\u308b\u3060\u3051\u5f97\u306a\u306e\u3067\u3001\u6570\u3060\u3051\u6570\u3048\u3066\u304a\u304f\u3002\u4ed6\u306fstd::set\u306b\u3076\u3061\u3053\u3080\u30021\u5dfb\u304b\u3089\u9806\u306b\u306a\u3044\u3068\u610f\u5473\u304c\u306a\u3044\u306e\u3067\u3001\u91cd\u8907\u5dfb\u2192\u5f8c\u308d\u306e\u5dfb\u3001\u306e\u512a\u5148\u9806\u4f4d\u3067\u58f2\u3063\u3066\u6b21\u306e\u5dfb\u306e\u8cc7\u91d1\u6e90\u306b\u3059\u308b\u3002\u5f8c\u308d\u304b\u3089\u3068\u3063\u3066\u3044\u304f\u306e\u3068\u6b21\u306e\u5dfb\u3092\u8cb7\u3046\u306e\u304c\u3076\u3064\u304b\u3063\u305f\u3089\u7d42\u308f\u308a\u3002<\/p>\n\n\n\n<p>D: dp\u3057\u3066\u5fa9\u5143\u3059\u308b\u3060\u3051\u3002\u5fa9\u5143\u30d1\u30fc\u30c8\u3067\u914d\u5217\u306e\u7bc4\u56f2\u5916\u53c2\u7167\u306b\u6c17\u4ed8\u304b\u305a\u6642\u9593\u3092\u6eb6\u304b\u3057\u305f\u3002\u5f15\u304d\u7b97\u51fa\u3066\u304d\u305f\u3089\u8ca0\u6570\u306e\u53ef\u80fd\u6027\u304c\u51fa\u308b\u306e\u5f53\u305f\u308a\u524d\u3060\u306d&#8230;<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u6628\u65e5\u89e3\u3044\u305f\u554f\u984c(\u7b2c4\u56de\u30c9\u30ef\u30f3\u30b4\u304b\u3089\u306e\u6311\u6226\u72b6 \u4e88\u9078-C)\u306e\u89e3\u8aac\u89e3\u6cd5\u3092\u8aad\u307f\u76f4\u3057\u305f\u3002\u300c\u9806\u5e8f\u304c\u56fa\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306e\u30d1\u30bf\u30fc\u30f3\u6570\u3092\u524d\u8a08\u7b97\u300d\u300c\u30b0\u30eb\u30fc\u30d7\u5316\u3057\u3066\u8a08\u7b97\u300d\u3068\u3044\u3046\u5927\u96d1\u628a\u306a\u7406\u89e3\u306f\u5408\u3063\u3066\u3044\u305f\u3002\u304c\u3001\u524d\u8a08\u7b97\u306e\u65b9\u6cd5\u304c\u3042\u307e\u308a\u306b\u3082\u982d\u826f\u3059\u304e\u3066\u30cf\u30b2\u305f\u3002<\/p>\n\n\n\n<p>\u6c42\u3081\u305f\u3044\u306e\u306f\u3042\u308b\u548c\u3092\u3082\u3064\u5e83\u7fa9\u5358\u8abf\u5897\u52a0(\u5358\u8abf\u975e\u6e1b\u5c11)\u6570\u5217\u306e\u30d1\u30bf\u30fc\u30f3\u6570\u306a\u308f\u3051\u3060\u304c\u3001dp[i][j]:=(\u9577\u3055i\u3067\u7dcf\u548cj\u306e\u5358\u8abf\u975e\u6e1b\u5c11\u5217\u306e\u6570)\u3068\u7f6e\u3044\u3066<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>dp[i+1][j]+=dp[i][j]<\/li><li>dp[i][j+i]+=dp[i][j]<\/li><\/ul>\n\n\n\n<p>\u3068\u9077\u79fb\u3059\u308b\u3002\u3053\u308c\u306f\u305d\u308c\u305e\u308c\u300c\u524d\u306b\u6570\u50240\u3092\u8ffd\u52a0\u300d\u300c\u5168\u4f53\u306b1\u3092\u8db3\u3059\u300d\u306b\u76f8\u5f53\u3059\u308b\u3002\u3053\u306e\u7c21\u5358\u306a\u9077\u79fb\u3060\u3051\u3067\u5168\u3066\u7db2\u7f85\u51fa\u6765\u3066\u3057\u307e\u3046\u306e\u3060\u3002\u3042\u307e\u308a\u306b\u3082\u7f8e\u3057\u3044\u3002<\/p>\n\n\n\n<p>\u5358\u8abf\u975e\u6e1b\u5c11\u5217\u306e\u30b0\u30e9\u30d5\u306e\u5f62\u3092\u306a\u305e\u308b\u3068\u5272\u3068\u81ea\u660e\u3060\u3063\u305f\u308a\u3082\u3059\u308b\u3002\u539f\u70b9\u304b\u3089\u59cb\u3081\u3066\u3001\u683c\u5b50\u70b9\u4e0a\u3092\u4e0a\u304b\u53f3\u306e\u307f\u306b\u79fb\u52d5\u3059\u308b\u8ecc\u8de1\u306b\u3061\u3087\u3046\u3069\u5bfe\u5fdc\u3059\u308b\u306e\u3060\u3002\u53f3\u3078\u306e\u79fb\u52d5\u3068\u4e0a\u3078\u306e\u79fb\u52d5\u306e2\u901a\u308a\u3060\u3051\u306e\u679d\u5206\u304b\u308c\u304c\u3042\u308b\u306e\u3067\u3001dp\u306e\u9077\u79fb\u3082\u540c\u3058\u3088\u3046\u306a\u5f62\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<p>\u3082\u3046\u4e00\u3064\u3001\u3053\u306e\u89e3\u8aac\u89e3\u6cd5\u3060\u3068\u975e\u5e38\u306b\u52d5\u4f5c\u304c\u901f\u304b\u3063\u305f\u3002\u81ea\u5206\u304c\u81ea\u529b\u3067\u66f8\u3044\u305fTL\u30ae\u30ea\u30ae\u30ea\u306e\u89e3\u6cd5\u3068\u30aa\u30fc\u30c0\u30fc\u8868\u8a18\u3067\u306f\u9055\u308f\u306a\u3044\u306f\u305a\u306a\u306e\u306b\u3060\u3002\u5b9a\u6570\u500d\u304c\u975e\u5e38\u306b\u8efd\u3044\u306e\u306f\u9593\u9055\u3044\u306a\u3044\u306e\u3060\u304c\u3001\u305d\u308c\u3060\u3051\u3067\u8aac\u660e\u3067\u304d\u308b\u304b\u3068\u3044\u3046\u3068\u602a\u3057\u3044\u3002<\/p>\n\n\n\n<p>\u81ea\u529b\u89e3\u6cd5\u306e\u8a08\u7b97\u91cf\u306f\u6b63\u771f\u6b63\u9298$O(N(\\sum killB)^2 + M(\\sum killA)^2)$\u3060\u3002\u3057\u304b\u3057\u89e3\u8aac\u89e3\u6cd5\u306e\u65b9\u306f\u3001\u30b0\u30eb\u30fc\u30d7\u5316\u3057\u3066\u3044\u308b\u306e\u3067\u5b9f\u306f\u9055\u3046\u3002\u3059\u3079\u3066\u306e\u30e1\u30f3\u30d0\u30fc\u306e\u30ad\u30eb\u6570\u304c\u7570\u306a\u308b\u5834\u5408\u3001\u30b0\u30eb\u30fc\u30d7\u6570\u306f\u6700\u5927100\u500b\u306b\u306a\u308a\u305d\u3046\u3060\u304c\u3001\u30ad\u30eb\u6570\u306e\u7dcf\u548c\u304c1000\u4ee5\u4e0b\u3067\u3042\u308b\u3068\u3044\u3046\u5236\u7d04\u304c\u3042\u308b\u4ee5\u4e0a\u305d\u306e\u3088\u3046\u306a\u3053\u3068\u306f\u3042\u308a\u5f97\u306a\u3044\u3002\u3061\u3083\u3093\u3068\u8a08\u7b97\u3057\u3066\u307f\u308b\u3068\u5b9f\u306f\u6700\u592740\u3061\u3087\u3063\u3068\u306b\u3057\u304b\u306a\u3089\u306a\u3044\u306e\u3060\u3002<\/p>\n\n\n\n<p>\u3057\u305f\u304c\u3063\u3066\u89e3\u8aac\u89e3\u6cd5\u306f\u6b63\u78ba\u306b\u306f$O(N+M+\\min(\\sqrt{\\sum killB}, N)(\\sum killB)^2+\\min(\\sqrt{\\sum killA}, M)(\\sum killA)^2)$\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u660e\u65e5\u306fU-22\u30d7\u30ed\u30b3\u30f3\u306e\u4e8b\u524d\u5be9\u67fb\u306e\u5408\u5426\u304c\u51fa\u308b\u3089\u3057\u3044\u3002\u4e8b\u524d\u5be9\u67fb\u3068\u3044\u3046\u3053\u3068\u306f\u6700\u4f4e\u9650\u306e\u4f5c\u54c1\u3068\u3057\u3066\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3059\u3001\u304f\u3089\u3044\u306e\u610f\u5473\u5408\u3044\u306a\u306e\u3060\u308d\u3046\u304b\uff1f\u305d\u308c\u3068\u3082\u3082\u3046\u3061\u3087\u3063\u3068\u53b3\u3057\u304f\u300c\u6700\u521d\u306e\u95a2\u9580\u300d\u304f\u3089\u3044\u306e\u30a4\u30e1\u30fc\u30b8\u306a\u306e\u3060\u308d\u3046\u304b\uff1f\u3044\u305a\u308c\u306b\u305b\u3088\u4eca\u304b\u3089\u51fa\u6765\u308b\u3053\u3068\u306f\u306a\u3044\u306e\u3067\u80e1\u5750\u3092\u304b\u3044\u3066\u5f85\u3063\u3066\u304a\u304f\u3002\u304a\u7948\u308a\u307f\u305f\u3044\u306a\u306e\u3092\u4fe1\u3058\u308b\u6027\u3067\u306f\u306a\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u89e3\u3044\u305f\u7af6\u30d7\u30ed\u306e\u554f\u984c\u3002 ABC271 A: \u3053\u3046\u3044\u3046\u306e\u306f&#8221;0123456789ABCDEF&#8221;\u307f\u305f\u3044\u306a\u6587\u5b57\u5217\u3092\u7528\u610f\u3057\u3066\u304a\u304f\u3068\u5b9f\u88c5\u3057\u3084\u3059\u3044\u3002 B: \u3084\u308b\u3060\u3051 C: \u91cd\u8907\u5dfb\u306f\u58f2\u308b\u3060\u3051\u5f97\u306a\u306e\u3067\u3001\u6570\u3060\u3051\u6570\u3048\u3066\u304a\u304f\u3002\u4ed6\u306fstd:: &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2022-10-3\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2022\/10\/3(\u6708)&#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-3497","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/3497","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=3497"}],"version-history":[{"count":3,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/3497\/revisions"}],"predecessor-version":[{"id":3500,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/3497\/revisions\/3500"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=3497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=3497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=3497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}