<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Respect2D</author_name>
  <author_url>https://blog.hatena.ne.jp/Respect2D/</author_url>
  <blog_title>Respect2Dの日記</blog_title>
  <blog_url>https://respect2d.hatenadiary.org/</blog_url>
  <categories>
    <anon>uva</anon>
    <anon>DP</anon>
  </categories>
  <description>問題概要 M本(4以上20以下)の長さが様々な棒が与えられる。 これらM本の棒を使って正方形の4つの辺を作ることができるか答えよ。 棒は折ったり曲げたりしてはいけません。 解法 まず、正方形を絶対作れない場合を考えましょう。 棒の長さを全部足し合わせて、もしこの数字が4で割り切れなければ絶対に正方形を作れないですよね。もし、4で割り切れるならば、正方形になる可能性を持っています。 ここで、(棒の長さの合計 / 4)をlenと置きます。さて、本当に正方形を作れるかどうかは、以下のDPで解けます。 dp[正方形の辺を何本作ったか(4)][どの棒を使用したか(2^M)] = このようなパターンを作れ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frespect2d.hatenadiary.org%2Fentry%2F20130201%2F1359710590&quot; title=&quot; UVa : 10364 - Square - Respect2Dの日記&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>2013-02-01 18:23:10</published>
  <title> UVa : 10364 - Square</title>
  <type>rich</type>
  <url>https://respect2d.hatenadiary.org/entry/20130201/1359710590</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
