您的位置:首页 > 其它

UVAOJ 10098 Generating Fast

2014-05-18 21:55 183 查看
跟前一题一样,STL一下,太水了。
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <set>
#include <vector>
#include <map>
#include <cmath>
#include <algorithm>
#include <memory.h>
#include <string>
#include <cstring>
#include <sstream>
#include <cstdlib>
#include <ctime>
#include <cassert>
using namespace std;
char  s[15];
int main()
{
int n;
scanf("%d",&n);
while(n--)
{
scanf("%s",s);
int len=strlen(s);
sort(s,s+len);
do
{
printf("%s\n",s);

}while(next_permutation(s,s+len));
printf("\n");
}

return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  UVAOJ STL