<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kmjp</author_name>
  <author_url>https://blog.hatena.ne.jp/kmjp/</author_url>
  <blog_title>kmjp's blog</blog_title>
  <blog_url>https://kmjp.hatenablog.jp/</blog_url>
  <categories>
    <anon>Codeforces</anon>
  </categories>
  <description>さて最後の問題。 http://codeforces.com/contest/263/problem/E 各点の周囲をピラミッド状にスコアをカウントしたときの最大値を答える問題。 数式を見てぱっと思いついたのがAutumnFestのPyramidだった。ということで今回もimos法でチャレンジ。 imos方で各点に対し、各点の上方向45度までの範囲内の数値の累積値をとっておく。 この累積値を使うと、ある点を中心とした斜め45度の正方形の範囲の累積値がO(1)で計算できる。 よって、この問題では各点を中心に半径1～Kまでの正方形の累積値を合計するのがO(K)。 計算対象の座標は(N-K)(M-K…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkmjp.hatenablog.jp%2Fentry%2F2013%2F01%2F26%2F1030&quot; title=&quot;Codeforces #161 Div2. E. Rhombus - kmjp&amp;#39;s blog&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-01-26 10:30:00</published>
  <title>Codeforces #161 Div2. E. Rhombus</title>
  <type>rich</type>
  <url>https://kmjp.hatenablog.jp/entry/2013/01/26/1030</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
