跳到正文

剪贴板

剪贴板 wi0ywm82

原文
剪贴板信息

剪贴板信息

收录
更新
代码
\documentclass[UTF8]{ctexart}
\usepackage{geometry}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{tabu}
\usepackage{xeCJK}
\usepackage{CJK}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{lastpage}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{fontspec}
\usepackage{layout}
\usepackage{titletoc}
\usepackage[colorlinks,linkcolor=blue]{hyperref}
\lstset{
    basicstyle={
		\color{black}
        \fontspec{Consolas}
    },
    keywordstyle={
        \color{blue}
        \fontspec{Consolas}
    },
    numberstyle={
        \color{black}
        \textbf
    },
	rulecolor=\color{blue},
    numbers=left,
    frame=single,
	frameround=tttt,
    morekeywords={Sample, Input, Output},   % 可以手动添加关键字
}
\setmonofont{Consolas}
\geometry{left=3.18cm,right=3.18cm,top=2.54cm,bottom=2.54cm}
\begin{document}
	\pagestyle{fancy}
	\lhead{ChineseContestName} \rhead{}
	\cfoot{第 \thepage 页 \qquad 共 \color{blue}{totpage} \color{black} 页}
	\thispagestyle{empty}
	\addcontentsline{toc}{section}{注意事项}
	\begin{center}
		\Huge
		\textbf{ChineseContestName}
		\\
		\Huge
		EnglishContestName
		\\
		\huge
		\textit{SecondTitle}
		\\
		\Large
		\textbf{时间:}2021\textbf{年}1\textbf{月}1\textbf{日} 08:30 $\sim$ 1:00
		\\
	\end{center}
	\large
	\begin{center}
		\begin{tabular}{|p{3.1cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|}
		\hline
		题目名称 & First & Second & Third & Forth \\
		\hline
		题目类型 & 传统型 & 传统型 & 传统型 & 传统型 \\
		\hline
		目录 & \texttt{first} & \texttt{second} & \texttt{third} & \texttt{fourth} \\
		\hline
		可执行文件名 & \texttt{first} & \texttt{second} & \texttt{third} & \texttt{fourth} \\
		\hline
		输入文件名 & \texttt{first.in} & \texttt{second.in} & \texttt{third.in} & \texttt{fourth.in} \\
		\hline
		输出文件名 & \texttt{first.out} & \texttt{second.out} & \texttt{third.out} & \texttt{fourth.out} \\
		\hline
		每个测试点时限 & 1.0 秒 & 1.0 秒 & 1.0 秒 & 1.0 秒 \\
		\hline
		内存限制 & 256 MB & 256 MB & 256 MB & 256 MB \\
		\hline
		测试点数目 & 5 & 5 & 5 & 5 \\
		\hline
		测试点是否等分 & 是 & 是 & 是 & 是 \\
		\hline
		\end{tabular}
	\end{center}
	提交源程序文件名
	\begin{center}
		\begin{tabular}{|p{3.1cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|}
		\hline
		对于 C++ \  语言 & \texttt{first.cpp} & \texttt{second.cpp} & \texttt{third.cpp} & \texttt{fourth.cpp} \\
		\hline
		对于 C \qquad 语言 & \texttt{first.c} & \texttt{second.c} & \texttt{third.c} & \texttt{fourth.c} \\
		\hline
		对于 Pascal 语言 & \texttt{first.pas} & \texttt{second.pas} & \texttt{third.pas} & \texttt{fourth.pas} \\
		\hline
		\end{tabular}
	\end{center}
	编译选项
	\begin{center}
		\begin{tabular}{|p{3.1cm}|p{11.2cm}<\centering|}
		\hline
		对于 C++ \ 语言 & \texttt{-lm} \\
		\hline
		对于 C \qquad 语言 & \texttt{-lm} \\
		\hline
		对于 Pascal 语言 &  \\
		\hline
		\end{tabular}
	\end{center}
	\textbf{注意事项与提醒(请选手务必仔细阅读)}
	\\
	\indent
	1. 文件名(程序名和输入输出文件名)必须使用英文小写。\par
	2. C/C++ 中函数 main() 的返回值类型必须是 int,程序正常结束时的返回值必须是 0。\par
	3. 提交的程序代码文件的放置位置请参照具体要求。\par
	4. 因违反以上三点而出现的错误或问题,申诉时一律不予受理。\par
	5. 若无特殊说明,结果的比较方式为全文比较(过滤行末空格及文末回车)。\par
	6. 程序可使用的栈内存空间限制与题目的内存限制一致。\par
	7. 只提供 Windows 格式附加样例文件。\par
	8. 评测在 Windows 下进行,各语言的编译器版本以其为准。
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\newpage
	\pagestyle{fancy}
	\lhead{ChineseContestName} \rhead{First(first)}
    \cfoot{第 \thepage 页 \qquad 共 \pageref{LastPage} 页}
	\phantomsection
	\addcontentsline{toc}{section}{First(first)}
	\begin{center}
		\LARGE
		\textbf{First}(first)
	\end{center}
	\large
	%
	\textbf{【题目描述】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【题目描述】}
	\\
	\indent
	Description.
	\\ $ $ \\
	\textbf{【输入格式】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【输入格式】}
	\\
	\indent
	从文件 \emph{\textbf{first.in}} 中读入数据。 \par
	Input.
	\\ $ $ \\
	\textbf{【输出格式】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【输出格式】}
	\\
	\indent
	输出到文件 \emph{\textbf{first.out}} 中。 \par
	Output.
	\\ $ $ \\
	\textbf{【样例} 1 \textbf{输入】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 1 输入】}
	\begin{lstlisting}
 Sample Input.
	\end{lstlisting}
	$ $ \\
	\textbf{【样例} 1 \textbf{输出】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 1 输出】}
	\begin{lstlisting}
 Sample Output.
	\end{lstlisting}
	$ $ \\
	\textbf{【样例} 1 \textbf{解释】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 1 解释】}
	\\
	\indent
	Note.
	\\ $ $ \\
	\textbf{【样例} 2\textbf{】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 2】}
	\\
	\indent
	见选手目录下的 \emph{\textbf{first/first2.in}} 与 \emph{\textbf{first/first2.ans}}。
	\\ $ $ \\
	\textbf{【数据范围】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【数据范围】}
	\\
	\indent
	\begin{center}
		\begin{tabu}{c|c|c|c}
			\tabucline[2pt]{-}
			测试点编号 & $n \le$ & $m \le$ & 特殊限制 \\ \tabucline[1.2pt]{-}
			$1 \sim 4$ & $15$ & $2000$ & \multirow{2}{*}{无} \\ \cline{1-3}
			$5 \sim 8$ & $2000$ & $15$ &  \\ \hline
			$9 \sim 12$ & \multicolumn{2}{c|}{$100$} & $c_i = C_j = 1$ \\ \hline
			$13 \sim 16$ & \multicolumn{2}{c|}{\multirow{3}{*}{$2000$}} & $w_i = W_j = 1$ \\ \cline{1-1} \cline{4-4}
			$17 \sim 20$ & \multicolumn{2}{c|}{} & $v_i = V_j = 1$ \\ \cline{1-1} \cline{4-4}
			$21 \sim 25$ & \multicolumn{2}{c|}{} & 无 \\ \tabucline[2pt]{-}
		\end{tabu}
	\end{center}
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\newpage
	\pagestyle{fancy}
	\lhead{ChineseContestName} \rhead{Second(second)}
    \cfoot{第 \thepage 页 \qquad 共 \pageref{LastPage} 页}
	\phantomsection
	\addcontentsline{toc}{section}{Second(second)}
	\begin{center}
		\LARGE
		\textbf{Second}(second)
	\end{center}
	\large
	%
	\textbf{【题目描述】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【题目描述】}
	\\
	\indent
	Description.
	\\ $ $ \\
	\textbf{【输入格式】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【输入格式】}
	\\
	\indent
	从文件 \emph{\textbf{second.in}} 中读入数据。 \par
	Input.
	\\ $ $ \\
	\textbf{【输出格式】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【输出格式】}
	\\
	\indent
	输出到文件 \emph{\textbf{second.out}} 中。 \par
	Output.
	\\ $ $ \\
	\textbf{【样例} 1 \textbf{输入】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 1 输入】}
	\begin{lstlisting}
 Sample Input.
	\end{lstlisting}
	$ $ \\
	\textbf{【样例} 1 \textbf{输出】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 1 输出】}
	\begin{lstlisting}
 Sample Output.
	\end{lstlisting}
	$ $ \\
	\textbf{【样例} 1 \textbf{解释】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 1 解释】}
	\\
	\indent
	Note.
	\\ $ $ \\
	\textbf{【样例} 2\textbf{】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 2】}
	\\
	\indent
	见选手目录下的 \emph{\textbf{second/second2.in}} 与 \emph{\textbf{second/second2.ans}}。
	\\ $ $ \\
	\textbf{【数据范围】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【数据范围】}
	\\
	\indent
	Constraint.
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\newpage
	\pagestyle{fancy}
	\lhead{ChineseContestName} \rhead{Third(third)}
    \cfoot{第 \thepage 页 \qquad 共 \pageref{LastPage} 页}
	\phantomsection
	\addcontentsline{toc}{section}{Third(third)}
	\begin{center}
		\LARGE
		\textbf{Third}(third)
	\end{center}
	\large
	%
	\textbf{【题目描述】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【题目描述】}
	\\
	\indent
	Description.
	\\ $ $ \\
	\textbf{【输入格式】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【输入格式】}
	\\
	\indent
	从文件 \emph{\textbf{third.in}} 中读入数据。 \par
	Input.
	\\ $ $ \\
	\textbf{【输出格式】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【输出格式】}
	\\
	\indent
	输出到文件 \emph{\textbf{third.out}} 中。 \par
	Output.
	\\ $ $ \\
	\textbf{【样例} 1 \textbf{输入】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 1 输入】}
	\begin{lstlisting}
 Sample Input.
	\end{lstlisting}
	$ $ \\
	\textbf{【样例} 1 \textbf{输出】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 1 输出】}
	\begin{lstlisting}
 Sample Output.
	\end{lstlisting}
	$ $ \\
	\textbf{【样例} 1 \textbf{解释】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 1 解释】}
	\\
	\indent
	Note.
	\\ $ $ \\
	\textbf{【样例} 2\textbf{】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 2】}
	\\
	\indent
	见选手目录下的 \emph{\textbf{third/third2.in}} 与 \emph{\textbf{third/third2.ans}}。
	\\ $ $ \\
	\textbf{【数据范围】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【数据范围】}
	\\
	\indent
	Constraint.
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	\newpage
	\pagestyle{fancy}
	\lhead{ChineseContestName} \rhead{Fourth(fourth)}
    \cfoot{第 \thepage 页 \qquad 共 \pageref{LastPage} 页}
	\phantomsection
	\addcontentsline{toc}{section}{Fourth(fourth)}
	\begin{center}
		\LARGE
		\textbf{Fourth}(fourth)
	\end{center}
	\large
	%
	\textbf{【题目描述】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【题目描述】}
	\\
	\indent
	Description.
	\\ $ $ \\
	\textbf{【输入格式】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【输入格式】}
	\\
	\indent
	从文件 \emph{\textbf{fourth.in}} 中读入数据。 \par
	Input.
	\\ $ $ \\
	\textbf{【输出格式】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【输出格式】}
	\\
	\indent
	输出到文件 \emph{\textbf{fourth.out}} 中。 \par
	Output.
	\\ $ $ \\
	\textbf{【样例} 1 \textbf{输入】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 1 输入】}
	\begin{lstlisting}
 Sample Input.
	\end{lstlisting}
	$ $ \\
	\textbf{【样例} 1 \textbf{输出】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 1 输出】}
	\begin{lstlisting}
 Sample Output.
	\end{lstlisting}
	$ $ \\
	\textbf{【样例} 1 \textbf{解释】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 1 解释】}
	\\
	\indent
	Note.
	\\ $ $ \\
	\textbf{【样例} 2\textbf{】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【样例 2】}
	\\
	\indent
	见选手目录下的 \emph{\textbf{fourth/fourth2.in}} 与 \emph{\textbf{fourth/fourth2.ans}}。
	\\ $ $ \\
	\textbf{【数据范围】}
	\phantomsection
	\addcontentsline{toc}{subsection}{【数据范围】}
	\\
	\indent
	Constraint.
\end{document}