C++ 代码
#include<iostream>
using namespace std;
int main(){
double a,b,c;
cin>>a>>b>>c;
int q,w,e;
q=max(a,max(b,c));
if(a+b+c-q>q){
printf("Perimetro = %.1f",a+b+c);
}
else printf("Area = %.1f",(a+b)*c/2);
return 0;
}