水题。。
//
// main.cpp
// PATA1011
//
// Created by Phoenix on 2018/1/31.
// Copyright © 2018年 Phoenix. All rights reserved.
//
#include <iostream>
#include <cstdio>
double bet[3][3];
char c[3] = {'W','T','L'};
int main(int argc, const char * argv[]) {
double ans = 1;
for (int i = 0; i < 3; i++) {
double MAX = 0;
int k;
for(int j = 0; j < 3; j++) {
scanf("%lf", &bet[i][j]);
if(bet[i][j] > MAX){
MAX = bet[i][j];
k = j;
}
}
printf("%c ", c[k]);
ans *= MAX;
}
printf("%.2f", (ans * 0.65 - 1) * 2);
return 0;
}