In a city there are three types of people: " Cop ", who always tells the truth, " Thief ", who always tell lies, and " Spy ", who tell alternate false and true statements. When interviewing three people from that city, you received the following statements:
Person 1: I am a cop.
Person 2: I am a thief.
Person 3: They are both lying, I am a spy
If there is a cop, thief and a spy among the three persons, which one is the thief?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The only person who can say "I am a thief" is a spy, since cops never lie and thieves can never tell the truth. Thus, Person 2 is a spy. This means that Person 3 is either a thief or a cop. If Person 3 were a cop, then they would be lying by saying "I am a spy," which is not consistent with the behavior of a cop. Therefore, we deduce that Person 3 must be the thief. (This would make Person 1 the cop.)
As a check, we can test the validity of everyone's statements based on their role: