轻松
2026-09-06 08:24:58
发布于:广东
2阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int a,b,c,d,sum=0,aum=0;
cin>>a>>b>>c>>d;
sum=a;
if(b+c>b+d){
aum=b+d;
}
else{
aum=b+c;
}
if(sum>aum){
cout<<aum<<endl;
}
else{
cout<<sum<<endl;
}
return 0;
}
这里空空如也








有帮助,赞一个