<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lan496</author_name>
  <author_url>https://blog.hatena.ne.jp/lan496/</author_url>
  <blog_title>lan496の日記</blog_title>
  <blog_url>https://lan496.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>どのメモリを使用したかをbitで管理する。 n個の指示を完了するためには、goal := s[0] | s[1] | ... | s[n-1] でbitの立っているメモリを少なくとも一回は使わなければならない。 逆に、goalで立っているbitに対応するメモリを全て実行したならば全ての指示は時間0で実行できる。よって、どのメモリを使用したかだけを情報としてもってbitDPをすればよい。dp[S] := (Sに対応するメモリを実行するのにかかる時間の総和) #include &lt;bits/stdc++.h&gt; using namespace std; typedef long long ll; #d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flan496.hatenadiary.jp%2Fentry%2F2015%2F09%2F12%2F020845&quot; title=&quot;SRM 667 Div1 Easy Order Of Operations - lan496の日記&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>2015-09-12 02:08:45</published>
  <title>SRM 667 Div1 Easy Order Of Operations</title>
  <type>rich</type>
  <url>https://lan496.hatenadiary.jp/entry/2015/09/12/020845</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
