代码
#include <iostream>
#include <cstdio>
#include <iomanip>
using namespace std;
float a[10];
int main()
{
float w,t,l;
for(int i=0;i<3;i++){
cin>>w>>t>>l;
if(i==0){
if(w>=t&&w>=l){
cout<<'W';
a[i]=w;
}
else if(t>w&&t>=l){
cout<<'T';
a[i]=t;
}
else if(l>w&&l>t){
cout<<'L';
a[i]=l;
}
}
else{
if(w>=t&&w>=l){
cout<<" "<<'W';
a[i]=w;
}
else if(t>w&&t>=l){
cout<<" "<<'T';
a[i]=t;
}
else if(l>w&&l>t){
cout<<" "<<'L';
a[i]=l;
}
}
}
cout<<" ";
cout<<fixed<<setprecision(2)<<((a[0]*a[1]*a[2]*0.65-1)*2);
return 0;
}