Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
35971 黄子涵 排列组合 C++ Accepted 1 MS 696 KB 293 2022-08-06 11:35:49

Tests(1/1):


Code:

#include <bits/stdc++.h> using namespace std; int main(){ int a[4]={2,4,6,8}; int c=0; for(int i=0;i<4;++i){ for(int j=0;j<4;++j){ for(int k=0;k<4;++k){ if(i==j||j==k||i==k) continue; cout<<a[i]*100+a[j]*10+a[k]<<endl; c++; } } }cout<<c; return 0; }