UVA 10305 Ordering Tasks AC.