<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>d_tutuz</author_name>
  <author_url>https://blog.hatena.ne.jp/d_tutuz/</author_url>
  <blog_title>数学/競プロメモ</blog_title>
  <blog_url>https://tutuz.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>問題 https://atcoder.jp/contests/abc009/tasks/abc009_4 考え方 難しい。半環上に定義される演算は行列の演算と同じことができる。フィボナッチ数列を行列で表すと以下のようになる。 これと同様の考え方でビット演算のANDとXORをANDは 、XORは に対応させることができる。単位元は Long.MAX_VALUE として である。そのように考えると問題で与えられた操作は行列で定義できて、また第 項はフィボナッチ数列と同様の考え方で求めることができる。よって行列累乗で で第 項を求めることができる。 どこに着目して考察するべきだったか 半環の演算に着…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftutuz.hateblo.jp%2Fentry%2F2019%2F01%2F29%2F212325&quot; title=&quot;AtCoder Beginner Contest 009：D - 漸化式 - 数学/競プロメモ&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>2019-01-29 21:23:25</published>
  <title>AtCoder Beginner Contest 009：D - 漸化式</title>
  <type>rich</type>
  <url>https://tutuz.hateblo.jp/entry/2019/01/29/212325</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
