<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moistx</author_name>
  <author_url>https://blog.hatena.ne.jp/moistx/</author_url>
  <blog_title>Logfiles</blog_title>
  <blog_url>https://logfiles.hatenablog.com/</blog_url>
  <categories>
    <anon>AOJ</anon>
  </categories>
  <description>解法 区間DP。計算結果の重複を防ぐので set memo[l][r]; で計算結果を管理する。事前に括弧付けされたものは一つの項としてまとめなければならないので、文字列[l,r) が、完全に &quot;(expr)&quot; の形で表せる場合を捉える必要がある。（str[l] = '(', str[r-1] = ')' である必要がある）。左括弧と右括弧の対応が正しくとれているときに括弧の中の expr を再帰する必要があるので、'(' と ')' の数を数える。 string line; set&lt;int&gt; memo[200][200]; set&lt;PII&gt; used; set&lt;int&gt; eval(int c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140609%2F1402319936&quot; title=&quot;AOJ2255 6/2(1+2) - Logfiles&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>2014-06-09 22:18:56</published>
  <title>AOJ2255 6/2(1+2)</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20140609/1402319936</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
