<?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>行列累乗</anon>
    <anon>トロピカル代数</anon>
  </categories>
  <description>公式解説では数学的考察によって導く方針も掲載されていたが、仮に本番当時の自分がその通りに導き出せるという正解に辿り着けていたにしても本問（あるいはきわめて状況設定が似通った問題）にしか通用しないと思われるので、より広範な問題に対して適用可能であろう「トロピカル代数を利用した行列累乗への帰着」方針を確実に身に着けるべく記載する。 ＜問題のページ＞ AWC0021 E - 畑の水やり計画 ＜問題の概要＞ 3つの整数\(N,a,b\)が入力で与えられる。AかBどちらか一方の行動を行うということを\(N\)回ちょうどだけ繰り返す。行動Aを行う場合は\(a\)の、行動Bを行う場合は\(b\)の利得を基本…</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%2F074041&quot; title=&quot;行列累乗(2)（AWC0021 E - 畑の水やり計画） - 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 07:40:41</published>
  <title>行列累乗(2)（AWC0021 E - 畑の水やり計画）</title>
  <type>rich</type>
  <url>https://junkobayashi.hatenablog.com/entry/2026/03/13/074041</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
