<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>d_tutuz</author_name>
  <author_url>https://blog.hatena.ne.jp/d_tutuz/</author_url>
  <blog_title>数学/競プロメモ</blog_title>
  <blog_url>https://tutuz.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>問題 https://atcoder.jp/contests/abc117/tasks/abc117_d 考え方 考えていた解法(貪欲) bitのXORを考える問題なので、bitの桁ごとに考えていこう。bitごとに独立して考えることができる。 について という制約がなければ本当にbitごとに上から貪欲でOK。ただし であるから少し工夫が必要である。 まず各bitごとに に含まれる or のbitの個数を求めよう。上位 桁目のビットが である個数を とする。そのとき の上位 桁目のbitが であれば、 を選択できる。そうでなく の上位 桁目のbitが であれば を選ぶしかない。このようにして数を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftutuz.hateblo.jp%2Fentry%2F2019%2F02%2F04%2F091344&quot; title=&quot;AtCoder Beginner Contest 117：D - XXOR - 数学/競プロメモ&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=f%28X%29</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-02-04 09:13:44</published>
  <title>AtCoder Beginner Contest 117：D - XXOR</title>
  <type>rich</type>
  <url>https://tutuz.hateblo.jp/entry/2019/02/04/091344</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
