[轉] Latex ACM-ICPC template

要一下出題目規格,就有漂亮的 latex pdf!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
\documentclass[12pt,psfig,epsf]{article}
\setlength{\topmargin}{-1in}
\setlength{\textheight}{10in}
\setlength{\textwidth}{5.5in}
\usepackage{epsfig}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{graphicx}
\begin{document}

\begin{center}
{\Large\bfseries Problem test}\\ % Problem Number
{\large\bf Hello World}\\ % Problem Name
{\large Input File: {\em test.in}}\\ % Input file name
{\large Time Limit: {\em 1 Second}}\\ % Time limit in seconds
\end{center}


% Problem description here

Output hello world !

% Technical Specification and constraints

%\vspace*{.3in} \noindent {\large \bfseries Technical Specification}
%\begin{enumerate}
%\item The . . .
%\end{enumerate}

% Input File Format
\vspace*{.3in} \noindent {\large \bfseries Input File Format}\\

Input consists of several datasets. ...

% Output File Format
\vspace*{.3in} \noindent {\large \bfseries Output Format}\\

For each dataset, ....

% Sample Input
\vspace*{.3in} \noindent {\large \bfseries Sample Input}
\begin{verbatim}
morris
\end{verbatim}

% Sample Output
\vspace*{.3in} \noindent {\large \bfseries Output for the Sample Input}
\begin{verbatim}
hello morris !
\end{verbatim}

\end{document}
Read More +