题目: 戳这里
题意:说实话,没读明白。
解题思路:
对着样例模拟就行了。
代码:
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
typedef long long ll;
const int maxn=10+10;
double nu[maxn];
int main() {
double ans = 0.65;
for(int i = 0; i < 3; ++i) {
double maxx = 0.0;
int maxi = 0;
for(int j = 0; j < 3; ++j) {
scanf("%lf", nu+j);
if(maxx < nu[j]) {
maxx = nu[j];
maxi = j;
}
}
if(maxi == 0) printf("W ");
if(maxi == 1) printf("T ");
if(maxi == 2) printf("L ");
ans *= maxx;
}
ans = (ans - 1.0) * 2.0;
printf("%.2f\n", ans);
return 0;
}