<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>betrue12</author_name>
  <author_url>https://blog.hatena.ne.jp/betrue12/</author_url>
  <blog_title>ARMERIA</blog_title>
  <blog_url>https://betrue12.hateblo.jp/</blog_url>
  <categories>
    <anon>Codeforces</anon>
    <anon>プログラミング</anon>
    <anon>競技プログラミング</anon>
  </categories>
  <description>お題箱より。 Problem - D2 - Codeforces 問題概要 整数を端点とする 個の閉区間 が与えられる。これらから0個以上の区間を捨てて、全ての整数点について「その整数点を含んでいる区間は 個以下である」という状態にしたい。 捨てる区間の最小個数と、その選び方の1例を求めよ。 制約 解法 小さい方を左として、左から順番に整数点を見ていきます。このとき各整数点について「今見ている整数点を含んでいる区間が 個以下となる」ように区間を捨てていきます。 具体的には「残す区間であって、今見ている整数点を含むもの」の集合を管理するようにします。そして整数点 を見る時には以下の処理をします。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbetrue12.hateblo.jp%2Fentry%2F2019%2F10%2F29%2F004654&quot; title=&quot;Codeforces Round #595 (Div. 3) D2. Too Many Segments (hard version) - ARMERIA&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>2019-10-29 00:46:54</published>
  <title>Codeforces Round #595 (Div. 3) D2. Too Many Segments (hard version)</title>
  <type>rich</type>
  <url>https://betrue12.hateblo.jp/entry/2019/10/29/004654</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
