1011 World Cup Betting

#include<bits/stdc++.h>
using namespace std;
int main()
{
	freopen("in.txt","r",stdin);
	double t[4]={};
	string c;
	for(int i=0;i<3;i++){
		double w,tt,l;
		cin>>w>>tt>>l;
		t[i]=max(max(w,tt),l);
		if(t[i]==w){
			c+='W';
		}else if(t[i]==tt){
			c+='T';
		}else{
			c+='L';
		}
	}
	double ans=(t[0]*t[1]*t[2]*0.65-1)*2;
	printf("%c %c %c %.2lf",c[0],c[1],c[2],ans);
	return 0;
}

猜你喜欢

转载自blog.csdn.net/csg3140100993/article/details/82085659