题解 | #三角形的边#

三角形的边

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;
    }
}

全部评论

相关推荐

06-05 19:46
已编辑
武汉大学 后端
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务