TLE, then I go to see solution of dp method...Orz