My solutions for UVA online judge.