<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tubo28</author_name>
  <author_url>https://blog.hatena.ne.jp/tubo28/</author_url>
  <blog_title>tubo28のブログ</blog_title>
  <blog_url>https://tubo028.hatenablog.jp/</blog_url>
  <categories>
    <anon>データ構造</anon>
    <anon>UVa</anon>
    <anon>平方分割</anon>
  </categories>
  <description>問題 個の可変抵抗が直列に繋がれている。 番目の抵抗を に変更 区間 の合成抵抗を出力(直列だから足すだけ) という指示が来るので順番に処理せよ。 平方分割 抵抗もクエリも多いので普通に足すだけだとTLEする。 以前にあり本のFenwick Treeをコピペして解いたけど、平方分割のバケット法というテクニックを知ったので、その練習のためにやり直した。 このスライドが参考になった。 http://www.slideshare.net/iwiwi/ss-3578491 FenwickTreeは更新が ,出力も 、平方分割による 分木だと更新に ,出力に かかる。実際に掛かった時間はFenwickT…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftubo028.hatenablog.jp%2Fentry%2F2014%2F06%2F30%2F174028&quot; title=&quot;平方分割のバケット法で区間の和を効率的に求める (UVa 12086 Potentiometers) - tubo28のブログ&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>http://chart.apis.google.com/chart?cht=tx&amp;chl=%7BN%7D</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-06-30 17:40:28</published>
  <title>平方分割のバケット法で区間の和を効率的に求める (UVa 12086 Potentiometers)</title>
  <type>rich</type>
  <url>https://tubo028.hatenablog.jp/entry/2014/06/30/174028</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
