水题

#include<cstdio>
int main(){
	char mp[4]={'W','T','L'};
	int x,y,z;
	double num,Max=-1.0,sum=1;
	for(int i=0;i<3;i++){
		scanf("%lf",&num);
		if(num > Max){
			x=i;
			Max = num;
		}
	}
	sum = sum * Max;
	Max=-1.0;
	for(int i=0;i<3;i++){
		scanf("%lf",&num);
		if(num > Max){
			y=i;
			Max = num;
		}
	}
	sum = sum * Max;
	Max=-1.0;
	for(int i=0;i<3;i++){
		scanf("%lf",&num);
		if(num > Max){
			z=i;
			Max = num;
		}
	}
	sum = sum * Max*0.65;
	printf("%c %c %c %.2f\n",mp[x],mp[y],mp[z],(sum-1)*2);
	return 0;
}