C++ Solutions of Google Code Jam 2014 Qualification Round.