原题:
源代码:
#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
double game[3][3];
char c[3] = {'W', 'T', 'L'};
double profit = 1;
int tagj[3];
for(int i = 0; i < 3; i ++){
double max = -1;
for(int j = 0; j < 3; j ++){
cin>>game[i][j];
if(game[i][j] > max){
max = game[i][j];
tagj[i] = j;
}
}
profit *= max;
}
profit = ((profit * 0.65) - 1) * 2;
for(int i = 0; i < 3; i ++)
cout<<c[tagj[i]]<<" ";
printf("%.2f", profit);
return 0;
}
已AC:
易失分点:
比较简单