{"id":642,"date":"2009-03-28T14:39:08","date_gmt":"2009-03-28T06:39:08","guid":{"rendered":"http:\/\/www.slyar.com\/blog\/?p=642"},"modified":"2014-04-22T14:03:26","modified_gmt":"2014-04-22T06:03:26","slug":"stl_next_permutation","status":"publish","type":"post","link":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html","title":{"rendered":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++)"},"content":{"rendered":"<p>\u6587\u7ae0\u4f5c\u8005\uff1a<span style=\"color: #0000ff;\">\u59dc\u5357(Slyar) <\/span>\u6587\u7ae0\u6765\u6e90\uff1aSlyar Home (<a title=\"Slyar\" href=\"http:\/\/www.slyar.com\" target=\"_blank\">www.slyar.com<\/a>) \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8c22\u8c22\u5408\u4f5c\u3002<\/p>\n<p>\u4e0b\u5348\u7814\u7a76\u4e86\u4e00\u4e0b\u5168\u6392\u5217\u7b97\u6cd5\uff0c\u7136\u540e\u53d1\u73b0C++\u7684STL\u6709\u4e00\u4e2a\u51fd\u6570\u53ef\u4ee5\u65b9\u4fbf\u5730\u751f\u6210\u5168\u6392\u5217\uff0c\u8fd9\u5c31\u662fnext_permutation<\/p>\n<p>\u5728C++ Reference\u4e2d\u67e5\u770b\u4e86\u4e00\u4e0bnext_permutation\u7684\u51fd\u6570\u58f0\u660e\uff1a<\/p>\n<p><span style=\"color: #0000ff;\">#include &lt;algorithm&gt;<br \/>\nbool next_permutation( iterator start, iterator end );<\/span><\/p>\n<p><span style=\"color: #99cc00;\">The <span class=\"search_hit\">next_permutation<\/span>() function attempts to transform the given range of elements [start,end) into the next lexicographically greater permutation of elements. If it succeeds, it returns true, otherwise, it returns false.<\/span><\/p>\n<p>\u4ece\u8bf4\u660e\u4e2d\u53ef\u4ee5\u770b\u5230 next_permutation \u7684\u8fd4\u56de\u503c\u662f\u5e03\u5c14\u7c7b\u578b\u3002\u6309\u7167\u63d0\u793a\u5199\u4e86\u4e00\u4e2a\u6807\u51c6C++\u7a0b\u5e8f\uff1a<\/p>\n<pre lang=\"cpp\" line=\"1\">\r\n#include <iostream>\r\n#include <algorithm>\r\n#include <string>\r\n\r\nusing namespace std;\r\n\r\nint main()\r\n{\r\n    string str;\r\n    cin >> str;\r\n    sort(str.begin(), str.end());\r\n    cout << str << endl;\r\n    while (next_permutation(str.begin(), str.end()))\r\n    {\r\n        cout << str << endl;\r\n    }\r\n    return 0;\r\n}\r\n<\/pre>\n<p>\u5176\u4e2d\u8fd8\u7528\u5230\u4e86 sort \u51fd\u6570\u548c string.begin()\u3001string.end() \uff0c\u51fd\u6570\u58f0\u660e\u5982\u4e0b\uff1a<\/p>\n<p><span style=\"color: #0000ff;\">#include &lt;algorithm&gt;<br \/>\nvoid sort( iterator start, iterator end );<\/span><\/p>\n<p><span style=\"color: #99cc00;\">sort\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528NlogN\u7684\u590d\u6742\u5ea6\u5bf9\u53c2\u6570\u8303\u56f4\u5185\u7684\u6570\u636e\u8fdb\u884c\u6392\u5e8f\u3002<\/span><\/p>\n<p><span style=\"color: #0000ff;\">#include &lt;string&gt;<br \/>\niterator begin();<br \/>\nconst_iterator begin() const;<\/span><\/p>\n<p><span style=\"color: #0000ff;\">#include &lt;string&gt;<br \/>\niterator end();<br \/>\nconst_iterator end() const;<\/span><\/p>\n<p><span style=\"color: #99cc00;\">string.begin()\u548cstring.end() \u53ef\u4ee5\u5feb\u901f\u8bbf\u95ee\u5230\u5b57\u7b26\u4e32\u7684\u9996\u5b57\u7b26\u548c\u5c3e\u5b57\u7b26\u3002<\/span><\/p>\n<p>\u5728\u4f7f\u7528\u5927\u6570\u636e\u6d4b\u8bd5\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u6807\u51c6C++\u7684\u6548\u7387\u5f88\u5dee...\u6362\u6210C\u51fd\u6570\u5199\u4e00\u4e0b\uff0c\u6548\u7387\u63d0\u5347\u4e86\u4e0d\u6b62\u4e00\u500d...<\/p>\n<pre lang=\"cpp\" line=\"1\">\r\n#include <cstdio>\r\n#include <algorithm>\r\n#include <cstring>\r\n#define MAX 100\r\n\r\nusing namespace std;\r\n\r\nint main()\r\n{\r\n    int length;\r\n    char str[MAX];\r\n    gets(str);\r\n    length = strlen(str);\r\n    sort(str, str + length);\r\n    puts(str);\r\n    while (next_permutation(str, str + length))\r\n    {\r\n        puts(str);\r\n    }\r\n    return 0;\r\n}\r\n<\/pre>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"http:\/\/www.slyar.com\/blog\">Slyar Home<\/a> &raquo; <a href=\"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html\">\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++)<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u4f5c\u8005\uff1a\u59dc\u5357(Slyar) \u6587\u7ae0\u6765\u6e90\uff1aSlyar Home (www.slyar.com) \u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8c22\u8c22\u5408\u4f5c\u3002 \u4e0b\u5348\u7814\u7a76\u4e86\u4e00\u4e0b\u5168\u6392\u5217\u7b97\u6cd5\uff0c\u7136\u540e\u53d1\u73b0C++\u7684STL\u6709\u4e00\u4e2a\u51fd\u6570\u53ef\u4ee5\u65b9\u4fbf\u5730\u751f\u6210\u5168\u6392\u5217\uff0c\u8fd9\u5c31\u662fnext_permutation \u5728C++ R [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[304,258],"class_list":["post-642","post","type-post","status-publish","format-standard","hentry","category-programing","tag-304","tag-258"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++)\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Slyar\"\/>\n\t<meta name=\"keywords\" content=\"slyar,stl,c++,next_permutation,algorithm,string,\u5168\u6392\u5217,\u6392\u5217,\u51fd\u6570\" \/>\n\t<link rel=\"canonical\" href=\"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"zh_CN\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Slyar Home | \u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++) - Slyar Home\" \/>\n\t\t<meta property=\"og:description\" content=\"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++)\" \/>\n\t\t<meta property=\"og:url\" content=\"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2009-03-28T06:39:08+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2014-04-22T06:03:26+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++) - Slyar Home\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++)\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/stl_next_permutation.html#article\",\"name\":\"\\u4f7f\\u7528STL\\u7684next_permutation\\u51fd\\u6570\\u751f\\u6210\\u5168\\u6392\\u5217(C++) - Slyar Home\",\"headline\":\"\\u4f7f\\u7528STL\\u7684next_permutation\\u51fd\\u6570\\u751f\\u6210\\u5168\\u6392\\u5217(C++)\",\"author\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"publisher\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/stl_next_permutation.html#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"},\"datePublished\":\"2009-03-28T14:39:08-07:00\",\"dateModified\":\"2014-04-22T14:03:26-07:00\",\"inLanguage\":\"zh-CN\",\"commentCount\":10,\"mainEntityOfPage\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/stl_next_permutation.html#webpage\"},\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/stl_next_permutation.html#webpage\"},\"articleSection\":\"\\u7f16\\u7a0b\\u76f8\\u5173, \\u7a0b\\u5e8f\\u8bbe\\u8ba1, \\u7b97\\u6cd5\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/stl_next_permutation.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/programing#listItem\",\"name\":\"\\u7f16\\u7a0b\\u76f8\\u5173\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/programing#listItem\",\"position\":2,\"name\":\"\\u7f16\\u7a0b\\u76f8\\u5173\",\"item\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/programing\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/stl_next_permutation.html#listItem\",\"name\":\"\\u4f7f\\u7528STL\\u7684next_permutation\\u51fd\\u6570\\u751f\\u6210\\u5168\\u6392\\u5217(C++)\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/stl_next_permutation.html#listItem\",\"position\":3,\"name\":\"\\u4f7f\\u7528STL\\u7684next_permutation\\u51fd\\u6570\\u751f\\u6210\\u5168\\u6392\\u5217(C++)\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/category\\\/programing#listItem\",\"name\":\"\\u7f16\\u7a0b\\u76f8\\u5173\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\",\"name\":\"Slyar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/stl_next_permutation.html#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"}},{\"@type\":\"Person\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar\",\"name\":\"Slyar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/stl_next_permutation.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid\",\"width\":96,\"height\":96,\"caption\":\"Slyar\"}},{\"@type\":\"WebPage\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/stl_next_permutation.html#webpage\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/stl_next_permutation.html\",\"name\":\"\\u4f7f\\u7528STL\\u7684next_permutation\\u51fd\\u6570\\u751f\\u6210\\u5168\\u6392\\u5217(C++) - Slyar Home\",\"description\":\"\\u4f7f\\u7528STL\\u7684next_permutation\\u51fd\\u6570\\u751f\\u6210\\u5168\\u6392\\u5217(C++)\",\"inLanguage\":\"zh-CN\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/stl_next_permutation.html#breadcrumblist\"},\"author\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"creator\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/author\\\/slyar#author\"},\"datePublished\":\"2009-03-28T14:39:08-07:00\",\"dateModified\":\"2014-04-22T14:03:26-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#website\",\"url\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/\",\"name\":\"Slyar Home\",\"description\":\"\\u8bb0\\u5f55\\u4e2a\\u4eba\\u751f\\u6d3b\",\"inLanguage\":\"zh-CN\",\"publisher\":{\"@id\":\"http:\\\/\\\/www.slyar.com\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++) - Slyar Home","description":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++)","canonical_url":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html","robots":"max-image-preview:large","keywords":"slyar,stl,c++,next_permutation,algorithm,string,\u5168\u6392\u5217,\u6392\u5217,\u51fd\u6570","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html#article","name":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++) - Slyar Home","headline":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++)","author":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"publisher":{"@id":"http:\/\/www.slyar.com\/blog\/#person"},"image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"},"datePublished":"2009-03-28T14:39:08-07:00","dateModified":"2014-04-22T14:03:26-07:00","inLanguage":"zh-CN","commentCount":10,"mainEntityOfPage":{"@id":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html#webpage"},"isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html#webpage"},"articleSection":"\u7f16\u7a0b\u76f8\u5173, \u7a0b\u5e8f\u8bbe\u8ba1, \u7b97\u6cd5"},{"@type":"BreadcrumbList","@id":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/#listItem","position":1,"name":"Home","item":"http:\/\/www.slyar.com\/blog\/","nextItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/programing#listItem","name":"\u7f16\u7a0b\u76f8\u5173"}},{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/programing#listItem","position":2,"name":"\u7f16\u7a0b\u76f8\u5173","item":"http:\/\/www.slyar.com\/blog\/category\/programing","nextItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html#listItem","name":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++)"},"previousItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html#listItem","position":3,"name":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++)","previousItem":{"@type":"ListItem","@id":"http:\/\/www.slyar.com\/blog\/category\/programing#listItem","name":"\u7f16\u7a0b\u76f8\u5173"}}]},{"@type":"Person","@id":"http:\/\/www.slyar.com\/blog\/#person","name":"Slyar","image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"}},{"@type":"Person","@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author","url":"http:\/\/www.slyar.com\/blog\/author\/slyar","name":"Slyar","image":{"@type":"ImageObject","@id":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/fa995532c4fa6a1a16430db283689338da430a677b2ff974e0cad68e3bba05c4?s=96&d=monsterid","width":96,"height":96,"caption":"Slyar"}},{"@type":"WebPage","@id":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html#webpage","url":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html","name":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++) - Slyar Home","description":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++)","inLanguage":"zh-CN","isPartOf":{"@id":"http:\/\/www.slyar.com\/blog\/#website"},"breadcrumb":{"@id":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html#breadcrumblist"},"author":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"creator":{"@id":"http:\/\/www.slyar.com\/blog\/author\/slyar#author"},"datePublished":"2009-03-28T14:39:08-07:00","dateModified":"2014-04-22T14:03:26-07:00"},{"@type":"WebSite","@id":"http:\/\/www.slyar.com\/blog\/#website","url":"http:\/\/www.slyar.com\/blog\/","name":"Slyar Home","description":"\u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b","inLanguage":"zh-CN","publisher":{"@id":"http:\/\/www.slyar.com\/blog\/#person"}}]},"og:locale":"zh_CN","og:site_name":"Slyar Home | \u8bb0\u5f55\u4e2a\u4eba\u751f\u6d3b","og:type":"article","og:title":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++) - Slyar Home","og:description":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++)","og:url":"http:\/\/www.slyar.com\/blog\/stl_next_permutation.html","article:published_time":"2009-03-28T06:39:08+00:00","article:modified_time":"2014-04-22T06:03:26+00:00","twitter:card":"summary","twitter:title":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++) - Slyar Home","twitter:description":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++)"},"aioseo_meta_data":{"post_id":"642","title":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++) - #site_title","description":"\u4f7f\u7528STL\u7684next_permutation\u51fd\u6570\u751f\u6210\u5168\u6392\u5217(C++)","keywords":[{"label":"slyar","value":"slyar"},{"label":"stl","value":"stl"},{"label":"c++","value":"c++"},{"label":"next_permutation","value":"next_permutation"},{"label":"algorithm","value":"algorithm"},{"label":"string","value":"string"},{"label":"\u5168\u6392\u5217","value":"\u5168\u6392\u5217"},{"label":"\u6392\u5217","value":"\u6392\u5217"},{"label":"\u51fd\u6570","value":"\u51fd\u6570"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-02-10 02:46:32","updated":"2022-10-18 13:00:19","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"_links":{"self":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/comments?post=642"}],"version-history":[{"count":0,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/posts\/642\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/media?parent=642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/categories?post=642"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.slyar.com\/blog\/wp-json\/wp\/v2\/tags?post=642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}