<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>CodeForces</anon>
  </categories>
  <description>問題 codeforces.com例によって正しいかっこ列 CBS を定める。 このかっこ列に対して, あるポインタ p から次のように操作をしていく。 L: p を 1 つ左に移動させる。 R: p を 1 つ右に移動させる。 D: p に対応するかっこが必ずある。p 番目のかっことそれに対応するかっこ, およびその間にあるかっこをすべて取り除く。その後, もし p の右側に かっこがあるなら p を右にずらし, ないなら p を左にずらす。 操作順が並べられるので, 最終的にできるかっこ列を求めよ。 解法 まず前計算して pa[p] = (p に対応するかっこのある位置) を求めておきます…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F05%2F06%2F214307&quot; title=&quot;  Codeforces Round #350 (Div. 2) E. Correct Bracket Sequence Editor - mayoko’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>2016-05-06 21:43:07</published>
  <title>  Codeforces Round #350 (Div. 2) E. Correct Bracket Sequence Editor</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/05/06/214307</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
