Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
35966 于俊杰 排列组合 C++ Accepted 1 MS 696 KB 325 2022-08-06 11:28:53

Tests(1/1):


Code:

#include<iostream> using namespace std; int main(){ int s=0; for(int a=2;a<=8;a++) for(int b=2;b<=8;b++) for(int c=2;c<=8;c++){ if((a!=b&&a!=c&&b!=c)&&(a==2||a==4||a==6||a==8)&&(b==2||b==4||b==6||b==8)&&(c==2||c==4||c==6||c==8)){ cout<<a<<b<<c<<endl; s++; } } cout<<s; return 0; }