As the write operation progresses, the threshold of the memory cell is determined by the threshold voltage at the edge parts.
To produce the effect of the third embodiment, it is necessary to set the threshold voltage by the small drain current.