<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>denkoshinrai</author_name>
  <author_url>https://blog.hatena.ne.jp/denkoshinrai/</author_url>
  <blog_title>電光影裏に春風を斬る。</blog_title>
  <blog_url>https://denkoshinrai.com/</blog_url>
  <categories>
  </categories>
  <description>atcoder.jp AtCoder Beginner Contestの過去問を少しずつ解き始めたので、メモ。 DPの典型問題は手が勝手に動くくらい訓練しておきたい。 （※大したコードは書けていないので、この記事を参考にするのは推奨しません。） N, M = map(int, input().split()) MOD = 1000000007 collapsed = [False for _ in range(N+1)] dp = [0 for _ in range(N+1)] # 0: 未到達orルートなし # ステップ崩壊地点を登録 for _ in range(M): a = int(i…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdenkoshinrai.com%2Fentry%2F2025%2F11%2F16%2F211605&quot; title=&quot;学習メモ AtCoder ABC129 C - Typical Stairs - 電光影裏に春風を斬る。&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>2025-11-16 21:16:05</published>
  <title>学習メモ AtCoder ABC129 C - Typical Stairs</title>
  <type>rich</type>
  <url>https://denkoshinrai.com/entry/2025/11/16/211605</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
