A1011. World Cup Betting (20)
#include <stdio.h>
int main(){
char sign[3] = {'W', 'T', 'L'};
int i, j;
float odd[3][3];
float max[3] = {0.0};
char res[3];
for(i = 0; i < 3; i++){
for(j = 0; j < 3; j++){
scanf("%f", &odd[i][j]);
if(odd[i][j] > max[i]){
max[i] = odd[i][j];
res[i] = sign[j];
}
}
}
float maxpro = 1;
for(i = 0; i < 3; i++){
maxpro *= max[i];
}
maxpro = (maxpro * 0.65 - 1) * 2;
for(i = 0; i < 3; i++){
printf("%c ", res[i]);
}
printf("%.2f", maxpro);
return 0;
}