Cf Round552 D题

      贪心: 当太阳板未受到光照时,优先使用accumulator(因为消耗accumulator后续还可能recharge,但battery就无法recharge了),如果accumulator空,则只能使用battery。 当太阳板受到光照时,如果accumulator未满,则使用battery,让accumulator充电。否则同上(accumulator已满,优先使用accumula
相关文章
相关标签/搜索