solve poj1065
solve hdu5135
solve hdu5131
solve hdu4464