USACO friday
solve hdu5023 && hdu5024