<?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://yukicoder.me/problems/no/826 前提知識 BFS 解説 https://yukicoder.me/submissions/345147BFSをして、到達可能性を判定していくやつをやろう。 まず状態はN個でいいとして、問題が遷移数である。 N≦10^6なので、下手にやるとTLEしそうな感じがある。 ある頂点cuからの遷移先は「cuの2以上の約数」と「cuの倍数」である。 これを全て試しても全体の計算量はO(NlogN)のはずなのだが、やるとTLEした。 高速化を考えよう。 例えば、ある頂点cuの倍数の遷移として、 cu*2, cu*3, cu*4, cu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F05%2F05%2F100032&quot; title=&quot;連絡網 [yukicoder No.826] - はまやんはまやんはまやん&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>2019-05-05 10:00:32</published>
  <title>連絡網 [yukicoder No.826]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/05/05/100032</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
