<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thescript1210</author_name>
  <author_url>https://blog.hatena.ne.jp/thescript1210/</author_url>
  <blog_title>ひらめの日常</blog_title>
  <blog_url>https://hiramekun.hatenablog.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
    <anon>グラフ</anon>
    <anon>dp</anon>
    <anon>解法メモ</anon>
    <anon>集合</anon>
    <anon>atcoder</anon>
  </categories>
  <description>問題はこちら 考え方 解答 別解 問題はこちら atcoder.jp までの箱がある。 個目の鍵のコストは であり、 種類の箱を開けることができる。全ての箱を開けるために必要な費用の最小値を答えよ。不可能な場合は を出力せよ。 考え方 まず、これは割と複雑な遷移をすることが分かる。一つの鍵を使うとどうなるか？というと、前の状態から、 この箱が空いた状態に遷移する。 この図は解説放送より引用 さらに今回は なので、各々の鍵を使ったか使ってないかの 通りの状態を管理することが可能。 次に、状態をどうやって管理するか？という問題になる。ここではbit列を使って管理すると良い。（bit全探索とかやって…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiramekun.hatenablog.com%2Fentry%2F2019%2F09%2F29%2F140720&quot; title=&quot;AtCoder: ABC142-E Get Everything (500) - ひらめの日常&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.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-09-29 14:07:20</published>
  <title>AtCoder: ABC142-E Get Everything (500)</title>
  <type>rich</type>
  <url>https://hiramekun.hatenablog.com/entry/2019/09/29/140720</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
