<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>线段树 on CheaSim Blog</title>
    <link>https://www.cheasim.com/categories/%E7%BA%BF%E6%AE%B5%E6%A0%91/</link>
    <description>Recent content in 线段树 on CheaSim Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Fri, 21 Sep 2018 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://www.cheasim.com/categories/%E7%BA%BF%E6%AE%B5%E6%A0%91/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Codeforces 833B - The Bakery</title>
      <link>https://www.cheasim.com/2018/09/21/codeforces-833b-the-bakery/</link>
      <pubDate>Fri, 21 Sep 2018 00:00:00 +0000</pubDate>
      <guid>https://www.cheasim.com/2018/09/21/codeforces-833b-the-bakery/</guid>
      <description>&lt;h1 id=&#34;codeforces-833b---the-bakery&#34;&gt;Codeforces 833B - The Bakery&lt;/h1&gt;
&lt;h2 id=&#34;题意&#34;&gt;题意&lt;/h2&gt;
&lt;p&gt;将一段数字分成最多50个区间，每个区间的价值是区间内不同数字的个数，问怎么样分区间使得价值总和最大。&lt;/p&gt;
&lt;h2 id=&#34;题解&#34;&gt;题解&lt;/h2&gt;
&lt;p&gt;$dp$加线段树。&lt;/p&gt;
&lt;p&gt;$dp[i][j]$表示第$j$个坐标分成$i$块最大的价值。&lt;/p&gt;</description>
    </item>
    <item>
      <title>[hdoj4614]Vases and Flowers</title>
      <link>https://www.cheasim.com/2018/09/07/hdoj4614-vases-and-flowers/</link>
      <pubDate>Fri, 07 Sep 2018 00:00:00 +0000</pubDate>
      <guid>https://www.cheasim.com/2018/09/07/hdoj4614-vases-and-flowers/</guid>
      <description>&lt;h1 id=&#34;vases-and-flowers&#34;&gt;Vases and Flowers&lt;/h1&gt;
&lt;h2 id=&#34;题意&#34;&gt;题意&lt;/h2&gt;
&lt;p&gt;Alice去一排$n$的花盆中种花，有两种操作&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;从$a$开始种花，如果该花盆有花就跳到下一个花盆。直到没有花种或者到了$n$盆&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;$[a,b]$区间的所有花都扔掉。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
