题解 | #三角形的边#
三角形的边
https://www.nowcoder.com/practice/05dbd1cd43b24dbbae567b3e816d4e97
#include <stdio.h> int max(int a,int b){ if(a>b)return a; else return b; } int main(){ int a,b,c; while(scanf("%d%d%d",&a,&b,&c)!=EOF) printf("%d\n",a+b+c-2*max(a,max(b,c))); return 0; }