Solutions to UVa problems