Solutions to the USACO training gateway problems.