Codes developed for Google Code Jam 2013 Qualification Round