<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>simezi_tan</author_name>
  <author_url>https://blog.hatena.ne.jp/simezi_tan/</author_url>
  <blog_title>simezi_tanの日記</blog_title>
  <blog_url>https://simezi-tan.hatenadiary.org/</blog_url>
  <categories>
    <anon>TopCoder</anon>
    <anon>文字列</anon>
    <anon>貪欲法</anon>
  </categories>
  <description>問題 n個の単語を、幅w文字になるよう単語と単語の間に&quot;_&quot;を入れて一行に書きたい。 それぞれの単語と単語の間の&quot;?&quot;の数はなるべく均等になるようにしたい。 （すなわち、最も多い&quot;_&quot;と最も少ない&quot;_&quot;の差が1以下になるようにしたい） それが複数ある場合、辞書順で最小になるものを選ぶ。 &quot;_&quot;を入れて、単語を幅wになるように並べて書いたものを出力せよ。 先頭の単語の前および、最後の単語の後ろには&quot;_&quot;を入れることはできない。 また、&quot;_&quot;は文字コードで、大文字よりも後に来て、小文字よりも前に来る。 制約条件 n≦10 w≦200</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsimezi-tan.hatenadiary.org%2Fentry%2F20120104%2F1325668151&quot; title=&quot;TopCoder SRM 385 Div1 Easy UnderscoreJustification - simezi_tanの日記&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-01-04 18:09:11</published>
  <title>TopCoder SRM 385 Div1 Easy UnderscoreJustification</title>
  <type>rich</type>
  <url>https://simezi-tan.hatenadiary.org/entry/20120104/1325668151</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
