ZOJ 3875 Lunch Time (The 12th Zhejiang Provincial Collegiate Programming Contest )
【题目链接】:clickhere~~【题目大意】给出一些点心的单价和数量,求出中位数单价的点心【解题思路】排序一遍,取中位数就可以了代码:#include
usingnamespacestd;
structnode{
charch[100];
intvalue;
}dish[100000],a,b,c;
intT;
boolcmp(nodea,nodeb){
returna.value>T;
wh