比较两堆金币的性价比时不用double会有精度损失,那就不能写作
return x.v/x.m>y.v/y.m;
要写成
return x.v*y.m>y.v*x.m;
或者
return x.v*1.0/x.m>y.v*1.0/y.m;
否则20pts直接带走......