Attempts solving problems for Google Codejam