<?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 - E2 - Codeforces 問題概要 冊の本があり、本 は読むための所要時間 、アリスがその本を好きかどうか 、ボブがその本を好きかどうか で特徴付けられる。 冊の本からちょうど 冊の本を以下の条件を満たすように選ぶとき、その合計所要時間の最小値と、それを実現する選び方の一例を求めよ。ただし条件を満たす選び方が存在しないときは -1 を出力せよ。 選んだ本の中にアリスの好きな本が 冊以上含まれ、かつボブが好きな本が 冊以上含まれる。 制約 解法 まず本を で分類し、 の4つの配列を作ります。それぞれ の値でソートしておきます。 「 に属する本から少なくとも 冊選び、 に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbetrue12.hateblo.jp%2Fentry%2F2020%2F06%2F29%2F125833&quot; title=&quot;Codeforces Round #653 (Div. 3) E2. Reading Books (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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/106916089/1592411661884548</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-06-29 12:58:33</published>
  <title>Codeforces Round #653 (Div. 3) E2. Reading Books (hard version)</title>
  <type>rich</type>
  <url>https://betrue12.hateblo.jp/entry/2020/06/29/125833</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
