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; }
相关文章推荐
- UVA 10098 Generating Fast
- UVa 10098: Generating Fast
- uva 10098 - Generating Fast
- UVA 10098 - Generating Fast
- UVa 10098: Generating Fast
- UVA 10098 Generating Fast
- uva 10098 - Generating Fast
- uva 10098 Generating Fast
- uva10098 Generating Fast
- 10098 - Generating Fast
- uva - 10098 - Generating Fast
- UVA - 10098 - Generating Fast (枚举排列)
- UVa 10098 Generating Fast
- UVa 10098 - Generating Fast
- UVA 10098 Generating Fast
- UVaOJ 10098 - Generating Fast
- 10098 - Generating Fast
- UVA - 10098 Generating Fast
- uva 10098 - Generating Fast
- UVa 10098 - Generating Fast