题解 | #三角形的边#
三角形的边
https://www.nowcoder.com/practice/05dbd1cd43b24dbbae567b3e816d4e97
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a, b, c;
while (cin >> a >> b >> c) {
cout << a+b+c-2*max(a,max(b,c)) << endl;
}
}
阿里云工作强度 667人发布