You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
461 B

2 years ago
#include <bits/stdc++.h>
using namespace std;
int main() {
char a, b, c;
for (a = 'x'; a <= 'z'; a++) {
for (b = 'x'; b <= 'z'; b++) {
for (c = 'x'; c <= 'z'; c++) {
if (a != b && a != c && b != c && a != 'x' && c != 'x' && c != 'z') { //避免参赛队员重复比赛
printf("a和%d,b和%dc和%c进行比赛", a, b, c);
}
}
}
}
}