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&
相關文章
相關標籤/搜索