<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inamori</author_name>
  <author_url>https://blog.hatena.ne.jp/inamori/</author_url>
  <blog_title>inamori’s diary</blog_title>
  <blog_url>https://inamori.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>https://atcoder.jp/contests/abc441/tasks/abc441_f何番目の商品まで考慮したかとトータルの金額を状態にして、最大の価値を値にしたDPを考えると、計算量はなので、なんとか間に合います。 入力例1だと、最初は0円で価値も0なので、 [0, -∞, -∞, -∞, -∞, -∞, -∞, -∞] とします。商品1を買う買わないで、 [0, -∞, 5, -∞, -∞, -∞, -∞, -∞] となります。4つの商品までで、 [0, -∞, 5, 10, 10, 15, 15, 20] 最終的には、 [0, -∞, 5, 20, 10, 25, 30, 3…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F2026%2F01%2F20%2F185733&quot; title=&quot;AtCoder Beginner Contest 441 F - inamori’s diary&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>2026-01-20 18:57:33</published>
  <title>AtCoder Beginner Contest 441 F</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/2026/01/20/185733</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
