This notebook is intended as reference material for a team participating in the ACM-ICPC World Finals or any regional competition that allows up to 25 pages of printed reference material. It incorporates code from various sources and is based on the notebook used by contestants at the University of Toronto from 2013 to 2014.