solved new usaco problem