<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>JunKobayashi</author_name>
  <author_url>https://blog.hatena.ne.jp/JunKobayashi/</author_url>
  <blog_title>JunKobayashi's Diary</blog_title>
  <blog_url>https://junkobayashi.hatenablog.com/</blog_url>
  <categories>
    <anon>ABCのE問題</anon>
    <anon>ABC本番で敗北した問題</anon>
    <anon>深さ優先探索</anon>
    <anon>XOR</anon>
    <anon>数列をグラフに帰着させる</anon>
  </categories>
  <description>↓問題のページ↓ ABC396 E - Min of Restricted Sum ※0-indexedで記載する。 （ほとんど自分用の振り返り） 公式解説の方針通りに実装していく。求めるべき\(A\)をそのまま要素数\(N\)の数列として考えるのではなく、\(N\)頂点から成るグラフが、各\(i\)について2頂点\(X_i,Y_i\)を結ぶ重み\(Z_i\)の辺を持ち、頂点\(v\)に対して\(A_v\)という整数値のラベルがつけられているものとして考えていく。\(A[X_i] \oplus A[Y_i]\)の値が\(Z_i\)という定数と等しくなるように各頂点のラベル\(A_v\)を定める…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2025%2F03%2F13%2F215513&quot; title=&quot;ABC396 E - Min of Restricted Sum - JunKobayashi&amp;#39;s Diary&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>2025-03-13 21:55:13</published>
  <title>ABC396 E - Min of Restricted Sum</title>
  <type>rich</type>
  <url>https://junkobayashi.hatenablog.com/entry/2025/03/13/215513</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
