<?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>https://onlinejudge.u-aizu.ac.jp/beta/room.html#KUPC2020Spring/problems/E 前提知識 grundy数 解説 ゲーム問題は実験せよと古事記に書いてあるのでやる。 正確には勝ち負けだけ分かればいいので、grundy数が0になる規則性を探してくる。 ひたすら実験して見てみると、以下のルールが得られる。 Nが奇数 grundy数は配列Aの総和%2となるので、それをみてやる Nが偶数 grundy数の計算は複雑そうなので、0となるルールだけ探す 総和%2=0である、かつ、最小の数が偶数である これを使って勝ち負けを答えよう。 int…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2020%2F03%2F21%2F205712&quot; title=&quot;数列ゲーム [Kyoto University Programming Contest 2020 Spring 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-03-21 20:57:12</published>
  <title>数列ゲーム [Kyoto University Programming Contest 2020 Spring E]</title>
  <type>rich</type>
  <url>https://blog.hamayanhamayan.com/entry/2020/03/21/205712</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
