#include<iostream>
using namespace std;
int main(){
int count=0;
for(int i=1;i<5;i++){
for(int j=1;j<5;j++){
for(int k=1;k<5;k++){
if(i!=j&&i!=k&&j!=k){
count++;
cout<<count<<" ";
cout<<i<<j<<k<<endl;
}
}
}
}
}
标签:std,25,jfor,int,count,&& From: https://www.cnblogs.com/guozi6/p/17413270.html