<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mmxsrup</author_name>
  <author_url>https://blog.hatena.ne.jp/mmxsrup/</author_url>
  <blog_title>srupのメモ帳</blog_title>
  <blog_url>https://mmxsrup.hatenablog.com/</blog_url>
  <categories>
    <anon>yukicoder</anon>
    <anon>bfs</anon>
    <anon>dfs</anon>
    <anon>閉路</anon>
  </categories>
  <description>問題 問題概要 閉路検出 解法 考え方が悪かった。閉路検出のためにある始点から初めて、1周してその点に戻るかを判別すればいいなと思い、dfsもどきのbfsみたいなのを書き出したが完全に悪かった。閉路検出は「ある始点からスタートして、探索方向はfrom以外の方向に進み、一度探索した場所(スタート時点でなくてもいい)に戻れれば良い」という考えを持てばよかった。何も、スタート時点に戻れるかで判別する必要はなく、すでに訪れたところに行ければ閉路はできている。 実装はbfsもdfsも来た方に戻らないようにすることと、一度探索した部分に戻ることができることができれば、閉路があったことになるということに気を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmmxsrup.hatenablog.com%2Fentry%2F2016%2F09%2F01%2F164211&quot; title=&quot;yukicoder No.13 囲みたい！ - srupのメモ帳&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>2016-09-01 16:42:11</published>
  <title>yukicoder No.13 囲みたい！</title>
  <type>rich</type>
  <url>https://mmxsrup.hatenablog.com/entry/2016/09/01/164211</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
