Solutions to Competitive Programming Problems