add uva10044.cpp