I find the answer,my question was wrong about IN function,when we use diodes to make IN function,like when in the input is all 1 the output will be set to 1 that means high,but I have seen wrong the schematic,we are using forward diodes to implement that.
By the way I have other question similar to this.https://en.wikipedia.org/wiki/Diode_logic#/media/File:Diode_OR_Ideal_Diode.jpg I do not understand this well.R can return to any negative voltage. If R is connected to 0 volts it will have no drive current available to drive the next circuit; practical diodes need a bias current. In a practical circuit, all signal levels, the value of R and its return voltage are chosen by the circuit designer to meet the design requirements.R is connected to ground so the voltage is zero no current flowing to drive the next circuit,why is then R connected to ground?The other diodes are reverse biased and conduct no current.Also this how other diodes are reversed bias if we put one logic high of one diodes,for the others the anode is at low level and also cathode is negative,because of the resistor there is putting always negative voltage?We are actually in a output and input reverse?