[UVA][greedy+并查集] 1316 - Supermarket
A supermarket has a set Prod of products on sale. It earns a profit px for
each product x in Prod sold by a deadline dx that is measured as an integral
number of time units starting from the moment the sale begins. Each product
takes precisely one unit of time for being ...