<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>JunKobayashi</author_name>
  <author_url>https://blog.hatena.ne.jp/JunKobayashi/</author_url>
  <blog_title>JunKobayashi's Diary</blog_title>
  <blog_url>https://junkobayashi.hatenablog.com/</blog_url>
  <categories>
    <anon>あやふやACの振り返り</anon>
    <anon>偏差の絶対値の総和</anon>
  </categories>
  <description>結果としては本番ACだったが、自分の立てた方針が本当に必ず最適解を導き出せると言えるのかという理屈は全然分かっていなかったため、当時立てた方針の振り返りも込みで書いていく。 ※0-indexedで記載する。 ↓問題のページ↓ ABC393 D - Swap to Gather ＜後の考察で見出した確実な方針＞ \(S\)の中に現れる\(1\)の個数を\(M\)とし、\(S[a_0], S[a_1], \dotsc, S[a_{M - 1}]\)が\(1\)である（ただし、\(a_0 \lt a_1 \lt \dots \lt a_{M - 1}\)が成立する）ものとする。問題文の操作をしていっ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2025%2F02%2F27%2F182725&quot; title=&quot;ABC393 D - Swap to Gather - JunKobayashi&amp;#39;s Diary&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>2025-02-27 18:27:25</published>
  <title>ABC393 D - Swap to Gather</title>
  <type>rich</type>
  <url>https://junkobayashi.hatenablog.com/entry/2025/02/27/182725</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
