<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>http://codeforces.com/contest/1037/problem/BN個の配列Aが与えられる。(Nは奇数) この配列の中央値をSにしたい。 ある要素を+1か-1する操作を行う時、最小何回の操作で中央値をSにできるか。 解法 http://codeforces.com/contest/1037/submission/42452613貪欲に中央値をSにしよう。 配列Aをソートして、現状の中央値を求める。 中央がct番目であるとする。 A[st] = Sの場合。 この場合は既に達成できているので、0が答え。 A[st]＜Sの場合。 A[st]をとりあえずSにする。 これだけでは、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2018%2F09%2F04%2F214050&quot; title=&quot;Reach Median [Manthan, Codefest 18 B] - はまやんはまやんはまやん&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-09-04 21:40:50</published>
  <title>Reach Median [Manthan, Codefest 18 B]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2018/09/04/214050</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
