<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>前提知識 オイラーツアー 遅延評価セグメントツリー（区間xor1区間総和） 解法 https://onlinejudge.u-aizu.ac.jp/beta/review.html#RitsCamp18Day3/2753110部分木にまつわるクエリなので、オイラーツアーとセグメントツリーを使ういつものやつかなと想像する。 クエリの内容を考えてみると、これは値の反転をしていることになる。 そして、Gの数やWの数を数えるのは、全体の総和を取っている感じになるので、区間xor1（区間反転）区間総和の遅延評価セグメントツリーがあれば解けると言える。 この実装が一番難しいのだが、遅延評価の情報として「反…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2018%2F03%2F28%2F130458&quot; title=&quot;Broccoli or Cauliflower [RUPC2018 Day3 E] - はまやんはまやんはまやん&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-03-28 13:04:58</published>
  <title>Broccoli or Cauliflower [RUPC2018 Day3 E]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2018/03/28/130458</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
