<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tkr987</author_name>
  <author_url>https://blog.hatena.ne.jp/tkr987/</author_url>
  <blog_title>7K blog</blog_title>
  <blog_url>https://9871225.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>https://atcoder.jp/contests/joi2010ho/submissions/15527888 半開区間にすれば、そのまま宿の距離になる 制約から移動距離をO(1)で求めたいので累積和にする。移動開始をs、移動終了をt、としたとき移動がマイナスだと区間が[t, s)となってしまうが、[min(s, t), max(s, t))とすればシンプルに実装できる。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F9871225.hatenablog.com%2Fentry%2F2020%2F08%2F03%2F071603&quot; title=&quot;第９回日本情報オリンピック 本選 A - 旅人 - 7K 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>https://cdn-ak.f.st-hatena.com/images/fotolife/t/tkr987/20200803/20200803065941.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-08-03 07:16:03</published>
  <title>第９回日本情報オリンピック 本選 A - 旅人</title>
  <type>rich</type>
  <url>https://9871225.hatenablog.com/entry/2020/08/03/071603</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
