solutions to hduoj