#include<bits/stdc++.h>
using namespace std;
int main() {
//又学到一招
ios::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
int cnt = 0;
for (int i = 0; i < 10; i++)
{
int x; cin >> x;
cnt += x == 1;//当输入为1时累加 If(x==1) cnt++;
}
//排列组合 数学问题
if (cnt == 4)
cout << 24;
else if (cnt == 3)
cout << 36;
else if (cnt == 2)
cout << 14;
else if (cnt == 1)
cout << 1;
else
cout << 0;//一个数也不存在的时候
return 0;
}
C++ 猜密码
最新推荐文章于 2024-10-04 17:07:53 发布