|
|
|
|
讨论 Discussion |
|
| |
1 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
0:A,1:B,2:C,3:D,4:E,5:F
for (int a = 0; a <= 1; a++) {
for (int b = 0; b <= 1; b++) {
for (int c = 0; c <= 1; c++) {
for (int d = 0; d <= 1; d++) {
for (int e = 0; e <= 1; e++) {
for (int f = 0; f <= 1; f++) {
if (a + b == 0) continue;
if (a == 1 && d == 1) continue;
if (a + e + f != 2) continue;
if (b != c) continue;
if (c + d != 1) continue;
if (d == 0 && e == 1) continue;
vector<char> res;
if (a) res.push_back('A');
if (b) res.push_back('B');
if (c) res.push_back('C');
if (d) res.push_back('D');
if (e) res.push_back('E');
if (f) res.push_back('F');
for (int i = 0; i < res.size(); i++) {
if (i > 0) cout << " ";
cout << res[i];
}
cout << endl;
}
}
}
}
}
}
return 0;
}
( ) |
|
|
|
|
|
|
|
|
|
Flag |
|
题号 |
P1698 |
|
模拟 |
通过 |
79人 |
提交 |
170次 |
通过率 |
46% |
难度 |
0 |
|
|
|
|
|
|