<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takeg</author_name>
  <author_url>https://blog.hatena.ne.jp/takeg/</author_url>
  <blog_title>ベスパリブ</blog_title>
  <blog_url>https://takeg.hatenadiary.jp/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>競技プログラミング</anon>
    <anon>強連結成分分解（SCC）</anon>
    <anon>C++</anon>
  </categories>
  <description>問題：advertisement - 宣伝 (Advertisement) 解説 「強連結成分分解（SCC）を使って同じグループの頂点を1つにまとめると、サイクルを含まないDAGになる」という性質を使う。 連絡先を知っている関係をグラフとして表す。 をSCCしたあと、グループを1つの頂点とみなす。 求める答えは、入次数が0の頂点（根と呼ぶことにする）の数。 もとのの入次数をindeg[i] := 頂点iの入次数とする。 SCCするとグループがわかるので、グループ内同士の有向辺を取り除いて入次数を減らし、グループ内のすべての頂点の入次数が0になれば、そのグループは根となる。 SCCのグループは1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakeg.hatenadiary.jp%2Fentry%2F2022%2F07%2F15%2F103105&quot; title=&quot;Advertisement: 宣伝（日本情報オリンピック2009）の解説 - ベスパリブ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/t/takeg/20220715/20220715102024.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-07-15 10:31:05</published>
  <title>Advertisement: 宣伝（日本情報オリンピック2009）の解説</title>
  <type>rich</type>
  <url>https://takeg.hatenadiary.jp/entry/2022/07/15/103105</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
