guozi6

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

#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;
}
}
}
}
}

 

posted on 2023-05-18 20:49  汀幻  阅读(32)  评论(0编辑  收藏  举报