题解
2026-08-24 08:01:38
发布于:浙江
10阅读
0回复
0点赞
代码如下
#include<iostream>
using namespace std;
int a,b,c,d;
int main(){
cin>>a>>b>>c>>d;
int x=b+c,y=b+d;
if(a<x&&a<y){
cout<<a;
}else if(x<a&&x<y)
cout<<x;
else{
cout<<y;
}
return 0;
}
这里空空如也






有帮助,赞一个