<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Akira-M</author_name>
  <author_url>https://blog.hatena.ne.jp/Akira-M/</author_url>
  <blog_title>I♥TLE</blog_title>
  <blog_url>https://systemdotout.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>POJ</anon>
    <anon>動的計画法</anon>
  </categories>
  <description>問題（外部リンク） 2441 -- Arrange the Bulls 実装の概要 空いているところに牛を配置する問題。深さ優先探索では間に合いません。 ただ、nおよびmの最大値は大きくないのでビットDPであればで求めることができます。 具体的には、例えば1101(2進数)を1、3、4番目のスペースに既に牛が配置されているということにすれば更にそこに次の牛を配置できるかはAND演算で調べることができます。 簡単のため、牛は必ず入力された順に配置されると考えて大丈夫です。 入力例であれば、まず牛1は1および4に配置可能なのでdp[1][0]とdp[8][0]が1になります（それぞれ2^0および2…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsystemdotout.hatenablog.com%2Fentry%2F2018%2F09%2F10%2F164522&quot; title=&quot;2441-Arrange the Bulls - I♥TLE&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>2018-09-10 16:45:22</published>
  <title>2441-Arrange the Bulls</title>
  <type>rich</type>
  <url>https://systemdotout.hatenablog.com/entry/2018/09/10/164522</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
