文章目录

三线格

更详细参考点啊

  • \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}

在这里插入图片描述

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐