<?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://beta.atcoder.jp/contests/abc112/tasks/abc112_d 解法 https://beta.atcoder.jp/contests/abc112/submissions/3348509全ての要素の公約数としてgがある場合を考える。 全ての要素がgの倍数になれば、公約数がgになる。 まず、満たすべき条件としてMがgで割り切れる必要がある。 M/g個のgを各要素に分配していくことを考えるが、各要素最低1つは割り当てられる必要がある。 よって、N≦M/gが満たされる必要がある。 公約数gを全探索するが、これはMの約数になっているので、そんなに量がない…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2018%2F10%2F06%2F233701&quot; title=&quot;Partition [AtCoder Beginner Contest 112 D] - はまやんはまやんはまやん&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>2018-10-06 23:37:01</published>
  <title>Partition [AtCoder Beginner Contest 112 D]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2018/10/06/233701</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
