题解 ,谁看懂了直接出院!!!#三角形的边#
三角形的边
https://www.nowcoder.com/practice/05dbd1cd43b24dbbae567b3e816d4e97
#include <iostream> using namespace std; int findmax(int a, int b ,int c){ if(a>=b&&a>=c) return a; else if(b>=a&&b>=c) return b; else if(c>=a&&c>=b) return c; else return 0; } int main() { int a,b,c,k,l; while (cin >>a>>b>>c) { // 注意 while 处理多个 case k=a+b+c; l=findmax(a,b,c)*2; cout<<k-l; } return 0; } // 64 位输出请用 printf("%lld")