UVa1153 - Keep the Customer Satisfied

出處:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3594

解題策略:依照截止時間由小到大排序,每次取出一筆訂單,如果可以準時交貨,將鋼鐵量加入PriorityQueue,否則不能準時交貨(當訂單的累計鋼鐵量大於該筆訂單截止時間),

則取出PriorityQueue的最大鋼鐵量,如果該鋼鐵量比較大,則取出最大鋼鐵量,加入此筆訂單

測資可能出現,截止時間小於鋼鐵量的不能接訂單