Solutions to programming contests