UVa Online Judge problem solutions