Own solutions for the UVa Online Judge problem sets