#include<stdio.h>
#include<iostream>
#include<math.h>
using namespace std;
void CaughtThief();
void WonPrize();
void InferiorBox();
void ExactDivision();
int main ()
{
CaughtThief();
WonPrize();
InferiorBox();
ExactDivision();
}
void CaughtThief()
{
int x;
for(x = 0; x < 4; x++)
{
if((x != 1) + (x == 3) + (x == 4) + (x != 4) == 3)//将ABCD私人的判断转化成逻辑表达式
//并利用布尔型结果来表示有几人说的是真话
printf("%d是小偷\n", x);
}
cout << endl;
}
void WonPrize()
{
int a, b, c, d;
for(a = 1; a <= 4; a++)
{
for(b = 1; b <= 4; b++)
{
if(a != b)
{
for(c = 1; c <= 4; c++)
{
if(c != a && c != b)
{