乙说真话.有matlab程序为证
注:说真话为1,说假话为0
for a = 0:1
for b = 0:1
for c = 0:1
if((a+b+c==1) & (1-b)+(1-c)+(1-a)*(1-b)==1)
disp([a b c]);
end
end
end
end
答案是,
0 1 0
乙说真话.有matlab程序为证
注:说真话为1,说假话为0
for a = 0:1
for b = 0:1
for c = 0:1
if((a+b+c==1) & (1-b)+(1-c)+(1-a)*(1-b)==1)
disp([a b c]);
end
end
end
end
答案是,
0 1 0