<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>simezi_tan</author_name>
  <author_url>https://blog.hatena.ne.jp/simezi_tan/</author_url>
  <blog_title>simezi_tanの日記</blog_title>
  <blog_url>https://simezi-tan.hatenadiary.org/</blog_url>
  <categories>
    <anon>TopCoder</anon>
    <anon>動的計画法</anon>
  </categories>
  <description>問題 n枚のカードが一列に並んでいる。 カードにはlevel, damageが設定されており、i番目のカードのlevelはlevel[i], ダメージはdamage[i]である。 このカードに対して次の操作のどちらかを行う。 1. 先頭のカードを末尾へ移動する。 2. 先頭のカードの右にカードがlevel-1枚以上あるとき、 先頭からlevel枚のカードを順に取り除き、damageの点数を得る。 この操作を、繰り返し何度でも行えるとき、得られる得点の合計の最大値を求めよ。 制約条件 n≦50 level[i]≦50 damage[i]≦10000</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsimezi-tan.hatenadiary.org%2Fentry%2F20121225%2F1356447175&quot; title=&quot;TopCoder SRM 563 Div1 Medium SpellCards - simezi_tanの日記&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>2012-12-25 23:52:55</published>
  <title>TopCoder SRM 563 Div1 Medium SpellCards</title>
  <type>rich</type>
  <url>https://simezi-tan.hatenadiary.org/entry/20121225/1356447175</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
