相加和最大值
#include <stdio.h>
int main()
{
int a, b, c, x, y, z, t;
scanf("%d %d %d",&a, &b, &c);
x = a + b;
y = a + c;
z = b + c;
if(x > y)
{
t = x;
x = y;
y = t;
}
if(x > z)
{
t = x;
x = z;
z = t;
}
if(y > z)
{
t = y;
y = z;
z = t;
}
printf("%d",z);
return 0;
}