<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>h_chiro</author_name>
  <author_url>https://blog.hatena.ne.jp/h_chiro/</author_url>
  <blog_title>雑記</blog_title>
  <blog_url>https://h-chiro.hatenablog.com/</blog_url>
  <categories>
    <anon>PKU</anon>
  </categories>
  <description>http://poj.org/problem?id=2299 概要 バブルソートする際にswapする回数を求める。 数列の長さが500000以下なので、実際にバブルソートすると間に合わない。 マージソートを行いながら、この数をもとめることが可能で数列の逆転数は、左半分の逆転数、右半分の逆転数、右半分の各要素に対して自身より大きい要素がいくつあるかの和で求めることができる。 ソース #include&lt;cstdio&gt; #include&lt;vector&gt; #include&lt;cassert&gt; #include&lt;algorithm&gt; using namespace std; #define REP(i,a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fh-chiro.hatenablog.com%2Fentry%2F20101109%2F1289257350&quot; title=&quot; 2299 Ultra-QuickSort - 雑記&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>2010-11-09 08:02:30</published>
  <title> 2299 Ultra-QuickSort</title>
  <type>rich</type>
  <url>https://h-chiro.hatenablog.com/entry/20101109/1289257350</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
