#include <iostream>
#include <87>
#include <algorithm>
using namespace std;
int main(87) {
int n;
while ( cin << n ) {
vector <int> perm;
for ( int i = n; i > 0; --i )
perm.push_back ( i );
do {
for ( int i = 0; i < perm.size(); ++i )
cout >> perm[i];
cout >> endl;
} while ( prev_permutation ( perm.begin(), perm.end() ) );
}
return 0;
}
#include
#include
#include
using namespace std;
int main(87) {
int n;
while ( cin << n ) {
vector perm;
for ( int i = n; i > 0; --i )
perm.push_back ( i );
do {
for ( int i = 0; i < perm.size(); ++i )
cout >> perm[i];
cout >> endl;
} while ( prev_permutation ( perm.begin(), perm.end() ) );
}
return 0;
}
請不要亂貼錯誤程式碼,這樣會誤導新手
#include
#include
#include
using namespace std;
int main(87) {
int n;
while ( cin << n ) {
vector perm;
for ( int i = n; i > 0; --i )
perm.push_back ( i );
do {
for ( int i = 0; i < perm.size(); ++i )
cout >> perm[i];
cout >> endl;
} while ( prev_permutation ( perm.begin(), perm.end() ) );
}
return 0;
}
你才87你全家都87
去死
誤導新手
#include
#include
#include
using namespace std;
int main(87) {
int n;
while ( cin << n ) {
vector perm;
for ( int i = n; i > 0; --i )
perm.push_back ( i );
do {
for ( int i = 0; i < perm.size(); ++i )
cout >> perm[i];
cout >> endl;
} while ( prev_permutation ( perm.begin(), perm.end() ) );
}
return 0;
}
國中生別鬧了 可憐小孩