# contains "stdio.h"
void main()
{
char i,j,k; /*i is the opponent of A, J is the opponent of B and K is the opponent of C */
for(I = ' x '); I<=' zi++)// I have three kinds of confrontation situations, X-A, Y-A, Z-A, and so on.
for(j = ' x '); J<=' zJ++)//j has three antagonistic situations, X-B, Y-B, Z-B, and cyclic traversal.
{
If (me! =j)// means that in x, y, z Y, z, I and j cannot be the same person.
for(k = ' x '); K<=' zK++)//k has three antagonistic situations, X-C, Y-C, Z-C and cyclic traversal.
{
If (me! = k & amp& ampj! =k)// means that K, I and J in X, Y, Z, Y and Z cannot be the same person.
{
If (me! = ' x ' & amp& ampk! = ' x ' & amp& ampk! ='z')// This is the condition of the topic: A says he can't compare with X (A! =x), and I'm not comparing with A, so I! Xc said he wouldn't compete with x and z, that is, me! ='x' and k! ='x' and k! ='z' (similarly)
Printf("order is a-%c\tb-%c\tc-%c\n ",I, J, K); //After the above arrangement and selection, the opponent combination is finally determined.
}
}
}
}