A1011

#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<cstdlib>
using namespace std;

int main()
{
    double profit=1;
    double win,tie,lose;
    for(int i=1;i<=3;i++){
        scanf("%lf%lf%lf",&win,&tie,&lose);
        if(win>tie && win>lose){
            printf("W ");
            profit*=win;
        }
        else if(tie>lose){
            printf("T ");
            profit*=tie;
        }
        else{
            printf("L ");
            profit*=lose;
        }
        
    }
    profit=(profit*0.65-1)*2;
    printf("%.2lf\n",profit);
    return 0;
}
 

猜你喜欢

转载自blog.csdn.net/fengwuyaQAQ/article/details/85695976