Solutions to the UVa online judge problems.