UVa problem solutions