Solutions to Google codejam problems