<?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://atcoder.jp/contests/dp/tasks/dp_g 前提知識 トポロジカルソート 解説 https://atcoder.jp/contests/dp/submissions/3947799トポロジカルソートを知っていれば一瞬だが、知らないと解けない。 DPというのは「ある状態を処理するときは、その状態に遷移する状態はすべて処理しきっている必要がある」 なので、 dp[i] := 有向パスの最後の頂点がiのときのパスの最長の長さ と定義しても、頂点の処理順を決める必要がある。 閉路を含まない有向グラフ（=DAG）はパスの処理順を適切に決めると、「ある状態を処理する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F01%2F08%2F234649&quot; title=&quot;Longest Path [Educational DP Contest / DP まとめコンテスト G] - はまやんはまやんはまやん&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-01-08 23:46:49</published>
  <title>Longest Path [Educational DP Contest / DP まとめコンテスト G]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/01/08/234649</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
