//
// main.cpp
// PAT_1011. World Cup Betting
//
// Created by wjq on 17/3/31.
// Copyright © 2017年 wjq. All rights reserved.
//
#include <iostream>
#include <queue>
#include <algorithm>
using namespacestd;
char s[3]={'W','T','L'};
queue<char> sta;
int main(int argc,const char * argv[])
{
double sum=1;
for(int i=0;i<3;i++)
{
int maxj=0;
double a,max=-1;
for(int j=0;j<3;j++)
{
cin>>a;
if(a>max)
{
max=a;
maxj=j;
}
}
sum*=max;
sta.push(s[maxj]);
}
while(!sta.empty())
{
cout<<sta.front()<<" ";
sta.pop();
}
printf("%.2lf",(sum*0.65-1)*2);
}
简单题,,写的太慢了..