<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>blue_jam</author_name>
  <author_url>https://blog.hatena.ne.jp/blue_jam/</author_url>
  <blog_title>blue_jamの日記</blog_title>
  <blog_url>https://blue-jam.hatenablog.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>概要 コストa[i]と評価値s[i]の組の列がある． この中から，N（奇数）個の要素をコストの合計がFを超えないように選び，メディアンを最大化したい． 解法 メディアンはソートしたときの中央値であり，中央の値以外には影響をうけないことを利用する． N = 2K + 1とする． コストについてソート． あるインデックスiについて，iより小さいインデックスの中からK個選ぶときのコストの最小値を計算．iより大きいインデックスについても同様に計算．この計算は，PriorityQueueを用いることでO(N log N)時間で事前に計算できる． 上記二つの値の合計とi番目のコストの合計がF以下であれば，…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblue-jam.hatenablog.com%2Fentry%2F2014%2F08%2F08%2F232903&quot; title=&quot;POJ 2010: Moo University - Financial Aid - blue_jamの日記&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>2014-08-08 23:29:03</published>
  <title>POJ 2010: Moo University - Financial Aid</title>
  <type>rich</type>
  <url>https://blue-jam.hatenablog.com/entry/2014/08/08/232903</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
