Solutions to USACO training problems