思路清晰的屎山代码(能AC)
2024-10-24 22:20:54
发布于:广东
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d;
cin>>a>>b>>c>>d;
int maxx,maxxx,maxxxx;
maxx=max(a,b);
maxxx=max(maxx,c);
maxxxx=max(maxxx,d);
int minn,minnn,minnnn;
minn=min(a,b);
minnn=min(minn,c);
minnnn=min(minnn,d);
double sum=a+b+c+d;
sum=sum-maxxxx-minnnn;
double summ;
summ=sum/2;
printf("%.2f",summ);
}[:白眼]
这里空空如也
有帮助,赞一个