Solutions for UVa Online Judge Problems