Question:
There are four people A, B, C, and D. They each say two sentences:
A said:
1) I arrived by one digit before B (for example, if B arrives by the second digit, A is the first digit, the same below)
2) I did not arrive at the first place
B said:
1) I arrived before C.
2) I did not arrive in the second place
C:
1) I arrived before D.
2) I did not arrive in the third place.
D:
1) I arrived before
2) I did not arrive in the fourth place.
Among them: 1) only two sentences are true, but not necessarily those of the same person. The other six sentences are false;
2) The first person told the truth. (Is there only one truth, or are both true? Unknown)
The arrival sequence of the four persons A, B, C, and D.
Program code written: http://files.cnblogs.com/lxinxuan/ConsoleApplication1.rar
Program Description: Construct a fully-arranged array composed of a group of known numbers.
Revision history:
[20070831] If there is a problem with multiple solutions, of course this question only has a unique solution.
Welcome to test!