<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>baitop</author_name>
  <author_url>https://blog.hatena.ne.jp/baitop/</author_url>
  <blog_title>バイトの競プロメモ</blog_title>
  <blog_url>https://baitop.hatenadiary.jp/</blog_url>
  <categories>
    <anon>主客転倒</anon>
    <anon>数え上げ</anon>
    <anon>括弧列</anon>
  </categories>
  <description>D - 1D Coulomb メモ 以後以下のように言葉を定義する S[i] := iの電荷(+か-) R(s) := sと逆の電荷, R(+) == -, R(-) == + cnt(i, s) := [0, i)にある符号sの数(つまりiより左にあるsの個数) まず各iがどちらに動くかを考える iが+の場合、i以外の合計は-1になり iが-の場合、i以外の合計は+1になる よって左右どちらかの合計が0の時、電荷は逆方向に動くため 一番左の電荷は右に動き、一番右の電荷は左に動く。 以後同様に考えると、各電荷は括弧列の対応のように動くことが分かる。 具体的には cnt(i, s[i]) &gt;= …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaitop.hatenadiary.jp%2Fentry%2F2023%2F07%2F10%2F151726&quot; title=&quot;AtCoder Regular Contest 164 D - 1D Coulomb - バイトの競プロメモ&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-07-10 15:17:26</published>
  <title>AtCoder Regular Contest 164 D - 1D Coulomb</title>
  <type>rich</type>
  <url>https://baitop.hatenadiary.jp/entry/2023/07/10/151726</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
