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 |
Why RA?//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