<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>https://yukicoder.me/problems/no/845 前提知識 bitDP 制約からbitを使えと語りかけてくるので、bitDPする。 状態遷移を考えると、最後に訪れた駅も記憶しておくのが良さそう。 dp[msk][lst] := まだ訪れていない駅の集合mskで最後に訪れた駅がlstのときの移動距離の最大値 これを再帰関数で自分は実装した。 （最初ループでいけんやろと思って再帰したが、ループでもできるので、そっちのほうがおすすめ） 遷移自体は一般的なbitDPなので、bitDPを理解していれば解ける。 解説 int N, M; vector&lt;pair&lt;int,int&gt;&gt; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F06%2F29%2F091603&quot; title=&quot;最長の切符 [yukicoder No.845] - はまやんはまやんはまやん&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-06-29 09:16:03</published>
  <title>最長の切符 [yukicoder No.845]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/06/29/091603</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
