UVa Online Judge problems