My attempts on solving the UVa programming problems.