hdu 1011. Tree DP.