答案1
\documentclass{article}
\usepackage{stackengine,amsmath,cancel}
\stackMath
\newcommand\overNot[2]{\stackon[2pt]{\cancel{#1}}{\scriptstyle#2}}
\newcommand\underNot[2]{\stackunder[3pt]{\cancel{#1}}{\scriptstyle#2}}
\begin{document}
\[
x=\frac{\overNot{9}{3}}{\underNot{2}{1}}\times
\frac{\overNot{4}{2}}{\underNot{3}{1}}
\]
\end{document}