| ||||||||||
| 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 | |||||||||
对sample你的输出是从bbjd开始的吧?应该是do{cout<<s<<endl;}while(next...);In Reply To:Why RA? Posted by:wanpi0user at 2005-05-10 21:04:04 > //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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator