<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moistx</author_name>
  <author_url>https://blog.hatena.ne.jp/moistx/</author_url>
  <blog_title>Logfiles</blog_title>
  <blog_url>https://logfiles.hatenablog.com/</blog_url>
  <categories>
    <anon>TopCoder</anon>
    <anon>SRM</anon>
  </categories>
  <description>問題概要 アルファベットの大文字で構成された vector が与えられる。この要素の順列から生成される文字列Sのうち、Sを1文字ずつシフトするように回転させたときちょうど K 回転となるものの数を答えよ。制約 vector の要素は 1 〜 8 各文字列は 20 文字まで 解法 next_permutation() × rotate() で計算が間に合う。rotate() の最悪計算量はO(N)なので、計算量は 8!*(20^2) ＝θ(10^7) なので O(10^8) で抑えられる。（計算量の記法はこんなので正しいのかわからない） class MagicWords { public: in…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140409%2F1397049416&quot; title=&quot;SRM423 Div2Med MagicWords - Logfiles&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>2014-04-09 22:16:56</published>
  <title>SRM423 Div2Med MagicWords</title>
  <type>rich</type>
  <url>https://logfiles.hatenablog.com/entry/20140409/1397049416</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
