1070 Mooncake (25 point(s))

题解 贪心。求利润最高。只需按price / amount从大到小选择。 #include<iostream> #include<cstdio> #include<algorithm> #include<vector> using namespace std; struct node { float mount, price, avg; bool operator < (const node&
相关文章
相关标签/搜索