<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>qnighy</author_name>
  <author_url>https://blog.hatena.ne.jp/qnighy/</author_url>
  <blog_title>簡潔なQ</blog_title>
  <blog_url>https://qnighy.hatenablog.com/</blog_url>
  <categories>
    <anon>Programming</anon>
    <anon>JOI</anon>
  </categories>
  <description>概要 番号つきの区間の集合が与えられ、被らない最大個数の区間集合を求める。ただし最大個数の区間集合が複数通りある場合、辞書順で小さいものを選ぶ。 手法 被らない最大個数の区間集合を求める問題は、簡単なDP(区間をendで整列し、ranges[upper_bound(ranges[x].begin)-1].rank+1とranges[x-1].rankのうち大きいほうをとる)という方法で列挙できる。このDPにおける計算の依存関係をグラフに起こすことで、最大値を与える列をグラフから生成できるようになる。このグラフは次のようなものである。 全ての頂点は最大2つの後方リンクをもつ。自身のendの直前(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fqnighy.hatenablog.com%2Fentry%2F20100116%2F1263629683&quot; title=&quot;APIO2009 &amp;quot;The Siruseri Convention Centre&amp;quot;解いた - 簡潔なQ&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>2010-01-16 17:14:43</published>
  <title>APIO2009 &quot;The Siruseri Convention Centre&quot;解いた</title>
  <type>rich</type>
  <url>https://qnighy.hatenablog.com/entry/20100116/1263629683</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
