<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bouzuya</author_name>
  <author_url>https://blog.hatena.ne.jp/bouzuya/</author_url>
  <blog_title>bouzuya.hatenablog.com</blog_title>
  <blog_url>https://bouzuya.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>アルゴリズムと数学 演習問題集 075 - Pyramid を解いた。 問題: https://atcoder.jp/contests/math-and-algorithm/tasks/math_and_algorithm_bi 例題。愚直に二重ループしてしまうと O(N^2) で N &lt;= 2 * 10^5 という制約なので間に合わない。何かしらの工夫が必要になる。昨日 (2022-03-07) と同じだ。 a b c d a+b b+c c+d a+2b+c b+2c+d a+3b+3c+d まず係数部分に注目する。ある数が何回足されるかはそこから一番上までの経路の数になる。ピラミッドは斜…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2022%2F03%2F08%2F220418&quot; title=&quot;アルゴリズムと数学 演習問題集 075 - Pyramid を解いた - bouzuya.hatenablog.com&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>2022-03-08 22:04:18</published>
  <title>アルゴリズムと数学 演習問題集 075 - Pyramid を解いた</title>
  <type>rich</type>
  <url>https://bouzuya.hatenablog.com/entry/2022/03/08/220418</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
