{"blog_url":"https://logfiles.hatenablog.com/","description":"\u554f\u984c\u6982\u8981 \u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u306e\u5927\u6587\u5b57\u3067\u69cb\u6210\u3055\u308c\u305f vector \u304c\u4e0e\u3048\u3089\u308c\u308b\u3002\u3053\u306e\u8981\u7d20\u306e\u9806\u5217\u304b\u3089\u751f\u6210\u3055\u308c\u308b\u6587\u5b57\u5217S\u306e\u3046\u3061\u3001S\u30921\u6587\u5b57\u305a\u3064\u30b7\u30d5\u30c8\u3059\u308b\u3088\u3046\u306b\u56de\u8ee2\u3055\u305b\u305f\u3068\u304d\u3061\u3087\u3046\u3069 K \u56de\u8ee2\u3068\u306a\u308b\u3082\u306e\u306e\u6570\u3092\u7b54\u3048\u3088\u3002\u5236\u7d04 vector \u306e\u8981\u7d20\u306f 1 \u301c 8 \u5404\u6587\u5b57\u5217\u306f 20 \u6587\u5b57\u307e\u3067 \u89e3\u6cd5 next_permutation() \u00d7 rotate() \u3067\u8a08\u7b97\u304c\u9593\u306b\u5408\u3046\u3002rotate() \u306e\u6700\u60aa\u8a08\u7b97\u91cf\u306fO(N)\u306a\u306e\u3067\u3001\u8a08\u7b97\u91cf\u306f 8!*(20^2) \uff1d\u03b8(10^7) \u306a\u306e\u3067 O(10^8) \u3067\u6291\u3048\u3089\u308c\u308b\u3002\uff08\u8a08\u7b97\u91cf\u306e\u8a18\u6cd5\u306f\u3053\u3093\u306a\u306e\u3067\u6b63\u3057\u3044\u306e\u304b\u308f\u304b\u3089\u306a\u3044\uff09 class MagicWords { public: in\u2026","author_url":"https://blog.hatena.ne.jp/moistx/","version":"1.0","author_name":"moistx","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140409%2F1397049416\" title=\"SRM423 Div2Med MagicWords - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2014-04-09 22:16:56","provider_url":"https://hatena.blog","width":"100%","categories":["TopCoder","SRM"],"height":"190","url":"https://logfiles.hatenablog.com/entry/20140409/1397049416","type":"rich","title":"SRM423 Div2Med MagicWords","provider_name":"Hatena Blog","blog_title":"Logfiles"}