<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ishikado</author_name>
  <author_url>https://blog.hatena.ne.jp/ishikado/</author_url>
  <blog_title>ishikadoのアルゴリズム勉強録</blog_title>
  <blog_url>https://ishikado.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>すべての人はある2つの国のどちらかに属する。 ここで、各人ごとに、国aに属する、国bに属する、という２つのノードを用意する。 人x,yが同じ国に属するというのは、x,y両方が国aもしくは国bに属するということである。 人x,yが違う国に属する（敵）というのは、xが国a,yが国bに属するもしくはその逆のどちらかが起こるということである。 こうして別の国に属するということも表せるようになる。 ここで、同時におこりうる事象をすべてしらべ、ひとまとめにしていくと、queryが来た時に、すべての起こりうるパターンを調べればよくなる。 friendであるかは(x-a,y-a)or(x-b,y-b)を en…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fishikado.hatenadiary.org%2Fentry%2F20130617%2F1371464462&quot; title=&quot;UVA10158 - ishikadoのアルゴリズム勉強録&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>2013-06-17 19:21:02</published>
  <title>UVA10158</title>
  <type>rich</type>
  <url>https://ishikado.hatenadiary.org/entry/20130617/1371464462</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
