<?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/abc198/tasks/abc198_e 前提知識 dfs 解説 https://atcoder.jp/contests/abc198/submissions/21691565 競技プログラミングの問題で木を題材とした問題が多く存在する。 どのようにプログラミングするとよいかは人それぞれかと思うが、隣接グラフを使って頑張ることを勧める。 dfs 今回の問題は木構造のとある根（頂点1）からのある条件を使っている。 よって、頂点1を始点としてdfsすることでうまく扱えるような感じに見える。 cnt[color] := 色colorがこれまで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2021%2F04%2F11%2F225651&quot; title=&quot;Unique Color [AtCoder Beginner Contest 198 E] - はまやんはまやんはまやん&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-04-11 22:56:51</published>
  <title>Unique Color [AtCoder Beginner Contest 198 E]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2021/04/11/225651</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
