<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jeneshicc</author_name>
  <author_url>https://blog.hatena.ne.jp/jeneshicc/</author_url>
  <blog_title>落書き、時々落学</blog_title>
  <blog_url>https://jeneshicc.hatenadiary.org/</blog_url>
  <categories>
    <anon>日記</anon>
    <anon>C++</anon>
  </categories>
  <description>haskellで書いたら遅かったので，C++で書いてみた． アルゴリズムはほぼ同じ．メモ化再帰ではなく，配列でビルドアップ．実は numeric_limits::max() で intの最大値がとりだせるらしい． #include&lt;iostream&gt; #include&lt;cmath&gt; #include&lt;limits&gt; using namespace std; int main() { int n; cin &gt;&gt; n; for (int i = 1; i &lt;= n; i++) { int p, q; cin &gt;&gt; p &gt;&gt; q; int s[q+1], pre = 0; // scan input…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjeneshicc.hatenadiary.org%2Fentry%2F20090914%2F1252928092&quot; title=&quot;Round 1C の C を C++で書いてみた(Google Code Jam 2009) - 落書き、時々落学&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>2009-09-14 20:34:52</published>
  <title>Round 1C の C を C++で書いてみた(Google Code Jam 2009)</title>
  <type>rich</type>
  <url>https://jeneshicc.hatenadiary.org/entry/20090914/1252928092</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
