<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>AOJ</anon>
    <anon>OUPC</anon>
    <anon>有志コン</anon>
    <anon>XOR</anon>
    <anon>BinaryTrie</anon>
    <anon>trie木</anon>
    <anon>半分全列挙</anon>
    <anon>N個のペア値の問題</anon>
    <anon>DP状態:smaller(桁DP)</anon>
    <anon>再帰的に上位桁から順に値で分類した木を作る</anon>
    <anon>0と1の問題</anon>
    <anon>データ構造</anon>
    <anon>制約条件:総和&lt;=K</anon>
    <anon>どの場所で初めてsmallerになるかを考える</anon>
    <anon>DP状態:どの桁まで見たか(広義の桁DP)</anon>
    <anon>大学コンテスト</anon>
  </categories>
  <description>半分全列挙 + Binary Trie！！ あるいは、Binary Trie 自体を意識しなくても、上の位から順に桁 DP 的発想で考えていると、それが自然に Binary Trie 上の探索そのものとみなせる！ すごくいい Binary Trie の経験になった！！ 問題へのリンク editorial 問題概要 2 組の 個の整数 、 が与えられる ( は 0 以上)。 の部分集合 であって、 の XOR 和が 以下であるもののうち、 の最大値を求めよ。 制約 考えたこと 見た目はいかにも半分全列挙！！！ 半分全列挙することを考えると、次のような処理を高速にこなせるデータ構造を設計したくなる…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2020%2F12%2F13%2F030800&quot; title=&quot;AOJ 3213 Xor Mart (OUPC 2020 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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/80936665/1516148889515660</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-12-13 03:08:00</published>
  <title>AOJ 3213 Xor Mart (OUPC 2020 E)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2020/12/13/030800</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
