A template for problem designing for competitive programming
This template is intended to be used with Polygon.
\documentclass[11pt,a4paper]{article}
\newcommand{\tumsoTime}{<<<YOUR_TIME_HERE>>>}
\newcommand{\tumsoRound}{<<<YOUR_ROUND_HERE>>>}
\usepackage{../tumso}
\begin{document}
<<<YOUR_PROBLEM_STATEMENT_HERE>>>
\end{document}
<<<YOUR_TIME_HERE>>> is the scheduled time. (For example: "16.00 - 19.00" without quotes)
<<<YOUR_ROUND_HERE>>> is the round number. (For example: 2)
<<<YOUR_PROBLEM_STATEMENT_HERE>>> is the problem statement. The format is edited from format provided by Polygon.
The format provided by polygon is as follows:
\begin{problem}{<<<YOUR_PROBLEM_NAME>>>}{standard input}{standard output}{0.25 seconds}{256 megabytes}
...Statement...
\InputFile
...Input...
\OutputFile
...Output...
\Scoring
...Scoring...
\begin{description}
\item[Subtask 1 (37 pts)] ...
\item[Subtask 2 (63 คะแนน)] ...
\end{description}
\Examples
\begin{example}
\exmpfile{example.01}{example.01.a}%
\exmpfile{example.02}{example.02.a}%
\end{example}
\end{problem}
The format is not yet accepted by this template. To adapt for this template, you must append "Full Score" to problem configuration:
\begin{problem}{<<<YOUR_PROBLEM_NAME>>>}{standard input}{standard output}{0.25 seconds}{256 megabytes}{<<<YOUR_FULL_SCORE>>>}
Note that to display correct example, you must add example.01 as input example and example.01.a as output example and so on.
The file example.01 and example.01.a should be contained in the same diretory as the source document.
And that's all done!
Create a problem using Polygon.
Copy the header template and paste into your document.
Copy problem statement in XeLaTeX from Polygon and insert into <<<YOUR_PROBLEM_STATEMENT_HERE>> in the template.
Compile and use!
Take a look at linear example problem.
Sorawee Porncharoenwase
Pongsaphol Pongsawakul
Sirawit Pongnakintr