<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Area1</author_name>
  <author_url>https://blog.hatena.ne.jp/Area1/</author_url>
  <blog_title>Area1のif(memo[i][j])</blog_title>
  <blog_url>https://area.hateblo.jp/</blog_url>
  <categories>
    <anon>POJ</anon>
    <anon>DP</anon>
  </categories>
  <description>問題文DP強化週間。問題概要は簡単なので略。問題も小さい方からメモ化して計算していくだけ。 以下ソース。 int a[500001]; int main(int argc, char **argv){ a[0] = 0; set&lt;int&gt; rec; for(int i = 1; i &lt;= 500000; i++){ int t = a[i - 1] - i; int u = a[i - 1] + i; set&lt;int&gt;::iterator it = rec.find(t); if(t &gt; 0 &amp;&amp; it == rec.end()){ a[i] = t; rec.insert(t); }else…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Farea.hateblo.jp%2Fentry%2F2013%2F02%2F05%2F051642&quot; title=&quot;POJ 2081 Recaman&amp;#39;s Sequence - Area1のif(memo[i][j])&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>2013-02-05 05:16:42</published>
  <title>POJ 2081 Recaman's Sequence</title>
  <type>rich</type>
  <url>https://area.hateblo.jp/entry/2013/02/05/051642</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
