<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>flashingwind</author_name>
  <author_url>https://blog.hatena.ne.jp/flashingwind/</author_url>
  <blog_title>プログラマーになりたい。</blog_title>
  <blog_url>https://flash.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>今日のバグ</anon>
  </categories>
  <description>ABC314のC - Rotate Colored Subsequenceである。 べつにバグではないんだけど、競技中にあんまり調べていられなかったのと、「リングバッファ」というの名前が思い出せなくて、結局vecの要素のシフトをこう書いてしまった。 どことなくアホっぽいけど、これでも時間制限には引っかからないんですよね。reverse()ってO(M)くらいかと思うけど、意外と他の方法とかわらない。 for clr in 1..=m { let tmp = map[clr].pop().unwrap(); map[clr].reverse(); map[clr].push(tmp); } ちなみ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fflash.hatenablog.com%2Fentry%2F2023%2F08%2F21%2F233626&quot; title=&quot;なんか無駄なことをしている気がする……と思ったんだけど - プログラマーになりたい。&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>2023-08-21 23:36:26</published>
  <title>なんか無駄なことをしている気がする……と思ったんだけど</title>
  <type>rich</type>
  <url>https://flash.hatenablog.com/entry/2023/08/21/233626</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
