#include <stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main(void)
{
int A, B, C;
for (A = 'X'; A <= 'Z'; A++) {//遍历所有可能情况
for (B = 'X'; B <= 'Z'; B++) {
for (C = 'X'; C <= 'Z'; C++) {//限制条件
if (A == 'X' || C == 'X' || C == 'Z' || A == B || A == C || B == C) {
continue;
}
printf("A对%c\nB对%c\nC对%c\n", A, B, C);
}
}
}
登录后提交答案