赞
踩
算出单价,排序,贪心。注意是double类型。
#include<bits/stdc++.h>
using namespace std;
struct mooncake
{
double store;
double price;
double unit_price;
bool operator < (const mooncake &b) const
{
return unit_price > b.u
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。