<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>baitop</author_name>
  <author_url>https://blog.hatena.ne.jp/baitop/</author_url>
  <blog_title>バイトの競プロメモ</blog_title>
  <blog_url>https://baitop.hatenadiary.jp/</blog_url>
  <categories>
    <anon>順列</anon>
    <anon>数え上げ</anon>
    <anon>挿入dp</anon>
  </categories>
  <description>G - Increasing K Times メモ 問題の形からT - Permutationを連想し dp[i][k] := i個置いたときに、前回置いた数よりも大きい数が何個残っているか として遷移しようとしたがうまくいかなかった。 O(N^3)になってしまった permutationの場合は、各iについて大小関係が初めから決まっているので挿入が出来なかったが、今回の場合は挿入が効果的だった。 小さい順に見ることで、大小関係の制約を解決できるのは頻出なので頭に置いておきたい 例 D - Sum of SCC</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaitop.hatenadiary.jp%2Fentry%2F2023%2F07%2F03%2F182405&quot; title=&quot;ABC-G - Increasing K Times - バイトの競プロメモ&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>2023-07-03 18:24:05</published>
  <title>ABC-G - Increasing K Times</title>
  <type>rich</type>
  <url>https://baitop.hatenadiary.jp/entry/2023/07/03/182405</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
