My Google Code Jam solutions in C++