<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>JunKobayashi</author_name>
  <author_url>https://blog.hatena.ne.jp/JunKobayashi/</author_url>
  <blog_title>JunKobayashi's Diary</blog_title>
  <blog_url>https://junkobayashi.hatenablog.com/</blog_url>
  <categories>
    <anon>ABCのE問題</anon>
    <anon>ABC本番で敗北した問題</anon>
    <anon>行列累乗</anon>
    <anon>レピュニット数</anon>
  </categories>
  <description>競技プログラミングの問題で「行列の冪乗を求める」ことに帰着させられることが分かった時には俗に「行列累乗」と呼ばれている手法を利用するのが想定解となっていることが多い。これを実行するための処理内容は 「998244353 で割ったあまり」の求め方を総特集！ 〜 逆元から離散対数まで 〜 #競技プログラミング - Qiita 上記の記事で紹介されている「二分累乗法」とほとんど同じものとして記述することができ、扱う正方行列を\(N \times N\)型、冪乗の指数を\(x\)とすれば時間計算量\(O(N^3 \log x)\)で実行可能となる。なお、この処理は行列の積には結合法則が成り立っているこ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjunkobayashi.hatenablog.com%2Fentry%2F2026%2F03%2F13%2F041840&quot; title=&quot;行列累乗(1)（ABC448 E - Simple Division） - JunKobayashi&amp;#39;s Diary&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>2026-03-13 04:18:40</published>
  <title>行列累乗(1)（ABC448 E - Simple Division）</title>
  <type>rich</type>
  <url>https://junkobayashi.hatenablog.com/entry/2026/03/13/041840</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
