module biaojue(
a,b,c,d,e,f);
input a,b,c,d,e;
output f;
reg f;
reg[2:0] count1;
initial count1=0;
always@(a,b,c,d,e)
begin
count1=a+b+c+d+e;
f=count1<3?0:1;
end
endmodule
module biaojue5(
input a,b,c,d,e,
output f
);
assign f=a&b&c||a&b&d||a&b&e||a&c&d||a&c&e||
a&d&e||b&c&d||b&c&e||b&d&e||c&d&e;
endmodule
module biaojue(a,out);
input [5:0]a;
output reg [1:0]out;
integer i,count1,count2;
always@(*)
begin
count1=0;
count2=0;
i=0;
while(i<4)
begin
if(a[i])
count1=count1+1;
else
count2=count2+1;
i=i+1;
end
if(count1==count2)out=2'b00;
else if(count1<count2)out=2'b00;
else if(count1>count2)out=2'b01;
end
endmodule