UVa 10110 resolvido