Solve UVa 10305 - Ordering Tasks.