<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anta1</author_name>
  <author_url>https://blog.hatena.ne.jp/anta1/</author_url>
  <blog_title>antaの競技プログラミング練習日記</blog_title>
  <blog_url>https://anta1.hatenadiary.org/</blog_url>
  <categories>
    <anon>雑記</anon>
    <anon>信頼性低</anon>
  </categories>
  <description>※あくまでメモ・信頼性は全くない N文字のK種類の文字からなる文字列strで、「i番目以降に文字cが出てくる最初のインデックスを各i,cについて全て求める」は後ろからやるとO(NK) int dp[K][N+1]; for(int c = 0; c &lt; K; c ++) { dp[c][N] = INF; for(int i = N-1; i &gt;= 0; i ++) { dp[c][i] = str[i] == c ? 0 : min(dp[c][i+1]+1, INF); } } 「長さNの文字列1をちょうど(exactly)k回swapして文字列2に出来るか？」は int t = N-閉路…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanta1.hatenadiary.org%2Fentry%2F20120918%2F1347974951&quot; title=&quot;思いついたものメモ - antaの競技プログラミング練習日記&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>2012-09-18 22:29:11</published>
  <title>思いついたものメモ</title>
  <type>rich</type>
  <url>https://anta1.hatenadiary.org/entry/20120918/1347974951</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
