classSolution{public:intmaximumScore(inta,intb,intc){// the maximum <= the minimum + the middleconstintx=(a+b+c)/2;// the maximum > the minimum + the middleconstinty=a+b+c-max({a,b,c});returnmin(x,y);}};
123456789
classSolution{publicintmaximumScore(inta,intb,intc){// the maximum <= the minimum + the middlefinalintx=(a+b+c)/2;// the maximum > the minimum + the middlefinalinty=a+b+c-Math.max(a,Math.max(b,c));returnMath.min(x,y);}}