#include<iostream>
using namespace std;
int main()
{
float a[3][3];
float max = 0;
int tag = 0;
float profit = 1;
char flag[3] = {'W','T','L'};
for(int i=0; i<3;++i)
{
for(int j=0; j<3; ++j)
{
cin>>a[i][j];
if(a[i][j] > max)
{
max = a[i][j];
tag = j;
}
}
cout<<flag[tag]<<" ";
profit *= max;
max = 0;
}
profit = (profit * 0.65 -1) * 2;
printf("%.2f\n",profit);
return 0;
}
PAT 1011 World Cup Betting
最新推荐文章于 2024-08-01 17:46:16 发布