<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a_kawashiro</author_name>
  <author_url>https://blog.hatena.ne.jp/a_kawashiro/</author_url>
  <blog_title>a_kawashiroのブログ</blog_title>
  <blog_url>https://a-kawashiro.hatenablog.com/</blog_url>
  <categories>
    <anon>topcoder</anon>
  </categories>
  <description>一応ACするけど、すごく頭の悪いコード。 practice roomのrngさんのコードを見たほうがいいと思う。 でも一応解説。 １：まずマスの１つ１つを頂点としてグラフを作る。 ２：このとき隣接リストで持たないとTLEする。（理由：各頂点から出る枝は多くても４本しかない） ３：次に各々の頂点からジャンプできる頂点を深さ優先探索で全部調べる。(check) ４：その結果を使って頂点０から到達可能な循環路があるかどうかしらべる。（あったら-1を返す。） ５：深さ優先探索で最長のジャンプ経路を調べる。このときメモ化しないとTLEする。 #include &lt;cstring&gt; #include &lt;se…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kawashiro.hatenablog.com%2Fentry%2F20110401%2F1301655937&quot; title=&quot;SRM368 div2 hard - a_kawashiroのブログ&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>2011-04-01 20:05:37</published>
  <title>SRM368 div2 hard</title>
  <type>rich</type>
  <url>https://a-kawashiro.hatenablog.com/entry/20110401/1301655937</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
