题解 | 三角形的边
#include <bits/stdc++.h>
using namespace std;
int main(){
int a[3];
while(cin>>a[0]>>a[1]>>a[2]){
if(a[0]==0)break;
sort(a,a+3);
cout<<a[0]+a[1]-a[2]<<endl;
}
}
#include <bits/stdc++.h>
using namespace std;
int main(){
int a[3];
while(cin>>a[0]>>a[1]>>a[2]){
if(a[0]==0)break;
sort(a,a+3);
cout<<a[0]+a[1]-a[2]<<endl;
}
}
相关推荐
程序员花海:实习和校招简历正确格式应该是教育背景+实习+项目经历+个人评价 其中项目经历注意要体现业务 实习经历里面的业务更是要自圆其说 简历模板尽可能保持干净整洁 不要太花哨的