<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>parukii</author_name>
  <author_url>https://blog.hatena.ne.jp/parukii/</author_url>
  <blog_title>parukiのブログ</blog_title>
  <blog_url>https://par.hateblo.jp/</blog_url>
  <categories>
    <anon>二分探索</anon>
    <anon>XOR</anon>
  </categories>
  <description>排他的論理和が総和以下っぽい。詳しく説明する。 とする。 まずが成り立つ。更にも成り立つ。 部分文字列の左端lを固定してみる。このときr=lならば明らかに条件を満たす。 A[l]⊕A[l+1]⊕...⊕A[r] &lt; A[l]+A[l+1]+...+A[r] が成り立つと仮定する。このとき、先のxorの性質により A[l]⊕A[l+1]⊕...⊕A[r]⊕A[r+1] &lt; A[l]+A[l+1]+...+A[r]+A[r+1] が成り立つ。 よって右端をいくら伸ばしても常に総和のほうが大きい。 つまりl&lt;=r&lt;=Nについて順に 等しい、等しい、等しい、等しい、総和のほうが大きい、総和のほうが大き…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpar.hateblo.jp%2Fentry%2F2018%2F05%2F28%2F145706&quot; title=&quot;D: Xor Sum 2 - AtCoder Regular Contest 098 - parukiのブログ&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>https://chart.apis.google.com/chart?cht=tx&amp;chl=x%2C%20y%2C%20z%20%5Cin%20%5Cmathbb%7BZ%7D_%2B</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-05-28 14:57:06</published>
  <title>D: Xor Sum 2 - AtCoder Regular Contest 098</title>
  <type>rich</type>
  <url>https://par.hateblo.jp/entry/2018/05/28/145706</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
