hdu acm solution of mine