如4的阶乘
#include<iostream>
#include<cstdio>
#include<string>
#include<algorithm>
using namespace std;
const int maxn=10010;
int main(){
for(int a=1;a<5;a++){
for(int b=1;b<5;b++){
if(a!=b){
for(int c=1;c<5;c++){
if(c!=a && c!=b){
for(int d=1;d<5;d++){
if(d!=a && d!=b && d!=c)
cout<<a<<b<<c<<d<<endl;
}
}
}
}
}
}
return 0;
}