<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>d_tutuz</author_name>
  <author_url>https://blog.hatena.ne.jp/d_tutuz/</author_url>
  <blog_title>数学/競プロメモ</blog_title>
  <blog_url>https://tutuz.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>問題 https://beta.atcoder.jp/contests/agc003/tasks/agc003_c 長さ N の数列 a_N が与えられる。以下の操作をして、数列を単調増加にするよう並べ替える時、操作 1 の最小回数を求めよ。 数列の連続する 2 つの要素を選び、その 2 つの順番を反転する。 数列の連続する 3 つの要素を選び、その 3 つの順番を反転する。 考え方 操作 2 を考えると、偶奇ごとに数を swap するのは任意にしてよいことがわかる。 ソート後の数列を考えると、もとの数列とソート後の数列で index の偶奇が異なる数 a_i については少なくとも 1 回は操…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftutuz.hateblo.jp%2Fentry%2F2018%2F10%2F07%2F224934&quot; title=&quot;AGC003-C：BBuBBBlesort! - 数学/競プロメモ&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-10-07 22:49:34</published>
  <title>AGC003-C：BBuBBBlesort!</title>
  <type>rich</type>
  <url>https://tutuz.hateblo.jp/entry/2018/10/07/224934</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
