Stumbling towards answers for UVa online judge problems.