<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>emtubasa</author_name>
  <author_url>https://blog.hatena.ne.jp/emtubasa/</author_url>
  <blog_title>ツバサの備忘録</blog_title>
  <blog_url>https://emtubasa.hateblo.jp/</blog_url>
  <categories>
    <anon>リベンジ</anon>
    <anon>考察系</anon>
    <anon>貪欲法</anon>
    <anon>累積和</anon>
  </categories>
  <description>問題 提出コード 解法 ゴミを回収しに行く回数(=ゴミを捨てる回数)を回と決め打ちし、そのときの最小値を求めます。 そして、最後にについて全探索して答えを求めることを考えます。 回ゴミを回収しに行くとき、ゴミを拾う回数は回、捨てる回数は回なので、足す必要がありますが、これは値がにしか依存しない(他が定数)ので、これ以降は考えないことにして、最後に足します。 今、1回の収集で個のゴミを拾うことについて考えます。 少し実験するとわかるのですが、ゴミを回収する際は、できるだけ遠い場所に行き、その帰り道にゴミを回収していくのが最も効率がいいです(これは、手持ちのゴミが多いと消費エネルギーが多くなるため…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Femtubasa.hateblo.jp%2Fentry%2F2018%2F10%2F24%2F231750&quot; title=&quot;AGC027 B - Garbage Collector - ツバサの備忘録&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>https://cdn.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-10-24 23:17:50</published>
  <title>AGC027 B - Garbage Collector</title>
  <type>rich</type>
  <url>https://emtubasa.hateblo.jp/entry/2018/10/24/231750</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
