b1020专题

PAT B1020 -- 月饼

题目如下:LINK  代码如下: #include <iostream>#include <vector>#include <algorithm>struct mooncake{float totalWeight;float totalPrice;double unitPrice;};bool mooncakeCmp(mooncake a, mooncake b) //按月饼价格降序排