#include <stdio.h>
char res[3][2]={"W","T","L"};
int main(){
//freopen("/Users/pantingting/Documents/code/data/input", "r", stdin);
int maxj=0;
double sum=0.65,max=0.00;
for (int i=0; i<3; i++) {
for (int j=0; j<3; j++) {
double tmp;
scanf("%lf",&tmp);
if (tmp>max) {
max=tmp;
maxj=j;
}
}
//找完了一整行的最大值。
sum*=max;
printf("%s ",res[maxj]);
// printf("%.1f ",max);
max=0;
}
sum=(sum-1)*2.00;
printf("%.2lf\n",sum);
return 0;
}
PAT 1011. World Cup Betting (20)
最新推荐文章于 2015-03-13 23:07:29 发布