版本比较
贪心
正文
增加 2 行删除 2 行
115 行未改动全部展开116117118119120120121122123123124125126127263 行未改动全部展开115 行未改动全部展开 int m,v;}a[110];bool operator < (coin x,coin y){ return x.v*y.m<y.v*x.m;} }bool operator > (coin x,coin y){ return x.v*y.m>y.v*x.m;} }void quicksort(int l,int r){ int i=l,j=r; coin flag=a[l+r>>1]; do{263 行未改动全部展开