简单题直接上代码
#include <iostream>
#include <cstdio>
using namespace std;
int maxindex(double a[])
{
if (a[0]>a[1]&&a[0]>a[2])
return 0;
else
return a[1]>a[2]?1:2;
}
int main()
{
double a[3], maxpro=1;
int index;
string s = "WTL";
for (int i=0; i<3; i++)
{
cin >> a[0] >> a[1] >> a[2];
index = maxindex(a);
cout << s[index] << ' ';
maxpro *= a[index];
}
printf("%.2f",(maxpro*0.65-1)*2);
return 0;
}
end