<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chankilu23</author_name>
  <author_url>https://blog.hatena.ne.jp/chankilu23/</author_url>
  <blog_title>競プロがんばりたい</blog_title>
  <blog_url>https://chankilu23.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>ABC126-D &quot;Even Relation&quot; 提出コード atcoder.jp 考察 DFSをします，以上． というのは嘘で，例えば初期値は全頂点で塗り，DFSで木を舐めながら距離を逐次計算，距離が奇数であればその頂点はで塗り替える． という操作を実装すればOKです． ちなみに，始めの頂点はどこでも一般性を保つので，僕は頂点から始めています． BFSだと距離の管理が面倒そうなので，再帰で書くのが一番楽です． 特に書くこともないシンプルな問題なのでこれぐらいでいいですか（） 感想 久しぶりにグラフ探索をしました． かなりシンプルなDFSで，思い出すのに良い問題でした． シンプルなBFSも解き…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchankilu23.hatenadiary.com%2Fentry%2F2021%2F06%2F01%2F225343&quot; title=&quot;Even Relation - 競プロがんばりたい&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>2021-06-01 22:53:43</published>
  <title>Even Relation</title>
  <type>rich</type>
  <url>https://chankilu23.hatenadiary.com/entry/2021/06/01/225343</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
