Solutions to USACO training