1020 月饼

简单贪心算法。 把月饼按单价递减的顺序排列。 需求一定时,每次售出单价最高的月饼存量. #include"iostream" #include<algorithm> using namespace std; struct Moocake { double store,sale,price; } m[
posted @ 2020-02-16 12:53  tangq123  阅读(123)  评论(0编辑  收藏  举报