UVa 11799 resolvido