<?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>なんとなく方向性わかっても実装できない… 問題 Problem - 570E - Codeforcescodeforces.com 解法 基本的には左上からと右下から同時に攻めて行く感じです(同じ文字だったら進軍可能)。で, これを求めるために dp で解きます。最初に考えたのは dp[x1][y1][x2][y2] = (左上から攻めた点が今 (x1, y1) 座標にいて, 右下から攻めた点が (x2, y2) 座標にいるとき, これが回文になっている場合の数) とします。これは なので間に合いません。ですが, 移動回数をひとつの基準にすると, dp[num][x1][x2] = (num …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2015%2F08%2F17%2F112146&quot; title=&quot;Codeforces Round #316 (Div. 2) E. Pig and Palindromes - 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-08-17 11:21:46</published>
  <title>Codeforces Round #316 (Div. 2) E. Pig and Palindromes</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2015/08/17/112146</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
