<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>AOJ</anon>
  </categories>
  <description>問題 My friends are small | Aizu Online Judge 解法 ある集合が有効かどうかを調べるときは, 「まだ選ばれていないやつの中で一番重さの小さい友達をリュックの中に入れることができないか」というのが判定基準になります。そこで, 配列 w をソートしたのち, 「[0, i) はすべて選ぶけど i 番目は選ばないような場合の数」というのを考えます。sum = w[0]+...+w[i-1] とすると, 残りの入れる量は W-sum です。dp[k] = ([i+1, N) の区間の友達を使って, 合計重さを k にする場合の数) の dp をしたとき, W - …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F07%2F15%2F105102&quot; title=&quot;AOJ 2333 My friends are small - mayoko’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>2016-07-15 10:51:02</published>
  <title>AOJ 2333 My friends are small</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/07/15/105102</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
