hdu-4790.cpp