<?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>ABC挑戦記</anon>
  </categories>
  <description>↓問題のページ↓ AtCoder Beginner Contest 345 C - One Time Swap ※本記事は0-indexedを前提として記載する。 ＜内容の振り返り・解法＞ 方針はすぐに思い浮かんだものの、C++の言語仕様を知らなかったために80分近く無駄に時間を失い、低いパフォーマンスに終わった。 単純に\(i\)と\(j\)を全探索するのでは\( \mathcal{O}(N^2) \)の処理となり、\(N\)が最大で\(10^6\)まで達する問題であることからTLEとなってしまうため工夫して高速化が必要となる。 \(0 ≤ i ≤ N -1\)なる\(i\)を1つ決めた時、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2024%2F03%2F20%2F013747&quot; title=&quot;ABC345挑戦記（C問題） - 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>2024-03-20 01:37:47</published>
  <title>ABC345挑戦記（C問題）</title>
  <type>rich</type>
  <url>https://junkobayashi.hatenablog.com/entry/2024/03/20/013747</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
