Solutions to the programming competitions