<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>d_tutuz</author_name>
  <author_url>https://blog.hatena.ne.jp/d_tutuz/</author_url>
  <blog_title>数学/競プロメモ</blog_title>
  <blog_url>https://tutuz.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>問題 http://codeforces.com/contest/1042/problem/D 数列 a_n が与えられる。[l, r] の区間和が t 未満になる区間の数を求めよ。 考え方 まず、数列の連続する区間和は累積和の 2 点で求められます。 今、求めるべき区間はある 2 点 i, j (i &lt; j) について a_j - a_i &lt; t となるような i, j です。j を固定すると求める i は a_j - t &lt; a_i を満たす i になります。このような i は BIT で転倒数を求める要領と同じ考え方で求めることができます。 「数列の要素を BIT の index と見立…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftutuz.hateblo.jp%2Fentry%2F2018%2F09%2F18%2F222351&quot; title=&quot;Codeforces Round #510 (Div. 2)：Petya and Array - 数学/競プロメモ&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-18 22:23:51</published>
  <title>Codeforces Round #510 (Div. 2)：Petya and Array</title>
  <type>rich</type>
  <url>https://tutuz.hateblo.jp/entry/2018/09/18/222351</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
