hdu 2665 improved