Solved UVA online judge Problems