Upon a plea of guilty of a crime divided into degrees, the court, if such plea is accepted and the defendant does not designate in the defendant's plea the degree thereof, before passing sentence, shall determine the degree, and the provisions, so far as applicable, of section 29-26-18 and of rule 32 of the North Dakota Rules of Criminal Procedure shall govern in said determination.
N.D.C.C. § 29-26-16