各种模板的集合

documentclass[UTF8,a4paper]{ctexart}usepackage{geometry}usepackage{multicol}usepackage{multirow}usepackage{tabu}usepackage{xeCJK}usepackage{CJK} usepackage{xeCJKfntef} usepackage{fancyhdr} usepackage{graphicx} usepackage{lastpage} usepackage{listings}usepackage{xcolor}usepackage{fontspec}usepackage{layout}usepackage{titletoc}usepackage[colorlinks,linkcolor=blue]{hyperref} ewcommandfilename[1]{emph{ extbf{#1}}} ewcommandudot[1]{ extbf{color{black}CJKunderdot{color{black}#1}}} % 第一个 color 调整加粗字体下着重号的颜色 ewcommand ewprob[2]{ ewpage pagestyle{fancy} lhead{ChineseContestName} head{#1(#2)} cfoot{第 hepage 页 qquad 共 pageref{LastPage} 页} phantomsection addcontentsline{toc}{section}{#1(#2)} egin{center} LARGE extbf{#1}(#2) end{center} large % extbf{【题目描述】} phantomsection addcontentsline{toc}{subsection}{【题目描述】}} ewcommandpara[1]{ $ $ \ extbf{【#1】} phantomsection addcontentsline{toc}{subsection}{【#1】}} ewcommandsample[2]{ $ $ \ extbf{【样例} #1 extbf{#2】} phantomsection addcontentsline{toc}{subsection}{【样例 #1 #2】}}lstset{ basicstyle={ color{black} fontspec{Consolas} }, keywordstyle={ color{blue} fontspec{Consolas} }, numberstyle={ color{black} extbf }, rulecolor=color{blue}, numbers=left, frame=single, frameround=tttt, morekeywords={Sample, Input, Output}, % 可以手动添加关键字}setmonofont{Consolas}geometry{left=2.52cm,right=2.52cm,top=2.5cm,bottom=2.5cm}egin{document} pagestyle{fancy} lhead{ChineseContestName} head{} cfoot{第 hepage 页 qquad 共 pageref{LastPage} color{black} 页} hispagestyle{empty} addcontentsline{toc}{section}{注意事项} egin{center} Huge extbf{ChineseContestName} \ Huge EnglishContestName \ huge extit{SecondTitle} \ Large extbf{时间:}2023 extbf{年}1 extbf{月}1 extbf{日} 08:30 $sim$ 1:00 \ end{center} large egin{center} egin{tabular}{|p{3.1cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|} hline 题目名称 & First & Second & Third & Forth \ hline 题目类型 & 传统型 & 传统型 & 传统型 & 传统型 \ hline 目录 & exttt{first} & exttt{second} & exttt{third} & exttt{fourth} \ hline 可执行文件名 & exttt{first} & exttt{second} & exttt{third} & exttt{fourth} \ hline 输入文件名 & exttt{first.in} & exttt{second.in} & exttt{third.in} & exttt{fourth.in} \ hline 输出文件名 & exttt{first.out} & exttt{second.out} & exttt{third.out} & exttt{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}提交源程序文件名 egin{center} egin{tabular}{|p{3.1cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|} hline 对于 C++ 语言 & exttt{first.cpp} & exttt{second.cpp} & exttt{third.cpp} & exttt{fourth.cpp} \ hline 对于 C qquad 语言 & exttt{first.c} & exttt{second.c} & exttt{third.c} & exttt{fourth.c} \ hline 对于 Pascal 语言 & exttt{first.pas} & exttt{second.pas} & exttt{third.pas} & exttt{fourth.pas} \ hline end{tabular} end{center}编译选项 egin{center} egin{tabular}{|p{3.1cm}|p{11.2cm}

比丘资源网 » 各种模板的集合

发表回复

提供最优质的资源集合

立即查看 了解详情