<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fushime2</author_name>
  <author_url>https://blog.hatena.ne.jp/fushime2/</author_url>
  <blog_title>idle活動</blog_title>
  <blog_url>https://fushime2.hatenablog.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>問題 TopCoder Statistics - Problem Statement 2 つの音楽アルバム A, B について、曲の長さ(d1, d2)が与えられる(秒)。 曲の長さの合計が上限 minutes を超えないように各アルバムから曲を選ぶとき、選べる曲数の最大値を返す。 ただし、各アルバムからそれぞれ最低 T 曲選ばなければならない(A から T 曲, B から T 曲)。このような選び方がない場合は -1 を返す。 解法 結果が -1 の時の条件に注意してそのまま書く。d1, d2 をソートして先頭から T 個足したあと、新しい配列に足してない要素を突っ込んでソート、先頭から上限…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffushime2.hatenablog.com%2Fentry%2F2016%2F01%2F21%2F153641&quot; title=&quot;SRM 679 Div2 Easy: ListeningSongs - idle活動&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-01-21 15:36:41</published>
  <title>SRM 679 Div2 Easy: ListeningSongs</title>
  <type>rich</type>
  <url>https://fushime2.hatenablog.com/entry/2016/01/21/153641</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
