<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hamayanhamayan</author_name>
  <author_url>https://blog.hatena.ne.jp/hamayanhamayan/</author_url>
  <blog_title>はまやんはまやんはまやん</blog_title>
  <blog_url>https://blog.hamayanhamayan.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
  </categories>
  <description>ゲーム問題を解決する手段 Nim 「N個の石山があり、交互に山から石を任意個取っていく。先に取れなくなったほうが負け。」 各石山の個数をx[i]個とすると、勝敗は各山の個数を全てxorした値を見れば分かる。全てxorして=0なら先手は負け、!=0なら勝ち Nimの派生 二次元nim 資料1 資料2 問題 問題 Grundy数 2人でやるようなゲームではGrundy数に帰着させることでNimの原理で解ける場合がある Grundy数を以下のように定める 負け状態のGrundy数は0 ある状態のGrundy数はそこから遷移可能な状態のGrundy数の中で最小の非負整数 grundy数とNimにおける…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2017%2F02%2F27%2F025050&quot; title=&quot;競技プログラミングにおけるゲーム問題まとめ [Nim,Grundy数,後退解析,ミニマックス法] - はまやんはまやんはまやん&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>2017-02-27 02:50:50</published>
  <title>競技プログラミングにおけるゲーム問題まとめ [Nim,Grundy数,後退解析,ミニマックス法]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2017/02/27/025050</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
