<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>baitop</author_name>
  <author_url>https://blog.hatena.ne.jp/baitop/</author_url>
  <blog_title>バイトの競プロメモ</blog_title>
  <blog_url>https://baitop.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>問題概略 長さKの数列A,Cが与えられる。 n &gt;= 1で An+k = (c1 &amp; An+k-1) xor (c2 &amp; An+k-2) xor .....(ck &amp; An)である時、 Amを求めよ制約 M N A &amp;とxorが*,+なら行列のべき乗の形にして高速に解ける。 実は今回も同様に出来る。 32ビットの非負の数は&amp;,xor上で半環であり、単位元や交換法則が成り立つので。 単位元には~0Lを使えば良い public static void solve() throws Exception { //longを忘れるなオーバーフローするぞ K = ni(); M = ni(); A = n…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaitop.hatenadiary.jp%2Fentry%2F2018%2F08%2F24%2F170430&quot; title=&quot;D - 漸化式　AtCoder Beginner Contest 009 - バイトの競プロメモ&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>2018-08-24 17:04:30</published>
  <title>D - 漸化式　AtCoder Beginner Contest 009</title>
  <type>rich</type>
  <url>https://baitop.hatenadiary.jp/entry/2018/08/24/170430</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
