hdu-1011.cpp Accepted and Described