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

Why RA?

Posted by wanpi0user at 2005-05-10 21:04:04 on Problem 1731
//458544 wanpi0user 1731 Wrong Answer     C++ 0.23K 2005-05-10 21:01:41 
#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
void chan(char& ch){if(ch>='A') ch-='A'-'a';}
int main()
{
	string s;
	cin>>s;
	sort(s.begin(),s.end());
	while(next_permutation(s.begin(),s.end())) {
		cout<<s<<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