Ordering Tasks (UVa 10305)

Problem John has n tasks to do. Unfortunately, the tasks [...]