| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
没天理呀,难道STL里面有什么神秘的东西?我的程序怎么就过不了?我是第一次自己用STL, 或许有错误之处,但我的编译器告诉我没有错误,运行题目给出的数据也没有问题,为什么提交的时候给我返回WA呢?难道今天真的那么不顺?? 高人指点一下吧。。。
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
string sorce;
int main ()
{
int t;
cin >> t;
while ( t-- )
{
cin >> sorce;
sort ( sorce.begin(), sorce.end() );
cout << sorce << endl;
while (next_permutation ( sorce.begin(), sorce.end()))
{
cout << sorce << endl;
}
}
return 0;
}
为什么呢?人品??
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator