<?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>TopCoder</anon>
  </categories>
  <description>なんとなく解法は覚えていたがstringとcharの変換周りで悩まされた。問題:http://community.topcoder.com/stat?c=problem_statement&amp;pm=12871&amp;rd=15711解法:下のソースコードのコメントに書いてあるとおり、「dp[n][a][b][k]: n文字中a文字をA,b文字をB,で埋めている時、ペアの数がkになるような文字が存在する時、最後のcharを埋める ないときは'?'」というメモ配列を用意する。埋め方は簡単で、まずdp[1][1][0][0] = 'A'となることは明らか。また、次の文字を'B'にすると今までに'A'としてい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2015%2F03%2F22%2F184638&quot; title=&quot;SRM648div2hard:ABC - 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>2015-03-22 18:46:38</published>
  <title>SRM648div2hard:ABC</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2015/03/22/184638</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
