Solutions to problems from Programming Contests