<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hitoare</author_name>
  <author_url>https://blog.hatena.ne.jp/hitoare/</author_url>
  <blog_title>hitoare日記</blog_title>
  <blog_url>https://hitoare.hatenablog.com/</blog_url>
  <categories>
    <anon>競技プログラミング</anon>
    <anon>AtCoder</anon>
    <anon>ABC</anon>
  </categories>
  <description>問題リンク atcoder.jp 問題概要 \(H+1 \times W \)マスのグリッドがある。 グリッド上は右か下に移動できる。 ただし、上からk行目からk+1行目に移動する時、左から\(A_k\)マス目から\(B_k\)マス目の区間で下方向に移動するのは禁止されている。 一番上のWマスのうちのいずれかからスタートして、k+1行目に到達するまでの最小移動回数を\(1 \leq k \leq H\)に対して求めよ。到達不可能ならば-1を出力せよ。 解法 縦移動の回数は決まっているので、横方向の最小移動回数を求める。 各行のWマスに対し、「その地点に到達するのに必要な横移動の最小回数」を上か…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhitoare.hatenablog.com%2Fentry%2F2020%2F08%2F29%2F230642&quot; title=&quot;F - I hate Shortest Path Problem(AtCoder Beginner Contest 177) - hitoare日記&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>2020-08-29 23:06:42</published>
  <title>F - I hate Shortest Path Problem(AtCoder Beginner Contest 177)</title>
  <type>rich</type>
  <url>https://hitoare.hatenablog.com/entry/2020/08/29/230642</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
