In the concept of dinuclear system, the quasifission rate from Kramers formula has been incorporated in the master equation in order to study the competition between fusion and qusifission. Mass yields of quasifission products of the three reactions 48Ca+244Pu, 48Ca+238U and 58Fe+232Th have been calculated, and the experimental data are reproduced very well, which is a critical test for the existing fusion model. Also we have shown the time evolution of the mass distributions of quasifission products, which provides valuable information of the process of competition between fusion and quasifission.