Double layer of resist having the same pattern