C++ 代码
#include<bits/stdc++.h>
using namespace std;
char c[3]={'W','T','L'};
int main(){
double sum=1.0;
for(int i = 0;i<3;i++){
double a,tmp=-1;
int res=0;
for(int j =0;j<3;j++){
cin>>a;
if(a>tmp) {
tmp = a;
res = j;
}
}
sum *= tmp;
cout<<c[res]<<" ";
}
printf("%.2lf",(sum*0.65-1)*2);
return 0;
}