Contributions of prompt and non-prompt $\Lambda_c^+$ estimated with the cut-variation method