题目大意:给一个3*3的矩阵 求每行最大值 累乘 输出
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
char a[3]={'W', 'T', 'L'};
char b[3];
double bet;
double temp;
double ans=1;
for( int i=0; i<3; i++ )
{
temp=0;
for( int j=0; j<3; j++ )
{
cin>>bet;
if(bet>temp)
{
temp = bet;
b[i]=a[j];
}
}
ans*=temp;
}
cout<<b[0]<<' '<<b[1]<<' '<<b[2]<<' '<<fixed<<setprecision(2)<<(ans*0.65-1)*2<<endl;
return 0;
}