<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>drken1215</author_name>
  <author_url>https://blog.hatena.ne.jp/drken1215/</author_url>
  <blog_title>けんちょんの競プロ精進記録</blog_title>
  <blog_url>https://drken1215.hatenablog.com/</blog_url>
  <categories>
    <anon>AtCoder</anon>
    <anon>AtCoder300点</anon>
    <anon>茶色diff</anon>
    <anon>AGC-A</anon>
    <anon>最適化の考察：最適解の形を考える</anon>
    <anon>考察：場合分けして考える</anon>
    <anon>考察：一部の変数を固定して考える</anon>
    <anon>辞書順</anon>
    <anon>Greedy</anon>
    <anon>Greedy:辞書順最小を求める</anon>
  </categories>
  <description>ある程度探索でゴリ押した。 問題へのリンク 問題概要 英小文字のみからなり、どの 2 文字も互いに相異なる文字列を「多彩」であると呼ぶこととする。多彩な文字列 が与えられる。以下の条件を満たす文字列の中で最も辞書順が小さいものを求めよ。 よりも辞書順で大きい 多彩である 存在しない場合は &quot;-1&quot; を出力せよ。 制約 は多彩な文字列 考えたこと まず が 26 文字未満ならば、「使用していない文字」があるはずである。そのうちの最小の文字を c として、S + c が答えとなる。 が 26 文字である場合は、すべての英小文字が 1 回ずつ用いられているはずである。この場合はある i に対して、 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdrken1215.hatenablog.com%2Fentry%2F2020%2F11%2F07%2F044400&quot; title=&quot;AtCoder AGC 022 A - Diverse Word (茶色, 300 点) - けんちょんの競プロ精進記録&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.user.blog.st-hatena.com/default_entry_og_image/80936665/1516148889515660</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-11-07 04:44:00</published>
  <title>AtCoder AGC 022 A - Diverse Word (茶色, 300 点)</title>
  <type>rich</type>
  <url>https://drken1215.hatenablog.com/entry/2020/11/07/044400</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
