Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

没天理呀,难道STL里面有什么神秘的东西?我的程序怎么就过不了?

Posted by wwwwwwking at 2008-07-17 09:33:43 on Problem 1256
我是第一次自己用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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator