Using red, yellow and green indicator lights to indicate the working state of 3 devices: green light indicates that all of the devices are OK, red light means that one of the device does not work, yellow light means that two of them do not work. If both red and yellow lights are on, all of them do not work. Please design the control circuit.
Hint:
Denote the 3 devices by A,B and C. “1” means OK, “0” means not work.
Denote red,yellow, green lights by Y1,Y2 and Y3. “1” means light is on, “0” means off.