Solutions to the problems posed by the USACO training program