latex三线表格+伪代码
\begin{table}[H]\caption{实验结果}\label{table_time}\begin{tabular}{lllllll}\toprule数组大小 & $10^6$ &$10^7$ & $10^8$ \\\midrule时间(s) & 0.025 & 0.248 &2.425\\...
·
三线格
更详细参考点啊
- \usepackage{booktabs}
- \usepackage{float}
- 记得引入这个包哦!
- 这样这个表格的位置就很听话了
\begin{table}[H] \caption{实验结果}
\label{table_time}
\begin{tabular}{lllllll}
\toprule
数组大小 & $10^6$ &$10^7$ & $10^8$ \\
\midrule
时间(s) & 0.025 & 0.248 &2.425 \\
时间(s) & 0.002 &0.032 &0.27 \\
比 & 12.5 &7.75 & 9 \\
\bottomrule
\end{tabular}
\end{table}
伪代码
- 引入包
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{amsmath}
\renewcommand{\algorithmicrequire}{\textbf{Input:}} % Use Input in the format of Algorithm
\renewcommand{\algorithmicensure}{\textbf{Output:}} % Use Output in the format of Algorithm
- 代码
\begin{algorithm}[htb]
\caption{题目}
\label{alg:Framwork}
\begin{algorithmic}
\Require
A,B
\Ensure
C
\For{i;i++;i<n}
\If {i!=89}
\State 吃;
\Else
\State 喝;
\If{i=0}
\State 喜喜;
\EndIf
\EndIf
\EndFor
\For {地方}
\State 多个;
\EndFor
\end{algorithmic}
\end{algorithm}

更多推荐

所有评论(0)