<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fluffyowl</author_name>
  <author_url>https://blog.hatena.ne.jp/fluffyowl/</author_url>
  <blog_title>nebukuro09の日記</blog_title>
  <blog_url>https://fluffyowl.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>AGC</anon>
    <anon>AGC #004</anon>
    <anon>木</anon>
    <anon>問題記録</anon>
  </categories>
  <description>http://agc004.contest.atcoder.jp/tasks/agc004_d 問題概要 N個の町があり、1～Nまでの番号が振られている。それぞれの町には1台ずつテレポーターがあり、町iのテレポーターの転送先は町aiに設定されている。また初期状態では必ず何回かテレポーターをたどることで町1にたどり着けることが保証されている。 正整数Kが与えられたとき、「どの町を出発点としてもテレポーターをちょうどK回使うと町1にたどり着く」という状態を作りたい。最小で何個のテレポーターの転送先を変更するとこの条件を達成できるか求めよ。 2 &lt;= N &lt;= 105, 1 &lt;= ai &lt;= N, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffluffyowl.hatenablog.com%2Fentry%2F2017%2F08%2F12%2F182534&quot; title=&quot;AtCoder Grand Contest 004 D - Teleporter - nebukuro09の日記&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>2017-08-12 18:25:34</published>
  <title>AtCoder Grand Contest 004 D - Teleporter</title>
  <type>rich</type>
  <url>https://fluffyowl.hatenablog.com/entry/2017/08/12/182534</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
