<?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>C匹のムカデがいる。 各ムカデはF本の足がある。 あるムカデには同じ色の靴下を履かせたい。N種類の靴下があり、それぞれ数がわかっている。 全て1つの瓶に入っていて、ランダムに取り出していく。 全てのムカデに同色の靴下を履かせるときに、取り出す靴下の最大数は？ 全部取り出しても履かせられないなら-1 解説 貪欲法で解く。 まず、F本に満たない種類の靴下は全て先に出しておこう。 F本以上の種類の靴下はF-1本取り出しておく。 これで、どのムカデも完成していない状態で最大数取り出せる本数を取り出した。 ここから、残っている本数が多い順に靴下を取っていく。 基本はF本一気に取り出すことで、1種類完成さ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F04%2F30%2F120554&quot; title=&quot;CentipedeSocks [SRM757 Div1 Easy] - はまやんはまやんはまやん&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-04-30 12:05:54</published>
  <title>CentipedeSocks [SRM757 Div1 Easy]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2019/04/30/120554</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
