[UVA] 11456 - Trainsorting
Problem A: Trainsorting
Erin is an engineer. She drives trains. She also arranges the cars
within each train. She prefers to put the cars in decreasing order of
weight, with the heaviest car at the front of the train.
Unfortunately, sorting train cars is not easy. One can...