My solution and some good solution on the Internet for the questions in Google Code Jam.