私信TA
用户名:I7I08I9047
访问量:76403
签 名:
我RUN了
自我简介:
作者: HzuWHF 发表时间:2018-06-18 10:35:07 浏览:449 | 评论:0
解题思路: next_permutation 函数将按字典序生成给定序列的下一个较大的排列。
参考代码:
#include<bits/stdc++.h> using namespace std; int main() { char str[1233]; cin >> str; next_permutation(str, str + strlen(str)); cout << str << endl; return 0; }
0.0分
0 人评分
看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:
编程语言转换
万能编程问答
代码解释器