Solutions of UVA online judge problems