<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
    <anon>CodeForces</anon>
  </categories>
  <description>問題 codeforces.com 解法 落ち着いて dp すれば良いです。dp[n][m][k] = (n*m の長方形で, ぴったり k 個の square を作るには最低いくつのコストが必要か？) を考えます。分割の仕方は 縦に切るか横に切るかしかなく, 2 つに分割した長方形に対して, 一方で kk 個の square を担当したとすると, もう一方は k-kk 個の square を担当することになります。これらをしっかり場合分けして, コストが一番小さいものを求めれば良いです。 int dp[33][33][55]; int dfs(int n, int m, int k) { i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F02%2F09%2F231102&quot; title=&quot;Educational Codeforces Round 1 E. Chocolate Bar - mayoko’s diary&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>2016-02-09 23:11:02</published>
  <title>Educational Codeforces Round 1 E. Chocolate Bar</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/02/09/231102</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
