Solutions to some UVA problems