<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>geam1113</author_name>
  <author_url>https://blog.hatena.ne.jp/geam1113/</author_url>
  <blog_title>geam1113’s diary</blog_title>
  <blog_url>https://geam1113.hatenablog.com/</blog_url>
  <categories>
    <anon>ABC</anon>
    <anon>貪欲法</anon>
    <anon>Union-Find</anon>
  </categories>
  <description>C -Distribution すぬけくんの番号を0-indexedとします。i番目のすぬけくんが宝石をもらう最短時刻ans[i]が分かっていれば、i+1番目(正確には(i+1)%N)のすぬけくんが宝石をもらう最短時刻ans[i+1]は、 ans[i+1] = min(T[i+1], ans[i] + S[i]) で求まります。これをT[i]が最も小さいものから始めて、順に一周分計算すれば全ての時刻が求められます。 最初、常に1番目のすぬけくんから計算を始めていたため、WAとなりました。解説の通り、2周すれば問題なかったです。 提出コード：https://atcoder.jp/contests…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgeam1113.hatenablog.com%2Fentry%2F2021%2F08%2F16%2F001534&quot; title=&quot;ABC214 参加記録 - geam1113’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>2021-08-16 00:15:34</published>
  <title>ABC214 参加記録</title>
  <type>rich</type>
  <url>https://geam1113.hatenablog.com/entry/2021/08/16/001534</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
