#include<stdio.h>
int main(){
int i, n, maxi=0 ;
char out[3];
double a, b, c, max=1.0 ;
for(i=0;i<3;i++){
scanf("%lf%lf%lf",&a,&b,&c);
if(a>b){
if(a>c){out[i]='W';max*=a;}
else {out[i]='L';max*=c;} }
else{
if(b>c){out[i]='T';max*=b;}
else {out[i]='L';max*=c;} }
}
printf("%c %c %c ",out[0],out[1],out[2]);
printf("%.2f\n",(max*0.65-1)*2);
return 0;
}
PAT-A1011
最新推荐文章于 2019-01-03 14:49:20 发布