<?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>Div2とはいえ、Eになると実装が結構しんどい… それでは最終問題。 http://codeforces.com/contest/266/problem/E 数列に対してクエリが送られるので、数値を更新したり部分列から計算されるスコアを返す問題。 数列の要素数Nが最大100000個、クエリ数Qも100000個なので、O(NQ)よりも小さく処理しないとダメ。正式なEditorialよりも、blogのページ中のkraskevich氏のコメントの方がわかりやすかったので、これを見て実装。基本的には、セグメントツリーを作って数列の部分に対する和を計算しておき、クエリに対してそれらを取り出して返す。 ち…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkmjp.hatenablog.jp%2Fentry%2F2013%2F02%2F02%2F1030&quot; title=&quot;Codeforces #163 Div2. E. More Queries to Array... - 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-02-02 10:30:00</published>
  <title>Codeforces #163 Div2. E. More Queries to Array...</title>
  <type>rich</type>
  <url>https://kmjp.hatenablog.jp/entry/2013/02/02/1030</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
