Contributions of the estimated prompt and non-prompt $\rm D^0$ with the cut-variation method