Solutions to UVa Online Judge