解决一道贪心问题
(虽然题目叫做背包问题)
心里还是十分喜悦的!!!
#include<iostream>
#include<algorithm>
//sort(start end [way])
#include<iomanip>
//打印小数点几位
//fixed setprecision()
using namespace std;
struct gold{
int m, v;
//不用double是因为输入为整数,用double长度>int。
double p;
//price
}Gold[101];