Codeforces Round #118 (Div. 1) A Mushroom Scientists (多元函数极值问题+拉格朗日乘数法)
题目链接:CodeforcesRound#118(Div.1)AMushroomScientists题意:提炼出来就是求f(x,y,z)=x^a*y^b*z^b,这个三元函数在(0intmain(){ints;inta,b,c;doublex,y,z,p;while(scanf("%d",&s)!=EOF){scanf("%d%d%d",&a,&b,&c);p=1.0*(a+b+c)/s;if(a