pat甲级打卡-1011 World Cup Betting
简单题
#include<bits/stdc++.h>
using namespace std;
int main(){
float cnt=1;
for(int i=1;i<=3;i++){
float w,t,l;
cin>>w>>t>>l;
if(w>t && w>l){
cout<<"W ";
}else if(t>w && t>l){
cout<<"T ";
}else cout<<"L ";
float maxx=max(w,max(t,l));
cnt = cnt*maxx;
}
float res=(cnt*0.65-1)*2;
printf("%0.2f", res);
return 0;
}