<?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>
    <anon>拡張ダイクストラ</anon>
  </categories>
  <description>コンテスト中AC:A〜E D - Takahashi's Solitaire E - Crystal Switches D - Takahashi's Solitaire コンテスト後に考え直したので、メモしておきます。 一旦modを無視します。 以下の問題を解けばこの問題に答えられます。 から要素を順に選び、とする。但し、は以下の条件を満たさなければならない。 について、 要素の和が最大となるを求めよ。 ここで、を昇順ソートしておくと、はの連続部分列となります。 また、和を最大化したいので、連続部分列は条件を満たす限り伸長させた方が良いです。そのため、各要素は2つ以上の連続部分列に属する必要…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgeam1113.hatenablog.com%2Fentry%2F2022%2F11%2F15%2F125527&quot; title=&quot;AtCoder Beginner Contest 277 備忘録 - 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>2022-11-15 12:55:27</published>
  <title>AtCoder Beginner Contest 277 備忘録</title>
  <type>rich</type>
  <url>https://geam1113.hatenablog.com/entry/2022/11/15/125527</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
