<?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>yukicoder</anon>
  </categories>
  <description>頭の悪い方法で解いてしまった。writerの解説(http://yukicoder.me/problems/710/editorial)のほうが計算量的に優れています。 問題 No.258 回転寿司(2) - yukicoder 解法 メモ化再帰で解きました。cur番目の寿司を食べるか食べないか決める時,curを食べずにcur+1を食べるのが最適な場合はcurの次に食べる寿司ne[cur]をcur+1とし,curを食べてcur+2以降を食べるのが最適な場合はne[cur] = i(iはcur+2以降の何らかの数)としてdp[cur]とne[cur]を埋めていきます。この情報を用いて経路復元をや…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2015%2F08%2F01%2F101409&quot; title=&quot;yukicoder No.258 回転寿司(2) - 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-01 10:14:09</published>
  <title>yukicoder No.258 回転寿司(2)</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2015/08/01/101409</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
