跳到正文

个人记录

卡常系列-序言

Ruiqun2009约 2 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2025年12月12日
篇幅
约 2 分钟

版本

  1. v1当前

以后这个系列会不断更新,读者们可以私信我。

每个卡常技巧都有类似这样的名片:

latex
\def{\A}{\colorbox{#52C41A}{\color{white}\texttt{Yes}}}
\def{\U}{\colorbox{#E74C3C}{\color{white}\texttt{No}}}
\def\arraystretch{1}\begin{array}{|l|l|}
\texttt{name}&\text{Barrett Reduction(非固定模数)}\\
\texttt{usage}&\text{加速取模}\\
\texttt{avaliable under -O0}&\A\\
\texttt{avaliable under -O2}&\A\\
\texttt{avaliable under -Ofast}&\A\\
\end{array}

效果:

\def{\A}{\colorbox{#52C41A}{\color{white}\texttt{Yes}}} \def{\U}{\colorbox{#E74C3C}{\color{white}\texttt{No}}} \def\arraystretch{1}\begin{array}{|l|l|} \texttt{name}&\text{Barrett Reduction(非固定模数)}\\ \texttt{usage}&\text{加速取模}\\ \texttt{avaliable under -O0}&\A\\ \texttt{avaliable under -O2}&\A\\ \texttt{avaliable under -Ofast}&\A\\ \end{array} \def{\A}{\colorbox{#52C41A}{\color{white}\texttt{Yes}}} \def{\U}{\colorbox{#E74C3C}{\color{white}\texttt{No}}} \def\arraystretch{1}\begin{array}{|l|l|} \texttt{name}&\text{Barrett Reduction(固定模数)}\\ \texttt{usage}&\text{加速取模}\\ \texttt{avaliable under -O0}&\U\\ \texttt{avaliable under -O2}&\U\\ \texttt{avaliable under -Ofast}&\U\\ \end{array}
原文