Skip to content

ruoyiqiao/ACM-ICPC-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📚 ACM-ICPC-template

It's a collection of code snippets, algorithms, and data structures useful in competitive programming. Please note that some code may be referenced from other sources.

Compiling the Template

You can compile the LaTeX template into a PDF by running the following command in your terminal:

make

This will generate the PDF document (template.pdf) in the pdf/ directory.

If you'd like to clean up auxiliary files generated during the compilation (e.g., .aux, .log, .toc), you can run:

make clean

Adding Code Snippets

To add a new code snippet to a specific section (e.g., Graph, DataStructure), you can use the provided shell script add_snippet.sh:

./add_snippet.sh <section> <filename> <subsection>

For example, to add a new graph algorithm under the Graph section with the filename BFS.tex and the subsection name Breadth-First Search, run:

./add_snippet.sh Graph BFS.tex "Breadth-First Search"

This will create a new .tex file in the corresponding directory with the appropriate LaTeX structure for a code listing.

License

Provided under the MIT License.

About

ACM-ICPC Programming Snippets / Template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages