<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>agw</author_name>
  <author_url>https://blog.hatena.ne.jp/agw/</author_url>
  <blog_title>agwの日記</blog_title>
  <blog_url>https://agw.hatenablog.jp/</blog_url>
  <categories>
    <anon>Algorithm</anon>
    <anon>!</anon>
  </categories>
  <description>先日参加したコンテストにこんな問題が出題されました。排他的論理和を使う問題です。 nとxが与えられる。n個の異なる整数のビットごとに排他的論理和を取ってxとなるようにしたい。n個の非負整数を出力せよ ただし、1 ≦ n ≦ 105、0 ≦ x ≦ 105とし、出力する非負整数は106までとする 排他的論理和は融通が効く印象がありました。n - 1個の0から始まる連続した整数を用意してそのビットごとの排他的論理和を取り、最後の一個で辻褄を合わせられるんじゃないか? と考えました(その方針の元で実装した解法は無事、システムテストを通過しました!) 排他的論理和の計算は色々なアルゴリズムに登場します…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fagw.hatenablog.jp%2Fentry%2F2017%2F10%2F04%2F144951&quot; title=&quot;Series of Xor Arithmetics - agwの日記&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://cdn-ak.f.st-hatena.com/images/fotolife/a/agw/20171004/20171004090350.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-10-04 14:49:51</published>
  <title>Series of Xor Arithmetics</title>
  <type>rich</type>
  <url>https://agw.hatenablog.jp/entry/2017/10/04/144951</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
