As you know, each team can have a notebook for their reference in any ACM-ICPC official contest. Actually, this is a rule of regional and World Finals ACM-ICPC contests, that you can bring some papers with yourself. Usually, each team put some source codes of different algorithms in their cheatsheet.
Generating this cheatsheet would be a little hard, because you may want to put many source codes in a few pages. Also, you may want to add a table of contents to it. And the most important part is to have syntax highlighting for your codes.
I just wanted to introduce you a tool for this purpose. Its name is "codes2pdf" and it's here: https://github.com/Erfaniaa/codes2pdf
(Actually, it's forked from pin3da/notebook-generator and it has been improved.)
Just give your cpp, py, java, and tex files as an input to it; it will generate a PDF file for you. Sample PDF file
I hope it will be helpful to you, even in fields which are not related to ACM-ICPC.