C++ Code to the Hitchhiker's Guide to the Programming Contests