{"blog_url":"https://blog.hamayanhamayan.com/","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2018%2F09%2F23%2F084202\" title=\"\u3057\u308a\u3068\u308a\u5727\u7e2e (Shiritori Compression) [Aizu Competitive Programming Camp 2018 Day 3 D] - \u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"hamayanhamayan","width":"100%","type":"rich","version":"1.0","image_url":null,"provider_name":"Hatena Blog","published":"2018-09-23 08:42:02","height":"190","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","url":"https://blog.hamayanhamayan.com/entry/2018/09/23/084202","title":"\u3057\u308a\u3068\u308a\u5727\u7e2e (Shiritori Compression) [Aizu Competitive Programming Camp 2018 Day 3 D]","provider_url":"https://hatena.blog","description":"https://onlinejudge.u-aizu.ac.jp/beta/room.html#ACPC2018Day3/problems/D \u524d\u63d0\u77e5\u8b58 \u52d5\u7684\u8a08\u753b\u6cd5 \u8003\u5bdf\u904e\u7a0b 1. \u96e3\u3057\u304f\u898b\u3048\u308b\u3057\u3001\u6700\u5c0f\u5024\u3092\u6c42\u3081\u3066\u3044\u308b\u3057\u3001DAG\u3063\u307d\u304f\u3082\u3042\u308b\u306e\u3067\u3001DP\u65b9\u91dd\u3067\u8003\u3048\u308b 2. \u300cdp[i] := i\u756a\u76ee\u307e\u3067\u5230\u9054\u3059\u308b\u305f\u3081\u306e\u5358\u8a9e\u306e\u6700\u5c0f\u500b\u6570\u300d\u304c\u3071\u3063\u3068\u601d\u3044\u3064\u304fDP 3. dp[i]\u3092\u78ba\u5b9a\u3057\u305f\u3044\u304c\u3001\u9077\u79fb\u5143\u306fdp[i-1]\u3068i\u756a\u76ee\u306e\u5148\u982d\u304cc\u3067\u3042\u308c\u3070\u3001i\u756a\u76ee\u3088\u308a\u524d\u306ec\u306e1\u3064\u524d\u306edp[j] 4. \u6587\u5b57\u3054\u3068\u306bdp[j]\u306e\u6700\u5c0f\u5024\u3092\u6301\u3063\u3066\u304a\u3051\u3070\u9077\u79fb\u3092\u9ad8\u901f\u5316\u3067\u304d\u308b 5. \u89e3\u3051\u305f \u89e3\u6cd5 https://onlinejudge.u\u2026","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"]}