<?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>
  </categories>
  <description>https://atcoder.jp/contests/cf17-tournament-round1-open/tasks/asaporo2_c 解法 対応の取れた括弧列で、二点の括弧を入れ替えることを考える。 すると、端以外の括弧を入れ替えた場合、操作後も対応が取れている事が言える。 よって、端を除く2n-2個でa,bを偶数個選び合計を最大にする問題となった。 ここで、最初にすべてbを選び、その内のいくつかをaへ変えることを考える。 a-bの差分が正のものをすべて選べたら、それは間違いなく答えとなる。 差分が正となる物が奇数個ある場合は、最小の+を一つ諦めるか、最大の-を一つ選ぶ必要がある。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaitop.hatenadiary.jp%2Fentry%2F2019%2F03%2F28%2F220921&quot; title=&quot;C - Paired Parentheses - バイトの競プロメモ&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>2019-03-28 22:09:21</published>
  <title>C - Paired Parentheses</title>
  <type>rich</type>
  <url>https://baitop.hatenadiary.jp/entry/2019/03/28/220921</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
