and a cell access transistor having a source or a drain connected to one end of the variable resistance element, and writing means for performing two writing actions such as a first writing action shifting the electric resistance of the variable resistance element from the first state to the second state by applying a predetermined first voltage between both ends of the memory cell and a predeter