<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y_mazun</author_name>
  <author_url>https://blog.hatena.ne.jp/y_mazun/</author_url>
  <blog_title>y_mazun’s blog</blog_title>
  <blog_url>https://y-mazun.hatenablog.com/</blog_url>
  <categories>
    <anon>SRM</anon>
  </categories>
  <description>(問題概要) 4, 7だけで構成された数値をLucky numberとする。 以下を満たす長さlengthの数列は何個あるか ∀i, A[i] is Lucky number ∀i, ∃j, A[i] = numbers[j] ∀i, last digit of A[i] == first digit of A[i + 1] (解法) numbersのうちのLucky numberだけ残す 初期状態はnumbersのうちどれでもよく、lengthが増えるごとに状態遷移する感じで考える lengthが小さければDPで良いが大きいので行列の累乗を使う 行列の累乗とかいい加減にライブラリ化するべき。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy-mazun.hatenablog.com%2Fentry%2F20121105%2F1352130231&quot; title=&quot;SRM 403: TheLuckySequence - y_mazun’s blog&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>2012-11-05 00:43:51</published>
  <title>SRM 403: TheLuckySequence</title>
  <type>rich</type>
  <url>https://y-mazun.hatenablog.com/entry/20121105/1352130231</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
