<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>peroon</author_name>
  <author_url>https://blog.hatena.ne.jp/peroon/</author_url>
  <blog_title>perogram</blog_title>
  <blog_url>https://perogram.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>Quiz https://codeforces.com/contest/1475/problem/G AC https://codeforces.com/contest/1475/submission/105517286 解説 aの値が重複していない場合を考えると、小さい値から下図のようにDPしていくと「残せる最大頂点数」が求まる aの値が同じものはそれら同士で辺を張ることで条件を満たすので、aの値が重複している場合もほぼ同じで、「残せる最大頂点数」のサイズだけ気をつければいい 計算量 Time LimitがシビアでTLEしていたので、各数字のカウントをmapからvectorにした dpの箇所…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2F2021%2F01%2F27%2F062808&quot; title=&quot;G - Strange Beauty - perogram&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/p/peroon/20210127/20210127062803.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-27 06:28:08</published>
  <title>G - Strange Beauty</title>
  <type>rich</type>
  <url>https://perogram.hateblo.jp/entry/2021/01/27/062808</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
