HDOJ1059: IN PROGRESS