<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>AGC-A</anon>
    <anon>考察：ソート</anon>
    <anon>Greedy</anon>
    <anon>コーナーケース</anon>
    <anon>数列</anon>
    <anon>AtCoder200点</anon>
    <anon>灰色diff</anon>
    <anon>制約条件:ちょうどK個</anon>
    <anon>ソート:条件を満たすまで大きい順に取っていく</anon>
    <anon>Greedy:よい順に取っていく</anon>
  </categories>
  <description>ちょっと注意。ABC なら 300 点かな。 問題へのリンク 問題概要 人がいて、キャンディ 個を余らさずに 人に分配する。 人目の人はちょうど 個のキャンディを受け取ると喜ぶ。喜ぶ人数の最大値を求めよ。 制約 考えたこと 基本的には が小さい方から配っていけばよい。そうすればより多くの人を喜ばせることができる。 しかし、 人目だけ注意である。 が よりも大きかったら、 人目を喜ばせることはできない。この場合の答えは になる。 もとより答えが になる場合というのは、 がちょうどぴったり の総和になっている場合のみにかぎられる。 #include &lt;iostream&gt; #include &lt;vec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2019%2F07%2F04%2F131200&quot; title=&quot;AtCoder AGC 027 A - Candy Distribution Again (灰色, 200 点) - けんちょんの競プロ精進記録&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-07-04 13:12:00</published>
  <title>AtCoder AGC 027 A - Candy Distribution Again (灰色, 200 点)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2019/07/04/131200</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
