<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jeneshicc</author_name>
  <author_url>https://blog.hatena.ne.jp/jeneshicc/</author_url>
  <blog_title>落書き、時々落学</blog_title>
  <blog_url>https://jeneshicc.hatenadiary.org/</blog_url>
  <categories>
    <anon>TopCoder</anon>
  </categories>
  <description>気分転換に練習問題として，解いてみた． 生成される数列（文字列）が再帰的構造のようなものをもっている． なので，再帰で書けばシンプル． アルゴリズムは結構，すぐ思いついた． しかし，C++は慣れてないので，時間かかったよ． string password(int n, long long k) { if (n == 1) return k == 1? &quot;0&quot;: &quot;1&quot;; long long q = 1 &lt;&lt; --n; if (k &lt;= q) return &quot;0&quot; + password(n, k); return &quot;1&quot; + max(pass(n, q), password(n, k - 1 -…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjeneshicc.hatenadiary.org%2Fentry%2F20090806%2F1249578948&quot; title=&quot;SRM445 550 （練習） - 落書き、時々落学&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>2009-08-06 02:15:48</published>
  <title>SRM445 550 （練習）</title>
  <type>rich</type>
  <url>https://jeneshicc.hatenadiary.org/entry/20090806/1249578948</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
