[UVA][dp] 672 - Gangsters
Gangsters N gangsters are going to a restaurant. The i-th gangster comes at thetime Ti and has the prosperity Pi. The door of the restaurant hasK+1 states of openness expressed by the integers in the range [0, K]. Thestate of openness can change by one in one unit of t...