<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mayokoex</author_name>
  <author_url>https://blog.hatena.ne.jp/mayokoex/</author_url>
  <blog_title>mayoko’s diary</blog_title>
  <blog_url>https://mayokoex.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>問題 https://www.facebook.com/hackercup/problem/1525154397757404/ 解法 まず, 前準備として ある文字列から別の文字列に変換する際に必要なコストを計算します。これは, それぞれの suffix がどこまで一致しているかを調べることで求められます。また, suffix でコストが決まることを考えると, 文字列を作る順番は, 辞書順にすることが有利です。ということで, dp[now][num] = (now 個目までの文字列までで num 個の文字を print した時の, 操作の最小回数) という dp を考えれば, 答えを求められま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2016%2F01%2F14%2F232049&quot; title=&quot;Facebook Hacker Cup 2016 Qualification Round Text Editor - mayoko’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>2016-01-14 23:20:49</published>
  <title>Facebook Hacker Cup 2016 Qualification Round Text Editor</title>
  <type>rich</type>
  <url>https://mayokoex.hatenablog.com/entry/2016/01/14/232049</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
