<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>baitop</author_name>
  <author_url>https://blog.hatena.ne.jp/baitop/</author_url>
  <blog_title>バイトの競プロメモ</blog_title>
  <blog_url>https://baitop.hatenadiary.jp/</blog_url>
  <categories>
    <anon>bit</anon>
    <anon>探索範囲を削る</anon>
  </categories>
  <description>D - Two Sequences 長さNの数列 a,bが与えられる。 ai bjのN^2の全ての選び方について、ai + bjを計算しする。 それらのxorを求めよ 制約 入力は全て整数 1≤N≤200,0001≤N≤200,000 0≤ai,bi&lt;228 解法 愚直に計算すると間に合わない。 xorは繰り上がりしないので、ある桁で1が奇数回足されればその桁は1になる。 0から数えてK桁目について考える。 ai bjを足した時、K桁目が1になるのはどんな条件の時だろうか？2 ^ KをTとすると、合計がTの時はK桁目だけが1になることが分かる。K桁目が繰り上がるまでは条件を満たす。具体的には[…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaitop.hatenadiary.jp%2Fentry%2F2018%2F07%2F09%2F193455&quot; title=&quot;D - Two Sequences　AtCoder Regular Contest 092　 - バイトの競プロメモ&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-07-09 19:34:55</published>
  <title>D - Two Sequences　AtCoder Regular Contest 092　</title>
  <type>rich</type>
  <url>https://baitop.hatenadiary.jp/entry/2018/07/09/193455</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
