题解
2026-08-26 21:55:14
发布于:广东
3阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d;
cin>>a>>b>>c>>d;
if(a<=b+c&&a<=b+d){
cout<<a;
}else if(b+c<=a&&b+c<=b+d){
cout<<b+c;
}else if(b+d<=a&&b+d<=b+c){
cout<<b+d;
}
return 0;
}
这里空空如也






有帮助,赞一个