China Naming Network - Ziwei Dou Shu - Tb lottery system is busy.

Tb lottery system is busy.

This problem, first of all, need not pay attention to A, B and C; This is not a combination of ABC and XYZ, but an arrangement of XYZ, namely:

In the order of XYZ, which one fits the description of the topic? That is to say-in which arrangement order 1 is not X, and the third position is not X and Z?

After this consideration, the way for computers (rather than people's schema thinking) is to traverse the arrangement of XYZ in sequence, and then remove the arrangement where the 1 bit is X and the third bit is XZ.

Of course, in order to reduce the traversal times, 1 can be advanced, and 2 or 3 digits will not be the condition of the same player.