<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakaBox</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakaBox/</author_url>
  <blog_title>ボクノス</blog_title>
  <blog_url>https://boxnos.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>TopCoder</anon>
  </categories>
  <description>しばらくブログラムよりも英語で悩みそうだ。 電話番号とかだと、東京が03,大阪が06みたいになってる。そういう文字集合をPrefixCodeというらしい。035という番号をどこかの地域に割り当てるなんて事はしないので、PrefixCodeの正当性をチェックしたいと。 {&quot;10001&quot;, &quot;011&quot;, &quot;100&quot;, &quot;001&quot;, &quot;10&quot;}が与えられた時は、100が不正なので、&quot;No, 2&quot;を返して、{&quot;1010&quot;, &quot;11&quot;, &quot;100&quot;, &quot;0&quot;, &quot;1011&quot;}なら、PrefixCodeとして使えるので&quot;Yes&quot;を返すと。 ふぅ。ここまで理解するのにだいぶ時間がかかるな。 #include…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20080527%2F1211847393&quot; title=&quot;  SRM 151 DIV2 Level One - PrefixCode - ボクノス&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>2008-05-27 09:16:33</published>
  <title>  SRM 151 DIV2 Level One - PrefixCode</title>
  <type>rich</type>
  <url>https://boxnos.hatenablog.com/entry/20080527/1211847393</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
