<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>baitop</author_name>
  <author_url>https://blog.hatena.ne.jp/baitop/</author_url>
  <blog_title>バイトの競プロメモ</blog_title>
  <blog_url>https://baitop.hatenadiary.jp/</blog_url>
  <categories>
    <anon>動的計画法</anon>
    <anon>cht</anon>
  </categories>
  <description>No.409 ダイエット - yukicoder 問題概略N日あり、毎日ドーナッツiを食べるか食べないかを選択できる。iを食べるとDi体重が増えるがストレスが0に、食べないと、体重がA減る代わりにストレスが1増え、体重がB*(ストレス)増える。初期体重はW、最終日の最軽は何か 1≤N≤3∗1050≤A,B,W≤1060≤Di≤106 解法satanicさんの解説を参考にしました(式が少し違うので注意)yukicoder No.409 ダイエット - sataniC++ ドーナッツを食べるとストレスが0になるので、最後にドーナッツを食べた日でdpを遷移したら良さそうdp[i] := i日目にドー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaitop.hatenadiary.jp%2Fentry%2F2018%2F10%2F09%2F215646&quot; title=&quot;No.409 ダイエット　yukicoder - バイトの競プロメモ&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-09 21:56:46</published>
  <title>No.409 ダイエット　yukicoder</title>
  <type>rich</type>
  <url>https://baitop.hatenadiary.jp/entry/2018/10/09/215646</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
