Problems from UVa Online Judge implemented in C++