1011 World Cup Betting (20 分)
题目链接
算法分析
模拟一下题目要求就好,主要考察英语能力(bushi
代码实现
#include<bits/stdc++.h>
using namespace std;
#define N 10
char Cr[N] = {'0', 'W', 'T', 'L'};
int main(){
double tot = 1, x, Max;
int Max_t;
for(int i = 1; i <= 3; ++ i){
Max = -1;
for(int j = 1; j <= 3; ++ j){
scanf("%lf", &x);
if(x > Max){
Max = x;
Max_t = j;
}
}
tot *= Max;
printf("%c ", Cr[Max_t]);
}
printf("%.2f", (tot * 0.65 - 1) * 2);
return 0;
}