<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kazun_kyopro</author_name>
  <author_url>https://blog.hatena.ne.jp/Kazun_kyopro/</author_url>
  <blog_title>Kazun の競プロ記録</blog_title>
  <blog_url>https://kazun-kyopro.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>ABC</anon>
    <anon>ABC264</anon>
    <anon>D問題</anon>
    <anon>400 pts</anon>
  </categories>
  <description>問題 atcoder.jp 提出解答 atcoder.jp 問題の概要 の並び替え が与えられる. に対して隣接する文字の入れ替えを行い を にする場合, 最低でも何回入れ替えなければならないか. 制約 は の並び替え 解法 に対して, をそれぞれ に置き換えた整数列を とする. すると, 問題は の隣接項の入れ替えにより を昇順にするための入れ替えの最小回数を求めよ. この問題は に対するバブルソートでの入れ替えの回数と一致する. そして, このような回数は転倒数といわれており, 以下で定義される. 転倒数 長さが の整数列 の転倒数 を以下で定義する. 以下を満たす整数の組 の個数: かつ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazun-kyopro.hatenablog.com%2Fentry%2FABC%2F264%2FD&quot; title=&quot;AtCoder Beginner Contest 264 D問題 &amp;quot;redocta&amp;quot;.swap(i,i+1) - Kazun の競プロ記録&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>2022-08-13 23:38:25</published>
  <title>AtCoder Beginner Contest 264 D問題 &quot;redocta&quot;.swap(i,i+1)</title>
  <type>rich</type>
  <url>https://kazun-kyopro.hatenablog.com/entry/ABC/264/D</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
