Left: ratios between prompt $\Dzero$, $\Dplus$, $\Dstar$, and $\Ds$ mesons production cross sections in \pp collisions at $\s = 13$ TeV and those in \pp collisions at $\s = 5.02$ TeV as a function of $\pt$. Right: ratios between the prompt $\Lambda_{\rm c}^+$-, $\Xi_{\rm c}^0$-, and $\Xi_{\rm c}^+$-baryon production cross sections in \pp collisions at $\s = 13$ TeV and those in \pp collisions at $\s = 5.02$ TeV as a function of $\pt$. Vertical bars (boxes) report the statistical (systematic) uncertainties.