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 |
next_permutation 过了#include<iostream> #include<algorithm> using namespace std; int main() { char a[210]; gets(a); int l=strlen(a); sort(a,a+l); do { puts(a); } while(next_permutation(a,a+l)); } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator